@aws-sdk/client-cloudtrail 3.190.0 → 3.192.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/CHANGELOG.md +11 -0
- package/dist-cjs/CloudTrailClient.js +11 -8
- package/dist-cjs/commands/AddTagsCommand.js +10 -0
- package/dist-cjs/commands/CancelQueryCommand.js +10 -0
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +10 -0
- package/dist-cjs/commands/CreateTrailCommand.js +10 -0
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +10 -0
- package/dist-cjs/commands/DeleteTrailCommand.js +10 -0
- package/dist-cjs/commands/DescribeQueryCommand.js +10 -0
- package/dist-cjs/commands/DescribeTrailsCommand.js +10 -0
- package/dist-cjs/commands/GetChannelCommand.js +10 -0
- package/dist-cjs/commands/GetEventDataStoreCommand.js +10 -0
- package/dist-cjs/commands/GetEventSelectorsCommand.js +10 -0
- package/dist-cjs/commands/GetImportCommand.js +10 -0
- package/dist-cjs/commands/GetInsightSelectorsCommand.js +10 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js +10 -0
- package/dist-cjs/commands/GetTrailCommand.js +10 -0
- package/dist-cjs/commands/GetTrailStatusCommand.js +10 -0
- package/dist-cjs/commands/ListChannelsCommand.js +10 -0
- package/dist-cjs/commands/ListEventDataStoresCommand.js +10 -0
- package/dist-cjs/commands/ListImportFailuresCommand.js +10 -0
- package/dist-cjs/commands/ListImportsCommand.js +10 -0
- package/dist-cjs/commands/ListPublicKeysCommand.js +10 -0
- package/dist-cjs/commands/ListQueriesCommand.js +10 -0
- package/dist-cjs/commands/ListTagsCommand.js +10 -0
- package/dist-cjs/commands/ListTrailsCommand.js +10 -0
- package/dist-cjs/commands/LookupEventsCommand.js +10 -0
- package/dist-cjs/commands/PutEventSelectorsCommand.js +10 -0
- package/dist-cjs/commands/PutInsightSelectorsCommand.js +10 -0
- package/dist-cjs/commands/RemoveTagsCommand.js +10 -0
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +10 -0
- package/dist-cjs/commands/StartImportCommand.js +10 -0
- package/dist-cjs/commands/StartLoggingCommand.js +10 -0
- package/dist-cjs/commands/StartQueryCommand.js +10 -0
- package/dist-cjs/commands/StopImportCommand.js +10 -0
- package/dist-cjs/commands/StopLoggingCommand.js +10 -0
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +10 -0
- package/dist-cjs/commands/UpdateTrailCommand.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +356 -0
- package/dist-cjs/models/models_0.js +15 -3
- package/dist-cjs/protocols/Aws_json1_1.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/CloudTrailClient.js +12 -9
- package/dist-es/commands/AddTagsCommand.js +10 -0
- package/dist-es/commands/CancelQueryCommand.js +10 -0
- package/dist-es/commands/CreateEventDataStoreCommand.js +10 -0
- package/dist-es/commands/CreateTrailCommand.js +10 -0
- package/dist-es/commands/DeleteEventDataStoreCommand.js +10 -0
- package/dist-es/commands/DeleteTrailCommand.js +10 -0
- package/dist-es/commands/DescribeQueryCommand.js +10 -0
- package/dist-es/commands/DescribeTrailsCommand.js +10 -0
- package/dist-es/commands/GetChannelCommand.js +10 -0
- package/dist-es/commands/GetEventDataStoreCommand.js +10 -0
- package/dist-es/commands/GetEventSelectorsCommand.js +10 -0
- package/dist-es/commands/GetImportCommand.js +10 -0
- package/dist-es/commands/GetInsightSelectorsCommand.js +10 -0
- package/dist-es/commands/GetQueryResultsCommand.js +10 -0
- package/dist-es/commands/GetTrailCommand.js +10 -0
- package/dist-es/commands/GetTrailStatusCommand.js +10 -0
- package/dist-es/commands/ListChannelsCommand.js +10 -0
- package/dist-es/commands/ListEventDataStoresCommand.js +10 -0
- package/dist-es/commands/ListImportFailuresCommand.js +10 -0
- package/dist-es/commands/ListImportsCommand.js +10 -0
- package/dist-es/commands/ListPublicKeysCommand.js +10 -0
- package/dist-es/commands/ListQueriesCommand.js +10 -0
- package/dist-es/commands/ListTagsCommand.js +10 -0
- package/dist-es/commands/ListTrailsCommand.js +10 -0
- package/dist-es/commands/LookupEventsCommand.js +10 -0
- package/dist-es/commands/PutEventSelectorsCommand.js +10 -0
- package/dist-es/commands/PutInsightSelectorsCommand.js +10 -0
- package/dist-es/commands/RemoveTagsCommand.js +10 -0
- package/dist-es/commands/RestoreEventDataStoreCommand.js +10 -0
- package/dist-es/commands/StartImportCommand.js +10 -0
- package/dist-es/commands/StartLoggingCommand.js +10 -0
- package/dist-es/commands/StartQueryCommand.js +10 -0
- package/dist-es/commands/StopImportCommand.js +10 -0
- package/dist-es/commands/StopLoggingCommand.js +10 -0
- package/dist-es/commands/UpdateEventDataStoreCommand.js +10 -0
- package/dist-es/commands/UpdateTrailCommand.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +353 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_json1_1.js +15 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/CloudTrail.d.ts +9 -5
- package/dist-types/CloudTrailClient.d.ts +6 -9
- package/dist-types/commands/AddTagsCommand.d.ts +2 -0
- package/dist-types/commands/CancelQueryCommand.d.ts +2 -0
- package/dist-types/commands/CreateEventDataStoreCommand.d.ts +2 -0
- package/dist-types/commands/CreateTrailCommand.d.ts +2 -0
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +2 -0
- package/dist-types/commands/DeleteTrailCommand.d.ts +2 -0
- package/dist-types/commands/DescribeQueryCommand.d.ts +2 -0
- package/dist-types/commands/DescribeTrailsCommand.d.ts +2 -0
- package/dist-types/commands/GetChannelCommand.d.ts +4 -1
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +2 -0
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +2 -0
- package/dist-types/commands/GetImportCommand.d.ts +3 -1
- package/dist-types/commands/GetInsightSelectorsCommand.d.ts +2 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -0
- package/dist-types/commands/GetTrailCommand.d.ts +2 -0
- package/dist-types/commands/GetTrailStatusCommand.d.ts +2 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +4 -1
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +2 -0
- package/dist-types/commands/ListImportFailuresCommand.d.ts +2 -0
- package/dist-types/commands/ListImportsCommand.d.ts +2 -0
- package/dist-types/commands/ListPublicKeysCommand.d.ts +2 -0
- package/dist-types/commands/ListQueriesCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsCommand.d.ts +2 -0
- package/dist-types/commands/ListTrailsCommand.d.ts +2 -0
- package/dist-types/commands/LookupEventsCommand.d.ts +2 -0
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +2 -0
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +2 -0
- package/dist-types/commands/RemoveTagsCommand.d.ts +2 -0
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +2 -0
- package/dist-types/commands/StartImportCommand.d.ts +5 -1
- package/dist-types/commands/StartLoggingCommand.d.ts +2 -0
- package/dist-types/commands/StartQueryCommand.d.ts +3 -1
- package/dist-types/commands/StopImportCommand.d.ts +2 -0
- package/dist-types/commands/StopLoggingCommand.d.ts +2 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +2 -0
- package/dist-types/commands/UpdateTrailCommand.d.ts +2 -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/models/models_0.d.ts +87 -69
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/CloudTrailClient.d.ts +15 -8
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetImportCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StopImportCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -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/models/models_0.d.ts +14 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +4 -3
- package/dist-cjs/endpoints.js +0 -185
- package/dist-es/endpoints.js +0 -181
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
exports.ruleSet = {
|
|
5
|
+
version: "1.0",
|
|
6
|
+
parameters: {
|
|
7
|
+
Region: {
|
|
8
|
+
builtIn: "AWS::Region",
|
|
9
|
+
required: true,
|
|
10
|
+
documentation: "The AWS region used to dispatch the request.",
|
|
11
|
+
type: "String",
|
|
12
|
+
},
|
|
13
|
+
UseDualStack: {
|
|
14
|
+
builtIn: "AWS::UseDualStack",
|
|
15
|
+
required: true,
|
|
16
|
+
default: false,
|
|
17
|
+
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
18
|
+
type: "Boolean",
|
|
19
|
+
},
|
|
20
|
+
UseFIPS: {
|
|
21
|
+
builtIn: "AWS::UseFIPS",
|
|
22
|
+
required: true,
|
|
23
|
+
default: false,
|
|
24
|
+
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
25
|
+
type: "Boolean",
|
|
26
|
+
},
|
|
27
|
+
Endpoint: {
|
|
28
|
+
builtIn: "SDK::Endpoint",
|
|
29
|
+
required: false,
|
|
30
|
+
documentation: "Override the endpoint used to send this request",
|
|
31
|
+
type: "String",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
rules: [
|
|
35
|
+
{
|
|
36
|
+
conditions: [
|
|
37
|
+
{
|
|
38
|
+
fn: "aws.partition",
|
|
39
|
+
argv: [
|
|
40
|
+
{
|
|
41
|
+
ref: "Region",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
assign: "PartitionResult",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
type: "tree",
|
|
48
|
+
rules: [
|
|
49
|
+
{
|
|
50
|
+
conditions: [
|
|
51
|
+
{
|
|
52
|
+
fn: "isSet",
|
|
53
|
+
argv: [
|
|
54
|
+
{
|
|
55
|
+
ref: "Endpoint",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
fn: "parseURL",
|
|
61
|
+
argv: [
|
|
62
|
+
{
|
|
63
|
+
ref: "Endpoint",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
assign: "url",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
type: "tree",
|
|
70
|
+
rules: [
|
|
71
|
+
{
|
|
72
|
+
conditions: [
|
|
73
|
+
{
|
|
74
|
+
fn: "booleanEquals",
|
|
75
|
+
argv: [
|
|
76
|
+
{
|
|
77
|
+
ref: "UseFIPS",
|
|
78
|
+
},
|
|
79
|
+
true,
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
84
|
+
type: "error",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
conditions: [],
|
|
88
|
+
type: "tree",
|
|
89
|
+
rules: [
|
|
90
|
+
{
|
|
91
|
+
conditions: [
|
|
92
|
+
{
|
|
93
|
+
fn: "booleanEquals",
|
|
94
|
+
argv: [
|
|
95
|
+
{
|
|
96
|
+
ref: "UseDualStack",
|
|
97
|
+
},
|
|
98
|
+
true,
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
103
|
+
type: "error",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
conditions: [],
|
|
107
|
+
endpoint: {
|
|
108
|
+
url: {
|
|
109
|
+
ref: "Endpoint",
|
|
110
|
+
},
|
|
111
|
+
properties: {},
|
|
112
|
+
headers: {},
|
|
113
|
+
},
|
|
114
|
+
type: "endpoint",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
conditions: [
|
|
122
|
+
{
|
|
123
|
+
fn: "booleanEquals",
|
|
124
|
+
argv: [
|
|
125
|
+
{
|
|
126
|
+
ref: "UseFIPS",
|
|
127
|
+
},
|
|
128
|
+
true,
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
fn: "booleanEquals",
|
|
133
|
+
argv: [
|
|
134
|
+
{
|
|
135
|
+
ref: "UseDualStack",
|
|
136
|
+
},
|
|
137
|
+
true,
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
type: "tree",
|
|
142
|
+
rules: [
|
|
143
|
+
{
|
|
144
|
+
conditions: [
|
|
145
|
+
{
|
|
146
|
+
fn: "booleanEquals",
|
|
147
|
+
argv: [
|
|
148
|
+
true,
|
|
149
|
+
{
|
|
150
|
+
fn: "getAttr",
|
|
151
|
+
argv: [
|
|
152
|
+
{
|
|
153
|
+
ref: "PartitionResult",
|
|
154
|
+
},
|
|
155
|
+
"supportsFIPS",
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
fn: "booleanEquals",
|
|
162
|
+
argv: [
|
|
163
|
+
true,
|
|
164
|
+
{
|
|
165
|
+
fn: "getAttr",
|
|
166
|
+
argv: [
|
|
167
|
+
{
|
|
168
|
+
ref: "PartitionResult",
|
|
169
|
+
},
|
|
170
|
+
"supportsDualStack",
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
type: "tree",
|
|
177
|
+
rules: [
|
|
178
|
+
{
|
|
179
|
+
conditions: [],
|
|
180
|
+
endpoint: {
|
|
181
|
+
url: "https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
182
|
+
properties: {},
|
|
183
|
+
headers: {},
|
|
184
|
+
},
|
|
185
|
+
type: "endpoint",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
conditions: [],
|
|
191
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
192
|
+
type: "error",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
conditions: [
|
|
198
|
+
{
|
|
199
|
+
fn: "booleanEquals",
|
|
200
|
+
argv: [
|
|
201
|
+
{
|
|
202
|
+
ref: "UseFIPS",
|
|
203
|
+
},
|
|
204
|
+
true,
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
type: "tree",
|
|
209
|
+
rules: [
|
|
210
|
+
{
|
|
211
|
+
conditions: [
|
|
212
|
+
{
|
|
213
|
+
fn: "booleanEquals",
|
|
214
|
+
argv: [
|
|
215
|
+
true,
|
|
216
|
+
{
|
|
217
|
+
fn: "getAttr",
|
|
218
|
+
argv: [
|
|
219
|
+
{
|
|
220
|
+
ref: "PartitionResult",
|
|
221
|
+
},
|
|
222
|
+
"supportsFIPS",
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
type: "tree",
|
|
229
|
+
rules: [
|
|
230
|
+
{
|
|
231
|
+
conditions: [],
|
|
232
|
+
type: "tree",
|
|
233
|
+
rules: [
|
|
234
|
+
{
|
|
235
|
+
conditions: [
|
|
236
|
+
{
|
|
237
|
+
fn: "stringEquals",
|
|
238
|
+
argv: [
|
|
239
|
+
{
|
|
240
|
+
ref: "Region",
|
|
241
|
+
},
|
|
242
|
+
"us-gov-west-1",
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
endpoint: {
|
|
247
|
+
url: "https://cloudtrail.us-gov-west-1.amazonaws.com",
|
|
248
|
+
properties: {},
|
|
249
|
+
headers: {},
|
|
250
|
+
},
|
|
251
|
+
type: "endpoint",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
conditions: [
|
|
255
|
+
{
|
|
256
|
+
fn: "stringEquals",
|
|
257
|
+
argv: [
|
|
258
|
+
{
|
|
259
|
+
ref: "Region",
|
|
260
|
+
},
|
|
261
|
+
"us-gov-east-1",
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
endpoint: {
|
|
266
|
+
url: "https://cloudtrail.us-gov-east-1.amazonaws.com",
|
|
267
|
+
properties: {},
|
|
268
|
+
headers: {},
|
|
269
|
+
},
|
|
270
|
+
type: "endpoint",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
conditions: [],
|
|
274
|
+
endpoint: {
|
|
275
|
+
url: "https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
276
|
+
properties: {},
|
|
277
|
+
headers: {},
|
|
278
|
+
},
|
|
279
|
+
type: "endpoint",
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
conditions: [],
|
|
287
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
288
|
+
type: "error",
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
conditions: [
|
|
294
|
+
{
|
|
295
|
+
fn: "booleanEquals",
|
|
296
|
+
argv: [
|
|
297
|
+
{
|
|
298
|
+
ref: "UseDualStack",
|
|
299
|
+
},
|
|
300
|
+
true,
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
type: "tree",
|
|
305
|
+
rules: [
|
|
306
|
+
{
|
|
307
|
+
conditions: [
|
|
308
|
+
{
|
|
309
|
+
fn: "booleanEquals",
|
|
310
|
+
argv: [
|
|
311
|
+
true,
|
|
312
|
+
{
|
|
313
|
+
fn: "getAttr",
|
|
314
|
+
argv: [
|
|
315
|
+
{
|
|
316
|
+
ref: "PartitionResult",
|
|
317
|
+
},
|
|
318
|
+
"supportsDualStack",
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
type: "tree",
|
|
325
|
+
rules: [
|
|
326
|
+
{
|
|
327
|
+
conditions: [],
|
|
328
|
+
endpoint: {
|
|
329
|
+
url: "https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
330
|
+
properties: {},
|
|
331
|
+
headers: {},
|
|
332
|
+
},
|
|
333
|
+
type: "endpoint",
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
conditions: [],
|
|
339
|
+
error: "DualStack is enabled but this partition does not support DualStack",
|
|
340
|
+
type: "error",
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
conditions: [],
|
|
346
|
+
endpoint: {
|
|
347
|
+
url: "https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}",
|
|
348
|
+
properties: {},
|
|
349
|
+
headers: {},
|
|
350
|
+
},
|
|
351
|
+
type: "endpoint",
|
|
352
|
+
},
|
|
353
|
+
],
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.EventDataStoreTerminationProtectedException = exports.EventDataStoreHasOngoingImportException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyNotFoundException = exports.KmsKeyDisabledException = exports.KmsException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = exports.InvalidParameterCombinationException = exports.InvalidKmsKeyIdException = exports.InvalidCloudWatchLogsRoleArnException = exports.InvalidCloudWatchLogsLogGroupArnException = exports.InsufficientSnsTopicPolicyException = exports.InsufficientS3BucketPolicyException = exports.InsufficientEncryptionPolicyException = exports.CloudWatchLogsDeliveryUnavailableException = exports.CloudTrailInvalidClientTokenIdException = exports.OrganizationsNotInUseException = exports.OrganizationNotInAllFeaturesModeException = exports.InsufficientDependencyServiceAccessPermissionException = exports.EventDataStoreMaxLimitExceededException = exports.EventDataStoreAlreadyExistsException = exports.EventDataStoreStatus = exports.CloudTrailAccessNotEnabledException = exports.ChannelNotFoundException = exports.ChannelARNInvalidException = exports.QueryIdNotFoundException = exports.InvalidParameterException = exports.InactiveQueryException = exports.EventDataStoreARNInvalidException = exports.QueryStatus = exports.UnsupportedOperationException = exports.TagsLimitExceededException = exports.ResourceTypeNotSupportedException = exports.ResourceNotFoundException = exports.OperationNotPermittedException = exports.NotOrganizationMasterAccountException = exports.InvalidTrailNameException = exports.InvalidTagParameterException = exports.InactiveEventDataStoreException = exports.EventDataStoreNotFoundException = exports.ConflictException = exports.CloudTrailARNInvalidException = exports.AccountHasOngoingImportException = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateTrailResponseFilterSensitiveLog = exports.UpdateTrailRequestFilterSensitiveLog = exports.UpdateEventDataStoreResponseFilterSensitiveLog = exports.UpdateEventDataStoreRequestFilterSensitiveLog = exports.StopLoggingResponseFilterSensitiveLog = exports.StopLoggingRequestFilterSensitiveLog = exports.StopImportResponseFilterSensitiveLog = exports.StopImportRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.StartLoggingResponseFilterSensitiveLog = exports.StartLoggingRequestFilterSensitiveLog = exports.StartImportResponseFilterSensitiveLog = exports.StartImportRequestFilterSensitiveLog = exports.RestoreEventDataStoreResponseFilterSensitiveLog = exports.RestoreEventDataStoreRequestFilterSensitiveLog = exports.RemoveTagsResponseFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.PutInsightSelectorsResponseFilterSensitiveLog = exports.PutInsightSelectorsRequestFilterSensitiveLog = exports.PutEventSelectorsResponseFilterSensitiveLog = void 0;
|
|
4
|
+
exports.SourceConfigFilterSensitiveLog = exports.DestinationFilterSensitiveLog = exports.GetChannelRequestFilterSensitiveLog = exports.DescribeTrailsResponseFilterSensitiveLog = exports.TrailFilterSensitiveLog = exports.DescribeTrailsRequestFilterSensitiveLog = exports.DescribeQueryResponseFilterSensitiveLog = exports.QueryStatisticsForDescribeQueryFilterSensitiveLog = exports.DescribeQueryRequestFilterSensitiveLog = exports.DeleteTrailResponseFilterSensitiveLog = exports.DeleteTrailRequestFilterSensitiveLog = exports.DeleteEventDataStoreResponseFilterSensitiveLog = exports.DeleteEventDataStoreRequestFilterSensitiveLog = exports.CreateTrailResponseFilterSensitiveLog = exports.CreateTrailRequestFilterSensitiveLog = exports.CreateEventDataStoreResponseFilterSensitiveLog = exports.CreateEventDataStoreRequestFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.CancelQueryResponseFilterSensitiveLog = exports.CancelQueryRequestFilterSensitiveLog = exports.AdvancedEventSelectorFilterSensitiveLog = exports.AdvancedFieldSelectorFilterSensitiveLog = exports.AddTagsResponseFilterSensitiveLog = exports.AddTagsRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidImportSourceException = exports.InvalidEventDataStoreCategoryException = exports.InvalidEventDataStoreStatusException = exports.InvalidInsightSelectorsException = exports.InvalidEventSelectorsException = exports.LookupAttributeKey = exports.EventCategory = exports.InvalidLookupAttributesException = exports.InvalidEventCategoryException = exports.InvalidQueryStatusException = exports.InvalidDateRangeException = exports.InvalidTokenException = exports.InvalidTimeRangeException = exports.ImportFailureStatus = exports.InvalidNextTokenException = exports.InvalidMaxResultsException = exports.InsightNotEnabledException = exports.InsightType = exports.ImportNotFoundException = exports.ImportStatus = exports.ReadWriteType = exports.DestinationType = exports.DeliveryStatus = void 0;
|
|
5
|
+
exports.LookupEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.LookupEventsRequestFilterSensitiveLog = exports.LookupAttributeFilterSensitiveLog = exports.ListTrailsResponseFilterSensitiveLog = exports.TrailInfoFilterSensitiveLog = exports.ListTrailsRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ResourceTagFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListQueriesResponseFilterSensitiveLog = exports.QueryFilterSensitiveLog = exports.ListQueriesRequestFilterSensitiveLog = exports.ListPublicKeysResponseFilterSensitiveLog = exports.PublicKeyFilterSensitiveLog = exports.ListPublicKeysRequestFilterSensitiveLog = exports.ListImportsResponseFilterSensitiveLog = exports.ImportsListItemFilterSensitiveLog = exports.ListImportsRequestFilterSensitiveLog = exports.ListImportFailuresResponseFilterSensitiveLog = exports.ImportFailureListItemFilterSensitiveLog = exports.ListImportFailuresRequestFilterSensitiveLog = exports.ListEventDataStoresResponseFilterSensitiveLog = exports.EventDataStoreFilterSensitiveLog = exports.ListEventDataStoresRequestFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.ListChannelsRequestFilterSensitiveLog = exports.GetTrailStatusResponseFilterSensitiveLog = exports.GetTrailStatusRequestFilterSensitiveLog = exports.GetTrailResponseFilterSensitiveLog = exports.GetTrailRequestFilterSensitiveLog = exports.GetQueryResultsResponseFilterSensitiveLog = exports.QueryStatisticsFilterSensitiveLog = exports.GetQueryResultsRequestFilterSensitiveLog = exports.GetInsightSelectorsResponseFilterSensitiveLog = exports.InsightSelectorFilterSensitiveLog = exports.GetInsightSelectorsRequestFilterSensitiveLog = exports.GetImportResponseFilterSensitiveLog = exports.ImportStatisticsFilterSensitiveLog = exports.ImportSourceFilterSensitiveLog = exports.S3ImportSourceFilterSensitiveLog = exports.GetImportRequestFilterSensitiveLog = exports.GetEventSelectorsResponseFilterSensitiveLog = exports.EventSelectorFilterSensitiveLog = exports.DataResourceFilterSensitiveLog = exports.GetEventSelectorsRequestFilterSensitiveLog = exports.GetEventDataStoreResponseFilterSensitiveLog = exports.GetEventDataStoreRequestFilterSensitiveLog = exports.GetChannelResponseFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateTrailResponseFilterSensitiveLog = exports.UpdateTrailRequestFilterSensitiveLog = exports.UpdateEventDataStoreResponseFilterSensitiveLog = exports.UpdateEventDataStoreRequestFilterSensitiveLog = exports.StopLoggingResponseFilterSensitiveLog = exports.StopLoggingRequestFilterSensitiveLog = exports.StopImportResponseFilterSensitiveLog = exports.StopImportRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.StartLoggingResponseFilterSensitiveLog = exports.StartLoggingRequestFilterSensitiveLog = exports.StartImportResponseFilterSensitiveLog = exports.StartImportRequestFilterSensitiveLog = exports.RestoreEventDataStoreResponseFilterSensitiveLog = exports.RestoreEventDataStoreRequestFilterSensitiveLog = exports.RemoveTagsResponseFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.PutInsightSelectorsResponseFilterSensitiveLog = exports.PutInsightSelectorsRequestFilterSensitiveLog = exports.PutEventSelectorsResponseFilterSensitiveLog = exports.PutEventSelectorsRequestFilterSensitiveLog = void 0;
|
|
7
7
|
const CloudTrailServiceException_1 = require("./CloudTrailServiceException");
|
|
8
8
|
class AccountHasOngoingImportException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
9
9
|
constructor(opts) {
|
|
@@ -692,6 +692,18 @@ class TrailNotFoundException extends CloudTrailServiceException_1.CloudTrailServ
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
exports.TrailNotFoundException = TrailNotFoundException;
|
|
695
|
+
var DeliveryStatus;
|
|
696
|
+
(function (DeliveryStatus) {
|
|
697
|
+
DeliveryStatus["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
698
|
+
DeliveryStatus["ACCESS_DENIED_SIGNING_FILE"] = "ACCESS_DENIED_SIGNING_FILE";
|
|
699
|
+
DeliveryStatus["CANCELLED"] = "CANCELLED";
|
|
700
|
+
DeliveryStatus["FAILED"] = "FAILED";
|
|
701
|
+
DeliveryStatus["FAILED_SIGNING_FILE"] = "FAILED_SIGNING_FILE";
|
|
702
|
+
DeliveryStatus["PENDING"] = "PENDING";
|
|
703
|
+
DeliveryStatus["RESOURCE_NOT_FOUND"] = "RESOURCE_NOT_FOUND";
|
|
704
|
+
DeliveryStatus["SUCCESS"] = "SUCCESS";
|
|
705
|
+
DeliveryStatus["UNKNOWN"] = "UNKNOWN";
|
|
706
|
+
})(DeliveryStatus = exports.DeliveryStatus || (exports.DeliveryStatus = {}));
|
|
695
707
|
var DestinationType;
|
|
696
708
|
(function (DestinationType) {
|
|
697
709
|
DestinationType["AWS_SERVICE"] = "AWS_SERVICE";
|
|
@@ -2059,18 +2059,30 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2059
2059
|
case "InactiveEventDataStoreException":
|
|
2060
2060
|
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2061
2061
|
throw await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context);
|
|
2062
|
+
case "InsufficientS3BucketPolicyException":
|
|
2063
|
+
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
2064
|
+
throw await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context);
|
|
2062
2065
|
case "InvalidParameterException":
|
|
2063
2066
|
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2064
2067
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2065
2068
|
case "InvalidQueryStatementException":
|
|
2066
2069
|
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
2067
2070
|
throw await deserializeAws_json1_1InvalidQueryStatementExceptionResponse(parsedOutput, context);
|
|
2071
|
+
case "InvalidS3BucketNameException":
|
|
2072
|
+
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
2073
|
+
throw await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context);
|
|
2074
|
+
case "InvalidS3PrefixException":
|
|
2075
|
+
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
2076
|
+
throw await deserializeAws_json1_1InvalidS3PrefixExceptionResponse(parsedOutput, context);
|
|
2068
2077
|
case "MaxConcurrentQueriesException":
|
|
2069
2078
|
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
2070
2079
|
throw await deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse(parsedOutput, context);
|
|
2071
2080
|
case "OperationNotPermittedException":
|
|
2072
2081
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2073
2082
|
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
2083
|
+
case "S3BucketDoesNotExistException":
|
|
2084
|
+
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
2085
|
+
throw await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2074
2086
|
case "UnsupportedOperationException":
|
|
2075
2087
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2076
2088
|
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
@@ -3310,6 +3322,7 @@ const serializeAws_json1_1StartLoggingRequest = (input, context) => {
|
|
|
3310
3322
|
};
|
|
3311
3323
|
const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
3312
3324
|
return {
|
|
3325
|
+
...(input.DeliveryS3Uri != null && { DeliveryS3Uri: input.DeliveryS3Uri }),
|
|
3313
3326
|
...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
|
|
3314
3327
|
};
|
|
3315
3328
|
};
|
|
@@ -3554,6 +3567,8 @@ const deserializeAws_json1_1DeleteTrailResponse = (output, context) => {
|
|
|
3554
3567
|
};
|
|
3555
3568
|
const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
3556
3569
|
return {
|
|
3570
|
+
DeliveryS3Uri: (0, smithy_client_1.expectString)(output.DeliveryS3Uri),
|
|
3571
|
+
DeliveryStatus: (0, smithy_client_1.expectString)(output.DeliveryStatus),
|
|
3557
3572
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3558
3573
|
QueryId: (0, smithy_client_1.expectString)(output.QueryId),
|
|
3559
3574
|
QueryStatistics: output.QueryStatistics != null
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
8
8
|
return ({
|
|
9
9
|
apiVersion: "2013-11-01",
|
|
10
10
|
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
|
|
12
|
+
logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
|
|
13
13
|
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "CloudTrail",
|
|
14
14
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
15
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
6
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
13
|
export class CloudTrailClient extends __Client {
|
|
12
14
|
constructor(configuration) {
|
|
13
15
|
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
-
const _config_1 =
|
|
15
|
-
const _config_2 =
|
|
16
|
-
const _config_3 =
|
|
17
|
-
const _config_4 =
|
|
18
|
-
const _config_5 =
|
|
19
|
-
const _config_6 =
|
|
20
|
-
|
|
21
|
-
|
|
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;
|
|
22
25
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
26
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
27
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AddTagsRequestFilterSensitiveLog, AddTagsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class AddTagsCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
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
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AddTagsCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "CloudTrailClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CancelQueryRequestFilterSensitiveLog, CancelQueryResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CancelQueryCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
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
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CancelQueryCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "CloudTrailClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateEventDataStoreRequestFilterSensitiveLog, CreateEventDataStoreResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateEventDataStoreCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
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
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateEventDataStoreCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "CloudTrailClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateTrailRequestFilterSensitiveLog, CreateTrailResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateTrailCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
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
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateTrailCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "CloudTrailClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteEventDataStoreRequestFilterSensitiveLog, DeleteEventDataStoreResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class DeleteEventDataStoreCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
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
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteEventDataStoreCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "CloudTrailClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteTrailRequestFilterSensitiveLog, DeleteTrailResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class DeleteTrailCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
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
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteTrailCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "CloudTrailClient";
|