@aws-sdk/client-cloudtrail-data 3.476.0 → 3.478.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.
- package/dist-cjs/protocols/Aws_restJson1.js +9 -15
- package/dist-es/protocols/Aws_restJson1.js +9 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/package.json +7 -6
|
@@ -1,34 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_PutAuditEventsCommand = exports.se_PutAuditEventsCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const CloudTrailDataServiceException_1 = require("../models/CloudTrailDataServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_PutAuditEventsCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/PutAuditEvents");
|
|
14
14
|
const query = (0, smithy_client_1.map)({
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
[_cA]: [, (0, smithy_client_1.expectNonNull)(input[_cA], `channelArn`)],
|
|
16
|
+
[_eI]: [, input[_eI]],
|
|
17
17
|
});
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
20
|
auditEvents: (_) => (0, smithy_client_1._json)(_),
|
|
21
21
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname,
|
|
25
|
-
port,
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
query,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
22
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
23
|
+
return b.build();
|
|
32
24
|
};
|
|
33
25
|
exports.se_PutAuditEventsCommand = se_PutAuditEventsCommand;
|
|
34
26
|
const de_PutAuditEventsCommand = async (output, context) => {
|
|
@@ -172,6 +164,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
172
164
|
value !== "" &&
|
|
173
165
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
174
166
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
167
|
+
const _cA = "channelArn";
|
|
168
|
+
const _eI = "externalId";
|
|
175
169
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
176
170
|
if (encoded.length) {
|
|
177
171
|
return JSON.parse(encoded);
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { CloudTrailDataServiceException as __BaseException } from "../models/CloudTrailDataServiceException";
|
|
4
4
|
import { ChannelInsufficientPermission, ChannelNotFound, ChannelUnsupportedSchema, DuplicatedAuditEventId, InvalidChannelARN, UnsupportedOperationException, } from "../models/models_0";
|
|
5
5
|
export const se_PutAuditEventsCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/PutAuditEvents");
|
|
11
11
|
const query = map({
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
[_cA]: [, __expectNonNull(input[_cA], `channelArn`)],
|
|
13
|
+
[_eI]: [, input[_eI]],
|
|
14
14
|
});
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify(take(input, {
|
|
17
17
|
auditEvents: (_) => _json(_),
|
|
18
18
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "POST",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
query,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
19
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
20
|
+
return b.build();
|
|
29
21
|
};
|
|
30
22
|
export const de_PutAuditEventsCommand = async (output, context) => {
|
|
31
23
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -167,6 +159,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
167
159
|
value !== "" &&
|
|
168
160
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
169
161
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
162
|
+
const _cA = "channelArn";
|
|
163
|
+
const _eI = "externalId";
|
|
170
164
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
171
165
|
if (encoded.length) {
|
|
172
166
|
return JSON.parse(encoded);
|
|
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
|
30
30
|
serviceId: string;
|
|
31
31
|
logger: import("@smithy/types").Logger;
|
|
32
32
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
33
|
-
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").
|
|
33
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
34
34
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
35
35
|
logger?: import("@smithy/types").Logger | undefined;
|
|
36
36
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
|
30
30
|
serviceId: string;
|
|
31
31
|
logger: import("@smithy/types").Logger;
|
|
32
32
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
33
|
-
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").
|
|
33
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
34
34
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
35
35
|
logger?: import("@smithy/types").Logger | undefined;
|
|
36
36
|
}) => import("@smithy/types").EndpointV2;
|
|
@@ -54,9 +54,9 @@ export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
|
54
54
|
) &
|
|
55
55
|
(
|
|
56
56
|
| string
|
|
57
|
+
| import("@smithy/types").Provider<string>
|
|
57
58
|
| import("@smithy/types").Endpoint
|
|
58
59
|
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
59
|
-
| import("@smithy/types").Provider<string>
|
|
60
60
|
| import("@smithy/types").EndpointV2
|
|
61
61
|
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
62
62
|
))
|
|
@@ -54,9 +54,9 @@ export declare const getRuntimeConfig: (config: CloudTrailDataClientConfig) => {
|
|
|
54
54
|
) &
|
|
55
55
|
(
|
|
56
56
|
| string
|
|
57
|
+
| import("@smithy/types").Provider<string>
|
|
57
58
|
| import("@smithy/types").Endpoint
|
|
58
59
|
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
59
|
-
| import("@smithy/types").Provider<string>
|
|
60
60
|
| import("@smithy/types").EndpointV2
|
|
61
61
|
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
62
62
|
))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudtrail-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudtrail Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.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",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|