diff --git a/.changelog/25060.txt b/.changelog/25060.txt new file mode 100644 index 00000000000..e5d5841ea11 --- /dev/null +++ b/.changelog/25060.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/aws_transfer_server: Add support for `TransferSecurityPolicy-2022-03` `security_policy_name` value +``` \ No newline at end of file diff --git a/internal/service/transfer/enum.go b/internal/service/transfer/enum.go index 880b435fa83..f1a115345d0 100644 --- a/internal/service/transfer/enum.go +++ b/internal/service/transfer/enum.go @@ -4,6 +4,7 @@ const ( SecurityPolicyName2018_11 = "TransferSecurityPolicy-2018-11" SecurityPolicyName2020_06 = "TransferSecurityPolicy-2020-06" SecurityPolicyNameFIPS_2020_06 = "TransferSecurityPolicy-FIPS-2020-06" + SecurityPolicyName2022_03 = "TransferSecurityPolicy-2022-03" ) func SecurityPolicyName_Values() []string { @@ -11,5 +12,6 @@ func SecurityPolicyName_Values() []string { SecurityPolicyName2018_11, SecurityPolicyName2020_06, SecurityPolicyNameFIPS_2020_06, + SecurityPolicyName2022_03, } } diff --git a/internal/service/transfer/server_test.go b/internal/service/transfer/server_test.go index c306e3e7a55..066d91661c5 100644 --- a/internal/service/transfer/server_test.go +++ b/internal/service/transfer/server_test.go @@ -180,6 +180,13 @@ func testAccServer_securityPolicy(t *testing.T) { resource.TestCheckResourceAttr(resourceName, "security_policy_name", "TransferSecurityPolicy-2018-11"), ), }, + { + Config: testAccServerConfig_securityPolicy("TransferSecurityPolicy-2022-03"), + Check: resource.ComposeTestCheckFunc( + testAccCheckServerExists(resourceName, &conf), + resource.TestCheckResourceAttr(resourceName, "security_policy_name", "TransferSecurityPolicy-2022-03"), + ), + }, }, }) } diff --git a/website/docs/r/transfer_server.html.markdown b/website/docs/r/transfer_server.html.markdown index 4271a742096..b2da9f431fa 100644 --- a/website/docs/r/transfer_server.html.markdown +++ b/website/docs/r/transfer_server.html.markdown @@ -105,7 +105,7 @@ The following arguments are supported: * `force_destroy` - (Optional) A boolean that indicates all users associated with the server should be deleted so that the Server can be destroyed without error. The default value is `false`. This option only applies to servers configured with a `SERVICE_MANAGED` `identity_provider_type`. * `post_authentication_login_banner`- (Optional) Specify a string to display when users connect to a server. This string is displayed after the user authenticates. The SFTP protocol does not support post-authentication display banners. * `pre_authentication_login_banner`- (Optional) Specify a string to display when users connect to a server. This string is displayed before the user authenticates. -* `security_policy_name` - (Optional) Specifies the name of the security policy that is attached to the server. Possible values are `TransferSecurityPolicy-2018-11`, `TransferSecurityPolicy-2020-06`, and `TransferSecurityPolicy-FIPS-2020-06`. Default value is: `TransferSecurityPolicy-2018-11`. +* `security_policy_name` - (Optional) Specifies the name of the security policy that is attached to the server. Possible values are `TransferSecurityPolicy-2018-11`, `TransferSecurityPolicy-2020-06`, `TransferSecurityPolicy-FIPS-2020-06` and `TransferSecurityPolicy-2022-03`. Default value is: `TransferSecurityPolicy-2018-11`. * `tags` - (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. * `workflow_details` - (Optional) Specifies the workflow details. See Workflow Details below.