aws-sdk-transfer 1.75.0 → 1.77.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 149292a4d93e872cca9908f7877928b24b881a92aa13fafaddec97e347c7baa4
4
- data.tar.gz: b253fe75d1b8218a9daaa2cfd550523f0d8d6fcdd953462986dfc4ca4560cf7c
3
+ metadata.gz: e39f03b80d097b542f1c6a2b6f9e9cbb550daa88f0d94969bbe01c1f8b3359b5
4
+ data.tar.gz: 8552dba4bfc488adf4529ffba349e028d3b9bac9ef7def0dfff0254bca396cc2
5
5
  SHA512:
6
- metadata.gz: 6ae1518b8b7e82fad131530ee722fe83da536e44e6a81b9804ea46718ee8cac60f417c76a565d657bccd2f3ed64bb8c29ab2584a98c9c9ae3013d01fb7171623
7
- data.tar.gz: 549b0ffceda0264afca3a33a1c725c0dc981a470a8e86d22870bbeb57cd7f9cec8913f2201686f002dc21aba0f0299d558e248866076ea0d26f6b57f318c9539
6
+ metadata.gz: 89b5c9f925280f5ba79c4fbd3b51555b7daa285f8a7257cc8c6e62abddddb904bc4c2ba624ce800fa372ea308a6dc5f2f8dbf8726aaf358dfc2a65b55a5af5d4
7
+ data.tar.gz: 0b290b7857671578d61780cc996a818ee204e92c621575bb3fa3bb080e2b0053e8248b69578785d75e8c45bc471f5460610d896576ca987a92cc2fe799d56f9f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.77.0 (2023-08-10)
5
+ ------------------
6
+
7
+ * Feature - Documentation updates for AW Transfer Family
8
+
9
+ 1.76.0 (2023-07-25)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for SFTP Connectors.
13
+
4
14
  1.75.0 (2023-07-11)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.75.0
1
+ 1.77.0
@@ -584,6 +584,12 @@ module Aws::Transfer
584
584
  # A `BaseDirectory` example is `/DOC-EXAMPLE-BUCKET/home/mydirectory`.
585
585
  #
586
586
  # @option params [required, String] :access_role
587
+ # Connectors are used to send files using either the AS2 or SFTP
588
+ # protocol. For the access role, provide the Amazon Resource Name (ARN)
589
+ # of the Identity and Access Management role to use.
590
+ #
591
+ # **For AS2 connectors**
592
+ #
587
593
  # With AS2, you can send files by calling `StartFileTransfer` and
588
594
  # specifying the file paths in the request parameter, `SendFilePaths`.
589
595
  # We use the file’s parent directory (for example, for
@@ -603,6 +609,14 @@ module Aws::Transfer
603
609
  # key instead of the Amazon Web Services managed key in Secrets Manager,
604
610
  # then the role also needs the `kms:Decrypt` permission for that key.
605
611
  #
612
+ # **For SFTP connectors**
613
+ #
614
+ # Make sure that the access role provides read and write access to the
615
+ # parent directory of the file location that's used in the
616
+ # `StartFileTransfer` request. Additionally, make sure that the role
617
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
618
+ # Manager.
619
+ #
606
620
  # @option params [String] :status
607
621
  # The status of the agreement. The agreement can be either `ACTIVE` or
608
622
  # `INACTIVE`.
@@ -645,22 +659,37 @@ module Aws::Transfer
645
659
  req.send_request(options)
646
660
  end
647
661
 
648
- # Creates the connector, which captures the parameters for an outbound
649
- # connection for the AS2 protocol. The connector is required for sending
650
- # files to an externally hosted AS2 server. For more details about
651
- # connectors, see [Create AS2 connectors][1].
662
+ # Creates the connector, which captures the parameters for a connection
663
+ # for the AS2 or SFTP protocol. For AS2, the connector is required for
664
+ # sending files to an externally hosted AS2 server. For SFTP, the
665
+ # connector is required when sending files to an SFTP server or
666
+ # receiving files from an SFTP server. For more details about
667
+ # connectors, see [Create AS2 connectors][1] and [Create SFTP
668
+ # connectors][2].
669
+ #
670
+ # <note markdown="1"> You must specify exactly one configuration object: either for AS2
671
+ # (`As2Config`) or SFTP (`SftpConfig`).
672
+ #
673
+ # </note>
652
674
  #
653
675
  #
654
676
  #
655
677
  # [1]: https://docs.aws.amazon.com/transfer/latest/userguide/create-b2b-server.html#configure-as2-connector
678
+ # [2]: https://docs.aws.amazon.com/transfer/latest/userguide/configure-sftp-connector.html
656
679
  #
657
680
  # @option params [required, String] :url
658
- # The URL of the partner's AS2 endpoint.
681
+ # The URL of the partner's AS2 or SFTP endpoint.
659
682
  #
660
- # @option params [required, Types::As2ConnectorConfig] :as_2_config
661
- # A structure that contains the parameters for a connector object.
683
+ # @option params [Types::As2ConnectorConfig] :as_2_config
684
+ # A structure that contains the parameters for an AS2 connector object.
662
685
  #
663
686
  # @option params [required, String] :access_role
687
+ # Connectors are used to send files using either the AS2 or SFTP
688
+ # protocol. For the access role, provide the Amazon Resource Name (ARN)
689
+ # of the Identity and Access Management role to use.
690
+ #
691
+ # **For AS2 connectors**
692
+ #
664
693
  # With AS2, you can send files by calling `StartFileTransfer` and
665
694
  # specifying the file paths in the request parameter, `SendFilePaths`.
666
695
  # We use the file’s parent directory (for example, for
@@ -680,6 +709,14 @@ module Aws::Transfer
680
709
  # key instead of the Amazon Web Services managed key in Secrets Manager,
681
710
  # then the role also needs the `kms:Decrypt` permission for that key.
682
711
  #
712
+ # **For SFTP connectors**
713
+ #
714
+ # Make sure that the access role provides read and write access to the
715
+ # parent directory of the file location that's used in the
716
+ # `StartFileTransfer` request. Additionally, make sure that the role
717
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
718
+ # Manager.
719
+ #
683
720
  # @option params [String] :logging_role
684
721
  # The Amazon Resource Name (ARN) of the Identity and Access Management
685
722
  # (IAM) role that allows a connector to turn on CloudWatch logging for
@@ -690,6 +727,9 @@ module Aws::Transfer
690
727
  # Key-value pairs that can be used to group and search for connectors.
691
728
  # Tags are metadata attached to connectors for any purpose.
692
729
  #
