aws-sdk-transfer 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1501e1563bf7f9af211fa870cd288173b03ea5fb6a76ff76d91b75fc0edbad09
4
- data.tar.gz: aedfc9f789f4ce46dfde7f0c107aba5720ae654d9d248fcd8cfa46ff2ee7c0dc
3
+ metadata.gz: 03e1a4abc91b069cf39b2b826e011e017d6b138598b7031e02378fee7cc69396
4
+ data.tar.gz: 93c6c9c172fdfe1f8c6543ed04a0e03d314b60b5a4d3968481ef23125c705160
5
5
  SHA512:
6
- metadata.gz: 8eec295cbaaca3cfb99daff5a8c36de76127f32e4f0af4bf6b039c28fd222986704f575d1b10b1064d29d4fadbc75fa27bb386fb11500730431e4282d3d2f6d6
7
- data.tar.gz: f9790503c56f0d7cd4f9231baffb09fc35428ff6460f3e3b6d786c10518726fe2a9146eb0048484e179ca820efa1170707cdfb2045a0956b29cae7536511530b
6
+ metadata.gz: 1a342863445121f5dd5093a840db57f70d3bf4f6657bd63898dbb537bc1c4f37523dd90aea1958b2a48b3e635b32e4e86b161206c2a4a38b91bf32a34a778653
7
+ data.tar.gz: 663b7d41858f0ec0a5b740e6c2560bb1de2884bf24cade3b647b2964c8b644ffb1f7d9a0c85217077e82f2b87d514880a4e37626c0aba48f92938d18aed0a717
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-transfer/customizations'
47
47
  # @service
48
48
  module Aws::Transfer
49
49
 
50
- GEM_VERSION = '1.23.0'
50
+ GEM_VERSION = '1.24.0'
51
51
 
52
52
  end
@@ -438,8 +438,8 @@ module Aws::Transfer
438
438
  # * `FTP` (File Transfer Protocol): Unencrypted file transfer
439
439
  #
440
440
  # <note markdown="1"> If you select `FTPS`, you must choose a certificate stored in AWS
441
- # Certificate Manager (ACM) which will be used to identify your server
442
- # when clients connect to it over FTPS.
441
+ # Certificate Manager (ACM) which will be used to identify your file
442
+ # transfer protocol-enabled server when clients connect to it over FTPS.
443
443
  #
444
444
  # If `Protocol` includes either `FTP` or `FTPS`, then the `EndpointType`
445
445
  # must be `VPC` and the `IdentityProviderType` must be `API_GATEWAY`.
@@ -453,6 +453,10 @@ module Aws::Transfer
453
453
  #
454
454
  # </note>
455
455
  #
456
+ # @option params [String] :security_policy_name
457
+ # Specifies the name of the security policy that is attached to the
458
+ # server.
459
+ #
456
460
  # @option params [Array<Types::Tag>] :tags
457
461
  # Key-value pairs that can be used to group and search for file transfer
458
462
  # protocol-enabled servers.
@@ -480,6 +484,7 @@ module Aws::Transfer
480
484
  # identity_provider_type: "SERVICE_MANAGED", # accepts SERVICE_MANAGED, API_GATEWAY
481
485
  # logging_role: "Role",
482
486
  # protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
487
+ # security_policy_name: "SecurityPolicyName",
483
488
  # tags: [
484
489
  # {
485
490
  # key: "TagKey", # required
@@ -546,7 +551,7 @@ module Aws::Transfer
546
551
  #
547
552
  # <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
548
553
  # S3, the entry will be ignored. As a workaround, you can use the Amazon
549
- # S3 api to create 0 byte objects as place holders for your directory.
554
+ # S3 API to create 0 byte objects as place holders for your directory.
550
555
  # If using the CLI, use the `s3api` call instead of `s3` so you can use
551
556
  # the put-object operation. For example, you use the following: `aws
552
557
  # s3api put-object --bucket bucketname --key path/to/folder/`. Make sure
@@ -605,9 +610,10 @@ module Aws::Transfer
605
610
  # @option params [required, String] :user_name
606
611
  # A unique string that identifies a user and is associated with a file
607
612
  # transfer protocol-enabled server as specified by the `ServerId`. This
608
- # user name must be a minimum of 3 and a maximum of 32 characters long.
609
- # The following are valid characters: a-z, A-Z, 0-9, underscore, and
610
- # hyphen. The user name can't start with a hyphen.
613
+ # user name must be a minimum of 3 and a maximum of 100 characters long.
614
+ # The following are valid characters: a-z, A-Z, 0-9, underscore '\_',
615
+ # hyphen '-', period '.', and at sign '@'. The user name can't
616
+ # start with a hyphen, period, and at sign.
611
617
  #
612
618
  # @return [Types::CreateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
613
619
  #
@@ -746,6 +752,51 @@ module Aws::Transfer
746
752
  req.send_request(options)
747
753
  end
748
754
 
