Add additional error checking to flatten and expand
Add additional error checking to flatten and expand

For timeout and retry strategy.

nbaztec/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,Ninir/terraform-provider-aws,nbaztec/terraform-provider-aws,terraform-providers/terraform-provider-aws,nbaztec/terraform-provider-aws,terraform-providers/terraform-provider-aws,Ninir/terraform-provider-aws,kjmkznr/terraform-provider-aws,Ninir/terraform-provider-aws,kjmkznr/terraform-provider-aws,kjmkznr/terraform-provider-aws,terraform-providers/terraform-provider-aws,Ninir/terraform-provider-aws,nbaztec/terraform-provider-aws