730
+ # @option params [Types::SftpConnectorConfig] :sftp_config
731
+ # A structure that contains the parameters for an SFTP connector object.
732
+ #
693
733
  # @return [Types::CreateConnectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
694
734
  #
695
735
  # * {Types::CreateConnectorResponse#connector_id #connector_id} => String
@@ -698,7 +738,7 @@ module Aws::Transfer
698
738
  #
699
739
  # resp = client.create_connector({
700
740
  # url: "Url", # required
701
- # as_2_config: { # required
741
+ # as_2_config: {
702
742
  # local_profile_id: "ProfileId",
703
743
  # partner_profile_id: "ProfileId",
704
744
  # message_subject: "MessageSubject",
@@ -717,6 +757,10 @@ module Aws::Transfer
717
757
  # value: "TagValue", # required
718
758
  # },
719
759
  # ],
760
+ # sftp_config: {
761
+ # user_secret_id: "SecretId",
762
+ # trusted_host_keys: ["SftpConnectorTrustedHostKey"],
763
+ # },
720
764
  # })
721
765
  #
722
766
  # @example Response structure
@@ -1187,8 +1231,8 @@ module Aws::Transfer
1187
1231
  #
1188
1232
  # In most cases, you can use this value instead of the session policy to
1189
1233
  # lock your user down to the designated home directory ("`chroot`").
1190
- # To do this, you can set `Entry` to `/` and set `Target` to the
1191
- # HomeDirectory parameter value.
1234
+ # To do this, you can set `Entry` to `/` and set `Target` to the value
1235
+ # the user should see for their home directory when they log in.
1192
1236
  #
1193
1237
  # The following is an `Entry` and `Target` pair example for `chroot`.
1194
1238
  #
@@ -1606,7 +1650,7 @@ module Aws::Transfer
1606
1650
  req.send_request(options)
1607
1651
  end
1608
1652
 
1609
- # Deletes the agreement that's specified in the provided `ConnectorId`.
1653
+ # Deletes the connector that's specified in the provided `ConnectorId`.
1610
1654
  #
1611
1655
  # @option params [required, String] :connector_id
1612
1656
  # The unique identifier for the connector.
@@ -1979,6 +2023,9 @@ module Aws::Transfer
1979
2023
  # resp.connector.tags #=> Array
1980
2024
  # resp.connector.tags[0].key #=> String
1981
2025
  # resp.connector.tags[0].value #=> String
2026
+ # resp.connector.sftp_config.user_secret_id #=> String
2027
+ # resp.connector.sftp_config.trusted_host_keys #=> Array
2028
+ # resp.connector.sftp_config.trusted_host_keys[0] #=> String
1982
2029
  #
1983
2030
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeConnector AWS API Documentation
1984
2031
  #
@@ -3241,16 +3288,53 @@ module Aws::Transfer
3241
3288
  req.send_request(options)
3242
3289
  end
3243
3290
 
3244
- # Begins an outbound file transfer to a remote AS2 server. You specify
3245
- # the `ConnectorId` and the file paths for where to send the files.
3291
+ # Begins a file transfer between local Amazon Web Services storage and a
3292
+ # remote AS2 or SFTP server.
3293
+ #
3294
+ # * For an AS2 connector, you specify the `ConnectorId` and one or more
3295
+ # `SendFilePaths` to identify the files you want to transfer.
3296
+ #
3297
+ # * For an SFTP connector, the file transfer can be either outbound or
3298
+ # inbound. In both cases, you specify the `ConnectorId`. Depending on
3299
+ # the direction of the transfer, you also specify the following items:
3300
+ #
3301
+ # * If you are transferring file from a partner's SFTP server to
3302
+ # Amazon Web Services storage, you specify one or more
3303
+ # `RetreiveFilePaths` to identify the files you want to transfer,
3304
+ # and a `LocalDirectoryPath` to specify the destination folder.
3305
+ #
3306
+ # * If you are transferring file to a partner's SFTP server from
3307
+ # Amazon Web Services storage, you specify one or more
3308
+ # `SendFilePaths` to identify the files you want to transfer, and a
3309
+ # `RemoteDirectoryPath` to specify the destination folder.
3246
3310
  #
3247
3311
  # @option params [required, String] :connector_id
3248
3312
  # The unique identifier for the connector.
3249
3313
  #
3250
- # @option params [required, Array<String>] :send_file_paths
3251
- # An array of strings. Each string represents the absolute path for one
3252
- # outbound file transfer. For example, ` DOC-EXAMPLE-BUCKET/myfile.txt
3253
- # `.
3314
+ # @option params [Array<String>] :send_file_paths
3315
+ # One or more source paths for the Transfer Family server. Each string
3316
+ # represents a source file path for one outbound file transfer. For
3317
+ # example, ` DOC-EXAMPLE-BUCKET/myfile.txt `.
3318
+ #
3319
+ # <note markdown="1"> Replace ` DOC-EXAMPLE-BUCKET `with one of your actual buckets.
3320
+ #
3321
+ # </note>
3322
+ #
3323
+ # @option params [Array<String>] :retrieve_file_paths
3324
+ # One or more source paths for the partner's SFTP server. Each string
3325
+ # represents a source file path for one inbound file transfer.
3326
+ #
3327
+ # @option params [String] :local_directory_path
3328
+ # For an inbound transfer, the `LocaDirectoryPath` specifies the
3329
+ # destination for one or more files that are transferred from the
3330
+ # partner's SFTP server.
3331
+ #
3332
+ # @option params [String] :remote_directory_path
3333
+ # For an outbound transfer, the `RemoteDirectoryPath` specifies the
3334
+ # destination for one or more files that are transferred to the
3335
+ # partner's SFTP server. If you don't specify a `RemoteDirectoryPath`,
3336
+ # the destination for transferred files is the SFTP user's home
3337
+ # directory.
3254
3338
  #
3255
3339
  # @return [Types::StartFileTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3256
3340
  #
@@ -3260,7 +3344,10 @@ module Aws::Transfer
3260
3344
  #
3261
3345
  # resp = client.start_file_transfer({
3262
3346
  # connector_id: "ConnectorId", # required
3263
- # send_file_paths: ["FilePath"], # required
3347
+ # send_file_paths: ["FilePath"],
3348
+ # retrieve_file_paths: ["FilePath"],
3349
+ # local_directory_path: "FilePath",
3350
+ # remote_directory_path: "FilePath",
3264
3351
  # })
3265
3352
  #
3266
3353
  # @example Response structure
@@ -3382,6 +3469,41 @@ module Aws::Transfer
3382
3469
  req.send_request(options)