755
+ # Describes the security policy that is attached to your file transfer
756
+ # protocol-enabled server. The response contains a description of the
757
+ # security policy's properties. For more information about security
758
+ # policies, see [Working with security policies][1].
759
+ #
760
+ #
761
+ #
762
+ # [1]: https://docs.aws.amazon.com/transfer/latest/userguide/security-policies.html
763
+ #
764
+ # @option params [required, String] :security_policy_name
765
+ # Specifies the name of the security policy that is attached to the
766
+ # server.
767
+ #
768
+ # @return [Types::DescribeSecurityPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
769
+ #
770
+ # * {Types::DescribeSecurityPolicyResponse#security_policy #security_policy} => Types::DescribedSecurityPolicy
771
+ #
772
+ # @example Request syntax with placeholder values
773
+ #
774
+ # resp = client.describe_security_policy({
775
+ # security_policy_name: "SecurityPolicyName", # required
776
+ # })
777
+ #
778
+ # @example Response structure
779
+ #
780
+ # resp.security_policy.fips #=> Boolean
781
+ # resp.security_policy.security_policy_name #=> String
782
+ # resp.security_policy.ssh_ciphers #=> Array
783
+ # resp.security_policy.ssh_ciphers[0] #=> String
784
+ # resp.security_policy.ssh_kexs #=> Array
785
+ # resp.security_policy.ssh_kexs[0] #=> String
786
+ # resp.security_policy.ssh_macs #=> Array
787
+ # resp.security_policy.ssh_macs[0] #=> String
788
+ # resp.security_policy.tls_ciphers #=> Array
789
+ # resp.security_policy.tls_ciphers[0] #=> String
790
+ #
791
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeSecurityPolicy AWS API Documentation
792
+ #
793
+ # @overload describe_security_policy(params = {})
794
+ # @param [Hash] params ({})
795
+ def describe_security_policy(params = {}, options = {})
796
+ req = build_request(:describe_security_policy, params)
797
+ req.send_request(options)
798
+ end
799
+
749
800
  # Describes a file transfer protocol-enabled server that you specify by
750
801
  # passing the `ServerId` parameter.
751
802
  #
@@ -785,6 +836,7 @@ module Aws::Transfer
785
836
  # resp.server.logging_role #=> String
786
837
  # resp.server.protocols #=> Array
787
838
  # resp.server.protocols[0] #=> String, one of "SFTP", "FTP", "FTPS"
839
+ # resp.server.security_policy_name #=> String
788
840
  # resp.server.server_id #=> String
789
841
  # resp.server.state #=> String, one of "OFFLINE", "ONLINE", "STARTING", "STOPPING", "START_FAILED", "STOP_FAILED"
790
842
  # resp.server.tags #=> Array
@@ -905,6 +957,48 @@ module Aws::Transfer
905
957
  req.send_request(options)
906
958
  end
907
959
 
960
+ # Lists the security policies that are attached to your file transfer
961
+ # protocol-enabled servers.
962
+ #
963
+ # @option params [Integer] :max_results
964
+ # Specifies the number of security policies to return as a response to
965
+ # the `ListSecurityPolicies` query.
966
+ #
967
+ # @option params [String] :next_token
968
+ # When additional results are obtained from the `ListSecurityPolicies`
969
+ # command, a `NextToken` parameter is returned in the output. You can
970
+ # then pass the `NextToken` parameter in a subsequent command to
971
+ # continue listing additional security policies.
972
+ #
973
+ # @return [Types::ListSecurityPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
974
+ #
975
+ # * {Types::ListSecurityPoliciesResponse#next_token #next_token} => String
976
+ # * {Types::ListSecurityPoliciesResponse#security_policy_names #security_policy_names} => Array&lt;String&gt;
977
+ #
978
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
979
+ #
980
+ # @example Request syntax with placeholder values
981
+ #
982
+ # resp = client.list_security_policies({
983
+ # max_results: 1,
984
+ # next_token: "NextToken",
985
+ # })
986
+ #
987
+ # @example Response structure
988
+ #
989
+ # resp.next_token #=> String
990
+ # resp.security_policy_names #=> Array
991
+ # resp.security_policy_names[0] #=> String
992
+ #
993
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListSecurityPolicies AWS API Documentation
994
+ #
995
+ # @overload list_security_policies(params = {})
996
+ # @param [Hash] params ({})
997
+ def list_security_policies(params = {}, options = {})
998
+ req = build_request(:list_security_policies, params)
999
+ req.send_request(options)
1000
+ end
1001
+
908
1002
  # Lists the file transfer protocol-enabled servers that are associated
909
1003
  # with your AWS account.
910
1004
  #
@@ -913,7 +1007,7 @@ module Aws::Transfer
913
1007
  # return as a response to the `ListServers` query.
914
1008
  #
915
1009
  # @option params [String] :next_token
916
- # When additional results are obtained from the`ListServers` command, a
1010
+ # When additional results are obtained from the `ListServers` command, a
917
1011
  # `NextToken` parameter is returned in the output. You can then pass the
