@@ -103,7 +103,7 @@ func expandECSParameters(ctx context.Context, tfMap map[string]interface{}) *typ
103
103
a .LaunchType = types .LaunchType (v )
104
104
}
105
105
106
- if v , ok := tfMap ["network_configuration" ].([]interface {}); ok && len (v ) > 0 {
106
+ if v , ok := tfMap ["network_configuration" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
107
107
a .NetworkConfiguration = expandNetworkConfiguration (v [0 ].(map [string ]interface {}))
108
108
}
109
109
@@ -611,39 +611,39 @@ func expandTarget(ctx context.Context, tfMap map[string]interface{}) *types.Targ
611
611
a .Arn = aws .String (v )
612
612
}
613
613
614
- if v , ok := tfMap ["dead_letter_config" ].([]interface {}); ok && len (v ) > 0 {
614
+ if v , ok := tfMap ["dead_letter_config" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
615
615
a .DeadLetterConfig = expandDeadLetterConfig (v [0 ].(map [string ]interface {}))
616
616
}
617
617
618
- if v , ok := tfMap ["ecs_parameters" ].([]interface {}); ok && len (v ) > 0 {
618
+ if v , ok := tfMap ["ecs_parameters" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
619
619
a .EcsParameters = expandECSParameters (ctx , v [0 ].(map [string ]interface {}))
620
620
}
621
621
622
- if v , ok := tfMap ["eventbridge_parameters" ].([]interface {}); ok && len (v ) > 0 {
622
+ if v , ok := tfMap ["eventbridge_parameters" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
623
623
a .EventBridgeParameters = expandEventBridgeParameters (v [0 ].(map [string ]interface {}))
624
624
}
625
625
626
626
if v , ok := tfMap ["input" ].(string ); ok && v != "" {
627
627
a .Input = aws .String (v )
628
628
}
629
629
630
- if v , ok := tfMap ["kinesis_parameters" ].([]interface {}); ok && len (v ) > 0 {
630
+ if v , ok := tfMap ["kinesis_parameters" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
631
631
a .KinesisParameters = expandKinesisParameters (v [0 ].(map [string ]interface {}))
632
632
}
633
633
634
634
if v , ok := tfMap ["role_arn" ].(string ); ok && v != "" {
635
635
a .RoleArn = aws .String (v )
636
636
}
637
637
638
- if v , ok := tfMap ["retry_policy" ].([]interface {}); ok && len (v ) > 0 {
638
+ if v , ok := tfMap ["retry_policy" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
639
639
a .RetryPolicy = expandRetryPolicy (v [0 ].(map [string ]interface {}))
640
640
}
641
641
642
- if v , ok := tfMap ["sagemaker_pipeline_parameters" ].([]interface {}); ok && len (v ) > 0 {
642
+ if v , ok := tfMap ["sagemaker_pipeline_parameters" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
643
643
a .SageMakerPipelineParameters = expandSageMakerPipelineParameters (v [0 ].(map [string ]interface {}))
644
644
}
645
645
646
- if v , ok := tfMap ["sqs_parameters" ].([]interface {}); ok && len (v ) > 0 {
646
+ if v , ok := tfMap ["sqs_parameters" ].([]interface {}); ok && len (v ) > 0 && v [ 0 ] != nil {
647
647
a .SqsParameters = expandSQSParameters (v [0 ].(map [string ]interface {}))
648
648
}
649
649
0 commit comments