3383
3470
  end
3384
3471
 
3472
+ # Tests whether your SFTP connector is set up successfully. We highly
3473
+ # recommend that you call this operation to test your ability to
3474
+ # transfer files between a Transfer Family server and a trading
3475
+ # partner's SFTP server.
3476
+ #
3477
+ # @option params [required, String] :connector_id
3478
+ # The unique identifier for the connector.
3479
+ #
3480
+ # @return [Types::TestConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3481
+ #
3482
+ # * {Types::TestConnectionResponse#connector_id #connector_id} => String
3483
+ # * {Types::TestConnectionResponse#status #status} => String
3484
+ # * {Types::TestConnectionResponse#status_message #status_message} => String
3485
+ #
3486
+ # @example Request syntax with placeholder values
3487
+ #
3488
+ # resp = client.test_connection({
3489
+ # connector_id: "ConnectorId", # required
3490
+ # })
3491
+ #
3492
+ # @example Response structure
3493
+ #
3494
+ # resp.connector_id #=> String
3495
+ # resp.status #=> String
3496
+ # resp.status_message #=> String
3497
+ #
3498
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TestConnection AWS API Documentation
3499
+ #
3500
+ # @overload test_connection(params = {})
3501
+ # @param [Hash] params ({})
3502
+ def test_connection(params = {}, options = {})
3503
+ req = build_request(:test_connection, params)
3504
+ req.send_request(options)
3505
+ end
3506
+
3385
3507
  # If the `IdentityProviderType` of a file transfer protocol-enabled
3386
3508
  # server is `AWS_DIRECTORY_SERVICE` or `API_Gateway`, tests whether your
3387
3509
  # identity provider is set up successfully. We highly recommend that you
@@ -3704,6 +3826,12 @@ module Aws::Transfer
3704
3826
  # example, `/DOC-EXAMPLE-BUCKET/home/mydirectory `.
3705
3827
  #
3706
3828
  # @option params [String] :access_role
3829
+ # Connectors are used to send files using either the AS2 or SFTP
3830
+ # protocol. For the access role, provide the Amazon Resource Name (ARN)
3831
+ # of the Identity and Access Management role to use.
3832
+ #
3833
+ # **For AS2 connectors**
3834
+ #
3707
3835
  # With AS2, you can send files by calling `StartFileTransfer` and
3708
3836
  # specifying the file paths in the request parameter, `SendFilePaths`.
3709
3837
  # We use the file’s parent directory (for example, for
@@ -3723,6 +3851,14 @@ module Aws::Transfer
3723
3851
  # key instead of the Amazon Web Services managed key in Secrets Manager,
3724
3852
  # then the role also needs the `kms:Decrypt` permission for that key.
3725
3853
  #
3854
+ # **For SFTP connectors**
3855
+ #
3856
+ # Make sure that the access role provides read and write access to the
3857
+ # parent directory of the file location that's used in the
3858
+ # `StartFileTransfer` request. Additionally, make sure that the role
3859
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
3860
+ # Manager.
3861
+ #
3726
3862
  # @return [Types::UpdateAgreementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3727
3863
  #
3728
3864
  # * {Types::UpdateAgreementResponse#agreement_id #agreement_id} => String
@@ -3801,12 +3937,18 @@ module Aws::Transfer
3801
3937
  # The unique identifier for the connector.
3802
3938
  #
3803
3939
  # @option params [String] :url
3804
- # The URL of the partner's AS2 endpoint.
3940
+ # The URL of the partner's AS2 or SFTP endpoint.
3805
3941
  #
3806
3942
  # @option params [Types::As2ConnectorConfig] :as_2_config
3807
- # A structure that contains the parameters for a connector object.
3943
+ # A structure that contains the parameters for an AS2 connector object.
3808
3944
  #
3809
3945
  # @option params [String] :access_role
3946
+ # Connectors are used to send files using either the AS2 or SFTP
3947
+ # protocol. For the access role, provide the Amazon Resource Name (ARN)
3948
+ # of the Identity and Access Management role to use.
3949
+ #
3950
+ # **For AS2 connectors**
3951
+ #
3810
3952
  # With AS2, you can send files by calling `StartFileTransfer` and
3811
3953
  # specifying the file paths in the request parameter, `SendFilePaths`.
3812
3954
  # We use the file’s parent directory (for example, for
@@ -3826,12 +3968,23 @@ module Aws::Transfer
3826
3968
  # key instead of the Amazon Web Services managed key in Secrets Manager,
3827
3969
  # then the role also needs the `kms:Decrypt` permission for that key.
3828
3970
  #
3971
+ # **For SFTP connectors**
3972
+ #
3973
+ # Make sure that the access role provides read and write access to the
3974
+ # parent directory of the file location that's used in the
3975
+ # `StartFileTransfer` request. Additionally, make sure that the role
3976
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
3977
+ # Manager.
3978
+ #
3829
3979
  # @option params [String] :logging_role
3830
3980
  # The Amazon Resource Name (ARN) of the Identity and Access Management
3831
3981
  # (IAM) role that allows a connector to turn on CloudWatch logging for
3832
3982
  # Amazon S3 events. When set, you can view connector activity in your
3833
3983
  # CloudWatch logs.
3834
3984
  #
3985
+ # @option params [Types::SftpConnectorConfig] :sftp_config
3986
+ # A structure that contains the parameters for an SFTP connector object.
3987
+ #
3835
3988
  # @return [Types::UpdateConnectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3836
3989
  #
3837
3990
  # * {Types::UpdateConnectorResponse#connector_id #connector_id} => String
@@ -3854,6 +4007,10 @@ module Aws::Transfer
3854
4007
  # },
3855
4008
  # access_role: "Role",
3856
4009
  # logging_role: "Role",
4010
+ # sftp_config: {
4011
+ # user_secret_id: "SecretId",
4012
+ # trusted_host_keys: ["SftpConnectorTrustedHostKey"],
4013
+ # },
3857
4014
  # })
3858
4015
  #
3859
4016
  # @example Response structure
@@ -4421,7 +4578,7 @@ module Aws::Transfer
4421
4578
  params: params,
4422
4579
  config: config)
4423
4580
  context[:gem_name] = 'aws-sdk-transfer'
4424
- context[:gem_version] = '1.75.0'
4581
+ context[:gem_version] = '1.77.0'
4425
4582
  Seahorse::Client::Request.new(handlers, context)
4426
4583
  end
4427
4584
 
@@ -236,6 +236,7 @@ module Aws::Transfer
236
236
  S3Tags = Shapes::ListShape.new(name: 'S3Tags')
