@aws-sdk/client-transfer 3.353.0 → 3.357.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -747,7 +747,7 @@ const de_DeleteAccessCommand = async (output, context) => {
747
747
  if (output.statusCode >= 300) {
748
748
  return de_DeleteAccessCommandError(output, context);
749
749
  }
750
- await collectBody(output.body, context);
750
+ await (0, smithy_client_1.collectBody)(output.body, context);
751
751
  const response = {
752
752
  $metadata: deserializeMetadata(output),
753
753
  };
@@ -786,7 +786,7 @@ const de_DeleteAgreementCommand = async (output, context) => {
786
786
  if (output.statusCode >= 300) {
787
787
  return de_DeleteAgreementCommandError(output, context);
788
788
  }
789
- await collectBody(output.body, context);
789
+ await (0, smithy_client_1.collectBody)(output.body, context);
790
790
  const response = {
791
791
  $metadata: deserializeMetadata(output),
792
792
  };
@@ -825,7 +825,7 @@ const de_DeleteCertificateCommand = async (output, context) => {
825
825
  if (output.statusCode >= 300) {
826
826
  return de_DeleteCertificateCommandError(output, context);
827
827
  }
828
- await collectBody(output.body, context);
828
+ await (0, smithy_client_1.collectBody)(output.body, context);
829
829
  const response = {
830
830
  $metadata: deserializeMetadata(output),
831
831
  };
@@ -864,7 +864,7 @@ const de_DeleteConnectorCommand = async (output, context) => {
864
864
  if (output.statusCode >= 300) {
865
865
  return de_DeleteConnectorCommandError(output, context);
866
866
  }
867
- await collectBody(output.body, context);
867
+ await (0, smithy_client_1.collectBody)(output.body, context);
868
868
  const response = {
869
869
  $metadata: deserializeMetadata(output),
870
870
  };
@@ -903,7 +903,7 @@ const de_DeleteHostKeyCommand = async (output, context) => {
903
903
  if (output.statusCode >= 300) {
904
904
  return de_DeleteHostKeyCommandError(output, context);
905
905
  }
906
- await collectBody(output.body, context);
906
+ await (0, smithy_client_1.collectBody)(output.body, context);
907
907
  const response = {
908
908
  $metadata: deserializeMetadata(output),
909
909
  };
@@ -945,7 +945,7 @@ const de_DeleteProfileCommand = async (output, context) => {
945
945
  if (output.statusCode >= 300) {
946
946
  return de_DeleteProfileCommandError(output, context);
947
947
  }
948
- await collectBody(output.body, context);
948
+ await (0, smithy_client_1.collectBody)(output.body, context);
949
949
  const response = {
950
950
  $metadata: deserializeMetadata(output),
951
951
  };
@@ -984,7 +984,7 @@ const de_DeleteServerCommand = async (output, context) => {
984
984
  if (output.statusCode >= 300) {
985
985
  return de_DeleteServerCommandError(output, context);
986
986
  }
987
- await collectBody(output.body, context);
987
+ await (0, smithy_client_1.collectBody)(output.body, context);
988
988
  const response = {
989
989
  $metadata: deserializeMetadata(output),
990
990
  };
@@ -1026,7 +1026,7 @@ const de_DeleteSshPublicKeyCommand = async (output, context) => {
1026
1026
  if (output.statusCode >= 300) {
1027
1027
  return de_DeleteSshPublicKeyCommandError(output, context);
1028
1028
  }
1029
- await collectBody(output.body, context);
1029
+ await (0, smithy_client_1.collectBody)(output.body, context);
1030
1030
  const response = {
1031
1031
  $metadata: deserializeMetadata(output),
1032
1032
  };
@@ -1068,7 +1068,7 @@ const de_DeleteUserCommand = async (output, context) => {
1068
1068
  if (output.statusCode >= 300) {
1069
1069
  return de_DeleteUserCommandError(output, context);
1070
1070
  }
1071
- await collectBody(output.body, context);
1071
+ await (0, smithy_client_1.collectBody)(output.body, context);
1072
1072
  const response = {
1073
1073
  $metadata: deserializeMetadata(output),
1074
1074
  };
@@ -1107,7 +1107,7 @@ const de_DeleteWorkflowCommand = async (output, context) => {
1107
1107
  if (output.statusCode >= 300) {
1108
1108
  return de_DeleteWorkflowCommandError(output, context);
1109
1109
  }
1110
- await collectBody(output.body, context);
1110
+ await (0, smithy_client_1.collectBody)(output.body, context);
1111
1111
  const response = {
1112
1112
  $metadata: deserializeMetadata(output),
1113
1113
  };
@@ -2370,7 +2370,7 @@ const de_StartServerCommand = async (output, context) => {
2370
2370
  if (output.statusCode >= 300) {
2371
2371
  return de_StartServerCommandError(output, context);
2372
2372
  }
2373
- await collectBody(output.body, context);
2373
+ await (0, smithy_client_1.collectBody)(output.body, context);
2374
2374
  const response = {
2375
2375
  $metadata: deserializeMetadata(output),
2376
2376
  };
@@ -2412,7 +2412,7 @@ const de_StopServerCommand = async (output, context) => {
2412
2412
  if (output.statusCode >= 300) {
2413
2413
  return de_StopServerCommandError(output, context);
2414
2414
  }
2415
- await collectBody(output.body, context);
2415
+ await (0, smithy_client_1.collectBody)(output.body, context);
2416
2416
  const response = {
2417
2417
  $metadata: deserializeMetadata(output),
2418
2418
  };
@@ -2454,7 +2454,7 @@ const de_TagResourceCommand = async (output, context) => {
2454
2454
  if (output.statusCode >= 300) {
2455
2455
  return de_TagResourceCommandError(output, context);
2456
2456
  }
2457
- await collectBody(output.body, context);
2457
+ await (0, smithy_client_1.collectBody)(output.body, context);
2458
2458
  const response = {
2459
2459
  $metadata: deserializeMetadata(output),
2460
2460
  };
@@ -2535,7 +2535,7 @@ const de_UntagResourceCommand = async (output, context) => {
2535
2535
  if (output.statusCode >= 300) {
2536
2536
  return de_UntagResourceCommandError(output, context);
2537
2537
  }
2538
- await collectBody(output.body, context);
2538
+ await (0, smithy_client_1.collectBody)(output.body, context);
2539
2539
  const response = {
2540
2540
  $metadata: deserializeMetadata(output),
2541
2541
  };
@@ -3180,13 +3180,7 @@ const deserializeMetadata = (output) => ({
3180
3180
  extendedRequestId: output.headers["x-amz-id-2"],
3181
3181
  cfId: output.headers["x-amz-cf-id"],
3182
3182
  });
3183
- const collectBody = (streamBody = new Uint8Array(), context) => {
3184
- if (streamBody instanceof Uint8Array) {
3185
- return Promise.resolve(streamBody);
3186
- }
3187
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3188
- };
3189
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3183
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
3190
3184
  const throwDefaultError = (0, smithy_client_1.withBaseException)(TransferServiceException_1.TransferServiceException);
3191
3185
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3192
3186
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { AccessDeniedException, ConflictException, InternalServiceError, InvalidNextTokenException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
4
4
  import { TransferServiceException as __BaseException } from "../models/TransferServiceException";
@@ -3059,12 +3059,6 @@ const deserializeMetadata = (output) => ({
3059
3059
  extendedRequestId: output.headers["x-amz-id-2"],
3060
3060
  cfId: output.headers["x-amz-cf-id"],
3061
3061
  });
3062
- const collectBody = (streamBody = new Uint8Array(), context) => {
3063
- if (streamBody instanceof Uint8Array) {
3064
- return Promise.resolve(streamBody);
3065
- }
3066
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3067
- };
3068
3062
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3069
3063
  const throwDefaultError = withBaseException(__BaseException);
3070
3064
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -131,7 +131,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
131
131
  */
132
132
  runtime?: string;
133
133
  /**
134
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
134
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
135
135
  * trait of an operation.
136
136
  */
137
137
  disableHostPrefix?: boolean;
@@ -94,6 +94,9 @@ export interface CreateServerCommandOutput extends CreateServerResponse, __Metad
94
94
  * },
95
95
  * ],
96
96
  * },
97
+ * StructuredLogDestinations: [ // StructuredLogDestinations
98
+ * "STRING_VALUE",
99
+ * ],
97
100
  * };
98
101
  * const command = new CreateServerCommand(input);
99
102
  * const response = await client.send(command);
@@ -105,6 +105,9 @@ export interface DescribeServerCommandOutput extends DescribeServerResponse, __M
105
105
  * // },
106
106
  * // ],
107
107
  * // },
108
+ * // StructuredLogDestinations: [ // StructuredLogDestinations
109
+ * // "STRING_VALUE",
110
+ * // ],
108
111
  * // },
109
112
  * // };
110
113
  *
@@ -87,6 +87,9 @@ export interface UpdateServerCommandOutput extends UpdateServerResponse, __Metad
87
87
  * },
88
88
  * ],
89
89
  * },
90
+ * StructuredLogDestinations: [ // StructuredLogDestinations
91
+ * "STRING_VALUE",
92
+ * ],
90
93
  * };
91
94
  * const command = new UpdateServerCommand(input);
92
95
  * const response = await client.send(command);
@@ -1331,6 +1331,21 @@ export interface CreateServerRequest {
1331
1331
  * while the file is still being uploaded.</p>
1332
1332
  */
1333
1333
  WorkflowDetails?: WorkflowDetails;
1334
+ /**
1335
+ * <p>Specifies the log groups to which your server logs are sent.</p>
1336
+ * <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>
1337
+ * <p>
1338
+ * <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
1339
+ * </p>
1340
+ * <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
1341
+ * </p>
1342
+ * <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
1343
+ * value for this parameter in an <code>update-server</code> call. For example:</p>
1344
+ * <p>
1345
+ * <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
1346
+ * </p>
1347
+ */
1348
+ StructuredLogDestinations?: string[];
1334
1349
  }
1335
1350
  /**
1336
1351
  * @public
@@ -2932,6 +2947,21 @@ export interface DescribedServer {
2932
2947
  * while the file is still being uploaded.</p>
2933
2948
  */
2934
2949
  WorkflowDetails?: WorkflowDetails;
2950
+ /**
2951
+ * <p>Specifies the log groups to which your server logs are sent.</p>
2952
+ * <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>
2953
+ * <p>
2954
+ * <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
2955
+ * </p>
2956
+ * <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
2957
+ * </p>
2958
+ * <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
2959
+ * value for this parameter in an <code>update-server</code> call. For example:</p>
2960
+ * <p>
2961
+ * <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
2962
+ * </p>
2963
+ */
2964
+ StructuredLogDestinations?: string[];
2935
2965
  }
2936
2966
  /**
2937
2967
  * @public
@@ -4847,6 +4877,21 @@ export interface UpdateServerRequest {
4847
4877
  * </p>
4848
4878
  */
4849
4879
  WorkflowDetails?: WorkflowDetails;
4880
+ /**
4881
+ * <p>Specifies the log groups to which your server logs are sent.</p>
4882
+ * <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>
4883
+ * <p>
4884
+ * <code>arn:aws:logs:region-name:amazon-account-id:log-group:log-group-name:*</code>
4885
+ * </p>
4886
+ * <p>For example, <code>arn:aws:logs:us-east-1:111122223333:log-group:mytestgroup:*</code>
4887
+ * </p>
4888
+ * <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
4889
+ * value for this parameter in an <code>update-server</code> call. For example:</p>
4890
+ * <p>
4891
+ * <code>update-server --server-id s-1234567890abcdef0 --structured-log-destinations</code>
4892
+ * </p>
4893
+ */
4894
+ StructuredLogDestinations?: string[];
4850
4895
  }
4851
4896
  /**
4852
4897
  * @public
@@ -324,6 +324,7 @@ export interface CreateServerRequest {
324
324
  SecurityPolicyName?: string;
325
325
  Tags?: Tag[];
326
326
  WorkflowDetails?: WorkflowDetails;
327
+ StructuredLogDestinations?: string[];
327
328
  }
328
329
  export interface CreateServerResponse {
329
330
  ServerId: string | undefined;
@@ -635,6 +636,7 @@ export interface DescribedServer {
635
636
  Tags?: Tag[];
636
637
  UserCount?: number;
637
638
  WorkflowDetails?: WorkflowDetails;
639
+ StructuredLogDestinations?: string[];
638
640
  }
639
641
  export interface SshPublicKey {
640
642
  DateImported: Date | undefined;
@@ -1047,6 +1049,7 @@ export interface UpdateServerRequest {
1047
1049
  SecurityPolicyName?: string;
1048
1050
  ServerId: string | undefined;
1049
1051
  WorkflowDetails?: WorkflowDetails;
1052
+ StructuredLogDestinations?: string[];
1050
1053
  }
1051
1054
  export interface UpdateServerResponse {
1052
1055
  ServerId: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transfer",
3
3
  "description": "AWS SDK for JavaScript Transfer Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
- "@aws-sdk/util-waiter": "3.347.0",
55
+ "@aws-sdk/util-waiter": "3.357.0",
56
56
  "@smithy/protocol-http": "^1.0.1",
57
57
  "@smithy/types": "^1.0.0",
58
58
  "tslib": "^2.5.0"