@aws-sdk/client-cloudtrail-data 3.262.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/LICENSE +201 -0
- package/README.md +210 -0
- package/dist-cjs/CloudTrailData.js +22 -0
- package/dist-cjs/CloudTrailDataClient.js +40 -0
- package/dist-cjs/commands/PutAuditEventsCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/CloudTrailDataServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +102 -0
- package/dist-cjs/protocols/Aws_restJson1.js +265 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/CloudTrailData.js +18 -0
- package/dist-es/CloudTrailDataClient.js +36 -0
- package/dist-es/commands/PutAuditEventsCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/CloudTrailDataServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +88 -0
- package/dist-es/protocols/Aws_restJson1.js +260 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/CloudTrailData.d.ts +23 -0
- package/dist-types/CloudTrailDataClient.d.ts +147 -0
- package/dist-types/commands/PutAuditEventsCommand.d.ts +41 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/CloudTrailDataServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +174 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/CloudTrailData.d.ts +21 -0
- package/dist-types/ts3.4/CloudTrailDataClient.d.ts +117 -0
- package/dist-types/ts3.4/commands/PutAuditEventsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/CloudTrailDataServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +76 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +102 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutAuditEventsResponseFilterSensitiveLog = exports.ResultErrorEntryFilterSensitiveLog = exports.PutAuditEventsRequestFilterSensitiveLog = exports.AuditEventResultEntryFilterSensitiveLog = exports.AuditEventFilterSensitiveLog = exports.UnsupportedOperationException = exports.InvalidChannelARN = exports.DuplicatedAuditEventId = exports.ChannelUnsupportedSchema = exports.ChannelNotFound = exports.ChannelInsufficientPermission = void 0;
|
|
4
|
+
const CloudTrailDataServiceException_1 = require("./CloudTrailDataServiceException");
|
|
5
|
+
class ChannelInsufficientPermission extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "ChannelInsufficientPermission",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "ChannelInsufficientPermission";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, ChannelInsufficientPermission.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ChannelInsufficientPermission = ChannelInsufficientPermission;
|
|
18
|
+
class ChannelNotFound extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ChannelNotFound",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
this.name = "ChannelNotFound";
|
|
26
|
+
this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(this, ChannelNotFound.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ChannelNotFound = ChannelNotFound;
|
|
31
|
+
class ChannelUnsupportedSchema extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "ChannelUnsupportedSchema",
|
|
35
|
+
$fault: "client",
|
|
36
|
+
...opts,
|
|
37
|
+
});
|
|
38
|
+
this.name = "ChannelUnsupportedSchema";
|
|
39
|
+
this.$fault = "client";
|
|
40
|
+
Object.setPrototypeOf(this, ChannelUnsupportedSchema.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ChannelUnsupportedSchema = ChannelUnsupportedSchema;
|
|
44
|
+
class DuplicatedAuditEventId extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
45
|
+
constructor(opts) {
|
|
46
|
+
super({
|
|
47
|
+
name: "DuplicatedAuditEventId",
|
|
48
|
+
$fault: "client",
|
|
49
|
+
...opts,
|
|
50
|
+
});
|
|
51
|
+
this.name = "DuplicatedAuditEventId";
|
|
52
|
+
this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(this, DuplicatedAuditEventId.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.DuplicatedAuditEventId = DuplicatedAuditEventId;
|
|
57
|
+
class InvalidChannelARN extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "InvalidChannelARN",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "InvalidChannelARN";
|
|
65
|
+
this.$fault = "client";
|
|
66
|
+
Object.setPrototypeOf(this, InvalidChannelARN.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.InvalidChannelARN = InvalidChannelARN;
|
|
70
|
+
class UnsupportedOperationException extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "UnsupportedOperationException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
this.name = "UnsupportedOperationException";
|
|
78
|
+
this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.UnsupportedOperationException = UnsupportedOperationException;
|
|
83
|
+
const AuditEventFilterSensitiveLog = (obj) => ({
|
|
84
|
+
...obj,
|
|
85
|
+
});
|
|
86
|
+
exports.AuditEventFilterSensitiveLog = AuditEventFilterSensitiveLog;
|
|
87
|
+
const AuditEventResultEntryFilterSensitiveLog = (obj) => ({
|
|
88
|
+
...obj,
|
|
89
|
+
});
|
|
90
|
+
exports.AuditEventResultEntryFilterSensitiveLog = AuditEventResultEntryFilterSensitiveLog;
|
|
91
|
+
const PutAuditEventsRequestFilterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
});
|
|
94
|
+
exports.PutAuditEventsRequestFilterSensitiveLog = PutAuditEventsRequestFilterSensitiveLog;
|
|
95
|
+
const ResultErrorEntryFilterSensitiveLog = (obj) => ({
|
|
96
|
+
...obj,
|
|
97
|
+
});
|
|
98
|
+
exports.ResultErrorEntryFilterSensitiveLog = ResultErrorEntryFilterSensitiveLog;
|
|
99
|
+
const PutAuditEventsResponseFilterSensitiveLog = (obj) => ({
|
|
100
|
+
...obj,
|
|
101
|
+
});
|
|
102
|
+
exports.PutAuditEventsResponseFilterSensitiveLog = PutAuditEventsResponseFilterSensitiveLog;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeAws_restJson1PutAuditEventsCommand = exports.serializeAws_restJson1PutAuditEventsCommand = void 0;
|
|
4
|
+
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const CloudTrailDataServiceException_1 = require("../models/CloudTrailDataServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const serializeAws_restJson1PutAuditEventsCommand = async (input, context) => {
|
|
9
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/json",
|
|
12
|
+
};
|
|
13
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutAuditEvents";
|
|
14
|
+
const query = map({
|
|
15
|
+
channelArn: [, (0, smithy_client_1.expectNonNull)(input.channelArn, `channelArn`)],
|
|
16
|
+
externalId: [, input.externalId],
|
|
17
|
+
});
|
|
18
|
+
let body;
|
|
19
|
+
body = JSON.stringify({
|
|
20
|
+
...(input.auditEvents != null && { auditEvents: serializeAws_restJson1AuditEvents(input.auditEvents, context) }),
|
|
21
|
+
});
|
|
22
|
+
return new protocol_http_1.HttpRequest({
|
|
23
|
+
protocol,
|
|
24
|
+
hostname,
|
|
25
|
+
port,
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers,
|
|
28
|
+
path: resolvedPath,
|
|
29
|
+
query,
|
|
30
|
+
body,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
exports.serializeAws_restJson1PutAuditEventsCommand = serializeAws_restJson1PutAuditEventsCommand;
|
|
34
|
+
const deserializeAws_restJson1PutAuditEventsCommand = async (output, context) => {
|
|
35
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
36
|
+
return deserializeAws_restJson1PutAuditEventsCommandError(output, context);
|
|
37
|
+
}
|
|
38
|
+
const contents = map({
|
|
39
|
+
$metadata: deserializeMetadata(output),
|
|
40
|
+
});
|
|
41
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
42
|
+
if (data.failed != null) {
|
|
43
|
+
contents.failed = deserializeAws_restJson1ResultErrorEntries(data.failed, context);
|
|
44
|
+
}
|
|
45
|
+
if (data.successful != null) {
|
|
46
|
+
contents.successful = deserializeAws_restJson1AuditEventResultEntries(data.successful, context);
|
|
47
|
+
}
|
|
48
|
+
return contents;
|
|
49
|
+
};
|
|
50
|
+
exports.deserializeAws_restJson1PutAuditEventsCommand = deserializeAws_restJson1PutAuditEventsCommand;
|
|
51
|
+
const deserializeAws_restJson1PutAuditEventsCommandError = async (output, context) => {
|
|
52
|
+
const parsedOutput = {
|
|
53
|
+
...output,
|
|
54
|
+
body: await parseErrorBody(output.body, context),
|
|
55
|
+
};
|
|
56
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
57
|
+
switch (errorCode) {
|
|
58
|
+
case "ChannelInsufficientPermission":
|
|
59
|
+
case "com.amazonaws.cloudtraildata#ChannelInsufficientPermission":
|
|
60
|
+
throw await deserializeAws_restJson1ChannelInsufficientPermissionResponse(parsedOutput, context);
|
|
61
|
+
case "ChannelNotFound":
|
|
62
|
+
case "com.amazonaws.cloudtraildata#ChannelNotFound":
|
|
63
|
+
throw await deserializeAws_restJson1ChannelNotFoundResponse(parsedOutput, context);
|
|
64
|
+
case "ChannelUnsupportedSchema":
|
|
65
|
+
case "com.amazonaws.cloudtraildata#ChannelUnsupportedSchema":
|
|
66
|
+
throw await deserializeAws_restJson1ChannelUnsupportedSchemaResponse(parsedOutput, context);
|
|
67
|
+
case "DuplicatedAuditEventId":
|
|
68
|
+
case "com.amazonaws.cloudtraildata#DuplicatedAuditEventId":
|
|
69
|
+
throw await deserializeAws_restJson1DuplicatedAuditEventIdResponse(parsedOutput, context);
|
|
70
|
+
case "InvalidChannelARN":
|
|
71
|
+
case "com.amazonaws.cloudtraildata#InvalidChannelARN":
|
|
72
|
+
throw await deserializeAws_restJson1InvalidChannelARNResponse(parsedOutput, context);
|
|
73
|
+
case "UnsupportedOperationException":
|
|
74
|
+
case "com.amazonaws.cloudtraildata#UnsupportedOperationException":
|
|
75
|
+
throw await deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
76
|
+
default:
|
|
77
|
+
const parsedBody = parsedOutput.body;
|
|
78
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
79
|
+
output,
|
|
80
|
+
parsedBody,
|
|
81
|
+
exceptionCtor: CloudTrailDataServiceException_1.CloudTrailDataServiceException,
|
|
82
|
+
errorCode,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const map = smithy_client_1.map;
|
|
87
|
+
const deserializeAws_restJson1ChannelInsufficientPermissionResponse = async (parsedOutput, context) => {
|
|
88
|
+
const contents = map({});
|
|
89
|
+
const data = parsedOutput.body;
|
|
90
|
+
if (data.message != null) {
|
|
91
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
92
|
+
}
|
|
93
|
+
const exception = new models_0_1.ChannelInsufficientPermission({
|
|
94
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
95
|
+
...contents,
|
|
96
|
+
});
|
|
97
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
98
|
+
};
|
|
99
|
+
const deserializeAws_restJson1ChannelNotFoundResponse = async (parsedOutput, context) => {
|
|
100
|
+
const contents = map({});
|
|
101
|
+
const data = parsedOutput.body;
|
|
102
|
+
if (data.message != null) {
|
|
103
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
104
|
+
}
|
|
105
|
+
const exception = new models_0_1.ChannelNotFound({
|
|
106
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
107
|
+
...contents,
|
|
108
|
+
});
|
|
109
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
110
|
+
};
|
|
111
|
+
const deserializeAws_restJson1ChannelUnsupportedSchemaResponse = async (parsedOutput, context) => {
|
|
112
|
+
const contents = map({});
|
|
113
|
+
const data = parsedOutput.body;
|
|
114
|
+
if (data.message != null) {
|
|
115
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
116
|
+
}
|
|
117
|
+
const exception = new models_0_1.ChannelUnsupportedSchema({
|
|
118
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
119
|
+
...contents,
|
|
120
|
+
});
|
|
121
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
122
|
+
};
|
|
123
|
+
const deserializeAws_restJson1DuplicatedAuditEventIdResponse = async (parsedOutput, context) => {
|
|
124
|
+
const contents = map({});
|
|
125
|
+
const data = parsedOutput.body;
|
|
126
|
+
if (data.message != null) {
|
|
127
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
128
|
+
}
|
|
129
|
+
const exception = new models_0_1.DuplicatedAuditEventId({
|
|
130
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
131
|
+
...contents,
|
|
132
|
+
});
|
|
133
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
134
|
+
};
|
|
135
|
+
const deserializeAws_restJson1InvalidChannelARNResponse = async (parsedOutput, context) => {
|
|
136
|
+
const contents = map({});
|
|
137
|
+
const data = parsedOutput.body;
|
|
138
|
+
if (data.message != null) {
|
|
139
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
140
|
+
}
|
|
141
|
+
const exception = new models_0_1.InvalidChannelARN({
|
|
142
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
143
|
+
...contents,
|
|
144
|
+
});
|
|
145
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
146
|
+
};
|
|
147
|
+
const deserializeAws_restJson1UnsupportedOperationExceptionResponse = async (parsedOutput, context) => {
|
|
148
|
+
const contents = map({});
|
|
149
|
+
const data = parsedOutput.body;
|
|
150
|
+
if (data.message != null) {
|
|
151
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
152
|
+
}
|
|
153
|
+
const exception = new models_0_1.UnsupportedOperationException({
|
|
154
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
155
|
+
...contents,
|
|
156
|
+
});
|
|
157
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
158
|
+
};
|
|
159
|
+
const serializeAws_restJson1AuditEvent = (input, context) => {
|
|
160
|
+
return {
|
|
161
|
+
...(input.eventData != null && { eventData: input.eventData }),
|
|
162
|
+
...(input.eventDataChecksum != null && { eventDataChecksum: input.eventDataChecksum }),
|
|
163
|
+
...(input.id != null && { id: input.id }),
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
const serializeAws_restJson1AuditEvents = (input, context) => {
|
|
167
|
+
return input
|
|
168
|
+
.filter((e) => e != null)
|
|
169
|
+
.map((entry) => {
|
|
170
|
+
return serializeAws_restJson1AuditEvent(entry, context);
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
const deserializeAws_restJson1AuditEventResultEntries = (output, context) => {
|
|
174
|
+
const retVal = (output || [])
|
|
175
|
+
.filter((e) => e != null)
|
|
176
|
+
.map((entry) => {
|
|
177
|
+
if (entry === null) {
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
return deserializeAws_restJson1AuditEventResultEntry(entry, context);
|
|
181
|
+
});
|
|
182
|
+
return retVal;
|
|
183
|
+
};
|
|
184
|
+
const deserializeAws_restJson1AuditEventResultEntry = (output, context) => {
|
|
185
|
+
return {
|
|
186
|
+
eventID: (0, smithy_client_1.expectString)(output.eventID),
|
|
187
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const deserializeAws_restJson1ResultErrorEntries = (output, context) => {
|
|
191
|
+
const retVal = (output || [])
|
|
192
|
+
.filter((e) => e != null)
|
|
193
|
+
.map((entry) => {
|
|
194
|
+
if (entry === null) {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
return deserializeAws_restJson1ResultErrorEntry(entry, context);
|
|
198
|
+
});
|
|
199
|
+
return retVal;
|
|
200
|
+
};
|
|
201
|
+
const deserializeAws_restJson1ResultErrorEntry = (output, context) => {
|
|
202
|
+
return {
|
|
203
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
204
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
205
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
const deserializeMetadata = (output) => ({
|
|
209
|
+
httpStatusCode: output.statusCode,
|
|
210
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
211
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
212
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
213
|
+
});
|
|
214
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
215
|
+
if (streamBody instanceof Uint8Array) {
|
|
216
|
+
return Promise.resolve(streamBody);
|
|
217
|
+
}
|
|
218
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
219
|
+
};
|
|
220
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
221
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
222
|
+
value !== null &&
|
|
223
|
+
value !== "" &&
|
|
224
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
225
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
226
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
227
|
+
if (encoded.length) {
|
|
228
|
+
return JSON.parse(encoded);
|
|
229
|
+
}
|
|
230
|
+
return {};
|
|
231
|
+
});
|
|
232
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
233
|
+
const value = await parseBody(errorBody, context);
|
|
234
|
+
value.message = value.message ?? value.Message;
|
|
235
|
+
return value;
|
|
236
|
+
};
|
|
237
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
238
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
239
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
240
|
+
let cleanValue = rawValue;
|
|
241
|
+
if (typeof cleanValue === "number") {
|
|
242
|
+
cleanValue = cleanValue.toString();
|
|
243
|
+
}
|
|
244
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
245
|
+
cleanValue = cleanValue.split(",")[0];
|
|
246
|
+
}
|
|
247
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
248
|
+
cleanValue = cleanValue.split(":")[0];
|
|
249
|
+
}
|
|
250
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
251
|
+
cleanValue = cleanValue.split("#")[1];
|
|
252
|
+
}
|
|
253
|
+
return cleanValue;
|
|
254
|
+
};
|
|
255
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
256
|
+
if (headerKey !== undefined) {
|
|
257
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
258
|
+
}
|
|
259
|
+
if (data.code !== undefined) {
|
|
260
|
+
return sanitizeErrorCode(data.code);
|
|
261
|
+
}
|
|
262
|
+
if (data["__type"] !== undefined) {
|
|
263
|
+
return sanitizeErrorCode(data["__type"]);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
12
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
15
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
+
return {
|
|
21
|
+
...clientSharedValues,
|
|
22
|
+
...config,
|
|
23
|
+
runtime: "browser",
|
|
24
|
+
defaultsMode,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
14
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
|
+
return {
|
|
26
|
+
...clientSharedValues,
|
|
27
|
+
...config,
|
|
28
|
+
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
30
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
32
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
33
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
34
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
35
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
36
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
37
|
+
retryMode: config?.retryMode ??
|
|
38
|
+
(0, node_config_provider_1.loadConfig)({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
42
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
44
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
7
|
+
const util_utf8_1 = require("@aws-sdk/util-utf8");
|
|
8
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
+
const getRuntimeConfig = (config) => ({
|
|
10
|
+
apiVersion: "2021-08-11",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
15
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
16
|
+
serviceId: config?.serviceId ?? "CloudTrail Data",
|
|
17
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
18
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
19
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
20
|
+
});
|
|
21
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CloudTrailDataClient } from "./CloudTrailDataClient";
|
|
2
|
+
import { PutAuditEventsCommand, } from "./commands/PutAuditEventsCommand";
|
|
3
|
+
export class CloudTrailData extends CloudTrailDataClient {
|
|
4
|
+
putAuditEvents(args, optionsOrCb, cb) {
|
|
5
|
+
const command = new PutAuditEventsCommand(args);
|
|
6
|
+
if (typeof optionsOrCb === "function") {
|
|
7
|
+
this.send(command, optionsOrCb);
|
|
8
|
+
}
|
|
9
|
+
else if (typeof cb === "function") {
|
|
10
|
+
if (typeof optionsOrCb !== "object")
|
|
11
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
12
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return this.send(command, optionsOrCb);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
export class CloudTrailDataClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutAuditEventsRequestFilterSensitiveLog, PutAuditEventsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutAuditEventsCommand, serializeAws_restJson1PutAuditEventsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class PutAuditEventsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutAuditEventsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudTrailDataClient";
|
|
25
|
+
const commandName = "PutAuditEventsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: PutAuditEventsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: PutAuditEventsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1PutAuditEventsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1PutAuditEventsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PutAuditEventsCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const q = "fn", r = "argv", s = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, 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];
|
|
3
|
+
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: [{ type: e, rules: [{ endpoint: { url: "https://cloudtrail-data-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://cloudtrail-data-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: [{ type: e, rules: [{ endpoint: { url: "https://cloudtrail-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://cloudtrail-data.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
|
|
4
|
+
export const ruleSet = _data;
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
export class CloudTrailDataServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, CloudTrailDataServiceException.prototype);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|