237
237
  S3VersionId = Shapes::StringShape.new(name: 'S3VersionId')
238
238
  SecondaryGids = Shapes::ListShape.new(name: 'SecondaryGids')
239
+ SecretId = Shapes::StringShape.new(name: 'SecretId')
239
240
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
240
241
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
241
242
  SecurityPolicyName = Shapes::StringShape.new(name: 'SecurityPolicyName')
@@ -251,6 +252,9 @@ module Aws::Transfer
251
252
  SessionId = Shapes::StringShape.new(name: 'SessionId')
252
253
  SetStatOption = Shapes::StringShape.new(name: 'SetStatOption')
253
254
  SftpAuthenticationMethods = Shapes::StringShape.new(name: 'SftpAuthenticationMethods')
255
+ SftpConnectorConfig = Shapes::StructureShape.new(name: 'SftpConnectorConfig')
256
+ SftpConnectorTrustedHostKey = Shapes::StringShape.new(name: 'SftpConnectorTrustedHostKey')
257
+ SftpConnectorTrustedHostKeyList = Shapes::ListShape.new(name: 'SftpConnectorTrustedHostKeyList')
254
258
  SigningAlg = Shapes::StringShape.new(name: 'SigningAlg')
255
259
  SourceFileLocation = Shapes::StringShape.new(name: 'SourceFileLocation')
256
260
  SourceIp = Shapes::StringShape.new(name: 'SourceIp')
@@ -263,6 +267,7 @@ module Aws::Transfer
263
267
  StartFileTransferResponse = Shapes::StructureShape.new(name: 'StartFileTransferResponse')
264
268
  StartServerRequest = Shapes::StructureShape.new(name: 'StartServerRequest')
265
269
  State = Shapes::StringShape.new(name: 'State')
270
+ Status = Shapes::StringShape.new(name: 'Status')
266
271
  StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
267
272
  StepResultOutputsJson = Shapes::StringShape.new(name: 'StepResultOutputsJson')
268
273
  StopServerRequest = Shapes::StructureShape.new(name: 'StopServerRequest')
@@ -276,6 +281,8 @@ module Aws::Transfer
276
281
  TagStepDetails = Shapes::StructureShape.new(name: 'TagStepDetails')
277
282
  TagValue = Shapes::StringShape.new(name: 'TagValue')
278
283
  Tags = Shapes::ListShape.new(name: 'Tags')
284
+ TestConnectionRequest = Shapes::StructureShape.new(name: 'TestConnectionRequest')
285
+ TestConnectionResponse = Shapes::StructureShape.new(name: 'TestConnectionResponse')
279
286
  TestIdentityProviderRequest = Shapes::StructureShape.new(name: 'TestIdentityProviderRequest')
280
287
  TestIdentityProviderResponse = Shapes::StructureShape.new(name: 'TestIdentityProviderResponse')
281
288
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
@@ -371,10 +378,11 @@ module Aws::Transfer
371
378
  CreateAgreementResponse.struct_class = Types::CreateAgreementResponse
372
379
 
373
380
  CreateConnectorRequest.add_member(:url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "Url"))
374
- CreateConnectorRequest.add_member(:as_2_config, Shapes::ShapeRef.new(shape: As2ConnectorConfig, required: true, location_name: "As2Config"))
381
+ CreateConnectorRequest.add_member(:as_2_config, Shapes::ShapeRef.new(shape: As2ConnectorConfig, location_name: "As2Config"))
375
382
  CreateConnectorRequest.add_member(:access_role, Shapes::ShapeRef.new(shape: Role, required: true, location_name: "AccessRole"))
376
383
  CreateConnectorRequest.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
377
384
  CreateConnectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
385
+ CreateConnectorRequest.add_member(:sftp_config, Shapes::ShapeRef.new(shape: SftpConnectorConfig, location_name: "SftpConfig"))
378
386
  CreateConnectorRequest.struct_class = Types::CreateConnectorRequest
379
387
 
380
388
  CreateConnectorResponse.add_member(:connector_id, Shapes::ShapeRef.new(shape: ConnectorId, required: true, location_name: "ConnectorId"))
@@ -606,6 +614,7 @@ module Aws::Transfer
606
614
  DescribedConnector.add_member(:access_role, Shapes::ShapeRef.new(shape: Role, location_name: "AccessRole"))
607
615
  DescribedConnector.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
608
616
  DescribedConnector.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
617
+ DescribedConnector.add_member(:sftp_config, Shapes::ShapeRef.new(shape: SftpConnectorConfig, location_name: "SftpConfig"))
609
618
  DescribedConnector.struct_class = Types::DescribedConnector
610
619
 
611
620
  DescribedExecution.add_member(:execution_id, Shapes::ShapeRef.new(shape: ExecutionId, location_name: "ExecutionId"))
@@ -1046,6 +1055,12 @@ module Aws::Transfer
1046
1055
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ServiceErrorMessage, location_name: "Message"))
1047
1056
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
1048
1057
 
1058
+ SftpConnectorConfig.add_member(:user_secret_id, Shapes::ShapeRef.new(shape: SecretId, location_name: "UserSecretId"))
1059
+ SftpConnectorConfig.add_member(:trusted_host_keys, Shapes::ShapeRef.new(shape: SftpConnectorTrustedHostKeyList, location_name: "TrustedHostKeys"))
1060
+ SftpConnectorConfig.struct_class = Types::SftpConnectorConfig
1061
+
1062
+ SftpConnectorTrustedHostKeyList.member = Shapes::ShapeRef.new(shape: SftpConnectorTrustedHostKey)
1063
+
1049
1064
  SshPublicKey.add_member(:date_imported, Shapes::ShapeRef.new(shape: DateImported, required: true, location_name: "DateImported"))
1050
1065
  SshPublicKey.add_member(:ssh_public_key_body, Shapes::ShapeRef.new(shape: SshPublicKeyBody, required: true, location_name: "SshPublicKeyBody"))
1051
1066
  SshPublicKey.add_member(:ssh_public_key_id, Shapes::ShapeRef.new(shape: SshPublicKeyId, required: true, location_name: "SshPublicKeyId"))
@@ -1054,7 +1069,10 @@ module Aws::Transfer
1054
1069
  SshPublicKeys.member = Shapes::ShapeRef.new(shape: SshPublicKey)
1055
1070
 
1056
1071
  StartFileTransferRequest.add_member(:connector_id, Shapes::ShapeRef.new(shape: ConnectorId, required: true, location_name: "ConnectorId"))
