@aws-sdk/client-ssm 3.43.0 → 3.47.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 +50 -0
- package/README.md +12 -6
- package/dist-cjs/commands/UpdateDocumentMetadataCommand.js +2 -1
- package/dist-cjs/endpoints.js +1 -28
- package/dist-cjs/models/models_0.js +12 -390
- package/dist-cjs/models/models_1.js +11 -354
- package/dist-cjs/models/models_2.js +7 -13
- package/dist-cjs/protocols/Aws_json1_1.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/commands/UpdateDocumentMetadataCommand.js +2 -1
- package/dist-es/endpoints.js +1 -28
- package/dist-es/models/models_0.js +7 -258
- package/dist-es/models/models_1.js +6 -232
- package/dist-es/models/models_2.js +4 -8
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/SSM.d.ts +87 -81
- package/dist-types/SSMClient.d.ts +17 -7
- package/dist-types/commands/AddTagsToResourceCommand.d.ts +5 -5
- package/dist-types/commands/CreateActivationCommand.d.ts +6 -6
- package/dist-types/commands/CreateAssociationBatchCommand.d.ts +6 -6
- package/dist-types/commands/CreateAssociationCommand.d.ts +10 -10
- package/dist-types/commands/CreateDocumentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteActivationCommand.d.ts +2 -3
- package/dist-types/commands/DeleteAssociationCommand.d.ts +4 -4
- package/dist-types/commands/DeleteDocumentCommand.d.ts +2 -2
- package/dist-types/commands/DeleteResourceDataSyncCommand.d.ts +2 -2
- package/dist-types/commands/DeregisterManagedInstanceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeActivationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAssociationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceAssociationsStatusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceInformationCommand.d.ts +7 -6
- package/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstancePatchesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +1 -1
- package/dist-types/commands/GetCommandInvocationCommand.d.ts +2 -2
- package/dist-types/commands/GetConnectionStatusCommand.d.ts +1 -1
- package/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +2 -2
- package/dist-types/commands/GetInventoryCommand.d.ts +1 -1
- package/dist-types/commands/ListAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListCommandInvocationsCommand.d.ts +4 -4
- package/dist-types/commands/PutComplianceItemsCommand.d.ts +1 -1
- package/dist-types/commands/PutInventoryCommand.d.ts +1 -1
- package/dist-types/commands/ResumeSessionCommand.d.ts +1 -1
- package/dist-types/commands/SendCommandCommand.d.ts +1 -1
- package/dist-types/commands/StartSessionCommand.d.ts +1 -1
- package/dist-types/commands/TerminateSessionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssociationStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDocumentMetadataCommand.d.ts +2 -1
- package/dist-types/commands/UpdateManagedInstanceRoleCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +194 -570
- package/dist-types/models/models_1.d.ts +188 -536
- package/dist-types/models/models_2.d.ts +21 -25
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/SSMClient.d.ts +3 -1
- package/dist-types/ts3.4/commands/UpdateDocumentMetadataCommand.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +10 -257
- package/dist-types/ts3.4/models/models_1.d.ts +6 -235
- package/dist-types/ts3.4/models/models_2.d.ts +6 -8
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AssociationDescription, PatchSource, } from "./models_0";
|
|
4
|
+
export var ParameterType;
|
|
5
|
+
(function (ParameterType) {
|
|
6
|
+
ParameterType["SECURE_STRING"] = "SecureString";
|
|
7
|
+
ParameterType["STRING"] = "String";
|
|
8
|
+
ParameterType["STRING_LIST"] = "StringList";
|
|
9
|
+
})(ParameterType || (ParameterType = {}));
|
|
4
10
|
export var ParameterMetadata;
|
|
5
11
|
(function (ParameterMetadata) {
|
|
6
12
|
ParameterMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -9,10 +15,6 @@ export var DescribeParametersResult;
|
|
|
9
15
|
(function (DescribeParametersResult) {
|
|
10
16
|
DescribeParametersResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
11
17
|
})(DescribeParametersResult || (DescribeParametersResult = {}));
|
|
12
|
-
export var InvalidFilterOption;
|
|
13
|
-
(function (InvalidFilterOption) {
|
|
14
|
-
InvalidFilterOption.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
|
-
})(InvalidFilterOption || (InvalidFilterOption = {}));
|
|
16
18
|
export var DescribePatchBaselinesRequest;
|
|
17
19
|
(function (DescribePatchBaselinesRequest) {
|
|
18
20
|
DescribePatchBaselinesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -118,10 +120,6 @@ export var DisassociateOpsItemRelatedItemResponse;
|
|
|
118
120
|
(function (DisassociateOpsItemRelatedItemResponse) {
|
|
119
121
|
DisassociateOpsItemRelatedItemResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
122
|
})(DisassociateOpsItemRelatedItemResponse || (DisassociateOpsItemRelatedItemResponse = {}));
|
|
121
|
-
export var OpsItemRelatedItemAssociationNotFoundException;
|
|
122
|
-
(function (OpsItemRelatedItemAssociationNotFoundException) {
|
|
123
|
-
OpsItemRelatedItemAssociationNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
|
-
})(OpsItemRelatedItemAssociationNotFoundException || (OpsItemRelatedItemAssociationNotFoundException = {}));
|
|
125
123
|
export var GetAutomationExecutionRequest;
|
|
126
124
|
(function (GetAutomationExecutionRequest) {
|
|
127
125
|
GetAutomationExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -151,14 +149,6 @@ export var GetCalendarStateResponse;
|
|
|
151
149
|
(function (GetCalendarStateResponse) {
|
|
152
150
|
GetCalendarStateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
151
|
})(GetCalendarStateResponse || (GetCalendarStateResponse = {}));
|
|
154
|
-
export var InvalidDocumentType;
|
|
155
|
-
(function (InvalidDocumentType) {
|
|
156
|
-
InvalidDocumentType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
157
|
-
})(InvalidDocumentType || (InvalidDocumentType = {}));
|
|
158
|
-
export var UnsupportedCalendarException;
|
|
159
|
-
(function (UnsupportedCalendarException) {
|
|
160
|
-
UnsupportedCalendarException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
|
-
})(UnsupportedCalendarException || (UnsupportedCalendarException = {}));
|
|
162
152
|
export var GetCommandInvocationRequest;
|
|
163
153
|
(function (GetCommandInvocationRequest) {
|
|
164
154
|
GetCommandInvocationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -182,14 +172,6 @@ export var GetCommandInvocationResult;
|
|
|
182
172
|
(function (GetCommandInvocationResult) {
|
|
183
173
|
GetCommandInvocationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
184
174
|
})(GetCommandInvocationResult || (GetCommandInvocationResult = {}));
|
|
185
|
-
export var InvalidPluginName;
|
|
186
|
-
(function (InvalidPluginName) {
|
|
187
|
-
InvalidPluginName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
188
|
-
})(InvalidPluginName || (InvalidPluginName = {}));
|
|
189
|
-
export var InvocationDoesNotExist;
|
|
190
|
-
(function (InvocationDoesNotExist) {
|
|
191
|
-
InvocationDoesNotExist.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
|
-
})(InvocationDoesNotExist || (InvocationDoesNotExist = {}));
|
|
193
175
|
export var GetConnectionStatusRequest;
|
|
194
176
|
(function (GetConnectionStatusRequest) {
|
|
195
177
|
GetConnectionStatusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -223,10 +205,6 @@ export var GetDeployablePatchSnapshotForInstanceResult;
|
|
|
223
205
|
(function (GetDeployablePatchSnapshotForInstanceResult) {
|
|
224
206
|
GetDeployablePatchSnapshotForInstanceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
225
207
|
})(GetDeployablePatchSnapshotForInstanceResult || (GetDeployablePatchSnapshotForInstanceResult = {}));
|
|
226
|
-
export var UnsupportedFeatureRequiredException;
|
|
227
|
-
(function (UnsupportedFeatureRequiredException) {
|
|
228
|
-
UnsupportedFeatureRequiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
229
|
-
})(UnsupportedFeatureRequiredException || (UnsupportedFeatureRequiredException = {}));
|
|
230
208
|
export var GetDocumentRequest;
|
|
231
209
|
(function (GetDocumentRequest) {
|
|
232
210
|
GetDocumentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -276,18 +254,6 @@ export var GetInventoryResult;
|
|
|
276
254
|
(function (GetInventoryResult) {
|
|
277
255
|
GetInventoryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
278
256
|
})(GetInventoryResult || (GetInventoryResult = {}));
|
|
279
|
-
export var InvalidAggregatorException;
|
|
280
|
-
(function (InvalidAggregatorException) {
|
|
281
|
-
InvalidAggregatorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
282
|
-
})(InvalidAggregatorException || (InvalidAggregatorException = {}));
|
|
283
|
-
export var InvalidInventoryGroupException;
|
|
284
|
-
(function (InvalidInventoryGroupException) {
|
|
285
|
-
InvalidInventoryGroupException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
286
|
-
})(InvalidInventoryGroupException || (InvalidInventoryGroupException = {}));
|
|
287
|
-
export var InvalidResultAttributeException;
|
|
288
|
-
(function (InvalidResultAttributeException) {
|
|
289
|
-
InvalidResultAttributeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
290
|
-
})(InvalidResultAttributeException || (InvalidResultAttributeException = {}));
|
|
291
257
|
export var GetInventorySchemaRequest;
|
|
292
258
|
(function (GetInventorySchemaRequest) {
|
|
293
259
|
GetInventorySchemaRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -452,14 +418,6 @@ export var GetParameterResult;
|
|
|
452
418
|
(function (GetParameterResult) {
|
|
453
419
|
GetParameterResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Parameter && { Parameter: Parameter.filterSensitiveLog(obj.Parameter) }))); };
|
|
454
420
|
})(GetParameterResult || (GetParameterResult = {}));
|
|
455
|
-
export var InvalidKeyId;
|
|
456
|
-
(function (InvalidKeyId) {
|
|
457
|
-
InvalidKeyId.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
458
|
-
})(InvalidKeyId || (InvalidKeyId = {}));
|
|
459
|
-
export var ParameterVersionNotFound;
|
|
460
|
-
(function (ParameterVersionNotFound) {
|
|
461
|
-
ParameterVersionNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
462
|
-
})(ParameterVersionNotFound || (ParameterVersionNotFound = {}));
|
|
463
421
|
export var GetParameterHistoryRequest;
|
|
464
422
|
(function (GetParameterHistoryRequest) {
|
|
465
423
|
GetParameterHistoryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -516,10 +474,6 @@ export var GetServiceSettingResult;
|
|
|
516
474
|
(function (GetServiceSettingResult) {
|
|
517
475
|
GetServiceSettingResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
518
476
|
})(GetServiceSettingResult || (GetServiceSettingResult = {}));
|
|
519
|
-
export var ServiceSettingNotFound;
|
|
520
|
-
(function (ServiceSettingNotFound) {
|
|
521
|
-
ServiceSettingNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
522
|
-
})(ServiceSettingNotFound || (ServiceSettingNotFound = {}));
|
|
523
477
|
export var LabelParameterVersionRequest;
|
|
524
478
|
(function (LabelParameterVersionRequest) {
|
|
525
479
|
LabelParameterVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -528,10 +482,6 @@ export var LabelParameterVersionResult;
|
|
|
528
482
|
(function (LabelParameterVersionResult) {
|
|
529
483
|
LabelParameterVersionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
530
484
|
})(LabelParameterVersionResult || (LabelParameterVersionResult = {}));
|
|
531
|
-
export var ParameterVersionLabelLimitExceeded;
|
|
532
|
-
(function (ParameterVersionLabelLimitExceeded) {
|
|
533
|
-
ParameterVersionLabelLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
534
|
-
})(ParameterVersionLabelLimitExceeded || (ParameterVersionLabelLimitExceeded = {}));
|
|
535
485
|
export var AssociationFilterKey;
|
|
536
486
|
(function (AssociationFilterKey) {
|
|
537
487
|
AssociationFilterKey["AssociationId"] = "AssociationId";
|
|
@@ -885,10 +835,6 @@ export var ListTagsForResourceResult;
|
|
|
885
835
|
(function (ListTagsForResourceResult) {
|
|
886
836
|
ListTagsForResourceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
887
837
|
})(ListTagsForResourceResult || (ListTagsForResourceResult = {}));
|
|
888
|
-
export var DocumentPermissionLimit;
|
|
889
|
-
(function (DocumentPermissionLimit) {
|
|
890
|
-
DocumentPermissionLimit.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
891
|
-
})(DocumentPermissionLimit || (DocumentPermissionLimit = {}));
|
|
892
838
|
export var ModifyDocumentPermissionRequest;
|
|
893
839
|
(function (ModifyDocumentPermissionRequest) {
|
|
894
840
|
ModifyDocumentPermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -897,18 +843,6 @@ export var ModifyDocumentPermissionResponse;
|
|
|
897
843
|
(function (ModifyDocumentPermissionResponse) {
|
|
898
844
|
ModifyDocumentPermissionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
899
845
|
})(ModifyDocumentPermissionResponse || (ModifyDocumentPermissionResponse = {}));
|
|
900
|
-
export var ComplianceTypeCountLimitExceededException;
|
|
901
|
-
(function (ComplianceTypeCountLimitExceededException) {
|
|
902
|
-
ComplianceTypeCountLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
903
|
-
})(ComplianceTypeCountLimitExceededException || (ComplianceTypeCountLimitExceededException = {}));
|
|
904
|
-
export var InvalidItemContentException;
|
|
905
|
-
(function (InvalidItemContentException) {
|
|
906
|
-
InvalidItemContentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
907
|
-
})(InvalidItemContentException || (InvalidItemContentException = {}));
|
|
908
|
-
export var ItemSizeLimitExceededException;
|
|
909
|
-
(function (ItemSizeLimitExceededException) {
|
|
910
|
-
ItemSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
911
|
-
})(ItemSizeLimitExceededException || (ItemSizeLimitExceededException = {}));
|
|
912
846
|
export var ComplianceItemEntry;
|
|
913
847
|
(function (ComplianceItemEntry) {
|
|
914
848
|
ComplianceItemEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -926,22 +860,6 @@ export var PutComplianceItemsResult;
|
|
|
926
860
|
(function (PutComplianceItemsResult) {
|
|
927
861
|
PutComplianceItemsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
928
862
|
})(PutComplianceItemsResult || (PutComplianceItemsResult = {}));
|
|
929
|
-
export var TotalSizeLimitExceededException;
|
|
930
|
-
(function (TotalSizeLimitExceededException) {
|
|
931
|
-
TotalSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
932
|
-
})(TotalSizeLimitExceededException || (TotalSizeLimitExceededException = {}));
|
|
933
|
-
export var CustomSchemaCountLimitExceededException;
|
|
934
|
-
(function (CustomSchemaCountLimitExceededException) {
|
|
935
|
-
CustomSchemaCountLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
936
|
-
})(CustomSchemaCountLimitExceededException || (CustomSchemaCountLimitExceededException = {}));
|
|
937
|
-
export var InvalidInventoryItemContextException;
|
|
938
|
-
(function (InvalidInventoryItemContextException) {
|
|
939
|
-
InvalidInventoryItemContextException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
940
|
-
})(InvalidInventoryItemContextException || (InvalidInventoryItemContextException = {}));
|
|
941
|
-
export var ItemContentMismatchException;
|
|
942
|
-
(function (ItemContentMismatchException) {
|
|
943
|
-
ItemContentMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
944
|
-
})(ItemContentMismatchException || (ItemContentMismatchException = {}));
|
|
945
863
|
export var InventoryItem;
|
|
946
864
|
(function (InventoryItem) {
|
|
947
865
|
InventoryItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -954,62 +872,6 @@ export var PutInventoryResult;
|
|
|
954
872
|
(function (PutInventoryResult) {
|
|
955
873
|
PutInventoryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
956
874
|
})(PutInventoryResult || (PutInventoryResult = {}));
|
|
957
|
-
export var SubTypeCountLimitExceededException;
|
|
958
|
-
(function (SubTypeCountLimitExceededException) {
|
|
959
|
-
SubTypeCountLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
960
|
-
})(SubTypeCountLimitExceededException || (SubTypeCountLimitExceededException = {}));
|
|
961
|
-
export var UnsupportedInventoryItemContextException;
|
|
962
|
-
(function (UnsupportedInventoryItemContextException) {
|
|
963
|
-
UnsupportedInventoryItemContextException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
964
|
-
})(UnsupportedInventoryItemContextException || (UnsupportedInventoryItemContextException = {}));
|
|
965
|
-
export var UnsupportedInventorySchemaVersionException;
|
|
966
|
-
(function (UnsupportedInventorySchemaVersionException) {
|
|
967
|
-
UnsupportedInventorySchemaVersionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
968
|
-
})(UnsupportedInventorySchemaVersionException || (UnsupportedInventorySchemaVersionException = {}));
|
|
969
|
-
export var HierarchyLevelLimitExceededException;
|
|
970
|
-
(function (HierarchyLevelLimitExceededException) {
|
|
971
|
-
HierarchyLevelLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
972
|
-
})(HierarchyLevelLimitExceededException || (HierarchyLevelLimitExceededException = {}));
|
|
973
|
-
export var HierarchyTypeMismatchException;
|
|
974
|
-
(function (HierarchyTypeMismatchException) {
|
|
975
|
-
HierarchyTypeMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
976
|
-
})(HierarchyTypeMismatchException || (HierarchyTypeMismatchException = {}));
|
|
977
|
-
export var IncompatiblePolicyException;
|
|
978
|
-
(function (IncompatiblePolicyException) {
|
|
979
|
-
IncompatiblePolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
980
|
-
})(IncompatiblePolicyException || (IncompatiblePolicyException = {}));
|
|
981
|
-
export var InvalidAllowedPatternException;
|
|
982
|
-
(function (InvalidAllowedPatternException) {
|
|
983
|
-
InvalidAllowedPatternException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
984
|
-
})(InvalidAllowedPatternException || (InvalidAllowedPatternException = {}));
|
|
985
|
-
export var InvalidPolicyAttributeException;
|
|
986
|
-
(function (InvalidPolicyAttributeException) {
|
|
987
|
-
InvalidPolicyAttributeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
988
|
-
})(InvalidPolicyAttributeException || (InvalidPolicyAttributeException = {}));
|
|
989
|
-
export var InvalidPolicyTypeException;
|
|
990
|
-
(function (InvalidPolicyTypeException) {
|
|
991
|
-
InvalidPolicyTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
992
|
-
})(InvalidPolicyTypeException || (InvalidPolicyTypeException = {}));
|
|
993
|
-
export var ParameterAlreadyExists;
|
|
994
|
-
(function (ParameterAlreadyExists) {
|
|
995
|
-
ParameterAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
996
|
-
})(ParameterAlreadyExists || (ParameterAlreadyExists = {}));
|
|
997
|
-
export var ParameterLimitExceeded;
|
|
998
|
-
(function (ParameterLimitExceeded) {
|
|
999
|
-
ParameterLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1000
|
-
})(ParameterLimitExceeded || (ParameterLimitExceeded = {}));
|
|
1001
|
-
export var ParameterMaxVersionLimitExceeded;
|
|
1002
|
-
(function (ParameterMaxVersionLimitExceeded) {
|
|
1003
|
-
ParameterMaxVersionLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1004
|
-
})(ParameterMaxVersionLimitExceeded || (ParameterMaxVersionLimitExceeded = {}));
|
|
1005
|
-
export var ParameterPatternMismatchException;
|
|
1006
|
-
(function (ParameterPatternMismatchException) {
|
|
1007
|
-
ParameterPatternMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1008
|
-
})(ParameterPatternMismatchException || (ParameterPatternMismatchException = {}));
|
|
1009
|
-
export var PoliciesLimitExceededException;
|
|
1010
|
-
(function (PoliciesLimitExceededException) {
|
|
1011
|
-
PoliciesLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1012
|
-
})(PoliciesLimitExceededException || (PoliciesLimitExceededException = {}));
|
|
1013
875
|
export var PutParameterRequest;
|
|
1014
876
|
(function (PutParameterRequest) {
|
|
1015
877
|
PutParameterRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Value && { Value: SENSITIVE_STRING }))); };
|
|
@@ -1018,10 +880,6 @@ export var PutParameterResult;
|
|
|
1018
880
|
(function (PutParameterResult) {
|
|
1019
881
|
PutParameterResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1020
882
|
})(PutParameterResult || (PutParameterResult = {}));
|
|
1021
|
-
export var UnsupportedParameterType;
|
|
1022
|
-
(function (UnsupportedParameterType) {
|
|
1023
|
-
UnsupportedParameterType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1024
|
-
})(UnsupportedParameterType || (UnsupportedParameterType = {}));
|
|
1025
883
|
export var RegisterDefaultPatchBaselineRequest;
|
|
1026
884
|
(function (RegisterDefaultPatchBaselineRequest) {
|
|
1027
885
|
RegisterDefaultPatchBaselineRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1046,10 +904,6 @@ export var RegisterTargetWithMaintenanceWindowResult;
|
|
|
1046
904
|
(function (RegisterTargetWithMaintenanceWindowResult) {
|
|
1047
905
|
RegisterTargetWithMaintenanceWindowResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1048
906
|
})(RegisterTargetWithMaintenanceWindowResult || (RegisterTargetWithMaintenanceWindowResult = {}));
|
|
1049
|
-
export var FeatureNotAvailableException;
|
|
1050
|
-
(function (FeatureNotAvailableException) {
|
|
1051
|
-
FeatureNotAvailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1052
|
-
})(FeatureNotAvailableException || (FeatureNotAvailableException = {}));
|
|
1053
907
|
export var RegisterTaskWithMaintenanceWindowRequest;
|
|
1054
908
|
(function (RegisterTaskWithMaintenanceWindowRequest) {
|
|
1055
909
|
RegisterTaskWithMaintenanceWindowRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.TaskParameters && { TaskParameters: SENSITIVE_STRING })), (obj.TaskInvocationParameters && {
|
|
@@ -1084,14 +938,6 @@ export var ResumeSessionResponse;
|
|
|
1084
938
|
(function (ResumeSessionResponse) {
|
|
1085
939
|
ResumeSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1086
940
|
})(ResumeSessionResponse || (ResumeSessionResponse = {}));
|
|
1087
|
-
export var AutomationStepNotFoundException;
|
|
1088
|
-
(function (AutomationStepNotFoundException) {
|
|
1089
|
-
AutomationStepNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1090
|
-
})(AutomationStepNotFoundException || (AutomationStepNotFoundException = {}));
|
|
1091
|
-
export var InvalidAutomationSignalException;
|
|
1092
|
-
(function (InvalidAutomationSignalException) {
|
|
1093
|
-
InvalidAutomationSignalException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1094
|
-
})(InvalidAutomationSignalException || (InvalidAutomationSignalException = {}));
|
|
1095
941
|
export var SignalType;
|
|
1096
942
|
(function (SignalType) {
|
|
1097
943
|
SignalType["APPROVE"] = "Approve";
|
|
@@ -1108,18 +954,6 @@ export var SendAutomationSignalResult;
|
|
|
1108
954
|
(function (SendAutomationSignalResult) {
|
|
1109
955
|
SendAutomationSignalResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1110
956
|
})(SendAutomationSignalResult || (SendAutomationSignalResult = {}));
|
|
1111
|
-
export var InvalidNotificationConfig;
|
|
1112
|
-
(function (InvalidNotificationConfig) {
|
|
1113
|
-
InvalidNotificationConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1114
|
-
})(InvalidNotificationConfig || (InvalidNotificationConfig = {}));
|
|
1115
|
-
export var InvalidOutputFolder;
|
|
1116
|
-
(function (InvalidOutputFolder) {
|
|
1117
|
-
InvalidOutputFolder.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1118
|
-
})(InvalidOutputFolder || (InvalidOutputFolder = {}));
|
|
1119
|
-
export var InvalidRole;
|
|
1120
|
-
(function (InvalidRole) {
|
|
1121
|
-
InvalidRole.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1122
|
-
})(InvalidRole || (InvalidRole = {}));
|
|
1123
957
|
export var SendCommandRequest;
|
|
1124
958
|
(function (SendCommandRequest) {
|
|
1125
959
|
SendCommandRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Parameters && { Parameters: SENSITIVE_STRING }))); };
|
|
@@ -1128,10 +962,6 @@ export var SendCommandResult;
|
|
|
1128
962
|
(function (SendCommandResult) {
|
|
1129
963
|
SendCommandResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Command && { Command: Command.filterSensitiveLog(obj.Command) }))); };
|
|
1130
964
|
})(SendCommandResult || (SendCommandResult = {}));
|
|
1131
|
-
export var InvalidAssociation;
|
|
1132
|
-
(function (InvalidAssociation) {
|
|
1133
|
-
InvalidAssociation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1134
|
-
})(InvalidAssociation || (InvalidAssociation = {}));
|
|
1135
965
|
export var StartAssociationsOnceRequest;
|
|
1136
966
|
(function (StartAssociationsOnceRequest) {
|
|
1137
967
|
StartAssociationsOnceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1140,22 +970,6 @@ export var StartAssociationsOnceResult;
|
|
|
1140
970
|
(function (StartAssociationsOnceResult) {
|
|
1141
971
|
StartAssociationsOnceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1142
972
|
})(StartAssociationsOnceResult || (StartAssociationsOnceResult = {}));
|
|
1143
|
-
export var AutomationDefinitionNotFoundException;
|
|
1144
|
-
(function (AutomationDefinitionNotFoundException) {
|
|
1145
|
-
AutomationDefinitionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1146
|
-
})(AutomationDefinitionNotFoundException || (AutomationDefinitionNotFoundException = {}));
|
|
1147
|
-
export var AutomationDefinitionVersionNotFoundException;
|
|
1148
|
-
(function (AutomationDefinitionVersionNotFoundException) {
|
|
1149
|
-
AutomationDefinitionVersionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1150
|
-
})(AutomationDefinitionVersionNotFoundException || (AutomationDefinitionVersionNotFoundException = {}));
|
|
1151
|
-
export var AutomationExecutionLimitExceededException;
|
|
1152
|
-
(function (AutomationExecutionLimitExceededException) {
|
|
1153
|
-
AutomationExecutionLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1154
|
-
})(AutomationExecutionLimitExceededException || (AutomationExecutionLimitExceededException = {}));
|
|
1155
|
-
export var InvalidAutomationExecutionParametersException;
|
|
1156
|
-
(function (InvalidAutomationExecutionParametersException) {
|
|
1157
|
-
InvalidAutomationExecutionParametersException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1158
|
-
})(InvalidAutomationExecutionParametersException || (InvalidAutomationExecutionParametersException = {}));
|
|
1159
973
|
export var StartAutomationExecutionRequest;
|
|
1160
974
|
(function (StartAutomationExecutionRequest) {
|
|
1161
975
|
StartAutomationExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1164,10 +978,6 @@ export var StartAutomationExecutionResult;
|
|
|
1164
978
|
(function (StartAutomationExecutionResult) {
|
|
1165
979
|
StartAutomationExecutionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1166
980
|
})(StartAutomationExecutionResult || (StartAutomationExecutionResult = {}));
|
|
1167
|
-
export var AutomationDefinitionNotApprovedException;
|
|
1168
|
-
(function (AutomationDefinitionNotApprovedException) {
|
|
1169
|
-
AutomationDefinitionNotApprovedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1170
|
-
})(AutomationDefinitionNotApprovedException || (AutomationDefinitionNotApprovedException = {}));
|
|
1171
981
|
export var StartChangeRequestExecutionRequest;
|
|
1172
982
|
(function (StartChangeRequestExecutionRequest) {
|
|
1173
983
|
StartChangeRequestExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1184,14 +994,6 @@ export var StartSessionResponse;
|
|
|
1184
994
|
(function (StartSessionResponse) {
|
|
1185
995
|
StartSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1186
996
|
})(StartSessionResponse || (StartSessionResponse = {}));
|
|
1187
|
-
export var TargetNotConnected;
|
|
1188
|
-
(function (TargetNotConnected) {
|
|
1189
|
-
TargetNotConnected.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1190
|
-
})(TargetNotConnected || (TargetNotConnected = {}));
|
|
1191
|
-
export var InvalidAutomationStatusUpdateException;
|
|
1192
|
-
(function (InvalidAutomationStatusUpdateException) {
|
|
1193
|
-
InvalidAutomationStatusUpdateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1194
|
-
})(InvalidAutomationStatusUpdateException || (InvalidAutomationStatusUpdateException = {}));
|
|
1195
997
|
export var StopType;
|
|
1196
998
|
(function (StopType) {
|
|
1197
999
|
StopType["CANCEL"] = "Cancel";
|
|
@@ -1221,14 +1023,6 @@ export var UnlabelParameterVersionResult;
|
|
|
1221
1023
|
(function (UnlabelParameterVersionResult) {
|
|
1222
1024
|
UnlabelParameterVersionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1223
1025
|
})(UnlabelParameterVersionResult || (UnlabelParameterVersionResult = {}));
|
|
1224
|
-
export var AssociationVersionLimitExceeded;
|
|
1225
|
-
(function (AssociationVersionLimitExceeded) {
|
|
1226
|
-
AssociationVersionLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1227
|
-
})(AssociationVersionLimitExceeded || (AssociationVersionLimitExceeded = {}));
|
|
1228
|
-
export var InvalidUpdate;
|
|
1229
|
-
(function (InvalidUpdate) {
|
|
1230
|
-
InvalidUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1231
|
-
})(InvalidUpdate || (InvalidUpdate = {}));
|
|
1232
1026
|
export var UpdateAssociationRequest;
|
|
1233
1027
|
(function (UpdateAssociationRequest) {
|
|
1234
1028
|
UpdateAssociationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Parameters && { Parameters: SENSITIVE_STRING }))); };
|
|
@@ -1239,10 +1033,6 @@ export var UpdateAssociationResult;
|
|
|
1239
1033
|
AssociationDescription: AssociationDescription.filterSensitiveLog(obj.AssociationDescription),
|
|
1240
1034
|
}))); };
|
|
1241
1035
|
})(UpdateAssociationResult || (UpdateAssociationResult = {}));
|
|
1242
|
-
export var StatusUnchanged;
|
|
1243
|
-
(function (StatusUnchanged) {
|
|
1244
|
-
StatusUnchanged.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1245
|
-
})(StatusUnchanged || (StatusUnchanged = {}));
|
|
1246
1036
|
export var UpdateAssociationStatusRequest;
|
|
1247
1037
|
(function (UpdateAssociationStatusRequest) {
|
|
1248
1038
|
UpdateAssociationStatusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1253,18 +1043,6 @@ export var UpdateAssociationStatusResult;
|
|
|
1253
1043
|
AssociationDescription: AssociationDescription.filterSensitiveLog(obj.AssociationDescription),
|
|
1254
1044
|
}))); };
|
|
1255
1045
|
})(UpdateAssociationStatusResult || (UpdateAssociationStatusResult = {}));
|
|
1256
|
-
export var DocumentVersionLimitExceeded;
|
|
1257
|
-
(function (DocumentVersionLimitExceeded) {
|
|
1258
|
-
DocumentVersionLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1259
|
-
})(DocumentVersionLimitExceeded || (DocumentVersionLimitExceeded = {}));
|
|
1260
|
-
export var DuplicateDocumentContent;
|
|
1261
|
-
(function (DuplicateDocumentContent) {
|
|
1262
|
-
DuplicateDocumentContent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1263
|
-
})(DuplicateDocumentContent || (DuplicateDocumentContent = {}));
|
|
1264
|
-
export var DuplicateDocumentVersionName;
|
|
1265
|
-
(function (DuplicateDocumentVersionName) {
|
|
1266
|
-
DuplicateDocumentVersionName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1267
|
-
})(DuplicateDocumentVersionName || (DuplicateDocumentVersionName = {}));
|
|
1268
1046
|
export var UpdateDocumentRequest;
|
|
1269
1047
|
(function (UpdateDocumentRequest) {
|
|
1270
1048
|
UpdateDocumentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1300,7 +1078,3 @@ export var UpdateDocumentMetadataRequest;
|
|
|
1300
1078
|
(function (UpdateDocumentMetadataRequest) {
|
|
1301
1079
|
UpdateDocumentMetadataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1302
1080
|
})(UpdateDocumentMetadataRequest || (UpdateDocumentMetadataRequest = {}));
|
|
1303
|
-
export var UpdateDocumentMetadataResponse;
|
|
1304
|
-
(function (UpdateDocumentMetadataResponse) {
|
|
1305
|
-
UpdateDocumentMetadataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1306
|
-
})(UpdateDocumentMetadataResponse || (UpdateDocumentMetadataResponse = {}));
|
|
@@ -2,6 +2,10 @@ import { __assign } from "tslib";
|
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { PatchSource, } from "./models_0";
|
|
4
4
|
import { MaintenanceWindowTaskInvocationParameters, } from "./models_1";
|
|
5
|
+
export var UpdateDocumentMetadataResponse;
|
|
6
|
+
(function (UpdateDocumentMetadataResponse) {
|
|
7
|
+
UpdateDocumentMetadataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
|
+
})(UpdateDocumentMetadataResponse || (UpdateDocumentMetadataResponse = {}));
|
|
5
9
|
export var UpdateMaintenanceWindowRequest;
|
|
6
10
|
(function (UpdateMaintenanceWindowRequest) {
|
|
7
11
|
UpdateMaintenanceWindowRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Description && { Description: SENSITIVE_STRING }))); };
|
|
@@ -46,10 +50,6 @@ export var UpdateOpsItemResponse;
|
|
|
46
50
|
(function (UpdateOpsItemResponse) {
|
|
47
51
|
UpdateOpsItemResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
48
52
|
})(UpdateOpsItemResponse || (UpdateOpsItemResponse = {}));
|
|
49
|
-
export var OpsMetadataKeyLimitExceededException;
|
|
50
|
-
(function (OpsMetadataKeyLimitExceededException) {
|
|
51
|
-
OpsMetadataKeyLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
52
|
-
})(OpsMetadataKeyLimitExceededException || (OpsMetadataKeyLimitExceededException = {}));
|
|
53
53
|
export var UpdateOpsMetadataRequest;
|
|
54
54
|
(function (UpdateOpsMetadataRequest) {
|
|
55
55
|
UpdateOpsMetadataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -66,10 +66,6 @@ export var UpdatePatchBaselineResult;
|
|
|
66
66
|
(function (UpdatePatchBaselineResult) {
|
|
67
67
|
UpdatePatchBaselineResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Sources && { Sources: obj.Sources.map(function (item) { return PatchSource.filterSensitiveLog(item); }) }))); };
|
|
68
68
|
})(UpdatePatchBaselineResult || (UpdatePatchBaselineResult = {}));
|
|
69
|
-
export var ResourceDataSyncConflictException;
|
|
70
|
-
(function (ResourceDataSyncConflictException) {
|
|
71
|
-
ResourceDataSyncConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
72
|
-
})(ResourceDataSyncConflictException || (ResourceDataSyncConflictException = {}));
|
|
73
69
|
export var UpdateResourceDataSyncRequest;
|
|
74
70
|
(function (UpdateResourceDataSyncRequest) {
|
|
75
71
|
UpdateResourceDataSyncRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -17127,6 +17127,8 @@ var deserializeAws_json1_1InstanceInformation = function (output, context) {
|
|
|
17127
17127
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RegistrationDate)))
|
|
17128
17128
|
: undefined,
|
|
17129
17129
|
ResourceType: __expectString(output.ResourceType),
|
|
17130
|
+
SourceId: __expectString(output.SourceId),
|
|
17131
|
+
SourceType: __expectString(output.SourceType),
|
|
17130
17132
|
};
|
|
17131
17133
|
};
|
|
17132
17134
|
var deserializeAws_json1_1InstanceInformationList = function (output, context) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|