@aws-sdk/client-ssm 3.798.0 → 3.803.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/README.md +16 -0
- package/dist-cjs/index.js +333 -71
- package/dist-cjs/runtimeConfig.js +1 -0
- package/dist-es/SSM.js +4 -0
- package/dist-es/commands/GetAccessTokenCommand.js +23 -0
- package/dist-es/commands/RegisterTargetWithMaintenanceWindowCommand.js +1 -1
- package/dist-es/commands/RegisterTaskWithMaintenanceWindowCommand.js +1 -1
- package/dist-es/commands/StartAccessRequestCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +24 -4
- package/dist-es/models/models_1.js +57 -27
- package/dist-es/models/models_2.js +50 -16
- package/dist-es/protocols/Aws_json1_1.js +94 -6
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/SSM.d.ts +14 -0
- package/dist-types/SSMClient.d.ts +4 -2
- package/dist-types/commands/CreateDocumentCommand.d.ts +2 -2
- package/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDocumentCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +1 -2
- package/dist-types/commands/DescribeOpsItemsCommand.d.ts +2 -2
- package/dist-types/commands/GetAccessTokenCommand.d.ts +94 -0
- package/dist-types/commands/GetAutomationExecutionCommand.d.ts +1 -1
- package/dist-types/commands/GetDocumentCommand.d.ts +1 -1
- package/dist-types/commands/GetOpsItemCommand.d.ts +1 -1
- package/dist-types/commands/ListDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +1 -1
- package/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +1 -1
- package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
- package/dist-types/commands/SendAutomationSignalCommand.d.ts +1 -1
- package/dist-types/commands/StartAccessRequestCommand.d.ts +105 -0
- package/dist-types/commands/UpdateDocumentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOpsItemCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +31 -51
- package/dist-types/models/models_1.d.ts +163 -348
- package/dist-types/models/models_2.d.ts +413 -21
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/SSM.d.ts +34 -0
- package/dist-types/ts3.4/SSMClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetAccessTokenCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartAccessRequestCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +20 -14
- package/dist-types/ts3.4/models/models_1.d.ts +61 -58
- package/dist-types/ts3.4/models/models_2.d.ts +81 -9
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -4
- package/package.json +7 -7
|
@@ -29,6 +29,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
...config,
|
|
30
30
|
runtime: "node",
|
|
31
31
|
defaultsMode,
|
|
32
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
32
33
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
33
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
34
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
package/dist-es/SSM.js
CHANGED
|
@@ -62,6 +62,7 @@ import { DescribePatchGroupStateCommand, } from "./commands/DescribePatchGroupSt
|
|
|
62
62
|
import { DescribePatchPropertiesCommand, } from "./commands/DescribePatchPropertiesCommand";
|
|
63
63
|
import { DescribeSessionsCommand, } from "./commands/DescribeSessionsCommand";
|
|
64
64
|
import { DisassociateOpsItemRelatedItemCommand, } from "./commands/DisassociateOpsItemRelatedItemCommand";
|
|
65
|
+
import { GetAccessTokenCommand, } from "./commands/GetAccessTokenCommand";
|
|
65
66
|
import { GetAutomationExecutionCommand, } from "./commands/GetAutomationExecutionCommand";
|
|
66
67
|
import { GetCalendarStateCommand, } from "./commands/GetCalendarStateCommand";
|
|
67
68
|
import { GetCommandInvocationCommand, } from "./commands/GetCommandInvocationCommand";
|
|
@@ -121,6 +122,7 @@ import { ResetServiceSettingCommand, } from "./commands/ResetServiceSettingComma
|
|
|
121
122
|
import { ResumeSessionCommand, } from "./commands/ResumeSessionCommand";
|
|
122
123
|
import { SendAutomationSignalCommand, } from "./commands/SendAutomationSignalCommand";
|
|
123
124
|
import { SendCommandCommand } from "./commands/SendCommandCommand";
|
|
125
|
+
import { StartAccessRequestCommand, } from "./commands/StartAccessRequestCommand";
|
|
124
126
|
import { StartAssociationsOnceCommand, } from "./commands/StartAssociationsOnceCommand";
|
|
125
127
|
import { StartAutomationExecutionCommand, } from "./commands/StartAutomationExecutionCommand";
|
|
126
128
|
import { StartChangeRequestExecutionCommand, } from "./commands/StartChangeRequestExecutionCommand";
|
|
@@ -208,6 +210,7 @@ const commands = {
|
|
|
208
210
|
DescribePatchPropertiesCommand,
|
|
209
211
|
DescribeSessionsCommand,
|
|
210
212
|
DisassociateOpsItemRelatedItemCommand,
|
|
213
|
+
GetAccessTokenCommand,
|
|
211
214
|
GetAutomationExecutionCommand,
|
|
212
215
|
GetCalendarStateCommand,
|
|
213
216
|
GetCommandInvocationCommand,
|
|
@@ -267,6 +270,7 @@ const commands = {
|
|
|
267
270
|
ResumeSessionCommand,
|
|
268
271
|
SendAutomationSignalCommand,
|
|
269
272
|
SendCommandCommand,
|
|
273
|
+
StartAccessRequestCommand,
|
|
270
274
|
StartAssociationsOnceCommand,
|
|
271
275
|
StartAutomationExecutionCommand,
|
|
272
276
|
StartChangeRequestExecutionCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetAccessTokenResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
|
+
import { de_GetAccessTokenCommand, se_GetAccessTokenCommand } from "../protocols/Aws_json1_1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GetAccessTokenCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AmazonSSM", "GetAccessToken", {})
|
|
18
|
+
.n("SSMClient", "GetAccessTokenCommand")
|
|
19
|
+
.f(void 0, GetAccessTokenResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_GetAccessTokenCommand)
|
|
21
|
+
.de(de_GetAccessTokenCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, } from "../models/models_2";
|
|
6
6
|
import { de_RegisterTargetWithMaintenanceWindowCommand, se_RegisterTargetWithMaintenanceWindowCommand, } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class RegisterTargetWithMaintenanceWindowCommand extends $Command
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, } from "../models/models_2";
|
|
6
6
|
import { de_RegisterTaskWithMaintenanceWindowCommand, se_RegisterTaskWithMaintenanceWindowCommand, } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class RegisterTaskWithMaintenanceWindowCommand extends $Command
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StartAccessRequestCommand, se_StartAccessRequestCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartAccessRequestCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonSSM", "StartAccessRequest", {})
|
|
17
|
+
.n("SSMClient", "StartAccessRequestCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_StartAccessRequestCommand)
|
|
20
|
+
.de(de_StartAccessRequestCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -61,6 +61,7 @@ export * from "./DescribePatchGroupsCommand";
|
|
|
61
61
|
export * from "./DescribePatchPropertiesCommand";
|
|
62
62
|
export * from "./DescribeSessionsCommand";
|
|
63
63
|
export * from "./DisassociateOpsItemRelatedItemCommand";
|
|
64
|
+
export * from "./GetAccessTokenCommand";
|
|
64
65
|
export * from "./GetAutomationExecutionCommand";
|
|
65
66
|
export * from "./GetCalendarStateCommand";
|
|
66
67
|
export * from "./GetCommandInvocationCommand";
|
|
@@ -120,6 +121,7 @@ export * from "./ResetServiceSettingCommand";
|
|
|
120
121
|
export * from "./ResumeSessionCommand";
|
|
121
122
|
export * from "./SendAutomationSignalCommand";
|
|
122
123
|
export * from "./SendCommandCommand";
|
|
124
|
+
export * from "./StartAccessRequestCommand";
|
|
123
125
|
export * from "./StartAssociationsOnceCommand";
|
|
124
126
|
export * from "./StartAutomationExecutionCommand";
|
|
125
127
|
export * from "./StartChangeRequestExecutionCommand";
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { SSMServiceException as __BaseException } from "./SSMServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
name = "AccessDeniedException";
|
|
5
|
+
$fault = "client";
|
|
6
|
+
Message;
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "AccessDeniedException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
14
|
+
this.Message = opts.Message;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export const AccessRequestStatus = {
|
|
18
|
+
APPROVED: "Approved",
|
|
19
|
+
EXPIRED: "Expired",
|
|
20
|
+
PENDING: "Pending",
|
|
21
|
+
REJECTED: "Rejected",
|
|
22
|
+
REVOKED: "Revoked",
|
|
23
|
+
};
|
|
3
24
|
export const ResourceTypeForTagging = {
|
|
4
25
|
ASSOCIATION: "Association",
|
|
5
26
|
AUTOMATION: "Automation",
|
|
@@ -409,6 +430,7 @@ export const DocumentFormat = {
|
|
|
409
430
|
export const DocumentType = {
|
|
410
431
|
ApplicationConfiguration: "ApplicationConfiguration",
|
|
411
432
|
ApplicationConfigurationSchema: "ApplicationConfigurationSchema",
|
|
433
|
+
AutoApprovalPolicy: "AutoApprovalPolicy",
|
|
412
434
|
Automation: "Automation",
|
|
413
435
|
ChangeCalendar: "ChangeCalendar",
|
|
414
436
|
ChangeTemplate: "Automation.ChangeTemplate",
|
|
@@ -416,6 +438,7 @@ export const DocumentType = {
|
|
|
416
438
|
Command: "Command",
|
|
417
439
|
ConformancePackTemplate: "ConformancePackTemplate",
|
|
418
440
|
DeploymentStrategy: "DeploymentStrategy",
|
|
441
|
+
ManualApprovalPolicy: "ManualApprovalPolicy",
|
|
419
442
|
Package: "Package",
|
|
420
443
|
Policy: "Policy",
|
|
421
444
|
ProblemAnalysis: "ProblemAnalysis",
|
|
@@ -1110,6 +1133,7 @@ export const AutomationExecutionStatus = {
|
|
|
1110
1133
|
WAITING: "Waiting",
|
|
1111
1134
|
};
|
|
1112
1135
|
export const AutomationSubtype = {
|
|
1136
|
+
AccessRequest: "AccessRequest",
|
|
1113
1137
|
ChangeRequest: "ChangeRequest",
|
|
1114
1138
|
};
|
|
1115
1139
|
export const AutomationType = {
|
|
@@ -1332,10 +1356,6 @@ export const MaintenanceWindowTaskType = {
|
|
|
1332
1356
|
RunCommand: "RUN_COMMAND",
|
|
1333
1357
|
StepFunctions: "STEP_FUNCTIONS",
|
|
1334
1358
|
};
|
|
1335
|
-
export const MaintenanceWindowResourceType = {
|
|
1336
|
-
Instance: "INSTANCE",
|
|
1337
|
-
ResourceGroup: "RESOURCE_GROUP",
|
|
1338
|
-
};
|
|
1339
1359
|
export const CreateAssociationRequestFilterSensitiveLog = (obj) => ({
|
|
1340
1360
|
...obj,
|
|
1341
1361
|
...(obj.Parameters && { Parameters: SENSITIVE_STRING }),
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { PatchSourceFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { SSMServiceException as __BaseException } from "./SSMServiceException";
|
|
4
|
+
export const MaintenanceWindowResourceType = {
|
|
5
|
+
Instance: "INSTANCE",
|
|
6
|
+
ResourceGroup: "RESOURCE_GROUP",
|
|
7
|
+
};
|
|
4
8
|
export const MaintenanceWindowTaskCutoffBehavior = {
|
|
5
9
|
CancelTask: "CANCEL_TASK",
|
|
6
10
|
ContinueTask: "CONTINUE_TASK",
|
|
7
11
|
};
|
|
8
12
|
export const OpsItemFilterKey = {
|
|
13
|
+
ACCESS_REQUEST_APPROVER_ARN: "AccessRequestByApproverArn",
|
|
14
|
+
ACCESS_REQUEST_APPROVER_ID: "AccessRequestByApproverId",
|
|
15
|
+
ACCESS_REQUEST_IS_REPLICA: "AccessRequestByIsReplica",
|
|
16
|
+
ACCESS_REQUEST_REQUESTER_ARN: "AccessRequestByRequesterArn",
|
|
17
|
+
ACCESS_REQUEST_REQUESTER_ID: "AccessRequestByRequesterId",
|
|
18
|
+
ACCESS_REQUEST_SOURCE_ACCOUNT_ID: "AccessRequestBySourceAccountId",
|
|
19
|
+
ACCESS_REQUEST_SOURCE_OPS_ITEM_ID: "AccessRequestBySourceOpsItemId",
|
|
20
|
+
ACCESS_REQUEST_SOURCE_REGION: "AccessRequestBySourceRegion",
|
|
21
|
+
ACCESS_REQUEST_TARGET_RESOURCE_ID: "AccessRequestByTargetResourceId",
|
|
9
22
|
ACCOUNT_ID: "AccountId",
|
|
10
23
|
ACTUAL_END_TIME: "ActualEndTime",
|
|
11
24
|
ACTUAL_START_TIME: "ActualStartTime",
|
|
@@ -58,6 +71,7 @@ export const OpsItemStatus = {
|
|
|
58
71
|
PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride",
|
|
59
72
|
REJECTED: "Rejected",
|
|
60
73
|
RESOLVED: "Resolved",
|
|
74
|
+
REVOKED: "Revoked",
|
|
61
75
|
RUNBOOK_IN_PROGRESS: "RunbookInProgress",
|
|
62
76
|
SCHEDULED: "Scheduled",
|
|
63
77
|
TIMED_OUT: "TimedOut",
|
|
@@ -135,6 +149,40 @@ export class OpsItemRelatedItemAssociationNotFoundException extends __BaseExcept
|
|
|
135
149
|
this.Message = opts.Message;
|
|
136
150
|
}
|
|
137
151
|
}
|
|
152
|
+
export class ThrottlingException extends __BaseException {
|
|
153
|
+
name = "ThrottlingException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
Message;
|
|
156
|
+
QuotaCode;
|
|
157
|
+
ServiceCode;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "ThrottlingException",
|
|
161
|
+
$fault: "client",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
this.QuotaCode = opts.QuotaCode;
|
|
167
|
+
this.ServiceCode = opts.ServiceCode;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export class ValidationException extends __BaseException {
|
|
171
|
+
name = "ValidationException";
|
|
172
|
+
$fault = "client";
|
|
173
|
+
Message;
|
|
174
|
+
ReasonCode;
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ValidationException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
182
|
+
this.Message = opts.Message;
|
|
183
|
+
this.ReasonCode = opts.ReasonCode;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
138
186
|
export const CalendarState = {
|
|
139
187
|
CLOSED: "CLOSED",
|
|
140
188
|
OPEN: "OPEN",
|
|
@@ -840,20 +888,6 @@ export class ResourcePolicyLimitExceededException extends __BaseException {
|
|
|
840
888
|
this.Message = opts.Message;
|
|
841
889
|
}
|
|
842
890
|
}
|
|
843
|
-
export class FeatureNotAvailableException extends __BaseException {
|
|
844
|
-
name = "FeatureNotAvailableException";
|
|
845
|
-
$fault = "client";
|
|
846
|
-
Message;
|
|
847
|
-
constructor(opts) {
|
|
848
|
-
super({
|
|
849
|
-
name: "FeatureNotAvailableException",
|
|
850
|
-
$fault: "client",
|
|
851
|
-
...opts,
|
|
852
|
-
});
|
|
853
|
-
Object.setPrototypeOf(this, FeatureNotAvailableException.prototype);
|
|
854
|
-
this.Message = opts.Message;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
891
|
export const MaintenanceWindowTargetFilterSensitiveLog = (obj) => ({
|
|
858
892
|
...obj,
|
|
859
893
|
...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }),
|
|
@@ -876,6 +910,15 @@ export const DescribeMaintenanceWindowTasksResultFilterSensitiveLog = (obj) => (
|
|
|
876
910
|
...obj,
|
|
877
911
|
...(obj.Tasks && { Tasks: obj.Tasks.map((item) => MaintenanceWindowTaskFilterSensitiveLog(item)) }),
|
|
878
912
|
});
|
|
913
|
+
export const CredentialsFilterSensitiveLog = (obj) => ({
|
|
914
|
+
...obj,
|
|
915
|
+
...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
|
|
916
|
+
...(obj.SessionToken && { SessionToken: SENSITIVE_STRING }),
|
|
917
|
+
});
|
|
918
|
+
export const GetAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
919
|
+
...obj,
|
|
920
|
+
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
921
|
+
});
|
|
879
922
|
export const BaselineOverrideFilterSensitiveLog = (obj) => ({
|
|
880
923
|
...obj,
|
|
881
924
|
...(obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }),
|
|
@@ -992,16 +1035,3 @@ export const PutParameterRequestFilterSensitiveLog = (obj) => ({
|
|
|
992
1035
|
...obj,
|
|
993
1036
|
...(obj.Value && { Value: SENSITIVE_STRING }),
|
|
994
1037
|
});
|
|
995
|
-
export const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({
|
|
996
|
-
...obj,
|
|
997
|
-
...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }),
|
|
998
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
999
|
-
});
|
|
1000
|
-
export const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({
|
|
1001
|
-
...obj,
|
|
1002
|
-
...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }),
|
|
1003
|
-
...(obj.TaskInvocationParameters && {
|
|
1004
|
-
TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters),
|
|
1005
|
-
}),
|
|
1006
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
1007
|
-
});
|
|
@@ -2,6 +2,20 @@ import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
|
2
2
|
import { AssociationDescriptionFilterSensitiveLog, PatchSourceFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { CommandFilterSensitiveLog, MaintenanceWindowTaskInvocationParametersFilterSensitiveLog, } from "./models_1";
|
|
4
4
|
import { SSMServiceException as __BaseException } from "./SSMServiceException";
|
|
5
|
+
export class FeatureNotAvailableException extends __BaseException {
|
|
6
|
+
name = "FeatureNotAvailableException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "FeatureNotAvailableException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, FeatureNotAvailableException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
5
19
|
export class AutomationStepNotFoundException extends __BaseException {
|
|
6
20
|
name = "AutomationStepNotFoundException";
|
|
7
21
|
$fault = "client";
|
|
@@ -34,6 +48,7 @@ export const SignalType = {
|
|
|
34
48
|
APPROVE: "Approve",
|
|
35
49
|
REJECT: "Reject",
|
|
36
50
|
RESUME: "Resume",
|
|
51
|
+
REVOKE: "Revoke",
|
|
37
52
|
START_STEP: "StartStep",
|
|
38
53
|
STOP_STEP: "StopStep",
|
|
39
54
|
};
|
|
@@ -77,6 +92,28 @@ export class InvalidRole extends __BaseException {
|
|
|
77
92
|
this.Message = opts.Message;
|
|
78
93
|
}
|
|
79
94
|
}
|
|
95
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
96
|
+
name = "ServiceQuotaExceededException";
|
|
97
|
+
$fault = "client";
|
|
98
|
+
Message;
|
|
99
|
+
ResourceId;
|
|
100
|
+
ResourceType;
|
|
101
|
+
QuotaCode;
|
|
102
|
+
ServiceCode;
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "ServiceQuotaExceededException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
110
|
+
this.Message = opts.Message;
|
|
111
|
+
this.ResourceId = opts.ResourceId;
|
|
112
|
+
this.ResourceType = opts.ResourceType;
|
|
113
|
+
this.QuotaCode = opts.QuotaCode;
|
|
114
|
+
this.ServiceCode = opts.ServiceCode;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
80
117
|
export class InvalidAssociation extends __BaseException {
|
|
81
118
|
name = "InvalidAssociation";
|
|
82
119
|
$fault = "client";
|
|
@@ -169,22 +206,6 @@ export var ExecutionInputs;
|
|
|
169
206
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
170
207
|
};
|
|
171
208
|
})(ExecutionInputs || (ExecutionInputs = {}));
|
|
172
|
-
export class ValidationException extends __BaseException {
|
|
173
|
-
name = "ValidationException";
|
|
174
|
-
$fault = "client";
|
|
175
|
-
Message;
|
|
176
|
-
ReasonCode;
|
|
177
|
-
constructor(opts) {
|
|
178
|
-
super({
|
|
179
|
-
name: "ValidationException",
|
|
180
|
-
$fault: "client",
|
|
181
|
-
...opts,
|
|
182
|
-
});
|
|
183
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
184
|
-
this.Message = opts.Message;
|
|
185
|
-
this.ReasonCode = opts.ReasonCode;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
209
|
export class TargetNotConnected extends __BaseException {
|
|
189
210
|
name = "TargetNotConnected";
|
|
190
211
|
$fault = "client";
|
|
@@ -331,6 +352,19 @@ export class ResourceDataSyncConflictException extends __BaseException {
|
|
|
331
352
|
this.Message = opts.Message;
|
|
332
353
|
}
|
|
333
354
|
}
|
|
355
|
+
export const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }),
|
|
358
|
+
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
359
|
+
});
|
|
360
|
+
export const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }),
|
|
363
|
+
...(obj.TaskInvocationParameters && {
|
|
364
|
+
TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters),
|
|
365
|
+
}),
|
|
366
|
+
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
367
|
+
});
|
|
334
368
|
export const SendCommandRequestFilterSensitiveLog = (obj) => ({
|
|
335
369
|
...obj,
|
|
336
370
|
...(obj.Parameters && { Parameters: SENSITIVE_STRING }),
|
|
@@ -2,9 +2,9 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
import { AlreadyExistsException, AssociatedInstances, AssociationAlreadyExists, AssociationDoesNotExist, AssociationExecutionDoesNotExist, AssociationLimitExceeded, AutomationExecutionNotFoundException, DocumentAlreadyExists, DocumentLimitExceeded, DoesNotExistException, DuplicateInstanceId, IdempotentParameterMismatch, InternalServerError, InvalidActivation, InvalidActivationId, InvalidAssociationVersion, InvalidCommandId, InvalidDeleteInventoryParametersException, InvalidDeletionIdException, InvalidDocument, InvalidDocumentContent, InvalidDocumentOperation, InvalidDocumentSchemaVersion, InvalidDocumentVersion, InvalidFilter, InvalidFilterKey, InvalidFilterValue, InvalidInstanceId, InvalidInstanceInformationFilterValue, InvalidInstancePropertyFilterValue, InvalidInventoryRequestException, InvalidNextToken, InvalidOptionException, InvalidOutputLocation, InvalidParameters, InvalidPermissionType, InvalidResourceId, InvalidResourceType, InvalidSchedule, InvalidTag, InvalidTarget, InvalidTargetMaps, InvalidTypeNameException, MalformedResourcePolicyDocumentException, MaxDocumentSizeExceeded, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, OpsItemConflictException, OpsItemInvalidParameterException, OpsItemLimitExceededException, OpsItemNotFoundException, OpsItemRelatedItemAlreadyExistsException, OpsMetadataAlreadyExistsException, OpsMetadataInvalidArgumentException, OpsMetadataLimitExceededException, OpsMetadataNotFoundException, OpsMetadataTooManyUpdatesException, ParameterNotFound, ResourceDataSyncAlreadyExistsException, ResourceDataSyncCountExceededException, ResourceDataSyncInvalidConfigurationException, ResourceDataSyncNotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePolicyConflictException, ResourcePolicyInvalidParameterException, ResourcePolicyNotFoundException, TargetInUseException, TooManyTagsError, TooManyUpdates, UnsupportedOperatingSystem, UnsupportedPlatformType, } from "../models/models_0";
|
|
6
|
-
import { ComplianceTypeCountLimitExceededException, CustomSchemaCountLimitExceededException, DocumentPermissionLimit,
|
|
7
|
-
import { AssociationVersionLimitExceeded, AutomationDefinitionNotApprovedException, AutomationDefinitionNotFoundException, AutomationDefinitionVersionNotFoundException, AutomationExecutionLimitExceededException, AutomationStepNotFoundException, DocumentVersionLimitExceeded, DuplicateDocumentContent, DuplicateDocumentVersionName, InvalidAssociation, InvalidAutomationExecutionParametersException, InvalidAutomationSignalException, InvalidAutomationStatusUpdateException, InvalidNotificationConfig, InvalidOutputFolder, InvalidRole, InvalidUpdate, OpsMetadataKeyLimitExceededException, ResourceDataSyncConflictException, StatusUnchanged, TargetNotConnected,
|
|
5
|
+
import { AccessDeniedException, AlreadyExistsException, AssociatedInstances, AssociationAlreadyExists, AssociationDoesNotExist, AssociationExecutionDoesNotExist, AssociationLimitExceeded, AutomationExecutionNotFoundException, DocumentAlreadyExists, DocumentLimitExceeded, DoesNotExistException, DuplicateInstanceId, IdempotentParameterMismatch, InternalServerError, InvalidActivation, InvalidActivationId, InvalidAssociationVersion, InvalidCommandId, InvalidDeleteInventoryParametersException, InvalidDeletionIdException, InvalidDocument, InvalidDocumentContent, InvalidDocumentOperation, InvalidDocumentSchemaVersion, InvalidDocumentVersion, InvalidFilter, InvalidFilterKey, InvalidFilterValue, InvalidInstanceId, InvalidInstanceInformationFilterValue, InvalidInstancePropertyFilterValue, InvalidInventoryRequestException, InvalidNextToken, InvalidOptionException, InvalidOutputLocation, InvalidParameters, InvalidPermissionType, InvalidResourceId, InvalidResourceType, InvalidSchedule, InvalidTag, InvalidTarget, InvalidTargetMaps, InvalidTypeNameException, MalformedResourcePolicyDocumentException, MaxDocumentSizeExceeded, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, OpsItemConflictException, OpsItemInvalidParameterException, OpsItemLimitExceededException, OpsItemNotFoundException, OpsItemRelatedItemAlreadyExistsException, OpsMetadataAlreadyExistsException, OpsMetadataInvalidArgumentException, OpsMetadataLimitExceededException, OpsMetadataNotFoundException, OpsMetadataTooManyUpdatesException, ParameterNotFound, ResourceDataSyncAlreadyExistsException, ResourceDataSyncCountExceededException, ResourceDataSyncInvalidConfigurationException, ResourceDataSyncNotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePolicyConflictException, ResourcePolicyInvalidParameterException, ResourcePolicyNotFoundException, TargetInUseException, TooManyTagsError, TooManyUpdates, UnsupportedOperatingSystem, UnsupportedPlatformType, } from "../models/models_0";
|
|
6
|
+
import { ComplianceTypeCountLimitExceededException, CustomSchemaCountLimitExceededException, DocumentPermissionLimit, HierarchyLevelLimitExceededException, HierarchyTypeMismatchException, IncompatiblePolicyException, InvalidAggregatorException, InvalidAllowedPatternException, InvalidDocumentType, InvalidFilterOption, InvalidInventoryGroupException, InvalidInventoryItemContextException, InvalidItemContentException, InvalidKeyId, InvalidPluginName, InvalidPolicyAttributeException, InvalidPolicyTypeException, InvalidResultAttributeException, InvocationDoesNotExist, ItemContentMismatchException, ItemSizeLimitExceededException, OpsItemRelatedItemAssociationNotFoundException, ParameterAlreadyExists, ParameterLimitExceeded, ParameterMaxVersionLimitExceeded, ParameterPatternMismatchException, ParameterVersionLabelLimitExceeded, ParameterVersionNotFound, PoliciesLimitExceededException, ResourcePolicyLimitExceededException, ServiceSettingNotFound, SubTypeCountLimitExceededException, ThrottlingException, TotalSizeLimitExceededException, UnsupportedCalendarException, UnsupportedFeatureRequiredException, UnsupportedInventoryItemContextException, UnsupportedInventorySchemaVersionException, UnsupportedOperationException, UnsupportedParameterType, ValidationException, } from "../models/models_1";
|
|
7
|
+
import { AssociationVersionLimitExceeded, AutomationDefinitionNotApprovedException, AutomationDefinitionNotFoundException, AutomationDefinitionVersionNotFoundException, AutomationExecutionLimitExceededException, AutomationStepNotFoundException, DocumentVersionLimitExceeded, DuplicateDocumentContent, DuplicateDocumentVersionName, FeatureNotAvailableException, InvalidAssociation, InvalidAutomationExecutionParametersException, InvalidAutomationSignalException, InvalidAutomationStatusUpdateException, InvalidNotificationConfig, InvalidOutputFolder, InvalidRole, InvalidUpdate, OpsMetadataKeyLimitExceededException, ResourceDataSyncConflictException, ServiceQuotaExceededException, StatusUnchanged, TargetNotConnected, } from "../models/models_2";
|
|
8
8
|
import { SSMServiceException as __BaseException } from "../models/SSMServiceException";
|
|
9
9
|
export const se_AddTagsToResourceCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("AddTagsToResource");
|
|
@@ -384,6 +384,12 @@ export const se_DisassociateOpsItemRelatedItemCommand = async (input, context) =
|
|
|
384
384
|
body = JSON.stringify(_json(input));
|
|
385
385
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
386
|
};
|
|
387
|
+
export const se_GetAccessTokenCommand = async (input, context) => {
|
|
388
|
+
const headers = sharedHeaders("GetAccessToken");
|
|
389
|
+
let body;
|
|
390
|
+
body = JSON.stringify(_json(input));
|
|
391
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
392
|
+
};
|
|
387
393
|
export const se_GetAutomationExecutionCommand = async (input, context) => {
|
|
388
394
|
const headers = sharedHeaders("GetAutomationExecution");
|
|
389
395
|
let body;
|
|
@@ -738,6 +744,12 @@ export const se_SendCommandCommand = async (input, context) => {
|
|
|
738
744
|
body = JSON.stringify(_json(input));
|
|
739
745
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
740
746
|
};
|
|
747
|
+
export const se_StartAccessRequestCommand = async (input, context) => {
|
|
748
|
+
const headers = sharedHeaders("StartAccessRequest");
|
|
749
|
+
let body;
|
|
750
|
+
body = JSON.stringify(_json(input));
|
|
751
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
752
|
+
};
|
|
741
753
|
export const se_StartAssociationsOnceCommand = async (input, context) => {
|
|
742
754
|
const headers = sharedHeaders("StartAssociationsOnce");
|
|
743
755
|
let body;
|
|
@@ -1689,6 +1701,19 @@ export const de_DisassociateOpsItemRelatedItemCommand = async (output, context)
|
|
|
1689
1701
|
};
|
|
1690
1702
|
return response;
|
|
1691
1703
|
};
|
|
1704
|
+
export const de_GetAccessTokenCommand = async (output, context) => {
|
|
1705
|
+
if (output.statusCode >= 300) {
|
|
1706
|
+
return de_CommandError(output, context);
|
|
1707
|
+
}
|
|
1708
|
+
const data = await parseBody(output.body, context);
|
|
1709
|
+
let contents = {};
|
|
1710
|
+
contents = de_GetAccessTokenResponse(data, context);
|
|
1711
|
+
const response = {
|
|
1712
|
+
$metadata: deserializeMetadata(output),
|
|
1713
|
+
...contents,
|
|
1714
|
+
};
|
|
1715
|
+
return response;
|
|
1716
|
+
};
|
|
1692
1717
|
export const de_GetAutomationExecutionCommand = async (output, context) => {
|
|
1693
1718
|
if (output.statusCode >= 300) {
|
|
1694
1719
|
return de_CommandError(output, context);
|
|
@@ -2456,6 +2481,19 @@ export const de_SendCommandCommand = async (output, context) => {
|
|
|
2456
2481
|
};
|
|
2457
2482
|
return response;
|
|
2458
2483
|
};
|
|
2484
|
+
export const de_StartAccessRequestCommand = async (output, context) => {
|
|
2485
|
+
if (output.statusCode >= 300) {
|
|
2486
|
+
return de_CommandError(output, context);
|
|
2487
|
+
}
|
|
2488
|
+
const data = await parseBody(output.body, context);
|
|
2489
|
+
let contents = {};
|
|
2490
|
+
contents = _json(data);
|
|
2491
|
+
const response = {
|
|
2492
|
+
$metadata: deserializeMetadata(output),
|
|
2493
|
+
...contents,
|
|
2494
|
+
};
|
|
2495
|
+
return response;
|
|
2496
|
+
};
|
|
2459
2497
|
export const de_StartAssociationsOnceCommand = async (output, context) => {
|
|
2460
2498
|
if (output.statusCode >= 300) {
|
|
2461
2499
|
return de_CommandError(output, context);
|
|
@@ -2971,6 +3009,15 @@ const de_CommandError = async (output, context) => {
|
|
|
2971
3009
|
case "OpsItemRelatedItemAssociationNotFoundException":
|
|
2972
3010
|
case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException":
|
|
2973
3011
|
throw await de_OpsItemRelatedItemAssociationNotFoundExceptionRes(parsedOutput, context);
|
|
3012
|
+
case "AccessDeniedException":
|
|
3013
|
+
case "com.amazonaws.ssm#AccessDeniedException":
|
|
3014
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3015
|
+
case "ThrottlingException":
|
|
3016
|
+
case "com.amazonaws.ssm#ThrottlingException":
|
|
3017
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3018
|
+
case "ValidationException":
|
|
3019
|
+
case "com.amazonaws.ssm#ValidationException":
|
|
3020
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2974
3021
|
case "InvalidDocumentType":
|
|
2975
3022
|
case "com.amazonaws.ssm#InvalidDocumentType":
|
|
2976
3023
|
throw await de_InvalidDocumentTypeRes(parsedOutput, context);
|
|
@@ -3103,6 +3150,9 @@ const de_CommandError = async (output, context) => {
|
|
|
3103
3150
|
case "InvalidRole":
|
|
3104
3151
|
case "com.amazonaws.ssm#InvalidRole":
|
|
3105
3152
|
throw await de_InvalidRoleRes(parsedOutput, context);
|
|
3153
|
+
case "ServiceQuotaExceededException":
|
|
3154
|
+
case "com.amazonaws.ssm#ServiceQuotaExceededException":
|
|
3155
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3106
3156
|
case "InvalidAssociation":
|
|
3107
3157
|
case "com.amazonaws.ssm#InvalidAssociation":
|
|
3108
3158
|
throw await de_InvalidAssociationRes(parsedOutput, context);
|
|
@@ -3121,9 +3171,6 @@ const de_CommandError = async (output, context) => {
|
|
|
3121
3171
|
case "AutomationDefinitionNotApprovedException":
|
|
3122
3172
|
case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException":
|
|
3123
3173
|
throw await de_AutomationDefinitionNotApprovedExceptionRes(parsedOutput, context);
|
|
3124
|
-
case "ValidationException":
|
|
3125
|
-
case "com.amazonaws.ssm#ValidationException":
|
|
3126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3127
3174
|
case "TargetNotConnected":
|
|
3128
3175
|
case "com.amazonaws.ssm#TargetNotConnected":
|
|
3129
3176
|
throw await de_TargetNotConnectedRes(parsedOutput, context);
|
|
@@ -3163,6 +3210,15 @@ const de_CommandError = async (output, context) => {
|
|
|
3163
3210
|
});
|
|
3164
3211
|
}
|
|
3165
3212
|
};
|
|
3213
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3214
|
+
const body = parsedOutput.body;
|
|
3215
|
+
const deserialized = _json(body);
|
|
3216
|
+
const exception = new AccessDeniedException({
|
|
3217
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3218
|
+
...deserialized,
|
|
3219
|
+
});
|
|
3220
|
+
return __decorateServiceException(exception, body);
|
|
3221
|
+
};
|
|
3166
3222
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3167
3223
|
const body = parsedOutput.body;
|
|
3168
3224
|
const deserialized = _json(body);
|
|
@@ -4225,6 +4281,15 @@ const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
4225
4281
|
});
|
|
4226
4282
|
return __decorateServiceException(exception, body);
|
|
4227
4283
|
};
|
|
4284
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
4285
|
+
const body = parsedOutput.body;
|
|
4286
|
+
const deserialized = _json(body);
|
|
4287
|
+
const exception = new ServiceQuotaExceededException({
|
|
4288
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4289
|
+
...deserialized,
|
|
4290
|
+
});
|
|
4291
|
+
return __decorateServiceException(exception, body);
|
|
4292
|
+
};
|
|
4228
4293
|
const de_ServiceSettingNotFoundRes = async (parsedOutput, context) => {
|
|
4229
4294
|
const body = parsedOutput.body;
|
|
4230
4295
|
const deserialized = _json(body);
|
|
@@ -4270,6 +4335,15 @@ const de_TargetNotConnectedRes = async (parsedOutput, context) => {
|
|
|
4270
4335
|
});
|
|
4271
4336
|
return __decorateServiceException(exception, body);
|
|
4272
4337
|
};
|
|
4338
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4339
|
+
const body = parsedOutput.body;
|
|
4340
|
+
const deserialized = _json(body);
|
|
4341
|
+
const exception = new ThrottlingException({
|
|
4342
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4343
|
+
...deserialized,
|
|
4344
|
+
});
|
|
4345
|
+
return __decorateServiceException(exception, body);
|
|
4346
|
+
};
|
|
4273
4347
|
const de_TooManyTagsErrorRes = async (parsedOutput, context) => {
|
|
4274
4348
|
const body = parsedOutput.body;
|
|
4275
4349
|
const deserialized = _json(body);
|
|
@@ -5046,6 +5120,14 @@ const de_CreateDocumentResult = (output, context) => {
|
|
|
5046
5120
|
DocumentDescription: (_) => de_DocumentDescription(_, context),
|
|
5047
5121
|
});
|
|
5048
5122
|
};
|
|
5123
|
+
const de_Credentials = (output, context) => {
|
|
5124
|
+
return take(output, {
|
|
5125
|
+
AccessKeyId: __expectString,
|
|
5126
|
+
ExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
5127
|
+
SecretAccessKey: __expectString,
|
|
5128
|
+
SessionToken: __expectString,
|
|
5129
|
+
});
|
|
5130
|
+
};
|
|
5049
5131
|
const de_DescribeActivationsResult = (output, context) => {
|
|
5050
5132
|
return take(output, {
|
|
5051
5133
|
ActivationList: (_) => de_ActivationList(_, context),
|
|
@@ -5295,6 +5377,12 @@ const de_EffectivePatchList = (output, context) => {
|
|
|
5295
5377
|
});
|
|
5296
5378
|
return retVal;
|
|
5297
5379
|
};
|
|
5380
|
+
const de_GetAccessTokenResponse = (output, context) => {
|
|
5381
|
+
return take(output, {
|
|
5382
|
+
AccessRequestStatus: __expectString,
|
|
5383
|
+
Credentials: (_) => de_Credentials(_, context),
|
|
5384
|
+
});
|
|
5385
|
+
};
|
|
5298
5386
|
const de_GetAutomationExecutionResult = (output, context) => {
|
|
5299
5387
|
return take(output, {
|
|
5300
5388
|
AutomationExecution: (_) => de_AutomationExecution(_, context),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
4
|
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -25,6 +25,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
25
25
|
...config,
|
|
26
26
|
runtime: "node",
|
|
27
27
|
defaultsMode,
|
|
28
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
28
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
29
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
30
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|