1057
- StartFileTransferRequest.add_member(:send_file_paths, Shapes::ShapeRef.new(shape: FilePaths, required: true, location_name: "SendFilePaths"))
1072
+ StartFileTransferRequest.add_member(:send_file_paths, Shapes::ShapeRef.new(shape: FilePaths, location_name: "SendFilePaths"))
1073
+ StartFileTransferRequest.add_member(:retrieve_file_paths, Shapes::ShapeRef.new(shape: FilePaths, location_name: "RetrieveFilePaths"))
1074
+ StartFileTransferRequest.add_member(:local_directory_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "LocalDirectoryPath"))
1075
+ StartFileTransferRequest.add_member(:remote_directory_path, Shapes::ShapeRef.new(shape: FilePath, location_name: "RemoteDirectoryPath"))
1058
1076
  StartFileTransferRequest.struct_class = Types::StartFileTransferRequest
1059
1077
 
1060
1078
  StartFileTransferResponse.add_member(:transfer_id, Shapes::ShapeRef.new(shape: TransferId, required: true, location_name: "TransferId"))
@@ -1087,6 +1105,14 @@ module Aws::Transfer
1087
1105
 
1088
1106
  Tags.member = Shapes::ShapeRef.new(shape: Tag)
1089
1107
 
1108
+ TestConnectionRequest.add_member(:connector_id, Shapes::ShapeRef.new(shape: ConnectorId, required: true, location_name: "ConnectorId"))
1109
+ TestConnectionRequest.struct_class = Types::TestConnectionRequest
1110
+
1111
+ TestConnectionResponse.add_member(:connector_id, Shapes::ShapeRef.new(shape: ConnectorId, location_name: "ConnectorId"))
1112
+ TestConnectionResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "Status"))
1113
+ TestConnectionResponse.add_member(:status_message, Shapes::ShapeRef.new(shape: Message, location_name: "StatusMessage"))
1114
+ TestConnectionResponse.struct_class = Types::TestConnectionResponse
1115
+
1090
1116
  TestIdentityProviderRequest.add_member(:server_id, Shapes::ShapeRef.new(shape: ServerId, required: true, location_name: "ServerId"))
1091
1117
  TestIdentityProviderRequest.add_member(:server_protocol, Shapes::ShapeRef.new(shape: Protocol, location_name: "ServerProtocol"))
1092
1118
  TestIdentityProviderRequest.add_member(:source_ip, Shapes::ShapeRef.new(shape: SourceIp, location_name: "SourceIp"))
@@ -1148,6 +1174,7 @@ module Aws::Transfer
1148
1174
  UpdateConnectorRequest.add_member(:as_2_config, Shapes::ShapeRef.new(shape: As2ConnectorConfig, location_name: "As2Config"))
1149
1175
  UpdateConnectorRequest.add_member(:access_role, Shapes::ShapeRef.new(shape: Role, location_name: "AccessRole"))
1150
1176
  UpdateConnectorRequest.add_member(:logging_role, Shapes::ShapeRef.new(shape: Role, location_name: "LoggingRole"))
1177
+ UpdateConnectorRequest.add_member(:sftp_config, Shapes::ShapeRef.new(shape: SftpConnectorConfig, location_name: "SftpConfig"))
1151
1178
  UpdateConnectorRequest.struct_class = Types::UpdateConnectorRequest
1152
1179
 
1153
1180
  UpdateConnectorResponse.add_member(:connector_id, Shapes::ShapeRef.new(shape: ConnectorId, required: true, location_name: "ConnectorId"))
@@ -1920,6 +1947,18 @@ module Aws::Transfer
1920
1947
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1921
1948
  end)
1922
1949
 
