aws-sdk-transfer 1.21.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-transfer.rb +5 -2
- data/lib/aws-sdk-transfer/client.rb +139 -21
- data/lib/aws-sdk-transfer/client_api.rb +71 -0
- data/lib/aws-sdk-transfer/errors.rb +2 -0
- data/lib/aws-sdk-transfer/resource.rb +2 -0
- data/lib/aws-sdk-transfer/types.rb +221 -21
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d0f0f2b780ccf6098059679b5a75b2fb9b7010ba270105b290ccd5c0fc4c253
|
4
|
+
data.tar.gz: 9af305903a7eb50497ce93eb26358e3b53bf36f5d2f08a4a97ae5211409a9d86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d7fa3d7a6f26784d4d5d65e6a53e797a45a0089baadf109c43b53fe3243fb83efdf4eddb34d687377ec030239868bf0497f2a640936b3bdaa7b4816536f2920
|
7
|
+
data.tar.gz: 587c91282d749181f7ba815c343697eb6ec1b65dbdb307932f4a6f631dd27ee57bde2bcd063bc2f575582a3c557ea5e73c28935f4ae62f90a9d959dc11cacbd1
|
data/lib/aws-sdk-transfer.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -5,6 +7,7 @@
|
|
5
7
|
#
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
10
|
+
|
8
11
|
require 'aws-sdk-core'
|
9
12
|
require 'aws-sigv4'
|
10
13
|
|
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-transfer/customizations'
|
|
42
45
|
#
|
43
46
|
# See {Errors} for more information.
|
44
47
|
#
|
45
|
-
#
|
48
|
+
# @!group service
|
46
49
|
module Aws::Transfer
|
47
50
|
|
48
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.26.0'
|
49
52
|
|
50
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::Transfer
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
74
78
|
|
@@ -81,13 +85,28 @@ module Aws::Transfer
|
|
81
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
82
86
|
# credentials.
|
83
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
84
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
85
103
|
# from an EC2 IMDS on an EC2 instance.
|
86
104
|
#
|
87
|
-
# * `Aws::
|
88
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
89
107
|
#
|
90
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
91
110
|
#
|
92
111
|
# When `:credentials` are not configured directly, the following
|
93
112
|
# locations will be searched for credentials:
|
@@ -97,10 +116,10 @@ module Aws::Transfer
|
|
97
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
98
117
|
# * `~/.aws/credentials`
|
99
118
|
# * `~/.aws/config`
|
100
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
101
|
-
# very aggressive. Construct and pass an instance of
|
102
|
-
# `Aws::InstanceProfileCredentails`
|
103
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
104
123
|
#
|
105
124
|
# @option options [required, String] :region
|
106
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -161,7 +180,7 @@ module Aws::Transfer
|
|
161
180
|
# @option options [String] :endpoint
|
162
181
|
# The client endpoint is normally constructed from the `:region`
|
163
182
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
183
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
184
|
#
|
166
185
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
186
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -434,8 +453,8 @@ module Aws::Transfer
|
|
434
453
|
# * `FTP` (File Transfer Protocol): Unencrypted file transfer
|
435
454
|
#
|
436
455
|
# <note markdown="1"> If you select `FTPS`, you must choose a certificate stored in AWS
|
437
|
-
# Certificate Manager (ACM) which will be used to identify your
|
438
|
-
# when clients connect to it over FTPS.
|
456
|
+
# Certificate Manager (ACM) which will be used to identify your file
|
457
|
+
# transfer protocol-enabled server when clients connect to it over FTPS.
|
439
458
|
#
|
440
459
|
# If `Protocol` includes either `FTP` or `FTPS`, then the `EndpointType`
|
441
460
|
# must be `VPC` and the `IdentityProviderType` must be `API_GATEWAY`.
|
@@ -449,6 +468,10 @@ module Aws::Transfer
|
|
449
468
|
#
|
450
469
|
# </note>
|
451
470
|
#
|
471
|
+
# @option params [String] :security_policy_name
|
472
|
+
# Specifies the name of the security policy that is attached to the
|
473
|
+
# server.
|
474
|
+
#
|
452
475
|
# @option params [Array<Types::Tag>] :tags
|
453
476
|
# Key-value pairs that can be used to group and search for file transfer
|
454
477
|
# protocol-enabled servers.
|
@@ -476,6 +499,7 @@ module Aws::Transfer
|
|
476
499
|
# identity_provider_type: "SERVICE_MANAGED", # accepts SERVICE_MANAGED, API_GATEWAY
|
477
500
|
# logging_role: "Role",
|
478
501
|
# protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
|
502
|
+
# security_policy_name: "SecurityPolicyName",
|
479
503
|
# tags: [
|
480
504
|
# {
|
481
505
|
# key: "TagKey", # required
|
@@ -542,7 +566,7 @@ module Aws::Transfer
|
|
542
566
|
#
|
543
567
|
# <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
|
544
568
|
# S3, the entry will be ignored. As a workaround, you can use the Amazon
|
545
|
-
# S3
|
569
|
+
# S3 API to create 0 byte objects as place holders for your directory.
|
546
570
|
# If using the CLI, use the `s3api` call instead of `s3` so you can use
|
547
571
|
# the put-object operation. For example, you use the following: `aws
|
548
572
|
# s3api put-object --bucket bucketname --key path/to/folder/`. Make sure
|
@@ -601,9 +625,10 @@ module Aws::Transfer
|
|
601
625
|
# @option params [required, String] :user_name
|
602
626
|
# A unique string that identifies a user and is associated with a file
|
603
627
|
# transfer protocol-enabled server as specified by the `ServerId`. This
|
604
|
-
# user name must be a minimum of 3 and a maximum of
|
605
|
-
# The following are valid characters: a-z, A-Z, 0-9, underscore,
|
606
|
-
# hyphen. The user name can't
|
628
|
+
# user name must be a minimum of 3 and a maximum of 100 characters long.
|
629
|
+
# The following are valid characters: a-z, A-Z, 0-9, underscore '\_',
|
630
|
+
# hyphen '-', period '.', and at sign '@'. The user name can't
|
631
|
+
# start with a hyphen, period, and at sign.
|
607
632
|
#
|
608
633
|
# @return [Types::CreateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
609
634
|
#
|
@@ -742,6 +767,51 @@ module Aws::Transfer
|
|
742
767
|
req.send_request(options)
|
743
768
|
end
|
744
769
|
|
770
|
+
# Describes the security policy that is attached to your file transfer
|
771
|
+
# protocol-enabled server. The response contains a description of the
|
772
|
+
# security policy's properties. For more information about security
|
773
|
+
# policies, see [Working with security policies][1].
|
774
|
+
#
|
775
|
+
#
|
776
|
+
#
|
777
|
+
# [1]: https://docs.aws.amazon.com/transfer/latest/userguide/security-policies.html
|
778
|
+
#
|
779
|
+
# @option params [required, String] :security_policy_name
|
780
|
+
# Specifies the name of the security policy that is attached to the
|
781
|
+
# server.
|
782
|
+
#
|
783
|
+
# @return [Types::DescribeSecurityPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
784
|
+
#
|
785
|
+
# * {Types::DescribeSecurityPolicyResponse#security_policy #security_policy} => Types::DescribedSecurityPolicy
|
786
|
+
#
|
787
|
+
# @example Request syntax with placeholder values
|
788
|
+
#
|
789
|
+
# resp = client.describe_security_policy({
|
790
|
+
# security_policy_name: "SecurityPolicyName", # required
|
791
|
+
# })
|
792
|
+
#
|
793
|
+
# @example Response structure
|
794
|
+
#
|
795
|
+
# resp.security_policy.fips #=> Boolean
|
796
|
+
# resp.security_policy.security_policy_name #=> String
|
797
|
+
# resp.security_policy.ssh_ciphers #=> Array
|
798
|
+
# resp.security_policy.ssh_ciphers[0] #=> String
|
799
|
+
# resp.security_policy.ssh_kexs #=> Array
|
800
|
+
# resp.security_policy.ssh_kexs[0] #=> String
|
801
|
+
# resp.security_policy.ssh_macs #=> Array
|
802
|
+
# resp.security_policy.ssh_macs[0] #=> String
|
803
|
+
# resp.security_policy.tls_ciphers #=> Array
|
804
|
+
# resp.security_policy.tls_ciphers[0] #=> String
|
805
|
+
#
|
806
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeSecurityPolicy AWS API Documentation
|
807
|
+
#
|
808
|
+
# @overload describe_security_policy(params = {})
|
809
|
+
# @param [Hash] params ({})
|
810
|
+
def describe_security_policy(params = {}, options = {})
|
811
|
+
req = build_request(:describe_security_policy, params)
|
812
|
+
req.send_request(options)
|
813
|
+
end
|
814
|
+
|
745
815
|
# Describes a file transfer protocol-enabled server that you specify by
|
746
816
|
# passing the `ServerId` parameter.
|
747
817
|
#
|
@@ -781,6 +851,7 @@ module Aws::Transfer
|
|
781
851
|
# resp.server.logging_role #=> String
|
782
852
|
# resp.server.protocols #=> Array
|
783
853
|
# resp.server.protocols[0] #=> String, one of "SFTP", "FTP", "FTPS"
|
854
|
+
# resp.server.security_policy_name #=> String
|
784
855
|
# resp.server.server_id #=> String
|
785
856
|
# resp.server.state #=> String, one of "OFFLINE", "ONLINE", "STARTING", "STOPPING", "START_FAILED", "STOP_FAILED"
|
786
857
|
# resp.server.tags #=> Array
|
@@ -901,6 +972,48 @@ module Aws::Transfer
|
|
901
972
|
req.send_request(options)
|
902
973
|
end
|
903
974
|
|
975
|
+
# Lists the security policies that are attached to your file transfer
|
976
|
+
# protocol-enabled servers.
|
977
|
+
#
|
978
|
+
# @option params [Integer] :max_results
|
979
|
+
# Specifies the number of security policies to return as a response to
|
980
|
+
# the `ListSecurityPolicies` query.
|
981
|
+
#
|
982
|
+
# @option params [String] :next_token
|
983
|
+
# When additional results are obtained from the `ListSecurityPolicies`
|
984
|
+
# command, a `NextToken` parameter is returned in the output. You can
|
985
|
+
# then pass the `NextToken` parameter in a subsequent command to
|
986
|
+
# continue listing additional security policies.
|
987
|
+
#
|
988
|
+
# @return [Types::ListSecurityPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
989
|
+
#
|
990
|
+
# * {Types::ListSecurityPoliciesResponse#next_token #next_token} => String
|
991
|
+
# * {Types::ListSecurityPoliciesResponse#security_policy_names #security_policy_names} => Array<String>
|
992
|
+
#
|
993
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
994
|
+
#
|
995
|
+
# @example Request syntax with placeholder values
|
996
|
+
#
|
997
|
+
# resp = client.list_security_policies({
|
998
|
+
# max_results: 1,
|
999
|
+
# next_token: "NextToken",
|
1000
|
+
# })
|
1001
|
+
#
|
1002
|
+
# @example Response structure
|
1003
|
+
#
|
1004
|
+
# resp.next_token #=> String
|
1005
|
+
# resp.security_policy_names #=> Array
|
1006
|
+
# resp.security_policy_names[0] #=> String
|
1007
|
+
#
|
1008
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListSecurityPolicies AWS API Documentation
|
1009
|
+
#
|
1010
|
+
# @overload list_security_policies(params = {})
|
1011
|
+
# @param [Hash] params ({})
|
1012
|
+
def list_security_policies(params = {}, options = {})
|
1013
|
+
req = build_request(:list_security_policies, params)
|
1014
|
+
req.send_request(options)
|
1015
|
+
end
|
1016
|
+
|
904
1017
|
# Lists the file transfer protocol-enabled servers that are associated
|
905
1018
|
# with your AWS account.
|
906
1019
|
#
|
@@ -909,7 +1022,7 @@ module Aws::Transfer
|
|
909
1022
|
# return as a response to the `ListServers` query.
|
910
1023
|
#
|
911
1024
|
# @option params [String] :next_token
|
912
|
-
# When additional results are obtained from the`ListServers` command, a
|
1025
|
+
# When additional results are obtained from the `ListServers` command, a
|
913
1026
|
# `NextToken` parameter is returned in the output. You can then pass the
|
914
1027
|
# `NextToken` parameter in a subsequent command to continue listing
|
915
1028
|
# additional file transfer protocol-enabled servers.
|
@@ -1378,6 +1491,10 @@ module Aws::Transfer
|
|
1378
1491
|
#
|
1379
1492
|
# </note>
|
1380
1493
|
#
|
1494
|
+
# @option params [String] :security_policy_name
|
1495
|
+
# Specifies the name of the security policy that is attached to the
|
1496
|
+
# server.
|
1497
|
+
#
|
1381
1498
|
# @option params [required, String] :server_id
|
1382
1499
|
# A system-assigned unique identifier for a file transfer
|
1383
1500
|
# protocol-enabled server instance that the user account is assigned to.
|
@@ -1404,6 +1521,7 @@ module Aws::Transfer
|
|
1404
1521
|
# },
|
1405
1522
|
# logging_role: "NullableRole",
|
1406
1523
|
# protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
|
1524
|
+
# security_policy_name: "SecurityPolicyName",
|
1407
1525
|
# server_id: "ServerId", # required
|
1408
1526
|
# })
|
1409
1527
|
#
|
@@ -1463,7 +1581,7 @@ module Aws::Transfer
|
|
1463
1581
|
#
|
1464
1582
|
# <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
|
1465
1583
|
# S3, the entry will be ignored. As a workaround, you can use the Amazon
|
1466
|
-
# S3
|
1584
|
+
# S3 API to create 0 byte objects as place holders for your directory.
|
1467
1585
|
# If using the CLI, use the `s3api` call instead of `s3` so you can use
|
1468
1586
|
# the put-object operation. For example, you use the following: `aws
|
1469
1587
|
# s3api put-object --bucket bucketname --key path/to/folder/`. Make sure
|
@@ -1513,10 +1631,10 @@ module Aws::Transfer
|
|
1513
1631
|
# @option params [required, String] :user_name
|
1514
1632
|
# A unique string that identifies a user and is associated with a file
|
1515
1633
|
# transfer protocol-enabled server as specified by the `ServerId`. This
|
1516
|
-
#
|
1517
|
-
#
|
1518
|
-
#
|
1519
|
-
#
|
1634
|
+
# user name must be a minimum of 3 and a maximum of 100 characters long.
|
1635
|
+
# The following are valid characters: a-z, A-Z, 0-9, underscore '\_',
|
1636
|
+
# hyphen '-', period '.', and at sign '@'. The user name can't
|
1637
|
+
# start with a hyphen, period, and at sign.
|
1520
1638
|
#
|
1521
1639
|
# @return [Types::UpdateUserResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1522
1640
|
#
|
@@ -1567,7 +1685,7 @@ module Aws::Transfer
|
|
1567
1685
|
params: params,
|
1568
1686
|
config: config)
|
1569
1687
|
context[:gem_name] = 'aws-sdk-transfer'
|
1570
|
-
context[:gem_version] = '1.
|
1688
|
+
context[:gem_version] = '1.26.0'
|
1571
1689
|
Seahorse::Client::Request.new(handlers, context)
|
1572
1690
|
end
|
1573
1691
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -25,14 +27,18 @@ module Aws::Transfer
|
|
25
27
|
DeleteServerRequest = Shapes::StructureShape.new(name: 'DeleteServerRequest')
|
26
28
|
DeleteSshPublicKeyRequest = Shapes::StructureShape.new(name: 'DeleteSshPublicKeyRequest')
|
27
29
|
DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest')
|
30
|
+
DescribeSecurityPolicyRequest = Shapes::StructureShape.new(name: 'DescribeSecurityPolicyRequest')
|
31
|
+
DescribeSecurityPolicyResponse = Shapes::StructureShape.new(name: 'DescribeSecurityPolicyResponse')
|
28
32
|
DescribeServerRequest = Shapes::StructureShape.new(name: 'DescribeServerRequest')
|
29
33
|
DescribeServerResponse = Shapes::StructureShape.new(name: 'DescribeServerResponse')
|
30
34
|
DescribeUserRequest = Shapes::StructureShape.new(name: 'DescribeUserRequest')
|
31
35
|
DescribeUserResponse = Shapes::StructureShape.new(name: 'DescribeUserResponse')
|
36
|
+
DescribedSecurityPolicy = Shapes::StructureShape.new(name: 'DescribedSecurityPolicy')
|
32
37
|
DescribedServer = Shapes::StructureShape.new(name: 'DescribedServer')
|
33
38
|
DescribedUser = Shapes::StructureShape.new(name: 'DescribedUser')
|
34
39
|
EndpointDetails = Shapes::StructureShape.new(name: 'EndpointDetails')
|
35
40
|
EndpointType = Shapes::StringShape.new(name: 'EndpointType')
|
41
|
+
Fips = Shapes::BooleanShape.new(name: 'Fips')
|
36
42
|
HomeDirectory = Shapes::StringShape.new(name: 'HomeDirectory')
|
37
43
|
HomeDirectoryMapEntry = Shapes::StructureShape.new(name: 'HomeDirectoryMapEntry')
|
38
44
|
HomeDirectoryMappings = Shapes::ListShape.new(name: 'HomeDirectoryMappings')
|
@@ -46,6 +52,8 @@ module Aws::Transfer
|
|
46
52
|
InternalServiceError = Shapes::StructureShape.new(name: 'InternalServiceError')
|
47
53
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
48
54
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
55
|
+
ListSecurityPoliciesRequest = Shapes::StructureShape.new(name: 'ListSecurityPoliciesRequest')
|
56
|
+
ListSecurityPoliciesResponse = Shapes::StructureShape.new(name: 'ListSecurityPoliciesResponse')
|
49
57
|
ListServersRequest = Shapes::StructureShape.new(name: 'ListServersRequest')
|
50
58
|
ListServersResponse = Shapes::StructureShape.new(name: 'ListServersResponse')
|
51
59
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
@@ -72,6 +80,10 @@ module Aws::Transfer
|
|
72
80
|
Response = Shapes::StringShape.new(name: 'Response')
|
73
81
|
RetryAfterSeconds = Shapes::StringShape.new(name: 'RetryAfterSeconds')
|
74
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')
|
75
87
|
ServerId = Shapes::StringShape.new(name: 'ServerId')
|
76
88
|
ServiceErrorMessage = Shapes::StringShape.new(name: 'ServiceErrorMessage')
|
77
89
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
@@ -124,6 +136,7 @@ module Aws::Transfer
|
|
124
136
|
CreateServerRequest.add_member(:identity_provider_type, Shapes::ShapeRef.new(shape: IdentityProviderType, location_name: "IdentityProviderType"))
|
125
137
|
CreateServerRequest.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
|
126
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"))
|
127
140
|
CreateServerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
128
141
|
CreateServerRequest.struct_class = Types::CreateServerRequest
|
129
142
|
|
@@ -157,6 +170,12 @@ module Aws::Transfer
|
|
157
170
|
DeleteUserRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: UserName, required: true, location_name: "UserName"))
|
158
171
|
DeleteUserRequest.struct_class = Types::DeleteUserRequest
|
159
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
|
+
|
160
179
|
DescribeServerRequest.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, required: true, location_name: "ServerId"))
|
161
180
|
DescribeServerRequest.struct_class = Types::DescribeServerRequest
|
162
181
|
|
@@ -171,6 +190,14 @@ module Aws::Transfer
|
|
171
190
|
DescribeUserResponse.add_member(:user, Shapes::ShapeRef.new(shape: DescribedUser, required: true, location_name: "User"))
|
172
191
|
DescribeUserResponse.struct_class = Types::DescribeUserResponse
|
173
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
|
+
|
174
201
|
DescribedServer.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Arn"))
|
175
202
|
DescribedServer.add_member(:certificate, Shapes::ShapeRef.new(shape: Certificate, location_name: "Certificate"))
|
176
203
|
DescribedServer.add_member(:endpoint_details, Shapes::ShapeRef.new(shape: EndpointDetails, location_name: "EndpointDetails"))
|
@@ -180,6 +207,7 @@ module Aws::Transfer
|
|
180
207
|
DescribedServer.add_member(:identity_provider_type, Shapes::ShapeRef.new(shape: IdentityProviderType, location_name: "IdentityProviderType"))
|
181
208
|
DescribedServer.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
|
182
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"))
|
183
211
|
DescribedServer.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, location_name: "ServerId"))
|
184
212
|
DescribedServer.add_member(:state, Shapes::ShapeRef.new(shape: State, location_name: "State"))
|
185
213
|
DescribedServer.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
@@ -232,6 +260,14 @@ module Aws::Transfer
|
|
232
260
|
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
233
261
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
234
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
|
+
|
235
271
|
ListServersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
236
272
|
ListServersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
237
273
|
ListServersRequest.struct_class = Types::ListServersRequest
|
@@ -293,6 +329,10 @@ module Aws::Transfer
|
|
293
329
|
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "ResourceType"))
|
294
330
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
295
331
|
|
332
|
+
SecurityPolicyNames.member = Shapes::ShapeRef.new(shape: SecurityPolicyName)
|
333
|
+
|
334
|
+
SecurityPolicyOptions.member = Shapes::ShapeRef.new(shape: SecurityPolicyOption)
|
335
|
+
|
296
336
|
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ServiceErrorMessage, location_name: "Message"))
|
297
337
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
298
338
|
|
@@ -350,6 +390,7 @@ module Aws::Transfer
|
|
350
390
|
UpdateServerRequest.add_member(:identity_provider_details, Shapes::ShapeRef.new(shape: IdentityProviderDetails, location_name: "IdentityProviderDetails"))
|
351
391
|
UpdateServerRequest.add_member(:logging_role, Shapes::ShapeRef.new(shape: NullableRole, location_name: "LoggingRole"))
|
352
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"))
|
353
394
|
UpdateServerRequest.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, required: true, location_name: "ServerId"))
|
354
395
|
UpdateServerRequest.struct_class = Types::UpdateServerRequest
|
355
396
|
|
@@ -454,6 +495,18 @@ module Aws::Transfer
|
|
454
495
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
455
496
|
end)
|
456
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
|
+
|
457
510
|
api.add_operation(:describe_server, Seahorse::Model::Operation.new.tap do |o|
|
458
511
|
o.name = "DescribeServer"
|
459
512
|
o.http_method = "POST"
|
@@ -492,6 +545,24 @@ module Aws::Transfer
|
|
492
545
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
493
546
|
end)
|
494
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
|
+
|
495
566
|
api.add_operation(:list_servers, Seahorse::Model::Operation.new.tap do |o|
|
496
567
|
o.name = "ListServers"
|
497
568
|
o.http_method = "POST"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -17,6 +19,7 @@ module Aws::Transfer
|
|
17
19
|
#
|
18
20
|
class AccessDeniedException < Struct.new(
|
19
21
|
:message)
|
22
|
+
SENSITIVE = []
|
20
23
|
include Aws::Structure
|
21
24
|
end
|
22
25
|
|
@@ -31,6 +34,7 @@ module Aws::Transfer
|
|
31
34
|
#
|
32
35
|
class ConflictException < Struct.new(
|
33
36
|
:message)
|
37
|
+
SENSITIVE = []
|
34
38
|
include Aws::Structure
|
35
39
|
end
|
36
40
|
|
@@ -54,6 +58,7 @@ module Aws::Transfer
|
|
54
58
|
# identity_provider_type: "SERVICE_MANAGED", # accepts SERVICE_MANAGED, API_GATEWAY
|
55
59
|
# logging_role: "Role",
|
56
60
|
# protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
|
61
|
+
# security_policy_name: "SecurityPolicyName",
|
57
62
|
# tags: [
|
58
63
|
# {
|
59
64
|
# key: "TagKey", # required
|
@@ -180,8 +185,9 @@ module Aws::Transfer
|
|
180
185
|
# * `FTP` (File Transfer Protocol): Unencrypted file transfer
|
181
186
|
#
|
182
187
|
# <note markdown="1"> If you select `FTPS`, you must choose a certificate stored in AWS
|
183
|
-
# Certificate Manager (ACM) which will be used to identify your
|
184
|
-
# when clients connect to it over
|
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.
|
185
191
|
#
|
186
192
|
# If `Protocol` includes either `FTP` or `FTPS`, then the
|
187
193
|
# `EndpointType` must be `VPC` and the `IdentityProviderType` must be
|
@@ -197,6 +203,11 @@ module Aws::Transfer
|
|
197
203
|
# </note>
|
198
204
|
# @return [Array<String>]
|
199
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
|
+
#
|
200
211
|
# @!attribute [rw] tags
|
201
212
|
# Key-value pairs that can be used to group and search for file
|
202
213
|
# transfer protocol-enabled servers.
|
@@ -213,7 +224,9 @@ module Aws::Transfer
|
|
213
224
|
:identity_provider_type,
|
214
225
|
:logging_role,
|
215
226
|
:protocols,
|
227
|
+
:security_policy_name,
|
216
228
|
:tags)
|
229
|
+
SENSITIVE = [:host_key]
|
217
230
|
include Aws::Structure
|
218
231
|
end
|
219
232
|
|
@@ -226,6 +239,7 @@ module Aws::Transfer
|
|
226
239
|
#
|
227
240
|
class CreateServerResponse < Struct.new(
|
228
241
|
:server_id)
|
242
|
+
SENSITIVE = []
|
229
243
|
include Aws::Structure
|
230
244
|
end
|
231
245
|
|
@@ -293,7 +307,7 @@ module Aws::Transfer
|
|
293
307
|
#
|
294
308
|
# <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
|
295
309
|
# S3, the entry will be ignored. As a workaround, you can use the
|
296
|
-
# Amazon S3
|
310
|
+
# Amazon S3 API to create 0 byte objects as place holders for your
|
297
311
|
# directory. If using the CLI, use the `s3api` call instead of `s3` so
|
298
312
|
# you can use the put-object operation. For example, you use the
|
299
313
|
# following: `aws s3api put-object --bucket bucketname --key
|
@@ -358,9 +372,10 @@ module Aws::Transfer
|
|
358
372
|
# @!attribute [rw] user_name
|
359
373
|
# A unique string that identifies a user and is associated with a file
|
360
374
|
# transfer protocol-enabled server as specified by the `ServerId`.
|
361
|
-
# This user name must be a minimum of 3 and a maximum of
|
362
|
-
# long. The following are valid characters: a-z, A-Z, 0-9,
|
363
|
-
#
|
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.
|
364
379
|
# @return [String]
|
365
380
|
#
|
366
381
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateUserRequest AWS API Documentation
|
@@ -375,6 +390,7 @@ module Aws::Transfer
|
|
375
390
|
:ssh_public_key_body,
|
376
391
|
:tags,
|
377
392
|
:user_name)
|
393
|
+
SENSITIVE = []
|
378
394
|
include Aws::Structure
|
379
395
|
end
|
380
396
|
|
@@ -393,6 +409,7 @@ module Aws::Transfer
|
|
393
409
|
class CreateUserResponse < Struct.new(
|
394
410
|
:server_id,
|
395
411
|
:user_name)
|
412
|
+
SENSITIVE = []
|
396
413
|
include Aws::Structure
|
397
414
|
end
|
398
415
|
|
@@ -412,6 +429,7 @@ module Aws::Transfer
|
|
412
429
|
#
|
413
430
|
class DeleteServerRequest < Struct.new(
|
414
431
|
:server_id)
|
432
|
+
SENSITIVE = []
|
415
433
|
include Aws::Structure
|
416
434
|
end
|
417
435
|
|
@@ -444,6 +462,7 @@ module Aws::Transfer
|
|
444
462
|
:server_id,
|
445
463
|
:ssh_public_key_id,
|
446
464
|
:user_name)
|
465
|
+
SENSITIVE = []
|
447
466
|
include Aws::Structure
|
448
467
|
end
|
449
468
|
|
@@ -470,6 +489,39 @@ module Aws::Transfer
|
|
470
489
|
class DeleteUserRequest < Struct.new(
|
471
490
|
:server_id,
|
472
491
|
:user_name)
|
492
|
+
SENSITIVE = []
|
493
|
+
include Aws::Structure
|
494
|
+
end
|
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 = []
|
473
525
|
include Aws::Structure
|
474
526
|
end
|
475
527
|
|
@@ -489,6 +541,7 @@ module Aws::Transfer
|
|
489
541
|
#
|
490
542
|
class DescribeServerRequest < Struct.new(
|
491
543
|
:server_id)
|
544
|
+
SENSITIVE = []
|
492
545
|
include Aws::Structure
|
493
546
|
end
|
494
547
|
|
@@ -501,6 +554,7 @@ module Aws::Transfer
|
|
501
554
|
#
|
502
555
|
class DescribeServerResponse < Struct.new(
|
503
556
|
:server)
|
557
|
+
SENSITIVE = []
|
504
558
|
include Aws::Structure
|
505
559
|
end
|
506
560
|
|
@@ -529,6 +583,7 @@ module Aws::Transfer
|
|
529
583
|
class DescribeUserRequest < Struct.new(
|
530
584
|
:server_id,
|
531
585
|
:user_name)
|
586
|
+
SENSITIVE = []
|
532
587
|
include Aws::Structure
|
533
588
|
end
|
534
589
|
|
@@ -547,20 +602,69 @@ module Aws::Transfer
|
|
547
602
|
class DescribeUserResponse < Struct.new(
|
548
603
|
:server_id,
|
549
604
|
:user)
|
605
|
+
SENSITIVE = []
|
606
|
+
include Aws::Structure
|
607
|
+
end
|
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 = []
|
550
659
|
include Aws::Structure
|
551
660
|
end
|
552
661
|
|
553
662
|
# Describes the properties of a file transfer protocol-enabled server
|
554
|
-
# that was specified.
|
555
|
-
# server Amazon Resource Name (ARN), the certificate ARN (if the FTPS
|
556
|
-
# protocol was selected), the endpoint type and details, the
|
557
|
-
# authentication configuration and type, the logging role, the file
|
558
|
-
# transfer protocol or protocols, the server ID and state, and assigned
|
559
|
-
# tags or metadata.
|
663
|
+
# that was specified.
|
560
664
|
#
|
561
665
|
# @!attribute [rw] arn
|
562
|
-
# Specifies the unique Amazon Resource Name (ARN)
|
563
|
-
# protocol-enabled server
|
666
|
+
# Specifies the unique Amazon Resource Name (ARN) of the file transfer
|
667
|
+
# protocol-enabled server.
|
564
668
|
# @return [String]
|
565
669
|
#
|
566
670
|
# @!attribute [rw] certificate
|
@@ -622,6 +726,11 @@ module Aws::Transfer
|
|
622
726
|
# * `FTP` (File Transfer Protocol): Unencrypted file transfer
|
623
727
|
# @return [Array<String>]
|
624
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
|
+
#
|
625
734
|
# @!attribute [rw] server_id
|
626
735
|
# Specifies the unique system-assigned identifier for a file transfer
|
627
736
|
# protocol-enabled server that you instantiate.
|
@@ -663,14 +772,16 @@ module Aws::Transfer
|
|
663
772
|
:identity_provider_type,
|
664
773
|
:logging_role,
|
665
774
|
:protocols,
|
775
|
+
:security_policy_name,
|
666
776
|
:server_id,
|
667
777
|
:state,
|
668
778
|
:tags,
|
669
779
|
:user_count)
|
780
|
+
SENSITIVE = []
|
670
781
|
include Aws::Structure
|
671
782
|
end
|
672
783
|
|
673
|
-
#
|
784
|
+
# Describes the properties of a user that was specified.
|
674
785
|
#
|
675
786
|
# @!attribute [rw] arn
|
676
787
|
# Specifies the unique Amazon Resource Name (ARN) for the user that
|
@@ -753,6 +864,7 @@ module Aws::Transfer
|
|
753
864
|
:ssh_public_keys,
|
754
865
|
:tags,
|
755
866
|
:user_name)
|
867
|
+
SENSITIVE = []
|
756
868
|
include Aws::Structure
|
757
869
|
end
|
758
870
|
|
@@ -816,10 +928,11 @@ module Aws::Transfer
|
|
816
928
|
:subnet_ids,
|
817
929
|
:vpc_endpoint_id,
|
818
930
|
:vpc_id)
|
931
|
+
SENSITIVE = []
|
819
932
|
include Aws::Structure
|
820
933
|
end
|
821
934
|
|
822
|
-
# Represents an object that contains entries and
|
935
|
+
# Represents an object that contains entries and targets for
|
823
936
|
# `HomeDirectoryMappings`.
|
824
937
|
#
|
825
938
|
# @note When making an API call, you may pass HomeDirectoryMapEntry
|
@@ -843,6 +956,7 @@ module Aws::Transfer
|
|
843
956
|
class HomeDirectoryMapEntry < Struct.new(
|
844
957
|
:entry,
|
845
958
|
:target)
|
959
|
+
SENSITIVE = []
|
846
960
|
include Aws::Structure
|
847
961
|
end
|
848
962
|
|
@@ -873,6 +987,7 @@ module Aws::Transfer
|
|
873
987
|
class IdentityProviderDetails < Struct.new(
|
874
988
|
:url,
|
875
989
|
:invocation_role)
|
990
|
+
SENSITIVE = []
|
876
991
|
include Aws::Structure
|
877
992
|
end
|
878
993
|
|
@@ -905,6 +1020,7 @@ module Aws::Transfer
|
|
905
1020
|
:server_id,
|
906
1021
|
:ssh_public_key_body,
|
907
1022
|
:user_name)
|
1023
|
+
SENSITIVE = []
|
908
1024
|
include Aws::Structure
|
909
1025
|
end
|
910
1026
|
|
@@ -932,6 +1048,7 @@ module Aws::Transfer
|
|
932
1048
|
:server_id,
|
933
1049
|
:ssh_public_key_id,
|
934
1050
|
:user_name)
|
1051
|
+
SENSITIVE = []
|
935
1052
|
include Aws::Structure
|
936
1053
|
end
|
937
1054
|
|
@@ -945,6 +1062,7 @@ module Aws::Transfer
|
|
945
1062
|
#
|
946
1063
|
class InternalServiceError < Struct.new(
|
947
1064
|
:message)
|
1065
|
+
SENSITIVE = []
|
948
1066
|
include Aws::Structure
|
949
1067
|
end
|
950
1068
|
|
@@ -957,6 +1075,7 @@ module Aws::Transfer
|
|
957
1075
|
#
|
958
1076
|
class InvalidNextTokenException < Struct.new(
|
959
1077
|
:message)
|
1078
|
+
SENSITIVE = []
|
960
1079
|
include Aws::Structure
|
961
1080
|
end
|
962
1081
|
|
@@ -969,6 +1088,56 @@ module Aws::Transfer
|
|
969
1088
|
#
|
970
1089
|
class InvalidRequestException < Struct.new(
|
971
1090
|
:message)
|
1091
|
+
SENSITIVE = []
|
1092
|
+
include Aws::Structure
|
1093
|
+
end
|
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 = []
|
972
1141
|
include Aws::Structure
|
973
1142
|
end
|
974
1143
|
|
@@ -986,7 +1155,7 @@ module Aws::Transfer
|
|
986
1155
|
# @return [Integer]
|
987
1156
|
#
|
988
1157
|
# @!attribute [rw] next_token
|
989
|
-
# When additional results are obtained from the`ListServers` command,
|
1158
|
+
# When additional results are obtained from the `ListServers` command,
|
990
1159
|
# a `NextToken` parameter is returned in the output. You can then pass
|
991
1160
|
# the `NextToken` parameter in a subsequent command to continue
|
992
1161
|
# listing additional file transfer protocol-enabled servers.
|
@@ -997,6 +1166,7 @@ module Aws::Transfer
|
|
997
1166
|
class ListServersRequest < Struct.new(
|
998
1167
|
:max_results,
|
999
1168
|
:next_token)
|
1169
|
+
SENSITIVE = []
|
1000
1170
|
include Aws::Structure
|
1001
1171
|
end
|
1002
1172
|
|
@@ -1016,6 +1186,7 @@ module Aws::Transfer
|
|
1016
1186
|
class ListServersResponse < Struct.new(
|
1017
1187
|
:next_token,
|
1018
1188
|
:servers)
|
1189
|
+
SENSITIVE = []
|
1019
1190
|
include Aws::Structure
|
1020
1191
|
end
|
1021
1192
|
|
@@ -1052,6 +1223,7 @@ module Aws::Transfer
|
|
1052
1223
|
:arn,
|
1053
1224
|
:max_results,
|
1054
1225
|
:next_token)
|
1226
|
+
SENSITIVE = []
|
1055
1227
|
include Aws::Structure
|
1056
1228
|
end
|
1057
1229
|
|
@@ -1078,6 +1250,7 @@ module Aws::Transfer
|
|
1078
1250
|
:arn,
|
1079
1251
|
:next_token,
|
1080
1252
|
:tags)
|
1253
|
+
SENSITIVE = []
|
1081
1254
|
include Aws::Structure
|
1082
1255
|
end
|
1083
1256
|
|
@@ -1113,6 +1286,7 @@ module Aws::Transfer
|
|
1113
1286
|
:max_results,
|
1114
1287
|
:next_token,
|
1115
1288
|
:server_id)
|
1289
|
+
SENSITIVE = []
|
1116
1290
|
include Aws::Structure
|
1117
1291
|
end
|
1118
1292
|
|
@@ -1139,6 +1313,7 @@ module Aws::Transfer
|
|
1139
1313
|
:next_token,
|
1140
1314
|
:server_id,
|
1141
1315
|
:users)
|
1316
|
+
SENSITIVE = []
|
1142
1317
|
include Aws::Structure
|
1143
1318
|
end
|
1144
1319
|
|
@@ -1204,6 +1379,7 @@ module Aws::Transfer
|
|
1204
1379
|
:server_id,
|
1205
1380
|
:state,
|
1206
1381
|
:user_count)
|
1382
|
+
SENSITIVE = []
|
1207
1383
|
include Aws::Structure
|
1208
1384
|
end
|
1209
1385
|
|
@@ -1256,6 +1432,7 @@ module Aws::Transfer
|
|
1256
1432
|
:role,
|
1257
1433
|
:ssh_public_key_count,
|
1258
1434
|
:user_name)
|
1435
|
+
SENSITIVE = []
|
1259
1436
|
include Aws::Structure
|
1260
1437
|
end
|
1261
1438
|
|
@@ -1276,6 +1453,7 @@ module Aws::Transfer
|
|
1276
1453
|
:message,
|
1277
1454
|
:resource,
|
1278
1455
|
:resource_type)
|
1456
|
+
SENSITIVE = []
|
1279
1457
|
include Aws::Structure
|
1280
1458
|
end
|
1281
1459
|
|
@@ -1297,6 +1475,7 @@ module Aws::Transfer
|
|
1297
1475
|
:message,
|
1298
1476
|
:resource,
|
1299
1477
|
:resource_type)
|
1478
|
+
SENSITIVE = []
|
1300
1479
|
include Aws::Structure
|
1301
1480
|
end
|
1302
1481
|
|
@@ -1310,6 +1489,7 @@ module Aws::Transfer
|
|
1310
1489
|
#
|
1311
1490
|
class ServiceUnavailableException < Struct.new(
|
1312
1491
|
:message)
|
1492
|
+
SENSITIVE = []
|
1313
1493
|
include Aws::Structure
|
1314
1494
|
end
|
1315
1495
|
|
@@ -1341,6 +1521,7 @@ module Aws::Transfer
|
|
1341
1521
|
:date_imported,
|
1342
1522
|
:ssh_public_key_body,
|
1343
1523
|
:ssh_public_key_id)
|
1524
|
+
SENSITIVE = []
|
1344
1525
|
include Aws::Structure
|
1345
1526
|
end
|
1346
1527
|
|
@@ -1360,6 +1541,7 @@ module Aws::Transfer
|
|
1360
1541
|
#
|
1361
1542
|
class StartServerRequest < Struct.new(
|
1362
1543
|
:server_id)
|
1544
|
+
SENSITIVE = []
|
1363
1545
|
include Aws::Structure
|
1364
1546
|
end
|
1365
1547
|
|
@@ -1379,6 +1561,7 @@ module Aws::Transfer
|
|
1379
1561
|
#
|
1380
1562
|
class StopServerRequest < Struct.new(
|
1381
1563
|
:server_id)
|
1564
|
+
SENSITIVE = []
|
1382
1565
|
include Aws::Structure
|
1383
1566
|
end
|
1384
1567
|
|
@@ -1411,6 +1594,7 @@ module Aws::Transfer
|
|
1411
1594
|
class Tag < Struct.new(
|
1412
1595
|
:key,
|
1413
1596
|
:value)
|
1597
|
+
SENSITIVE = []
|
1414
1598
|
include Aws::Structure
|
1415
1599
|
end
|
1416
1600
|
|
@@ -1443,6 +1627,7 @@ module Aws::Transfer
|
|
1443
1627
|
class TagResourceRequest < Struct.new(
|
1444
1628
|
:arn,
|
1445
1629
|
:tags)
|
1630
|
+
SENSITIVE = []
|
1446
1631
|
include Aws::Structure
|
1447
1632
|
end
|
1448
1633
|
|
@@ -1495,6 +1680,7 @@ module Aws::Transfer
|
|
1495
1680
|
:source_ip,
|
1496
1681
|
:user_name,
|
1497
1682
|
:user_password)
|
1683
|
+
SENSITIVE = [:user_password]
|
1498
1684
|
include Aws::Structure
|
1499
1685
|
end
|
1500
1686
|
|
@@ -1521,6 +1707,7 @@ module Aws::Transfer
|
|
1521
1707
|
:status_code,
|
1522
1708
|
:message,
|
1523
1709
|
:url)
|
1710
|
+
SENSITIVE = []
|
1524
1711
|
include Aws::Structure
|
1525
1712
|
end
|
1526
1713
|
|
@@ -1535,6 +1722,7 @@ module Aws::Transfer
|
|
1535
1722
|
#
|
1536
1723
|
class ThrottlingException < Struct.new(
|
1537
1724
|
:retry_after_seconds)
|
1725
|
+
SENSITIVE = []
|
1538
1726
|
include Aws::Structure
|
1539
1727
|
end
|
1540
1728
|
|
@@ -1563,6 +1751,7 @@ module Aws::Transfer
|
|
1563
1751
|
class UntagResourceRequest < Struct.new(
|
1564
1752
|
:arn,
|
1565
1753
|
:tag_keys)
|
1754
|
+
SENSITIVE = []
|
1566
1755
|
include Aws::Structure
|
1567
1756
|
end
|
1568
1757
|
|
@@ -1585,6 +1774,7 @@ module Aws::Transfer
|
|
1585
1774
|
# },
|
1586
1775
|
# logging_role: "NullableRole",
|
1587
1776
|
# protocols: ["SFTP"], # accepts SFTP, FTP, FTPS
|
1777
|
+
# security_policy_name: "SecurityPolicyName",
|
1588
1778
|
# server_id: "ServerId", # required
|
1589
1779
|
# }
|
1590
1780
|
#
|
@@ -1712,6 +1902,11 @@ module Aws::Transfer
|
|
1712
1902
|
# </note>
|
1713
1903
|
# @return [Array<String>]
|
1714
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
|
+
#
|
1715
1910
|
# @!attribute [rw] server_id
|
1716
1911
|
# A system-assigned unique identifier for a file transfer
|
1717
1912
|
# protocol-enabled server instance that the user account is assigned
|
@@ -1728,7 +1923,9 @@ module Aws::Transfer
|
|
1728
1923
|
:identity_provider_details,
|
1729
1924
|
:logging_role,
|
1730
1925
|
:protocols,
|
1926
|
+
:security_policy_name,
|
1731
1927
|
:server_id)
|
1928
|
+
SENSITIVE = [:host_key]
|
1732
1929
|
include Aws::Structure
|
1733
1930
|
end
|
1734
1931
|
|
@@ -1741,6 +1938,7 @@ module Aws::Transfer
|
|
1741
1938
|
#
|
1742
1939
|
class UpdateServerResponse < Struct.new(
|
1743
1940
|
:server_id)
|
1941
|
+
SENSITIVE = []
|
1744
1942
|
include Aws::Structure
|
1745
1943
|
end
|
1746
1944
|
|
@@ -1801,7 +1999,7 @@ module Aws::Transfer
|
|
1801
1999
|
#
|
1802
2000
|
# <note markdown="1"> If the target of a logical directory entry does not exist in Amazon
|
1803
2001
|
# S3, the entry will be ignored. As a workaround, you can use the
|
1804
|
-
# Amazon S3
|
2002
|
+
# Amazon S3 API to create 0 byte objects as place holders for your
|
1805
2003
|
# directory. If using the CLI, use the `s3api` call instead of `s3` so
|
1806
2004
|
# you can use the put-object operation. For example, you use the
|
1807
2005
|
# following: `aws s3api put-object --bucket bucketname --key
|
@@ -1856,10 +2054,10 @@ module Aws::Transfer
|
|
1856
2054
|
# @!attribute [rw] user_name
|
1857
2055
|
# A unique string that identifies a user and is associated with a file
|
1858
2056
|
# transfer protocol-enabled server as specified by the `ServerId`.
|
1859
|
-
# This
|
1860
|
-
# 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
|
1861
2058
|
# characters long. The following are valid characters: a-z, A-Z, 0-9,
|
1862
|
-
# underscore,
|
2059
|
+
# underscore '\_', hyphen '-', period '.', and at sign '@'.
|
2060
|
+
# The user name can't start with a hyphen, period, and at sign.
|
1863
2061
|
# @return [String]
|
1864
2062
|
#
|
1865
2063
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateUserRequest AWS API Documentation
|
@@ -1872,6 +2070,7 @@ module Aws::Transfer
|
|
1872
2070
|
:role,
|
1873
2071
|
:server_id,
|
1874
2072
|
:user_name)
|
2073
|
+
SENSITIVE = []
|
1875
2074
|
include Aws::Structure
|
1876
2075
|
end
|
1877
2076
|
|
@@ -1895,6 +2094,7 @@ module Aws::Transfer
|
|
1895
2094
|
class UpdateUserResponse < Struct.new(
|
1896
2095
|
:server_id,
|
1897
2096
|
:user_name)
|
2097
|
+
SENSITIVE = []
|
1898
2098
|
include Aws::Structure
|
1899
2099
|
end
|
1900
2100
|
|
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.
|
4
|
+
version: 1.26.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-
|
11
|
+
date: 2020-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|