918
1012
  # `NextToken` parameter in a subsequent command to continue listing
919
1013
  # additional file transfer protocol-enabled servers.
@@ -1382,6 +1476,10 @@ module Aws::Transfer
1382
1476
  #
1383
1477
  # </note>
1384
1478
  #
1479
+ # @option params [String] :security_policy_name
1480
+ # Specifies the name of the security policy that is attached to the
1481
+ # server.
1482
+ #
1385
1483
  # @option params [required, String] :server_id
1386
1484
  # A system-assigned unique identifier for a file transfer
1387
1485
  # protocol-enabled server instance that the user account is assigned to.
@@ -1408,6 +1506,7 @@ module Aws::Transfer
1408
1506
  # },
1409
1507
  # logging_role: "NullableRole",
1410
1508
  # protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
1509
+ # security_policy_name: "SecurityPolicyName",
1411
1510
  # server_id: "ServerId", # required
1412
1511
  # })
1413
1512
  #
@@ -1467,7 +1566,7 @@ module Aws::Transfer
1467
1566
  #
1468
1567
  # <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
1469
1568
  # S3, the entry will be ignored. As a workaround, you can use the Amazon
1470
- # S3 api to create 0 byte objects as place holders for your directory.
1569
+ # S3 API to create 0 byte objects as place holders for your directory.
1471
1570
  # If using the CLI, use the `s3api` call instead of `s3` so you can use
1472
1571
  # the put-object operation. For example, you use the following: `aws
1473
1572
  # s3api put-object --bucket bucketname --key path/to/folder/`. Make sure
@@ -1517,10 +1616,10 @@ module Aws::Transfer
1517
1616
  # @option params [required, String] :user_name
1518
1617
  # A unique string that identifies a user and is associated with a file
1519
1618
  # transfer protocol-enabled server as specified by the `ServerId`. This
1520
- # is the string that will be used by your user when they log in to your
1521
- # server. This user name is a minimum of 3 and a maximum of 32
1522
- # characters long. The following are valid characters: a-z, A-Z, 0-9,
1523
- # underscore, and hyphen. The user name can't start with a hyphen.
1619
+ # user name must be a minimum of 3 and a maximum of 100 characters long.
1620
+ # The following are valid characters: a-z, A-Z, 0-9, underscore '\_',
1621
+ # hyphen '-', period '.', and at sign '@'. The user name can't
1622
+ # start with a hyphen, period, and at sign.
1524
1623
  #
1525
1624
  # @return [Types::UpdateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1526
1625
  #
@@ -1571,7 +1670,7 @@ module Aws::Transfer
1571
1670
  params: params,
1572
1671
  config: config)
1573
1672
  context[:gem_name] = 'aws-sdk-transfer'
1574
- context[:gem_version] = '1.23.0'
1673
+ context[:gem_version] = '1.24.0'
1575
1674
  Seahorse::Client::Request.new(handlers, context)
1576
1675
  end
1577
1676
 
@@ -27,14 +27,18 @@ module Aws::Transfer
27
27
  DeleteServerRequest = Shapes::StructureShape.new(name: 'DeleteServerRequest')
28
28
  DeleteSshPublicKeyRequest = Shapes::StructureShape.new(name: 'DeleteSshPublicKeyRequest')
29
29
  DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest')
30
+ DescribeSecurityPolicyRequest = Shapes::StructureShape.new(name: 'DescribeSecurityPolicyRequest')
31
+ DescribeSecurityPolicyResponse = Shapes::StructureShape.new(name: 'DescribeSecurityPolicyResponse')
30
32
  DescribeServerRequest = Shapes::StructureShape.new(name: 'DescribeServerRequest')
31
33
  DescribeServerResponse = Shapes::StructureShape.new(name: 'DescribeServerResponse')
32
34
  DescribeUserRequest = Shapes::StructureShape.new(name: 'DescribeUserRequest')
33
35
  DescribeUserResponse = Shapes::StructureShape.new(name: 'DescribeUserResponse')
36
+ DescribedSecurityPolicy = Shapes::StructureShape.new(name: 'DescribedSecurityPolicy')
34
37
  DescribedServer = Shapes::StructureShape.new(name: 'DescribedServer')
35
38
  DescribedUser = Shapes::StructureShape.new(name: 'DescribedUser')
36
39
  EndpointDetails = Shapes::StructureShape.new(name: 'EndpointDetails')
37
40
  EndpointType = Shapes::StringShape.new(name: 'EndpointType')
41
+ Fips = Shapes::BooleanShape.new(name: 'Fips')
38
42
  HomeDirectory = Shapes::StringShape.new(name: 'HomeDirectory')
39
43
  HomeDirectoryMapEntry = Shapes::StructureShape.new(name: 'HomeDirectoryMapEntry')
40
44
  HomeDirectoryMappings = Shapes::ListShape.new(name: 'HomeDirectoryMappings')