1950
+ api.add_operation(:test_connection, Seahorse::Model::Operation.new.tap do |o|
1951
+ o.name = "TestConnection"
1952
+ o.http_method = "POST"
1953
+ o.http_request_uri = "/"
1954
+ o.input = Shapes::ShapeRef.new(shape: TestConnectionRequest)
1955
+ o.output = Shapes::ShapeRef.new(shape: TestConnectionResponse)
1956
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1957
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
1958
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1959
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1960
+ end)
1961
+
1923
1962
  api.add_operation(:test_identity_provider, Seahorse::Model::Operation.new.tap do |o|
1924
1963
  o.name = "TestIdentityProvider"
1925
1964
  o.http_method = "POST"
@@ -684,6 +684,20 @@ module Aws::Transfer
684
684
  end
685
685
  end
686
686
 
687
+ class TestConnection
688
+ def self.build(context)
689
+ unless context.config.regional_endpoint
690
+ endpoint = context.config.endpoint.to_s
691
+ end
692
+ Aws::Transfer::EndpointParameters.new(
693
+ region: context.config.region,
694
+ use_dual_stack: context.config.use_dualstack_endpoint,
695
+ use_fips: context.config.use_fips_endpoint,
696
+ endpoint: endpoint,
697
+ )
698
+ end
699
+ end
700
+
687
701
  class TestIdentityProvider
688
702
  def self.build(context)
689
703
  unless context.config.regional_endpoint
@@ -152,6 +152,8 @@ module Aws::Transfer
152
152
  Aws::Transfer::Endpoints::StopServer.build(context)
153
153
  when :tag_resource
154
154
  Aws::Transfer::Endpoints::TagResource.build(context)
155
+ when :test_connection
156
+ Aws::Transfer::Endpoints::TestConnection.build(context)
155
157
  when :test_identity_provider
156
158
  Aws::Transfer::Endpoints::TestIdentityProvider.build(context)
157
159
  when :untag_resource
@@ -23,8 +23,8 @@ module Aws::Transfer
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
- # Contains the details for a connector object. The connector object is
27
- # used for AS2 outbound processes, to connect the Transfer Family
26
+ # Contains the details for an AS2 connector object. The connector object
27
+ # is used for AS2 outbound processes, to connect the Transfer Family
28
28
  # customer with the trading partner.
29
29
  #
30
30
  # @!attribute [rw] local_profile_id
@@ -385,6 +385,12 @@ module Aws::Transfer
385
385
  # @return [String]
386
386
  #
387
387
  # @!attribute [rw] access_role
388
+ # Connectors are used to send files using either the AS2 or SFTP
389
+ # protocol. For the access role, provide the Amazon Resource Name
390
+ # (ARN) of the Identity and Access Management role to use.
391
+ #
392
+ # **For AS2 connectors**
393
+ #
388
394
  # With AS2, you can send files by calling `StartFileTransfer` and
389
395
  # specifying the file paths in the request parameter, `SendFilePaths`.
390
396
  # We use the file’s parent directory (for example, for
@@ -404,6 +410,14 @@ module Aws::Transfer
404
410
  # key instead of the Amazon Web Services managed key in Secrets
405
411
  # Manager, then the role also needs the `kms:Decrypt` permission for
406
412
  # that key.
413
+ #
414
+ # **For SFTP connectors**
415
+ #
416
+ # Make sure that the access role provides read and write access to the
417
+ # parent directory of the file location that's used in the
418
+ # `StartFileTransfer` request. Additionally, make sure that the role
419
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
420
+ # Manager.
407
421
  # @return [String]
408
422
  #
409
423
  # @!attribute [rw] status
@@ -445,14 +459,21 @@ module Aws::Transfer
445
459
  end
446
460
 
447
461
  # @!attribute [rw] url
448
- # The URL of the partner's AS2 endpoint.
462
+ # The URL of the partner's AS2 or SFTP endpoint.
449
463
  # @return [String]
450
464
  #
451
465
  # @!attribute [rw] as_2_config
452
- # A structure that contains the parameters for a connector object.
466
+ # A structure that contains the parameters for an AS2 connector
467
+ # object.
453
468
  # @return [Types::As2ConnectorConfig]
454
469
  #
455
470
  # @!attribute [rw] access_role
471
+ # Connectors are used to send files using either the AS2 or SFTP
472
+ # protocol. For the access role, provide the Amazon Resource Name
473
+ # (ARN) of the Identity and Access Management role to use.
474
+ #
475
+ # **For AS2 connectors**
476
+ #
456
477
  # With AS2, you can send files by calling `StartFileTransfer` and
457
478
  # specifying the file paths in the request parameter, `SendFilePaths`.
458
479
  # We use the file’s parent directory (for example, for
@@ -472,6 +493,14 @@ module Aws::Transfer
472
493
  # key instead of the Amazon Web Services managed key in Secrets
473
494
  # Manager, then the role also needs the `kms:Decrypt` permission for
474
495
  # that key.
496
+ #
497
+ # **For SFTP connectors**
498
+ #
499
+ # Make sure that the access role provides read and write access to the
500
+ # parent directory of the file location that's used in the
501
+ # `StartFileTransfer` request. Additionally, make sure that the role
502
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
503
+ # Manager.
475
504
  # @return [String]
476
505
  #
477
506
  # @!attribute [rw] logging_role
@@ -486,6 +515,11 @@ module Aws::Transfer
486
515
  # Tags are metadata attached to connectors for any purpose.
487
516
  # @return [Array<Types::Tag>]
488
517
  #
518
+ # @!attribute [rw] sftp_config
519
+ # A structure that contains the parameters for an SFTP connector
520
+ # object.
521
+ # @return [Types::SftpConnectorConfig]
522
+ #
489
523
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateConnectorRequest AWS API Documentation
490
524
  #
491
525
  class CreateConnectorRequest < Struct.new(
@@ -493,7 +527,8 @@ module Aws::Transfer
493
527
  :as_2_config,
494
528
  :access_role,
495
529
  :logging_role,
496
- :tags)
530
+ :tags,
531
+ :sftp_config)
497
532
  SENSITIVE = []
498
533
  include Aws::Structure
499
534
  end
@@ -931,7 +966,8 @@ module Aws::Transfer
931
966
  # In most cases, you can use this value instead of the session policy
932
967
  # to lock your user down to the designated home directory
933
968
  # ("`chroot`"). To do this, you can set `Entry` to `/` and set
934
- # `Target` to the HomeDirectory parameter value.
969
+ # `Target` to the value the user should see for their home directory
970
+ # when they log in.
935
971
  #
936
972
  # The following is an `Entry` and `Target` pair example for `chroot`.
937
973
  #
@@ -1909,6 +1945,12 @@ module Aws::Transfer
1909
1945
  # @return [String]
1910
1946
  #
1911
1947
  # @!attribute [rw] access_role
1948
+ # Connectors are used to send files using either the AS2 or SFTP
1949
+ # protocol. For the access role, provide the Amazon Resource Name
1950
+ # (ARN) of the Identity and Access Management role to use.
1951
+ #
1952
+ # **For AS2 connectors**
1953
+ #
1912
1954
  # With AS2, you can send files by calling `StartFileTransfer` and
1913
1955
  # specifying the file paths in the request parameter, `SendFilePaths`.
1914
1956
  # We use the file’s parent directory (for example, for
@@ -1928,6 +1970,14 @@ module Aws::Transfer
1928
1970
  # key instead of the Amazon Web Services managed key in Secrets
1929
1971
  # Manager, then the role also needs the `kms:Decrypt` permission for
1930
1972
  # that key.
1973
+ #
1974
+ # **For SFTP connectors**
1975
+ #
1976
+ # Make sure that the access role provides read and write access to the
1977
+ # parent directory of the file location that's used in the
1978
+ # `StartFileTransfer` request. Additionally, make sure that the role
1979
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
1980
+ # Manager.
1931
1981
  # @return [String]
1932
1982
  #
1933
1983
  # @!attribute [rw] tags
@@ -2050,14 +2100,21 @@ module Aws::Transfer
2050
2100
  # @return [String]
2051
2101
  #
2052
2102
  # @!attribute [rw] url
2053
- # The URL of the partner's AS2 endpoint.
2103
+ # The URL of the partner's AS2 or SFTP endpoint.
2054
2104
  # @return [String]
2055
2105
  #
2056
2106
  # @!attribute [rw] as_2_config
2057
- # A structure that contains the parameters for a connector object.
2107
+ # A structure that contains the parameters for an AS2 connector
2108
+ # object.
2058
2109
  # @return [Types::As2ConnectorConfig]
2059
2110
  #
2060
2111
  # @!attribute [rw] access_role
2112
+ # Connectors are used to send files using either the AS2 or SFTP
2113
+ # protocol. For the access role, provide the Amazon Resource Name
2114
+ # (ARN) of the Identity and Access Management role to use.
2115
+ #
2116
+ # **For AS2 connectors**
2117
+ #
2061
2118
  # With AS2, you can send files by calling `StartFileTransfer` and
2062
2119
  # specifying the file paths in the request parameter, `SendFilePaths`.
2063
2120
  # We use the file’s parent directory (for example, for
@@ -2077,6 +2134,14 @@ module Aws::Transfer
2077
2134
  # key instead of the Amazon Web Services managed key in Secrets
2078
2135
  # Manager, then the role also needs the `kms:Decrypt` permission for
2079
2136
  # that key.
