@@ -15,6 +15,7 @@ import (
1515 sdkacctest "github.com/hashicorp/terraform-plugin-testing/helper/acctest"
1616 "github.com/hashicorp/terraform-plugin-testing/helper/resource"
1717 "github.com/hashicorp/terraform-plugin-testing/terraform"
18+ "github.com/hashicorp/terraform-plugin-testing/tfversion"
1819 "github.com/hashicorp/terraform-provider-aws/internal/acctest"
1920 "github.com/hashicorp/terraform-provider-aws/internal/conns"
2021 "github.com/hashicorp/terraform-provider-aws/names"
@@ -34,7 +35,10 @@ func TestAccLambdaInvokeAction_basic(t *testing.T) {
3435 },
3536 ErrorCheck : acctest .ErrorCheck (t , names .LambdaServiceID ),
3637 ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
37- CheckDestroy : acctest .CheckDestroyNoop ,
38+ TerraformVersionChecks : []tfversion.TerraformVersionCheck {
39+ tfversion .SkipBelow (tfversion .Version1_14_0 ),
40+ },
41+ CheckDestroy : acctest .CheckDestroyNoop ,
3842 Steps : []resource.TestStep {
3943 {
4044 Config : testAccInvokeActionConfig_basic (rName , testData , inputJSON ),
@@ -60,7 +64,10 @@ func TestAccLambdaInvokeAction_withQualifier(t *testing.T) {
6064 },
6165 ErrorCheck : acctest .ErrorCheck (t , names .LambdaServiceID ),
6266 ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
63- CheckDestroy : acctest .CheckDestroyNoop ,
67+ TerraformVersionChecks : []tfversion.TerraformVersionCheck {
68+ tfversion .SkipBelow (tfversion .Version1_14_0 ),
69+ },
70+ CheckDestroy : acctest .CheckDestroyNoop ,
6471 Steps : []resource.TestStep {
6572 {
6673 Config : testAccInvokeActionConfig_withQualifier (rName , testData , inputJSON ),
@@ -85,7 +92,10 @@ func TestAccLambdaInvokeAction_invocationTypes(t *testing.T) {
8592 },
8693 ErrorCheck : acctest .ErrorCheck (t , names .LambdaServiceID ),
8794 ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
88- CheckDestroy : acctest .CheckDestroyNoop ,
95+ TerraformVersionChecks : []tfversion.TerraformVersionCheck {
96+ tfversion .SkipBelow (tfversion .Version1_14_0 ),
97+ },
98+ CheckDestroy : acctest .CheckDestroyNoop ,
8999 Steps : []resource.TestStep {
90100 {
91101 Config : testAccInvokeActionConfig_invocationType (rName , testData , inputJSON , "RequestResponse" ),
@@ -122,7 +132,10 @@ func TestAccLambdaInvokeAction_logTypes(t *testing.T) {
122132 },
123133 ErrorCheck : acctest .ErrorCheck (t , names .LambdaServiceID ),
124134 ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
125- CheckDestroy : acctest .CheckDestroyNoop ,
135+ TerraformVersionChecks : []tfversion.TerraformVersionCheck {
136+ tfversion .SkipBelow (tfversion .Version1_14_0 ),
137+ },
138+ CheckDestroy : acctest .CheckDestroyNoop ,
126139 Steps : []resource.TestStep {
127140 {
128141 Config : testAccInvokeActionConfig_logType (rName , testData , inputJSON , "None" ),
@@ -154,7 +167,10 @@ func TestAccLambdaInvokeAction_clientContext(t *testing.T) {
154167 },
155168 ErrorCheck : acctest .ErrorCheck (t , names .LambdaServiceID ),
156169 ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
157- CheckDestroy : acctest .CheckDestroyNoop ,
170+ TerraformVersionChecks : []tfversion.TerraformVersionCheck {
171+ tfversion .SkipBelow (tfversion .Version1_14_0 ),
172+ },
173+ CheckDestroy : acctest .CheckDestroyNoop ,
158174 Steps : []resource.TestStep {
159175 {
160176 Config : testAccInvokeActionConfig_clientContext (rName , testData , inputJSON , clientContext ),
@@ -180,7 +196,10 @@ func TestAccLambdaInvokeAction_complexPayload(t *testing.T) {
180196 },
181197 ErrorCheck : acctest .ErrorCheck (t , names .LambdaServiceID ),
182198 ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
183- CheckDestroy : acctest .CheckDestroyNoop ,
199+ TerraformVersionChecks : []tfversion.TerraformVersionCheck {
200+ tfversion .SkipBelow (tfversion .Version1_14_0 ),
201+ },
202+ CheckDestroy : acctest .CheckDestroyNoop ,
184203 Steps : []resource.TestStep {
185204 {
186205 Config : testAccInvokeActionConfig_basic (rName , testData , inputJSON ),
0 commit comments