@@ -48,6 +52,8 @@ module Aws::Transfer
48
52
  InternalServiceError = Shapes::StructureShape.new(name: 'InternalServiceError')
49
53
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
50
54
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
55
+ ListSecurityPoliciesRequest = Shapes::StructureShape.new(name: 'ListSecurityPoliciesRequest')
56
+ ListSecurityPoliciesResponse = Shapes::StructureShape.new(name: 'ListSecurityPoliciesResponse')
51
57
  ListServersRequest = Shapes::StructureShape.new(name: 'ListServersRequest')
52
58
  ListServersResponse = Shapes::StructureShape.new(name: 'ListServersResponse')
53
59
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
@@ -74,6 +80,10 @@ module Aws::Transfer
74
80
  Response = Shapes::StringShape.new(name: 'Response')
75
81
  RetryAfterSeconds = Shapes::StringShape.new(name: 'RetryAfterSeconds')
76
82
  Role = Shapes::StringShape.new(name: 'Role')
83
+ SecurityPolicyName = Shapes::StringShape.new(name: 'SecurityPolicyName')
84
+ SecurityPolicyNames = Shapes::ListShape.new(name: 'SecurityPolicyNames')
85
+ SecurityPolicyOption = Shapes::StringShape.new(name: 'SecurityPolicyOption')
86
+ SecurityPolicyOptions = Shapes::ListShape.new(name: 'SecurityPolicyOptions')
77
87
  ServerId = Shapes::StringShape.new(name: 'ServerId')
78
88
  ServiceErrorMessage = Shapes::StringShape.new(name: 'ServiceErrorMessage')
79
89
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
@@ -126,6 +136,7 @@ module Aws::Transfer
126
136
  CreateServerRequest.add_member(:identity_provider_type, Shapes::ShapeRef.new(shape: IdentityProviderType, location_name: "IdentityProviderType"))
127
137
  CreateServerRequest.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
128
138
  CreateServerRequest.add_member(:protocols, Shapes::ShapeRef.new(shape: Protocols, location_name: "Protocols"))
139
+ CreateServerRequest.add_member(:security_policy_name, Shapes::ShapeRef.new(shape: SecurityPolicyName, location_name: "SecurityPolicyName"))
129
140
  CreateServerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
130
141
  CreateServerRequest.struct_class = Types::CreateServerRequest
131
142
 
@@ -159,6 +170,12 @@ module Aws::Transfer
159
170
  DeleteUserRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: UserName, required: true, location_name: "UserName"))
160
171
  DeleteUserRequest.struct_class = Types::DeleteUserRequest
161
172
 
173
+ DescribeSecurityPolicyRequest.add_member(:security_policy_name, Shapes::ShapeRef.new(shape: SecurityPolicyName, required: true, location_name: "SecurityPolicyName"))
174
+ DescribeSecurityPolicyRequest.struct_class = Types::DescribeSecurityPolicyRequest
175
+
176
+ DescribeSecurityPolicyResponse.add_member(:security_policy, Shapes::ShapeRef.new(shape: DescribedSecurityPolicy, required: true, location_name: "SecurityPolicy"))
177
+ DescribeSecurityPolicyResponse.struct_class = Types::DescribeSecurityPolicyResponse
178
+
162
179
  DescribeServerRequest.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, required: true, location_name: "ServerId"))
163
180
  DescribeServerRequest.struct_class = Types::DescribeServerRequest
164
181
 
@@ -173,6 +190,14 @@ module Aws::Transfer
173
190
  DescribeUserResponse.add_member(:user, Shapes::ShapeRef.new(shape: DescribedUser, required: true, location_name: "User"))
174
191
  DescribeUserResponse.struct_class = Types::DescribeUserResponse
175
192
 
193
+ DescribedSecurityPolicy.add_member(:fips, Shapes::ShapeRef.new(shape: Fips, location_name: "Fips"))
194
+ DescribedSecurityPolicy.add_member(:security_policy_name, Shapes::ShapeRef.new(shape: SecurityPolicyName, required: true, location_name: "SecurityPolicyName"))
195
+ DescribedSecurityPolicy.add_member(:ssh_ciphers, Shapes::ShapeRef.new(shape: SecurityPolicyOptions, location_name: "SshCiphers"))
196
+ DescribedSecurityPolicy.add_member(:ssh_kexs, Shapes::ShapeRef.new(shape: SecurityPolicyOptions, location_name: "SshKexs"))
197
+ DescribedSecurityPolicy.add_member(:ssh_macs, Shapes::ShapeRef.new(shape: SecurityPolicyOptions, location_name: "SshMacs"))
198
+ DescribedSecurityPolicy.add_member(:tls_ciphers, Shapes::ShapeRef.new(shape: SecurityPolicyOptions, location_name: "TlsCiphers"))
199
+ DescribedSecurityPolicy.struct_class = Types::DescribedSecurityPolicy
200
+
176
201
  DescribedServer.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Arn"))
177
202
  DescribedServer.add_member(:certificate, Shapes::ShapeRef.new(shape: Certificate, location_name: "Certificate"))
