Skip to content

Commit 2951a5b

Browse files
author
awstools
committed
feat(client-transfer): SFTP connectors now support routing connections via customers' VPC. This enables connections to remote servers that are only accessible in a customer's VPC environment, and to servers that are accessible over the internet but need connections coming from an IP address in a customer VPC's CIDR range.
1 parent d7579fe commit 2951a5b

File tree

7 files changed

+508
-27
lines changed

7 files changed

+508
-27
lines changed

clients/client-transfer/src/commands/CreateConnectorCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface CreateConnectorCommandOutput extends CreateConnectorResponse, _
3838
* const config = {}; // type is TransferClientConfig
3939
* const client = new TransferClient(config);
4040
* const input = { // CreateConnectorRequest
41-
* Url: "STRING_VALUE", // required
41+
* Url: "STRING_VALUE",
4242
* As2Config: { // As2ConnectorConfig
4343
* LocalProfileId: "STRING_VALUE",
4444
* PartnerProfileId: "STRING_VALUE",
@@ -67,6 +67,12 @@ export interface CreateConnectorCommandOutput extends CreateConnectorResponse, _
6767
* MaxConcurrentConnections: Number("int"),
6868
* },
6969
* SecurityPolicyName: "STRING_VALUE",
70+
* EgressConfig: { // ConnectorEgressConfig Union: only one key present
71+
* VpcLattice: { // ConnectorVpcLatticeEgressConfig
72+
* ResourceConfigurationArn: "STRING_VALUE", // required
73+
* PortNumber: Number("int"),
74+
* },
75+
* },
7076
* };
7177
* const command = new CreateConnectorCommand(input);
7278
* const response = await client.send(command);

clients/client-transfer/src/commands/DescribeConnectorCommand.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ export interface DescribeConnectorCommandOutput extends DescribeConnectorRespons
7878
* // "STRING_VALUE",
7979
* // ],
8080
* // SecurityPolicyName: "STRING_VALUE",
81+
* // EgressConfig: { // DescribedConnectorEgressConfig Union: only one key present
82+
* // VpcLattice: { // DescribedConnectorVpcLatticeEgressConfig
83+
* // ResourceConfigurationArn: "STRING_VALUE", // required
84+
* // PortNumber: Number("int"),
85+
* // },
86+
* // },
87+
* // EgressType: "SERVICE_MANAGED" || "VPC_LATTICE", // required
88+
* // ErrorMessage: "STRING_VALUE",
89+
* // Status: "ACTIVE" || "ERRORED" || "PENDING", // required
8190
* // },
8291
* // };
8392
*

clients/client-transfer/src/commands/UpdateConnectorCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export interface UpdateConnectorCommandOutput extends UpdateConnectorResponse, _
6262
* MaxConcurrentConnections: Number("int"),
6363
* },
6464
* SecurityPolicyName: "STRING_VALUE",
65+
* EgressConfig: { // UpdateConnectorEgressConfig Union: only one key present
66+
* VpcLattice: { // UpdateConnectorVpcLatticeEgressConfig
67+
* ResourceConfigurationArn: "STRING_VALUE",
68+
* PortNumber: Number("int"),
69+
* },
70+
* },
6571
* };
6672
* const command = new UpdateConnectorCommand(input);
6773
* const response = await client.send(command);

clients/client-transfer/src/endpoint/ruleset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ d="error",
1717
e="endpoint",
1818
f="tree",
1919
g="PartitionResult",
20-
h={[s]:false,"type":"String"},
21-
i={[s]:true,"default":false,"type":"Boolean"},
20+
h={[s]:false,"type":"string"},
21+
i={[s]:true,"default":false,"type":"boolean"},
2222
j={[v]:"Endpoint"},
2323
k={[t]:c,[u]:[{[v]:"UseFIPS"},true]},
2424
l={[t]:c,[u]:[{[v]:"UseDualStack"},true]},

clients/client-transfer/src/models/models_0.ts

Lines changed: 247 additions & 10 deletions
Large diffs are not rendered by default.

clients/client-transfer/src/protocols/Aws_json1_1.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ import {
128128
As2ConnectorConfig,
129129
As2Transport,
130130
ConflictException,
131+
ConnectorEgressConfig,
132+
ConnectorVpcLatticeEgressConfig,
131133
CopyStepDetails,
132134
CreateAccessRequest,
133135
CreateAgreementRequest,
@@ -232,7 +234,9 @@ import {
232234
UpdateAccessRequest,
233235
UpdateAgreementRequest,
234236
UpdateCertificateRequest,
237+
UpdateConnectorEgressConfig,
235238
UpdateConnectorRequest,
239+
UpdateConnectorVpcLatticeEgressConfig,
236240
UpdateHostKeyRequest,
237241
UpdateProfileRequest,
238242
UpdateServerRequest,
@@ -2737,6 +2741,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeCont
27372741

27382742
// se_CertificateIds omitted.
27392743

2744+
// se_ConnectorEgressConfig omitted.
2745+
2746+
// se_ConnectorVpcLatticeEgressConfig omitted.
2747+
27402748
// se_CopyStepDetails omitted.
27412749

27422750
// se_CreateAccessRequest omitted.
@@ -2953,8 +2961,12 @@ const se_UpdateCertificateRequest = (input: UpdateCertificateRequest, context: _
29532961
});
29542962
};
29552963

2964+
// se_UpdateConnectorEgressConfig omitted.
2965+
29562966
// se_UpdateConnectorRequest omitted.
29572967

2968+
// se_UpdateConnectorVpcLatticeEgressConfig omitted.
2969+
29582970
// se_UpdateHostKeyRequest omitted.
29592971

29602972
// se_UpdateProfileRequest omitted.
@@ -3078,6 +3090,10 @@ const de_DescribedCertificate = (output: any, context: __SerdeContext): Describe
30783090

30793091
// de_DescribedConnector omitted.
30803092

3093+
// de_DescribedConnectorEgressConfig omitted.
3094+
3095+
// de_DescribedConnectorVpcLatticeEgressConfig omitted.
3096+
30813097
// de_DescribedExecution omitted.
30823098

30833099
/**

0 commit comments

Comments
 (0)