Skip to content

Commit 8f0033b

Browse files
author
awstools
committed
feat(client-transfer): This release adds a new parameter StructuredLogDestinations to CreateServer, UpdateServer APIs.
1 parent 5463a95 commit 8f0033b

File tree

6 files changed

+91
-0
lines changed

6 files changed

+91
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export interface CreateServerCommandOutput extends CreateServerResponse, __Metad
107107
* },
108108
* ],
109109
* },
110+
* StructuredLogDestinations: [ // StructuredLogDestinations
111+
* "STRING_VALUE",
112+
* ],
110113
* };
111114
* const command = new CreateServerCommand(input);
112115
* const response = await client.send(command);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ export interface DescribeServerCommandOutput extends DescribeServerResponse, __M
118118
* // },
119119
* // ],
120120
* // },
121+
* // StructuredLogDestinations: [ // StructuredLogDestinations
122+
* // "STRING_VALUE",
123+
* // ],
121124
* // },
122125
* // };
123126
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ export interface UpdateServerCommandOutput extends UpdateServerResponse, __Metad
100100
* },
101101
* ],
102102
* },
103+
* StructuredLogDestinations: [ // StructuredLogDestinations
104+
* "STRING_VALUE",
105+
* ],
103106
* };
104107
* const command = new UpdateServerCommand(input);
105108
* const response = await client.send(command);

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,22 @@ export interface CreateServerRequest {
15371537
* while the file is still being uploaded.</p>
15381538
*/
15391539
WorkflowDetails?: WorkflowDetails;
1540+
1541+
/**
1542+
* <p>Specifies the log groups to which your server logs are sent.</p>
1543+
* <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>
1544+
* <p>
1545+
* <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
1546+
* </p>
1547+
* <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
1548+
* </p>
1549+
* <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
1550+
* value for this parameter in an <code>update-server</code> call. For example:</p>
1551+
* <p>
1552+
* <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
1553+
* </p>
1554+
*/
1555+
StructuredLogDestinations?: string[];
15401556
}
15411557

15421558
/**
@@ -3320,6 +3336,22 @@ export interface DescribedServer {
33203336
* while the file is still being uploaded.</p>
33213337
*/
33223338
WorkflowDetails?: WorkflowDetails;
3339+
3340+
/**
3341+
* <p>Specifies the log groups to which your server logs are sent.</p>
3342+
* <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>
3343+
* <p>
3344+
* <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
3345+
* </p>
3346+
* <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
3347+
* </p>
3348+
* <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
3349+
* value for this parameter in an <code>update-server</code> call. For example:</p>
3350+
* <p>
3351+
* <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
3352+
* </p>
3353+
*/
3354+
StructuredLogDestinations?: string[];
33233355
}
33243356

33253357
/**
@@ -5489,6 +5521,22 @@ export interface UpdateServerRequest {
54895521
* </p>
54905522
*/
54915523
WorkflowDetails?: WorkflowDetails;
5524+
5525+
/**
5526+
* <p>Specifies the log groups to which your server logs are sent.</p>
5527+
* <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>
5528+
* <p>
5529+
* <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
5530+
* </p>
5531+
* <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
5532+
* </p>
5533+
* <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
5534+
* value for this parameter in an <code>update-server</code> call. For example:</p>
5535+
* <p>
5536+
* <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
5537+
* </p>
5538+
*/
5539+
StructuredLogDestinations?: string[];
54925540
}
54935541

54945542
/**

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4532,6 +4532,8 @@ const se_ImportCertificateRequest = (input: ImportCertificateRequest, context: _
45324532

45334533
// se_StopServerRequest omitted.
45344534

4535+
// se_StructuredLogDestinations omitted.
4536+
45354537
// se_SubnetIds omitted.
45364538

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

49564958
// de_StartFileTransferResponse omitted.
49574959

4960+
// de_StructuredLogDestinations omitted.
4961+
49584962
// de_SubnetIds omitted.
49594963

49604964
// de_Tag omitted.

codegen/sdk-codegen/aws-models/transfer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,12 @@
891891
"traits": {
892892
"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>"
893893
}
894+
},
895+
"StructuredLogDestinations": {
896+
"target": "com.amazonaws.transfer#StructuredLogDestinations",
897+
"traits": {
898+
"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>"
899+
}
894900
}
895901
},
896902
"traits": {
@@ -3004,6 +3010,12 @@
30043010
"traits": {
30053011
"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>"
30063012
}
3013+
},
3014+
"StructuredLogDestinations": {
3015+
"target": "com.amazonaws.transfer#StructuredLogDestinations",
3016+
"traits": {
3017+
"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>"
3018+
}
30073019
}
30083020
},
30093021
"traits": {
@@ -6657,6 +6669,18 @@
66576669
"smithy.api#input": {}
66586670
}
66596671
},
6672+
"com.amazonaws.transfer#StructuredLogDestinations": {
6673+
"type": "list",
6674+
"member": {
6675+
"target": "com.amazonaws.transfer#Arn"
6676+
},
6677+
"traits": {
6678+
"smithy.api#length": {
6679+
"min": 0,
6680+
"max": 1
6681+
}
6682+
}
6683+
},
66606684
"com.amazonaws.transfer#SubnetId": {
66616685
"type": "string"
66626686
},
@@ -8853,6 +8877,12 @@
88538877
"traits": {
88548878
"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>"
88558879
}
8880+
},
8881+
"StructuredLogDestinations": {
8882+
"target": "com.amazonaws.transfer#StructuredLogDestinations",
8883+
"traits": {
8884+
"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>"
8885+
}
88568886
}
88578887
},
88588888
"traits": {

0 commit comments

Comments
 (0)