178
203
  DescribedServer.add_member(:endpoint_details, Shapes::ShapeRef.new(shape: EndpointDetails, location_name: "EndpointDetails"))
@@ -182,6 +207,7 @@ module Aws::Transfer
182
207
  DescribedServer.add_member(:identity_provider_type, Shapes::ShapeRef.new(shape: IdentityProviderType, location_name: "IdentityProviderType"))
183
208
  DescribedServer.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
184
209
  DescribedServer.add_member(:protocols, Shapes::ShapeRef.new(shape: Protocols, location_name: "Protocols"))
210
+ DescribedServer.add_member(:security_policy_name, Shapes::ShapeRef.new(shape: SecurityPolicyName, location_name: "SecurityPolicyName"))
185
211
  DescribedServer.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, location_name: "ServerId"))
186
212
  DescribedServer.add_member(:state, Shapes::ShapeRef.new(shape: State, location_name: "State"))
187
213
  DescribedServer.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
@@ -234,6 +260,14 @@ module Aws::Transfer
234
260
  InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
235
261
  InvalidRequestException.struct_class = Types::InvalidRequestException
236
262
 
263
+ ListSecurityPoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
264
+ ListSecurityPoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
265
+ ListSecurityPoliciesRequest.struct_class = Types::ListSecurityPoliciesRequest
266
+
267
+ ListSecurityPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
268
+ ListSecurityPoliciesResponse.add_member(:security_policy_names, Shapes::ShapeRef.new(shape: SecurityPolicyNames, required: true, location_name: "SecurityPolicyNames"))
269
+ ListSecurityPoliciesResponse.struct_class = Types::ListSecurityPoliciesResponse
270
+
237
271
  ListServersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
238
272
  ListServersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
239
273
  ListServersRequest.struct_class = Types::ListServersRequest
@@ -295,6 +329,10 @@ module Aws::Transfer
295
329
  ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
296
330
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
297
331
 
332
+ SecurityPolicyNames.member = Shapes::ShapeRef.new(shape: SecurityPolicyName)
333
+
334
+ SecurityPolicyOptions.member = Shapes::ShapeRef.new(shape: SecurityPolicyOption)
335
+
298
336
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ServiceErrorMessage, location_name: "Message"))
299
337
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
300
338
 
@@ -352,6 +390,7 @@ module Aws::Transfer
352
390
  UpdateServerRequest.add_member(:identity_provider_details, Shapes::ShapeRef.new(shape: IdentityProviderDetails, location_name: "IdentityProviderDetails"))
353
391
  UpdateServerRequest.add_member(:logging_role, Shapes::ShapeRef.new(shape: NullableRole, location_name: "LoggingRole"))
354
392
  UpdateServerRequest.add_member(:protocols, Shapes::ShapeRef.new(shape: Protocols, location_name: "Protocols"))
393
+ UpdateServerRequest.add_member(:security_policy_name, Shapes::ShapeRef.new(shape: SecurityPolicyName, location_name: "SecurityPolicyName"))
355
394
  UpdateServerRequest.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, required: true, location_name: "ServerId"))
356
395
  UpdateServerRequest.struct_class = Types::UpdateServerRequest
357
396
 
@@ -456,6 +495,18 @@ module Aws::Transfer
456
495
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
457
496
  end)
458
497
 
498
+ api.add_operation(:describe_security_policy, Seahorse::Model::Operation.new.tap do |o|
499
+ o.name = "DescribeSecurityPolicy"
500
+ o.http_method = "POST"
501
+ o.http_request_uri = "/"
502
+ o.input = Shapes::ShapeRef.new(shape: DescribeSecurityPolicyRequest)
503
+ o.output = Shapes::ShapeRef.new(shape: DescribeSecurityPolicyResponse)
504
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
505
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
506
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
507
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
508
+ end)
509
+
459
510
  api.add_operation(:describe_server, Seahorse::Model::Operation.new.tap do |o|
460
511
  o.name = "DescribeServer"
461
512
  o.http_method = "POST"
@@ -494,6 +545,24 @@ module Aws::Transfer
494
545
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
495
546
  end)
496
547
 
