Skip to content

Commit

Permalink
feat(client-transfer): This release adds a new parameter StructuredLo…
Browse files Browse the repository at this point in the history
…gDestinations to CreateServer, UpdateServer APIs.
  • Loading branch information
awstools committed Jun 21, 2023
1 parent 5463a95 commit 8f0033b
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/client-transfer/src/commands/CreateServerCommand.ts
Expand Up @@ -107,6 +107,9 @@ export interface CreateServerCommandOutput extends CreateServerResponse, __Metad
* },
* ],
* },
* StructuredLogDestinations: [ // StructuredLogDestinations
* "STRING_VALUE",
* ],
* };
* const command = new CreateServerCommand(input);
* const response = await client.send(command);
Expand Down
3 changes: 3 additions & 0 deletions clients/client-transfer/src/commands/DescribeServerCommand.ts
Expand Up @@ -118,6 +118,9 @@ export interface DescribeServerCommandOutput extends DescribeServerResponse, __M
* // },
* // ],
* // },
* // StructuredLogDestinations: [ // StructuredLogDestinations
* // "STRING_VALUE",
* // ],
* // },
* // };
*
Expand Down
3 changes: 3 additions & 0 deletions clients/client-transfer/src/commands/UpdateServerCommand.ts
Expand Up @@ -100,6 +100,9 @@ export interface UpdateServerCommandOutput extends UpdateServerResponse, __Metad
* },
* ],
* },
* StructuredLogDestinations: [ // StructuredLogDestinations
* "STRING_VALUE",
* ],
* };
* const command = new UpdateServerCommand(input);
* const response = await client.send(command);
Expand Down
48 changes: 48 additions & 0 deletions clients/client-transfer/src/models/models_0.ts
Expand Up @@ -1537,6 +1537,22 @@ export interface CreateServerRequest {
* while the file is still being uploaded.</p>
*/
WorkflowDetails?: WorkflowDetails;

/**
* <p>Specifies the log groups to which your server logs are sent.</p>
* <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p>
* <p>
* <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
* </p>
* <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
* </p>
* <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty
* value for this parameter in an <code>update-server</code> call. For example:</p>
* <p>
* <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
* </p>
*/
StructuredLogDestinations?: string[];
}

/**
Expand Down Expand Up @@ -3320,6 +3336,22 @@ export interface DescribedServer {
* while the file is still being uploaded.</p>
*/
WorkflowDetails?: WorkflowDetails;

/**
* <p>Specifies the log groups to which your server logs are sent.</p>
* <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p>
* <p>
* <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
* </p>
* <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
* </p>
* <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty
* value for this parameter in an <code>update-server</code> call. For example:</p>
* <p>
* <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
* </p>
*/
StructuredLogDestinations?: string[];
}

/**
Expand Down Expand Up @@ -5489,6 +5521,22 @@ export interface UpdateServerRequest {
* </p>
*/
WorkflowDetails?: WorkflowDetails;

/**
* <p>Specifies the log groups to which your server logs are sent.</p>
* <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p>
* <p>
* <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
* </p>
* <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
* </p>
* <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty
* value for this parameter in an <code>update-server</code> call. For example:</p>
* <p>
* <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
* </p>
*/
StructuredLogDestinations?: string[];
}

/**
Expand Down
4 changes: 4 additions & 0 deletions clients/client-transfer/src/protocols/Aws_json1_1.ts
Expand Up @@ -4532,6 +4532,8 @@ const se_ImportCertificateRequest = (input: ImportCertificateRequest, context: _

// se_StopServerRequest omitted.

// se_StructuredLogDestinations omitted.

// se_SubnetIds omitted.

// se_Tag omitted.
Expand Down Expand Up @@ -4955,6 +4957,8 @@ const de_SshPublicKeys = (output: any, context: __SerdeContext): SshPublicKey[]

// de_StartFileTransferResponse omitted.

// de_StructuredLogDestinations omitted.

// de_SubnetIds omitted.

// de_Tag omitted.
Expand Down
30 changes: 30 additions & 0 deletions codegen/sdk-codegen/aws-models/transfer.json
Expand Up @@ -891,6 +891,12 @@
"traits": {
"smithy.api#documentation": "<p>Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.</p>\n <p>In addition to a workflow to execute when a file is uploaded completely, <code>WorkflowDetails</code> can also contain a\n workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects\n while the file is still being uploaded.</p>"
}
},
"StructuredLogDestinations": {
"target": "com.amazonaws.transfer#StructuredLogDestinations",
"traits": {
"smithy.api#documentation": "<p>Specifies the log groups to which your server logs are sent.</p>\n <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p>\n <p>\n <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>\n </p>\n <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>\n </p>\n <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty\n value for this parameter in an <code>update-server</code> call. For example:</p>\n <p>\n <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>\n </p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3004,6 +3010,12 @@
"traits": {
"smithy.api#documentation": "<p>Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.</p>\n <p>In addition to a workflow to execute when a file is uploaded completely, <code>WorkflowDetails</code> can also contain a\n workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects\n while the file is still being uploaded.</p>"
}
},
"StructuredLogDestinations": {
"target": "com.amazonaws.transfer#StructuredLogDestinations",
"traits": {
"smithy.api#documentation": "<p>Specifies the log groups to which your server logs are sent.</p>\n <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p>\n <p>\n <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>\n </p>\n <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>\n </p>\n <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty\n value for this parameter in an <code>update-server</code> call. For example:</p>\n <p>\n <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>\n </p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -6657,6 +6669,18 @@
"smithy.api#input": {}
}
},
"com.amazonaws.transfer#StructuredLogDestinations": {
"type": "list",
"member": {
"target": "com.amazonaws.transfer#Arn"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 1
}
}
},
"com.amazonaws.transfer#SubnetId": {
"type": "string"
},
Expand Down Expand Up @@ -8853,6 +8877,12 @@
"traits": {
"smithy.api#documentation": "<p>Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.</p>\n <p>In addition to a workflow to execute when a file is uploaded completely, <code>WorkflowDetails</code> can also contain a\n workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when the server session disconnects\n while the file is still being uploaded.</p>\n <p>To remove an associated workflow from a server, you can provide an empty <code>OnUpload</code> object, as in the following example.</p>\n <p>\n <code>aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{\"OnUpload\":[]}'</code>\n </p>"
}
},
"StructuredLogDestinations": {
"target": "com.amazonaws.transfer#StructuredLogDestinations",
"traits": {
"smithy.api#documentation": "<p>Specifies the log groups to which your server logs are sent.</p>\n <p>To specify a log group, you must provide the ARN for an existing log group. In this case, the format of the log group is as follows:</p>\n <p>\n <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>\n </p>\n <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>\n </p>\n <p>If you have previously specified a log group for a server, you can clear it, and in effect turn off structured logging, by providing an empty\n value for this parameter in an <code>update-server</code> call. For example:</p>\n <p>\n <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>\n </p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 8f0033b

Please sign in to comment.