2137
+ #
2138
+ # **For SFTP connectors**
2139
+ #
2140
+ # Make sure that the access role provides read and write access to the
2141
+ # parent directory of the file location that's used in the
2142
+ # `StartFileTransfer` request. Additionally, make sure that the role
2143
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
2144
+ # Manager.
2080
2145
  # @return [String]
2081
2146
  #
2082
2147
  # @!attribute [rw] logging_role
@@ -2090,6 +2155,11 @@ module Aws::Transfer
2090
2155
  # Key-value pairs that can be used to group and search for connectors.
2091
2156
  # @return [Array<Types::Tag>]
2092
2157
  #
2158
+ # @!attribute [rw] sftp_config
2159
+ # A structure that contains the parameters for an SFTP connector
2160
+ # object.
2161
+ # @return [Types::SftpConnectorConfig]
2162
+ #
2093
2163
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribedConnector AWS API Documentation
2094
2164
  #
2095
2165
  class DescribedConnector < Struct.new(
@@ -2099,7 +2169,8 @@ module Aws::Transfer
2099
2169
  :as_2_config,
2100
2170
  :access_role,
2101
2171
  :logging_role,
2102
- :tags)
2172
+ :tags,
2173
+ :sftp_config)
2103
2174
  SENSITIVE = []
2104
2175
  include Aws::Structure
2105
2176
  end
@@ -4018,7 +4089,7 @@ module Aws::Transfer
4018
4089
  # @return [String]
4019
4090
  #
4020
4091
  # @!attribute [rw] url
4021
- # The URL of the partner's AS2 endpoint.
4092
+ # The URL of the partner's AS2 or SFTP endpoint.
4022
4093
  # @return [String]
4023
4094
  #
4024
4095
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListedConnector AWS API Documentation
@@ -4702,6 +4773,44 @@ module Aws::Transfer
4702
4773
  include Aws::Structure
4703
4774
  end
4704
4775
 
4776
+ # Contains the details for an SFTP connector object. The connector
4777
+ # object is used for transferring files to and from a partner's SFTP
4778
+ # server.
4779
+ #
4780
+ # @!attribute [rw] user_secret_id
4781
+ # The identifiers for the secrets (in Amazon Web Services Secrets
4782
+ # Manager) that contain the SFTP user's private keys or passwords.
4783
+ # @return [String]
4784
+ #
4785
+ # @!attribute [rw] trusted_host_keys
4786
+ # The public portion of the host key, or keys, that are used to
4787
+ # authenticate the user to the external server to which you are
4788
+ # connecting. You can use the `ssh-keyscan` command against the SFTP
4789
+ # server to retrieve the necessary key.
4790
+ #
4791
+ # The three standard SSH public key format elements are `<key type>`,
4792
+ # `<body base64>`, and an optional `<comment>`, with spaces between
4793
+ # each element.
4794
+ #
4795
+ # For the trusted host key, Transfer Family accepts RSA and ECDSA
4796
+ # keys.
4797
+ #
4798
+ # * For RSA keys, the key type is `ssh-rsa`.
4799
+ #
4800
+ # * For ECDSA keys, the key type is either `ecdsa-sha2-nistp256`,
4801
+ # `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`, depending on the
4802
+ # size of the key you generated.
4803
+ # @return [Array<String>]
4804
+ #
4805
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/SftpConnectorConfig AWS API Documentation
4806
+ #
4807
+ class SftpConnectorConfig < Struct.new(
4808
+ :user_secret_id,
4809
+ :trusted_host_keys)
4810
+ SENSITIVE = []
4811
+ include Aws::Structure
4812
+ end
4813
+
4705
4814
  # Provides information about the public Secure Shell (SSH) key that is
4706
4815
  # associated with a Transfer Family user for the specific file transfer
4707
4816
  # protocol-enabled server (as identified by `ServerId`). The information
@@ -4741,22 +4850,48 @@ module Aws::Transfer
4741
4850
  # @return [String]
4742
4851
  #
4743
4852
  # @!attribute [rw] send_file_paths
4744
- # An array of strings. Each string represents the absolute path for
4745
- # one outbound file transfer. For example, `
4746
- # DOC-EXAMPLE-BUCKET/myfile.txt `.
4853
+ # One or more source paths for the Transfer Family server. Each string
4854
+ # represents a source file path for one outbound file transfer. For
4855
+ # example, ` DOC-EXAMPLE-BUCKET/myfile.txt `.
4856
+ #
4857
+ # <note markdown="1"> Replace ` DOC-EXAMPLE-BUCKET `with one of your actual buckets.
4858
+ #
4859
+ # </note>
4860
+ # @return [Array<String>]
4861
+ #
4862
+ # @!attribute [rw] retrieve_file_paths
4863
+ # One or more source paths for the partner's SFTP server. Each string
4864
+ # represents a source file path for one inbound file transfer.
4747
4865
  # @return [Array<String>]
4748
4866
  #
4867
+ # @!attribute [rw] local_directory_path
4868
+ # For an inbound transfer, the `LocaDirectoryPath` specifies the
4869
+ # destination for one or more files that are transferred from the
4870
+ # partner's SFTP server.
4871
+ # @return [String]
4872
+ #
4873
+ # @!attribute [rw] remote_directory_path
4874
+ # For an outbound transfer, the `RemoteDirectoryPath` specifies the
4875
+ # destination for one or more files that are transferred to the
4876
+ # partner's SFTP server. If you don't specify a
4877
+ # `RemoteDirectoryPath`, the destination for transferred files is the
4878
+ # SFTP user's home directory.
4879
+ # @return [String]
4880
+ #
4749
4881
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StartFileTransferRequest AWS API Documentation
4750
4882
  #
4751
4883
  class StartFileTransferRequest < Struct.new(
4752
4884
  :connector_id,
4753
- :send_file_paths)
4885
+ :send_file_paths,
4886
+ :retrieve_file_paths,
4887
+ :local_directory_path,
4888
+ :remote_directory_path)
4754
4889
  SENSITIVE = []
4755
4890
  include Aws::Structure
4756
4891
  end
4757
4892
 
4758
4893
  # @!attribute [rw] transfer_id
4759
- # Returns the unique identifier for this file transfer.
4894
+ # Returns the unique identifier for the file transfer.
4760
4895
  # @return [String]
4761
4896
  #
4762
4897
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StartFileTransferResponse AWS API Documentation
@@ -4872,6 +5007,56 @@ module Aws::Transfer
4872
5007
  include Aws::Structure
4873
5008
  end
4874
5009
 