548
+ api.add_operation(:list_security_policies, Seahorse::Model::Operation.new.tap do |o|
549
+ o.name = "ListSecurityPolicies"
550
+ o.http_method = "POST"
551
+ o.http_request_uri = "/"
552
+ o.input = Shapes::ShapeRef.new(shape: ListSecurityPoliciesRequest)
553
+ o.output = Shapes::ShapeRef.new(shape: ListSecurityPoliciesResponse)
554
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
555
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
556
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
557
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
558
+ o[:pager] = Aws::Pager.new(
559
+ limit_key: "max_results",
560
+ tokens: {
561
+ "next_token" => "next_token"
562
+ }
563
+ )
564
+ end)
565
+
497
566
  api.add_operation(:list_servers, Seahorse::Model::Operation.new.tap do |o|
498
567
  o.name = "ListServers"
499
568
  o.http_method = "POST"
@@ -58,6 +58,7 @@ module Aws::Transfer
58
58
  # identity_provider_type: "SERVICE_MANAGED", # accepts SERVICE_MANAGED, API_GATEWAY
59
59
  # logging_role: "Role",
60
60
  # protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
61
+ # security_policy_name: "SecurityPolicyName",
61
62
  # tags: [
62
63
  # {
63
64
  # key: "TagKey", # required
@@ -184,8 +185,9 @@ module Aws::Transfer
184
185
  # * `FTP` (File Transfer Protocol): Unencrypted file transfer
185
186
  #
186
187
  # <note markdown="1"> If you select `FTPS`, you must choose a certificate stored in AWS
187
- # Certificate Manager (ACM) which will be used to identify your server
188
- # when clients connect to it over FTPS.
188
+ # Certificate Manager (ACM) which will be used to identify your file
189
+ # transfer protocol-enabled server when clients connect to it over
190
+ # FTPS.
189
191
  #
190
192
  # If `Protocol` includes either `FTP` or `FTPS`, then the
191
193
  # `EndpointType` must be `VPC` and the `IdentityProviderType` must be
@@ -201,6 +203,11 @@ module Aws::Transfer
201
203
  # </note>
202
204
  # @return [Array<String>]
203
205
  #
206
+ # @!attribute [rw] security_policy_name
207
+ # Specifies the name of the security policy that is attached to the
208
+ # server.
209
+ # @return [String]
210
+ #
204
211
  # @!attribute [rw] tags
205
212
  # Key-value pairs that can be used to group and search for file
206
213
  # transfer protocol-enabled servers.
@@ -217,6 +224,7 @@ module Aws::Transfer
217
224
  :identity_provider_type,
218
225
  :logging_role,
219
226
  :protocols,
227
+ :security_policy_name,
220
228
  :tags)
221
229
  SENSITIVE = [:host_key]
222
230
  include Aws::Structure
@@ -299,7 +307,7 @@ module Aws::Transfer
299
307
  #
300
308
  # <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
301
309
  # S3, the entry will be ignored. As a workaround, you can use the
302
- # Amazon S3 api to create 0 byte objects as place holders for your
310
+ # Amazon S3 API to create 0 byte objects as place holders for your
303
311
  # directory. If using the CLI, use the `s3api` call instead of `s3` so
304
312
  # you can use the put-object operation. For example, you use the
305
313
  # following: `aws s3api put-object --bucket bucketname --key
@@ -364,9 +372,10 @@ module Aws::Transfer
364
372
  # @!attribute [rw] user_name
365
373
  # A unique string that identifies a user and is associated with a file
366
374
  # transfer protocol-enabled server as specified by the `ServerId`.
367
- # This user name must be a minimum of 3 and a maximum of 32 characters
368
- # long. The following are valid characters: a-z, A-Z, 0-9, underscore,
369
- # and hyphen. The user name can't start with a hyphen.
375
+ # This user name must be a minimum of 3 and a maximum of 100
376
+ # characters long. The following are valid characters: a-z, A-Z, 0-9,
377
+ # underscore '\_', hyphen '-', period '.', and at sign '@'.
378
+ # The user name can't start with a hyphen, period, and at sign.
370
379
  # @return [String]
371
380
  #
372
381
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateUserRequest AWS API Documentation
@@ -484,6 +493,38 @@ module Aws::Transfer
484
493
  include Aws::Structure
485
494
  end
486
495
 
496
+ # @note When making an API call, you may pass DescribeSecurityPolicyRequest
497
+ # data as a hash:
498
+ #
499
+ # {
500
+ # security_policy_name: "SecurityPolicyName", # required
501
+ # }
502
+ #
503
+ # @!attribute [rw] security_policy_name
504
+ # Specifies the name of the security policy that is attached to the
505
+ # server.
506
+ # @return [String]
507
+ #
508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeSecurityPolicyRequest AWS API Documentation
509
+ #
510
+ class DescribeSecurityPolicyRequest < Struct.new(
511
+ :security_policy_name)
512
+ SENSITIVE = []
513
+ include Aws::Structure
514
+ end
515
+
516
+ # @!attribute [rw] security_policy
517
+ # An array containing the properties of the security policy.
518
+ # @return [Types::DescribedSecurityPolicy]
519
+ #
520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeSecurityPolicyResponse AWS API Documentation
521
+ #
522
+ class DescribeSecurityPolicyResponse < Struct.new(
523
+ :security_policy)
524
+ SENSITIVE = []
525
+ include Aws::Structure
526
+ end
527
+
487
528
  # @note When making an API call, you may pass DescribeServerRequest
488
529
  # data as a hash:
489
530
  #
@@ -565,17 +606,65 @@ module Aws::Transfer
565
606
  include Aws::Structure
566
607
  end
567
608
 
