Skip to content

Commit

Permalink
feat(client-transfer): Add additional operations to throw ThrottlingE…
Browse files Browse the repository at this point in the history
…xceptions
  • Loading branch information
awstools committed Dec 27, 2022
1 parent bd42342 commit 4a66ecf
Show file tree
Hide file tree
Showing 17 changed files with 344 additions and 434 deletions.
16 changes: 0 additions & 16 deletions clients/client-transfer/src/Transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,6 @@ export class Transfer extends TransferClient {

/**
* <p>Deletes the file transfer protocol-enabled server that you specify.</p>
*
* <p>No response returns from this operation.</p>
*/
public deleteServer(
Expand Down Expand Up @@ -766,9 +765,7 @@ export class Transfer extends TransferClient {

/**
* <p>Deletes the user belonging to a file transfer protocol-enabled server you specify.</p>
*
* <p>No response returns from this operation.</p>
*
* <note>
* <p>When you delete a user from a server, the user's information is lost.</p>
* </note>
Expand Down Expand Up @@ -832,7 +829,6 @@ export class Transfer extends TransferClient {
* <p>Describes the access that is assigned to the specific file transfer protocol-enabled
* server, as identified by its <code>ServerId</code> property and its
* <code>ExternalId</code>.</p>
*
* <p>The response from this call returns the properties of the access that is associated with
* the <code>ServerId</code> value that was specified.</p>
*/
Expand Down Expand Up @@ -1096,7 +1092,6 @@ export class Transfer extends TransferClient {
/**
* <p>Describes a file transfer protocol-enabled server that you specify by passing the
* <code>ServerId</code> parameter.</p>
*
* <p>The response contains a description of a server's properties. When you set
* <code>EndpointType</code> to VPC, the response will contain the
* <code>EndpointDetails</code>.</p>
Expand Down Expand Up @@ -1133,7 +1128,6 @@ export class Transfer extends TransferClient {
/**
* <p>Describes the user assigned to the specific file transfer protocol-enabled server, as
* identified by its <code>ServerId</code> property.</p>
*
* <p>The response from this call returns the properties of the user associated with the
* <code>ServerId</code> value that was specified.</p>
*/
Expand Down Expand Up @@ -1266,7 +1260,6 @@ export class Transfer extends TransferClient {
* <p>Adds a Secure Shell (SSH) public key to a user account identified by a
* <code>UserName</code> value assigned to the specific file transfer protocol-enabled server,
* identified by <code>ServerId</code>.</p>
*
* <p>The response returns the <code>UserName</code> value, the <code>ServerId</code> value, and
* the name of the <code>SshPublicKeyId</code>.</p>
*/
Expand Down Expand Up @@ -1751,11 +1744,9 @@ export class Transfer extends TransferClient {
* <p>Changes the state of a file transfer protocol-enabled server from <code>OFFLINE</code> to
* <code>ONLINE</code>. It has no impact on a server that is already <code>ONLINE</code>. An
* <code>ONLINE</code> server can accept and process file transfer jobs.</p>
*
* <p>The state of <code>STARTING</code> indicates that the server is in an intermediate state,
* either not fully able to respond, or not fully online. The values of <code>START_FAILED</code>
* can indicate an error condition.</p>
*
* <p>No response is returned from this call.</p>
*/
public startServer(args: StartServerCommandInput, options?: __HttpHandlerOptions): Promise<StartServerCommandOutput>;
Expand Down Expand Up @@ -1786,16 +1777,13 @@ export class Transfer extends TransferClient {
* <code>OFFLINE</code>. An <code>OFFLINE</code> server cannot accept and process file transfer
* jobs. Information tied to your server, such as server and user properties, are not affected by
* stopping your server.</p>
*
* <note>
* <p>Stopping the server does not reduce or impact your file transfer protocol endpoint
* billing; you must delete the server to stop being billed.</p>
* </note>
*
* <p>The state of <code>STOPPING</code> indicates that the server is in an intermediate state,
* either not fully able to respond, or not fully offline. The values of <code>STOP_FAILED</code>
* can indicate an error condition.</p>
*
* <p>No response is returned from this call.</p>
*/
public stopServer(args: StopServerCommandInput, options?: __HttpHandlerOptions): Promise<StopServerCommandOutput>;
Expand Down Expand Up @@ -1824,7 +1812,6 @@ export class Transfer extends TransferClient {
/**
* <p>Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
* Resources are users, servers, roles, and other entities.</p>
*
* <p>There is no response returned from this call.</p>
*/
public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
Expand Down Expand Up @@ -1923,7 +1910,6 @@ export class Transfer extends TransferClient {
/**
* <p>Detaches a key-value pair from a resource, as identified by its Amazon Resource Name
* (ARN). Resources are users, servers, roles, and other entities.</p>
*
* <p>No response is returned from this call.</p>
*/
public untagResource(
Expand Down Expand Up @@ -2155,7 +2141,6 @@ export class Transfer extends TransferClient {
/**
* <p>Updates the file transfer protocol-enabled server's properties after that server has
* been created.</p>
*
* <p>The <code>UpdateServer</code> call returns the <code>ServerId</code> of the server you
* updated.</p>
*/
Expand Down Expand Up @@ -2189,7 +2174,6 @@ export class Transfer extends TransferClient {
* <p>Assigns new properties to a user. Parameters you pass modify any or all of the following:
* the home directory, role, and policy for the <code>UserName</code> and <code>ServerId</code>
* you specify.</p>
*
* <p>The response returns the <code>ServerId</code> and the <code>UserName</code> for the
* updated user.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export interface DeleteServerCommandOutput extends __MetadataBearer {}

/**
* <p>Deletes the file transfer protocol-enabled server that you specify.</p>
*
* <p>No response returns from this operation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
2 changes: 0 additions & 2 deletions clients/client-transfer/src/commands/DeleteUserCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export interface DeleteUserCommandOutput extends __MetadataBearer {}

/**
* <p>Deletes the user belonging to a file transfer protocol-enabled server you specify.</p>
*
* <p>No response returns from this operation.</p>
*
* <note>
* <p>When you delete a user from a server, the user's information is lost.</p>
* </note>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export interface DescribeAccessCommandOutput extends DescribeAccessResponse, __M
* <p>Describes the access that is assigned to the specific file transfer protocol-enabled
* server, as identified by its <code>ServerId</code> property and its
* <code>ExternalId</code>.</p>
*
* <p>The response from this call returns the properties of the access that is associated with
* the <code>ServerId</code> value that was specified.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export interface DescribeServerCommandOutput extends DescribeServerResponse, __M
/**
* <p>Describes a file transfer protocol-enabled server that you specify by passing the
* <code>ServerId</code> parameter.</p>
*
* <p>The response contains a description of a server's properties. When you set
* <code>EndpointType</code> to VPC, the response will contain the
* <code>EndpointDetails</code>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export interface DescribeUserCommandOutput extends DescribeUserResponse, __Metad
/**
* <p>Describes the user assigned to the specific file transfer protocol-enabled server, as
* identified by its <code>ServerId</code> property.</p>
*
* <p>The response from this call returns the properties of the user associated with the
* <code>ServerId</code> value that was specified.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export interface ImportSshPublicKeyCommandOutput extends ImportSshPublicKeyRespo
* <p>Adds a Secure Shell (SSH) public key to a user account identified by a
* <code>UserName</code> value assigned to the specific file transfer protocol-enabled server,
* identified by <code>ServerId</code>.</p>
*
* <p>The response returns the <code>UserName</code> value, the <code>ServerId</code> value, and
* the name of the <code>SshPublicKeyId</code>.</p>
* @example
Expand Down
2 changes: 0 additions & 2 deletions clients/client-transfer/src/commands/StartServerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ export interface StartServerCommandOutput extends __MetadataBearer {}
* <p>Changes the state of a file transfer protocol-enabled server from <code>OFFLINE</code> to
* <code>ONLINE</code>. It has no impact on a server that is already <code>ONLINE</code>. An
* <code>ONLINE</code> server can accept and process file transfer jobs.</p>
*
* <p>The state of <code>STARTING</code> indicates that the server is in an intermediate state,
* either not fully able to respond, or not fully online. The values of <code>START_FAILED</code>
* can indicate an error condition.</p>
*
* <p>No response is returned from this call.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
3 changes: 0 additions & 3 deletions clients/client-transfer/src/commands/StopServerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ export interface StopServerCommandOutput extends __MetadataBearer {}
* <code>OFFLINE</code>. An <code>OFFLINE</code> server cannot accept and process file transfer
* jobs. Information tied to your server, such as server and user properties, are not affected by
* stopping your server.</p>
*
* <note>
* <p>Stopping the server does not reduce or impact your file transfer protocol endpoint
* billing; you must delete the server to stop being billed.</p>
* </note>
*
* <p>The state of <code>STOPPING</code> indicates that the server is in an intermediate state,
* either not fully able to respond, or not fully offline. The values of <code>STOP_FAILED</code>
* can indicate an error condition.</p>
*
* <p>No response is returned from this call.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
1 change: 0 additions & 1 deletion clients/client-transfer/src/commands/TagResourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export interface TagResourceCommandOutput extends __MetadataBearer {}
/**
* <p>Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
* Resources are users, servers, roles, and other entities.</p>
*
* <p>There is no response returned from this call.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {}
/**
* <p>Detaches a key-value pair from a resource, as identified by its Amazon Resource Name
* (ARN). Resources are users, servers, roles, and other entities.</p>
*
* <p>No response is returned from this call.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export interface UpdateServerCommandOutput extends UpdateServerResponse, __Metad
/**
* <p>Updates the file transfer protocol-enabled server's properties after that server has
* been created.</p>
*
* <p>The <code>UpdateServer</code> call returns the <code>ServerId</code> of the server you
* updated.</p>
* @example
Expand Down
1 change: 0 additions & 1 deletion clients/client-transfer/src/commands/UpdateUserCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB
* <p>Assigns new properties to a user. Parameters you pass modify any or all of the following:
* the home directory, role, and policy for the <code>UserName</code> and <code>ServerId</code>
* you specify.</p>
*
* <p>The response returns the <code>ServerId</code> and the <code>UserName</code> for the
* updated user.</p>
* @example
Expand Down
23 changes: 11 additions & 12 deletions clients/client-transfer/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/transfer.json */

const r="fn",
s="argv",
t="ref";
const q="fn",
r="argv",
s="ref";
const a=true,
b=false,
c="String",
Expand All @@ -17,14 +17,13 @@ e="tree",
f="error",
g="endpoint",
h={"required":true,"default":false,"type":"Boolean"},
i={[t]:"Endpoint"},
j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
i={[s]:"Endpoint"},
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
l={},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]},
n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsDualStack"]}]},
o=[i],
p=[j],
q=[k];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://transfer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
o=[j],
p=[k];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://transfer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 4a66ecf

Please sign in to comment.