5010
+ # @!attribute [rw] connector_id
5011
+ # The unique identifier for the connector.
5012
+ # @return [String]
5013
+ #
5014
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TestConnectionRequest AWS API Documentation
5015
+ #
5016
+ class TestConnectionRequest < Struct.new(
5017
+ :connector_id)
5018
+ SENSITIVE = []
5019
+ include Aws::Structure
5020
+ end
5021
+
5022
+ # @!attribute [rw] connector_id
5023
+ # Returns the identifier of the connector object that you are testing.
5024
+ # @return [String]
5025
+ #
5026
+ # @!attribute [rw] status
5027
+ # Returns `OK` for successful test, or `ERROR` if the test fails.
5028
+ # @return [String]
5029
+ #
5030
+ # @!attribute [rw] status_message
5031
+ # Returns `Connection succeeded` if the test is successful. Or,
5032
+ # returns a descriptive error message if the test fails. The following
5033
+ # list provides the details for some error messages and
5034
+ # troubleshooting steps for each.
5035
+ #
5036
+ # * **Unable to access secrets manager**: Verify that your secret name
5037
+ # aligns with the one in Transfer Role permissions.
5038
+ #
5039
+ # * **Unknown Host/Connection failed**: Verify the server URL in the
5040
+ # connector configuration , and verify that the login credentials
5041
+ # work successfully outside of the connector.
5042
+ #
5043
+ # * **Private key not found**: Verify that the secret exists and is
5044
+ # formatted correctly.
5045
+ #
5046
+ # * **Invalid trusted host keys**: Verify that the trusted host key in
5047
+ # the connector configuration matches the `ssh-keyscan` output.
5048
+ # @return [String]
5049
+ #
5050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TestConnectionResponse AWS API Documentation
5051
+ #
5052
+ class TestConnectionResponse < Struct.new(
5053
+ :connector_id,
5054
+ :status,
5055
+ :status_message)
5056
+ SENSITIVE = []
5057
+ include Aws::Structure
5058
+ end
5059
+
4875
5060
  # @!attribute [rw] server_id
4876
5061
  # A system-assigned identifier for a specific server. That server's
4877
5062
  # user authentication method is tested with a user name and password.
@@ -5171,6 +5356,12 @@ module Aws::Transfer
5171
5356
  # @return [String]
5172
5357
  #
5173
5358
  # @!attribute [rw] access_role
5359
+ # Connectors are used to send files using either the AS2 or SFTP
5360
+ # protocol. For the access role, provide the Amazon Resource Name
5361
+ # (ARN) of the Identity and Access Management role to use.
5362
+ #
5363
+ # **For AS2 connectors**
5364
+ #
5174
5365
  # With AS2, you can send files by calling `StartFileTransfer` and
5175
5366
  # specifying the file paths in the request parameter, `SendFilePaths`.
5176
5367
  # We use the file’s parent directory (for example, for
@@ -5190,6 +5381,14 @@ module Aws::Transfer
5190
5381
  # key instead of the Amazon Web Services managed key in Secrets
5191
5382
  # Manager, then the role also needs the `kms:Decrypt` permission for
5192
5383
  # that key.
5384
+ #
5385
+ # **For SFTP connectors**
5386
+ #
5387
+ # Make sure that the access role provides read and write access to the
5388
+ # parent directory of the file location that's used in the
5389
+ # `StartFileTransfer` request. Additionally, make sure that the role
5390
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
5391
+ # Manager.
5193
5392
  # @return [String]
5194
5393
  #
5195
5394
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateAgreementRequest AWS API Documentation
@@ -5266,14 +5465,21 @@ module Aws::Transfer
5266
5465
  # @return [String]
5267
5466
  #
5268
5467
  # @!attribute [rw] url
5269
- # The URL of the partner's AS2 endpoint.
5468
+ # The URL of the partner's AS2 or SFTP endpoint.
5270
5469
  # @return [String]
5271
5470
  #
5272
5471
  # @!attribute [rw] as_2_config
5273
- # A structure that contains the parameters for a connector object.
5472
+ # A structure that contains the parameters for an AS2 connector
5473
+ # object.
5274
5474
  # @return [Types::As2ConnectorConfig]
5275
5475
  #
5276
5476
  # @!attribute [rw] access_role
5477
+ # Connectors are used to send files using either the AS2 or SFTP
5478
+ # protocol. For the access role, provide the Amazon Resource Name
5479
+ # (ARN) of the Identity and Access Management role to use.
5480
+ #
5481
+ # **For AS2 connectors**
5482
+ #
5277
5483
  # With AS2, you can send files by calling `StartFileTransfer` and
5278
5484
  # specifying the file paths in the request parameter, `SendFilePaths`.
5279
5485
  # We use the file’s parent directory (for example, for
@@ -5293,6 +5499,14 @@ module Aws::Transfer
5293
5499
  # key instead of the Amazon Web Services managed key in Secrets
5294
5500
  # Manager, then the role also needs the `kms:Decrypt` permission for
5295
5501
  # that key.
5502
+ #
5503
+ # **For SFTP connectors**
5504
+ #
5505
+ # Make sure that the access role provides read and write access to the
5506
+ # parent directory of the file location that's used in the
5507
+ # `StartFileTransfer` request. Additionally, make sure that the role
5508
+ # provides `secretsmanager:GetSecretValue` permission to Secrets
5509
+ # Manager.
5296
5510
  # @return [String]
5297
5511
  #
5298
5512
  # @!attribute [rw] logging_role
@@ -5302,6 +5516,11 @@ module Aws::Transfer
5302
5516
  # CloudWatch logs.
5303
5517
  # @return [String]
5304
5518
  #
5519
+ # @!attribute [rw] sftp_config
5520
+ # A structure that contains the parameters for an SFTP connector
5521
+ # object.
5522
+ # @return [Types::SftpConnectorConfig]
5523
+ #
5305
5524
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateConnectorRequest AWS API Documentation
5306
5525
  #
5307
5526
  class UpdateConnectorRequest < Struct.new(
@@ -5309,7 +5528,8 @@ module Aws::Transfer
5309
5528
  :url,
5310
5529
  :as_2_config,
5311
5530
  :access_role,
5312
- :logging_role)
5531
+ :logging_role,
5532
+ :sftp_config)
5313
5533
  SENSITIVE = []
5314
5534
  include Aws::Structure
5315
5535
  end
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-transfer/customizations'
53
53
  # @!group service
54
54
  module Aws::Transfer
55
55
 
56
- GEM_VERSION = '1.75.0'
56
+ GEM_VERSION = '1.77.0'
57
57
 
58
58
  end
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.75.0
4
+ version: 1.77.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: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core