609
+ # Describes the properties of a security policy that was specified. For
610
+ # more information about security policies, see [Working with security
611
+ # policies][1].
612
+ #
613
+ #
614
+ #
615
+ # [1]: https://docs.aws.amazon.com/transfer/latest/userguide/security-policies.html
616
+ #
617
+ # @!attribute [rw] fips
618
+ # Specifies whether this policy enables Federal Information Processing
619
+ # Standards (FIPS).
620
+ # @return [Boolean]
621
+ #
622
+ # @!attribute [rw] security_policy_name
623
+ # Specifies the name of the security policy that is attached to the
624
+ # server.
625
+ # @return [String]
626
+ #
627
+ # @!attribute [rw] ssh_ciphers
628
+ # Specifies the enabled Secure Shell (SSH) cipher encryption
629
+ # algorithms in the security policy that is attached to the server.
630
+ # @return [Array<String>]
631
+ #
632
+ # @!attribute [rw] ssh_kexs
633
+ # Specifies the enabled SSH key exchange (KEX) encryption algorithms
634
+ # in the security policy that is attached to the server.
635
+ # @return [Array<String>]
636
+ #
637
+ # @!attribute [rw] ssh_macs
638
+ # Specifies the enabled SSH message authentication code (MAC)
639
+ # encryption algorithms in the security policy that is attached to the
640
+ # server.
641
+ # @return [Array<String>]
642
+ #
643
+ # @!attribute [rw] tls_ciphers
644
+ # Specifies the enabled Transport Layer Security (TLS) cipher
645
+ # encryption algorithms in the security policy that is attached to the
646
+ # server.
647
+ # @return [Array<String>]
648
+ #
649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribedSecurityPolicy AWS API Documentation
650
+ #
651
+ class DescribedSecurityPolicy < Struct.new(
652
+ :fips,
653
+ :security_policy_name,
654
+ :ssh_ciphers,
655
+ :ssh_kexs,
656
+ :ssh_macs,
657
+ :tls_ciphers)
658
+ SENSITIVE = []
659
+ include Aws::Structure
660
+ end
661
+
568
662
  # Describes the properties of a file transfer protocol-enabled server
569
- # that was specified. Information returned includes the following: the
570
- # server Amazon Resource Name (ARN), the certificate ARN (if the FTPS
571
- # protocol was selected), the endpoint type and details, the
572
- # authentication configuration and type, the logging role, the file
573
- # transfer protocol or protocols, the server ID and state, and assigned
574
- # tags or metadata.
663
+ # that was specified.
575
664
  #
576
665
  # @!attribute [rw] arn
577
- # Specifies the unique Amazon Resource Name (ARN) for a file transfer
578
- # protocol-enabled server to be described.
666
+ # Specifies the unique Amazon Resource Name (ARN) of the file transfer
667
+ # protocol-enabled server.
579
668
  # @return [String]
580
669
  #
581
670
  # @!attribute [rw] certificate
@@ -637,6 +726,11 @@ module Aws::Transfer
637
726
  # * `FTP` (File Transfer Protocol): Unencrypted file transfer
638
727
  # @return [Array<String>]
639
728
  #
729
+ # @!attribute [rw] security_policy_name
730
+ # Specifies the name of the security policy that is attached to the
731
+ # server.
732
+ # @return [String]
733
+ #
640
734
  # @!attribute [rw] server_id
641
735
  # Specifies the unique system-assigned identifier for a file transfer
642
736
  # protocol-enabled server that you instantiate.
@@ -678,6 +772,7 @@ module Aws::Transfer
678
772
  :identity_provider_type,
679
773
  :logging_role,
680
774
  :protocols,
775
+ :security_policy_name,
681
776
  :server_id,
682
777
  :state,
683
778
  :tags,
@@ -686,7 +781,7 @@ module Aws::Transfer
686
781
  include Aws::Structure
687
782
  end
688
783
 
689
- # Returns properties of the user that you want to describe.
784
+ # Describes the properties of a user that was specified.
690
785
  #
691
786
  # @!attribute [rw] arn
692
787
  # Specifies the unique Amazon Resource Name (ARN) for the user that
@@ -837,7 +932,7 @@ module Aws::Transfer
837
932
  include Aws::Structure
838
933
  end
839
934
 
840
- # Represents an object that contains entries and a targets for
935
+ # Represents an object that contains entries and targets for
841
936
  # `HomeDirectoryMappings`.
842
937
  #
843
938
  # @note When making an API call, you may pass HomeDirectoryMapEntry
@@ -997,6 +1092,55 @@ module Aws::Transfer
997
1092
  include Aws::Structure
998
1093
  end
999
1094
 
1095
+ # @note When making an API call, you may pass ListSecurityPoliciesRequest
1096
+ # data as a hash:
1097
+ #
1098
+ # {
1099
+ # max_results: 1,
1100
+ # next_token: "NextToken",
1101
+ # }
1102
+ #
1103
+ # @!attribute [rw] max_results
1104
+ # Specifies the number of security policies to return as a response to
1105
+ # the `ListSecurityPolicies` query.
1106
+ # @return [Integer]
1107
+ #
1108
+ # @!attribute [rw] next_token
1109
+ # When additional results are obtained from the `ListSecurityPolicies`
1110
+ # command, a `NextToken` parameter is returned in the output. You can
1111
+ # then pass the `NextToken` parameter in a subsequent command to
1112
+ # continue listing additional security policies.
1113
+ # @return [String]
1114
+ #
1115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListSecurityPoliciesRequest AWS API Documentation
1116
+ #
1117
+ class ListSecurityPoliciesRequest < Struct.new(
1118
+ :max_results,
1119
+ :next_token)
1120
+ SENSITIVE = []
1121
+ include Aws::Structure
1122
+ end
1123
+
1124
+ # @!attribute [rw] next_token
1125
+ # When you can get additional results from the `ListSecurityPolicies`
1126
+ # operation, a `NextToken` parameter is returned in the output. In a
1127
+ # following command, you can pass in the `NextToken` parameter to
1128
+ # continue listing security policies.
1129
+ # @return [String]
1130
+ #
1131
+ # @!attribute [rw] security_policy_names
1132
+ # An array of security policies that were listed.
1133
+ # @return [Array<String>]
1134
+ #
1135
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListSecurityPoliciesResponse AWS API Documentation
1136
+ #
1137
+ class ListSecurityPoliciesResponse < Struct.new(
1138
+ :next_token,
1139
+ :security_policy_names)
1140
+ SENSITIVE = []
1141
+ include Aws::Structure
1142
+ end
1143
+
1000
1144
  # @note When making an API call, you may pass ListServersRequest
1001
1145
  # data as a hash:
1002
1146
  #
@@ -1011,7 +1155,7 @@ module Aws::Transfer
1011
1155
  # @return [Integer]
1012
1156
  #
1013
1157
  # @!attribute [rw] next_token
1014
- # When additional results are obtained from the`ListServers` command,
1158
+ # When additional results are obtained from the `ListServers` command,
1015
1159
  # a `NextToken` parameter is returned in the output. You can then pass
1016
1160
  # the `NextToken` parameter in a subsequent command to continue
1017
1161
  # listing additional file transfer protocol-enabled servers.
@@ -1630,6 +1774,7 @@ module Aws::Transfer
1630
1774
  # },
1631
1775
  # logging_role: "NullableRole",
1632
1776
  # protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
1777
+ # security_policy_name: "SecurityPolicyName",
1633
1778
  # server_id: "ServerId", # required
1634
1779
  # }
1635
1780
  #
@@ -1757,6 +1902,11 @@ module Aws::Transfer
1757
1902
  # </note>
1758
1903
  # @return [Array<String>]
1759
1904
  #
1905
+ # @!attribute [rw] security_policy_name
1906
+ # Specifies the name of the security policy that is attached to the
1907
+ # server.
1908
+ # @return [String]
1909
+ #
1760
1910
  # @!attribute [rw] server_id
1761
1911
  # A system-assigned unique identifier for a file transfer
1762
1912
  # protocol-enabled server instance that the user account is assigned
@@ -1773,6 +1923,7 @@ module Aws::Transfer
1773
1923
  :identity_provider_details,
1774
1924
  :logging_role,
1775
1925
  :protocols,
1926
+ :security_policy_name,
1776
1927
  :server_id)
1777
1928
  SENSITIVE = [:host_key]
1778
1929
  include Aws::Structure
@@ -1848,7 +1999,7 @@ module Aws::Transfer
1848
1999
  #
1849
2000
  # <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
1850
2001
  # S3, the entry will be ignored. As a workaround, you can use the
1851
- # Amazon S3 api to create 0 byte objects as place holders for your
2002
+ # Amazon S3 API to create 0 byte objects as place holders for your
1852
2003
  # directory. If using the CLI, use the `s3api` call instead of `s3` so
1853
2004
  # you can use the put-object operation. For example, you use the
1854
2005
  # following: `aws s3api put-object --bucket bucketname --key
@@ -1903,10 +2054,10 @@ module Aws::Transfer
1903
2054
  # @!attribute [rw] user_name
1904
2055
  # A unique string that identifies a user and is associated with a file
1905
2056
  # transfer protocol-enabled server as specified by the `ServerId`.
1906
- # This is the string that will be used by your user when they log in
1907
- # to your server. This user name is a minimum of 3 and a maximum of 32
2057
+ # This user name must be a minimum of 3 and a maximum of 100
1908
2058
  # characters long. The following are valid characters: a-z, A-Z, 0-9,
1909
- # underscore, and hyphen. The user name can't start with a hyphen.
2059
+ # underscore '\_', hyphen '-', period '.', and at sign '@'.
2060
+ # The user name can't start with a hyphen, period, and at sign.
1910
2061
  # @return [String]
1911
2062
  #
1912
2063
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateUserRequest AWS API Documentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-transfer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core