@aws-sdk/client-ssm 3.45.0 → 3.47.2
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 +44 -0
- package/dist-cjs/endpoints.js +0 -28
- package/dist-cjs/models/models_0.js +5 -384
- package/dist-cjs/models/models_1.js +5 -348
- package/dist-cjs/models/models_2.js +1 -13
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +0 -28
- package/dist-es/models/models_0.js +0 -252
- package/dist-es/models/models_1.js +0 -228
- package/dist-es/models/models_2.js +0 -8
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/SSMClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -378
- package/dist-types/models/models_1.d.ts +0 -342
- package/dist-types/models/models_2.d.ts +0 -12
- 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/models/models_0.d.ts +0 -252
- package/dist-types/ts3.4/models/models_1.d.ts +0 -228
- package/dist-types/ts3.4/models/models_2.d.ts +0 -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 +40 -47
|
@@ -15,10 +15,6 @@ export var DescribeParametersResult;
|
|
|
15
15
|
(function (DescribeParametersResult) {
|
|
16
16
|
DescribeParametersResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
17
|
})(DescribeParametersResult || (DescribeParametersResult = {}));
|
|
18
|
-
export var InvalidFilterOption;
|
|
19
|
-
(function (InvalidFilterOption) {
|
|
20
|
-
InvalidFilterOption.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(InvalidFilterOption || (InvalidFilterOption = {}));
|
|
22
18
|
export var DescribePatchBaselinesRequest;
|
|
23
19
|
(function (DescribePatchBaselinesRequest) {
|
|
24
20
|
DescribePatchBaselinesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -124,10 +120,6 @@ export var DisassociateOpsItemRelatedItemResponse;
|
|
|
124
120
|
(function (DisassociateOpsItemRelatedItemResponse) {
|
|
125
121
|
DisassociateOpsItemRelatedItemResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
126
122
|
})(DisassociateOpsItemRelatedItemResponse || (DisassociateOpsItemRelatedItemResponse = {}));
|
|
127
|
-
export var OpsItemRelatedItemAssociationNotFoundException;
|
|
128
|
-
(function (OpsItemRelatedItemAssociationNotFoundException) {
|
|
129
|
-
OpsItemRelatedItemAssociationNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
|
-
})(OpsItemRelatedItemAssociationNotFoundException || (OpsItemRelatedItemAssociationNotFoundException = {}));
|
|
131
123
|
export var GetAutomationExecutionRequest;
|
|
132
124
|
(function (GetAutomationExecutionRequest) {
|
|
133
125
|
GetAutomationExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -157,14 +149,6 @@ export var GetCalendarStateResponse;
|
|
|
157
149
|
(function (GetCalendarStateResponse) {
|
|
158
150
|
GetCalendarStateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
159
151
|
})(GetCalendarStateResponse || (GetCalendarStateResponse = {}));
|
|
160
|
-
export var InvalidDocumentType;
|
|
161
|
-
(function (InvalidDocumentType) {
|
|
162
|
-
InvalidDocumentType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
|
-
})(InvalidDocumentType || (InvalidDocumentType = {}));
|
|
164
|
-
export var UnsupportedCalendarException;
|
|
165
|
-
(function (UnsupportedCalendarException) {
|
|
166
|
-
UnsupportedCalendarException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
167
|
-
})(UnsupportedCalendarException || (UnsupportedCalendarException = {}));
|
|
168
152
|
export var GetCommandInvocationRequest;
|
|
169
153
|
(function (GetCommandInvocationRequest) {
|
|
170
154
|
GetCommandInvocationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -188,14 +172,6 @@ export var GetCommandInvocationResult;
|
|
|
188
172
|
(function (GetCommandInvocationResult) {
|
|
189
173
|
GetCommandInvocationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
174
|
})(GetCommandInvocationResult || (GetCommandInvocationResult = {}));
|
|
191
|
-
export var InvalidPluginName;
|
|
192
|
-
(function (InvalidPluginName) {
|
|
193
|
-
InvalidPluginName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
-
})(InvalidPluginName || (InvalidPluginName = {}));
|
|
195
|
-
export var InvocationDoesNotExist;
|
|
196
|
-
(function (InvocationDoesNotExist) {
|
|
197
|
-
InvocationDoesNotExist.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
-
})(InvocationDoesNotExist || (InvocationDoesNotExist = {}));
|
|
199
175
|
export var GetConnectionStatusRequest;
|
|
200
176
|
(function (GetConnectionStatusRequest) {
|
|
201
177
|
GetConnectionStatusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -229,10 +205,6 @@ export var GetDeployablePatchSnapshotForInstanceResult;
|
|
|
229
205
|
(function (GetDeployablePatchSnapshotForInstanceResult) {
|
|
230
206
|
GetDeployablePatchSnapshotForInstanceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
231
207
|
})(GetDeployablePatchSnapshotForInstanceResult || (GetDeployablePatchSnapshotForInstanceResult = {}));
|
|
232
|
-
export var UnsupportedFeatureRequiredException;
|
|
233
|
-
(function (UnsupportedFeatureRequiredException) {
|
|
234
|
-
UnsupportedFeatureRequiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
235
|
-
})(UnsupportedFeatureRequiredException || (UnsupportedFeatureRequiredException = {}));
|
|
236
208
|
export var GetDocumentRequest;
|
|
237
209
|
(function (GetDocumentRequest) {
|
|
238
210
|
GetDocumentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -282,18 +254,6 @@ export var GetInventoryResult;
|
|
|
282
254
|
(function (GetInventoryResult) {
|
|
283
255
|
GetInventoryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
284
256
|
})(GetInventoryResult || (GetInventoryResult = {}));
|
|
285
|
-
export var InvalidAggregatorException;
|
|
286
|
-
(function (InvalidAggregatorException) {
|
|
287
|
-
InvalidAggregatorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
288
|
-
})(InvalidAggregatorException || (InvalidAggregatorException = {}));
|
|
289
|
-
export var InvalidInventoryGroupException;
|
|
290
|
-
(function (InvalidInventoryGroupException) {
|
|
291
|
-
InvalidInventoryGroupException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
292
|
-
})(InvalidInventoryGroupException || (InvalidInventoryGroupException = {}));
|
|
293
|
-
export var InvalidResultAttributeException;
|
|
294
|
-
(function (InvalidResultAttributeException) {
|
|
295
|
-
InvalidResultAttributeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
296
|
-
})(InvalidResultAttributeException || (InvalidResultAttributeException = {}));
|
|
297
257
|
export var GetInventorySchemaRequest;
|
|
298
258
|
(function (GetInventorySchemaRequest) {
|
|
299
259
|
GetInventorySchemaRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -458,14 +418,6 @@ export var GetParameterResult;
|
|
|
458
418
|
(function (GetParameterResult) {
|
|
459
419
|
GetParameterResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Parameter && { Parameter: Parameter.filterSensitiveLog(obj.Parameter) }))); };
|
|
460
420
|
})(GetParameterResult || (GetParameterResult = {}));
|
|
461
|
-
export var InvalidKeyId;
|
|
462
|
-
(function (InvalidKeyId) {
|
|
463
|
-
InvalidKeyId.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
464
|
-
})(InvalidKeyId || (InvalidKeyId = {}));
|
|
465
|
-
export var ParameterVersionNotFound;
|
|
466
|
-
(function (ParameterVersionNotFound) {
|
|
467
|
-
ParameterVersionNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
468
|
-
})(ParameterVersionNotFound || (ParameterVersionNotFound = {}));
|
|
469
421
|
export var GetParameterHistoryRequest;
|
|
470
422
|
(function (GetParameterHistoryRequest) {
|
|
471
423
|
GetParameterHistoryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -522,10 +474,6 @@ export var GetServiceSettingResult;
|
|
|
522
474
|
(function (GetServiceSettingResult) {
|
|
523
475
|
GetServiceSettingResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
524
476
|
})(GetServiceSettingResult || (GetServiceSettingResult = {}));
|
|
525
|
-
export var ServiceSettingNotFound;
|
|
526
|
-
(function (ServiceSettingNotFound) {
|
|
527
|
-
ServiceSettingNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
528
|
-
})(ServiceSettingNotFound || (ServiceSettingNotFound = {}));
|
|
529
477
|
export var LabelParameterVersionRequest;
|
|
530
478
|
(function (LabelParameterVersionRequest) {
|
|
531
479
|
LabelParameterVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -534,10 +482,6 @@ export var LabelParameterVersionResult;
|
|
|
534
482
|
(function (LabelParameterVersionResult) {
|
|
535
483
|
LabelParameterVersionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
536
484
|
})(LabelParameterVersionResult || (LabelParameterVersionResult = {}));
|
|
537
|
-
export var ParameterVersionLabelLimitExceeded;
|
|
538
|
-
(function (ParameterVersionLabelLimitExceeded) {
|
|
539
|
-
ParameterVersionLabelLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
540
|
-
})(ParameterVersionLabelLimitExceeded || (ParameterVersionLabelLimitExceeded = {}));
|
|
541
485
|
export var AssociationFilterKey;
|
|
542
486
|
(function (AssociationFilterKey) {
|
|
543
487
|
AssociationFilterKey["AssociationId"] = "AssociationId";
|
|
@@ -891,10 +835,6 @@ export var ListTagsForResourceResult;
|
|
|
891
835
|
(function (ListTagsForResourceResult) {
|
|
892
836
|
ListTagsForResourceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
893
837
|
})(ListTagsForResourceResult || (ListTagsForResourceResult = {}));
|
|
894
|
-
export var DocumentPermissionLimit;
|
|
895
|
-
(function (DocumentPermissionLimit) {
|
|
896
|
-
DocumentPermissionLimit.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
897
|
-
})(DocumentPermissionLimit || (DocumentPermissionLimit = {}));
|
|
898
838
|
export var ModifyDocumentPermissionRequest;
|
|
899
839
|
(function (ModifyDocumentPermissionRequest) {
|
|
900
840
|
ModifyDocumentPermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -903,18 +843,6 @@ export var ModifyDocumentPermissionResponse;
|
|
|
903
843
|
(function (ModifyDocumentPermissionResponse) {
|
|
904
844
|
ModifyDocumentPermissionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
905
845
|
})(ModifyDocumentPermissionResponse || (ModifyDocumentPermissionResponse = {}));
|
|
906
|
-
export var ComplianceTypeCountLimitExceededException;
|
|
907
|
-
(function (ComplianceTypeCountLimitExceededException) {
|
|
908
|
-
ComplianceTypeCountLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
909
|
-
})(ComplianceTypeCountLimitExceededException || (ComplianceTypeCountLimitExceededException = {}));
|
|
910
|
-
export var InvalidItemContentException;
|
|
911
|
-
(function (InvalidItemContentException) {
|
|
912
|
-
InvalidItemContentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
913
|
-
})(InvalidItemContentException || (InvalidItemContentException = {}));
|
|
914
|
-
export var ItemSizeLimitExceededException;
|
|
915
|
-
(function (ItemSizeLimitExceededException) {
|
|
916
|
-
ItemSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
917
|
-
})(ItemSizeLimitExceededException || (ItemSizeLimitExceededException = {}));
|
|
918
846
|
export var ComplianceItemEntry;
|
|
919
847
|
(function (ComplianceItemEntry) {
|
|
920
848
|
ComplianceItemEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -932,22 +860,6 @@ export var PutComplianceItemsResult;
|
|
|
932
860
|
(function (PutComplianceItemsResult) {
|
|
933
861
|
PutComplianceItemsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
934
862
|
})(PutComplianceItemsResult || (PutComplianceItemsResult = {}));
|
|
935
|
-
export var TotalSizeLimitExceededException;
|
|
936
|
-
(function (TotalSizeLimitExceededException) {
|
|
937
|
-
TotalSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
938
|
-
})(TotalSizeLimitExceededException || (TotalSizeLimitExceededException = {}));
|
|
939
|
-
export var CustomSchemaCountLimitExceededException;
|
|
940
|
-
(function (CustomSchemaCountLimitExceededException) {
|
|
941
|
-
CustomSchemaCountLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
942
|
-
})(CustomSchemaCountLimitExceededException || (CustomSchemaCountLimitExceededException = {}));
|
|
943
|
-
export var InvalidInventoryItemContextException;
|
|
944
|
-
(function (InvalidInventoryItemContextException) {
|
|
945
|
-
InvalidInventoryItemContextException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
946
|
-
})(InvalidInventoryItemContextException || (InvalidInventoryItemContextException = {}));
|
|
947
|
-
export var ItemContentMismatchException;
|
|
948
|
-
(function (ItemContentMismatchException) {
|
|
949
|
-
ItemContentMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
950
|
-
})(ItemContentMismatchException || (ItemContentMismatchException = {}));
|
|
951
863
|
export var InventoryItem;
|
|
952
864
|
(function (InventoryItem) {
|
|
953
865
|
InventoryItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -960,62 +872,6 @@ export var PutInventoryResult;
|
|
|
960
872
|
(function (PutInventoryResult) {
|
|
961
873
|
PutInventoryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
962
874
|
})(PutInventoryResult || (PutInventoryResult = {}));
|
|
963
|
-
export var SubTypeCountLimitExceededException;
|
|
964
|
-
(function (SubTypeCountLimitExceededException) {
|
|
965
|
-
SubTypeCountLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
966
|
-
})(SubTypeCountLimitExceededException || (SubTypeCountLimitExceededException = {}));
|
|
967
|
-
export var UnsupportedInventoryItemContextException;
|
|
968
|
-
(function (UnsupportedInventoryItemContextException) {
|
|
969
|
-
UnsupportedInventoryItemContextException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
970
|
-
})(UnsupportedInventoryItemContextException || (UnsupportedInventoryItemContextException = {}));
|
|
971
|
-
export var UnsupportedInventorySchemaVersionException;
|
|
972
|
-
(function (UnsupportedInventorySchemaVersionException) {
|
|
973
|
-
UnsupportedInventorySchemaVersionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
974
|
-
})(UnsupportedInventorySchemaVersionException || (UnsupportedInventorySchemaVersionException = {}));
|
|
975
|
-
export var HierarchyLevelLimitExceededException;
|
|
976
|
-
(function (HierarchyLevelLimitExceededException) {
|
|
977
|
-
HierarchyLevelLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
978
|
-
})(HierarchyLevelLimitExceededException || (HierarchyLevelLimitExceededException = {}));
|
|
979
|
-
export var HierarchyTypeMismatchException;
|
|
980
|
-
(function (HierarchyTypeMismatchException) {
|
|
981
|
-
HierarchyTypeMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
982
|
-
})(HierarchyTypeMismatchException || (HierarchyTypeMismatchException = {}));
|
|
983
|
-
export var IncompatiblePolicyException;
|
|
984
|
-
(function (IncompatiblePolicyException) {
|
|
985
|
-
IncompatiblePolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
986
|
-
})(IncompatiblePolicyException || (IncompatiblePolicyException = {}));
|
|
987
|
-
export var InvalidAllowedPatternException;
|
|
988
|
-
(function (InvalidAllowedPatternException) {
|
|
989
|
-
InvalidAllowedPatternException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
990
|
-
})(InvalidAllowedPatternException || (InvalidAllowedPatternException = {}));
|
|
991
|
-
export var InvalidPolicyAttributeException;
|
|
992
|
-
(function (InvalidPolicyAttributeException) {
|
|
993
|
-
InvalidPolicyAttributeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
994
|
-
})(InvalidPolicyAttributeException || (InvalidPolicyAttributeException = {}));
|
|
995
|
-
export var InvalidPolicyTypeException;
|
|
996
|
-
(function (InvalidPolicyTypeException) {
|
|
997
|
-
InvalidPolicyTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
998
|
-
})(InvalidPolicyTypeException || (InvalidPolicyTypeException = {}));
|
|
999
|
-
export var ParameterAlreadyExists;
|
|
1000
|
-
(function (ParameterAlreadyExists) {
|
|
1001
|
-
ParameterAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1002
|
-
})(ParameterAlreadyExists || (ParameterAlreadyExists = {}));
|
|
1003
|
-
export var ParameterLimitExceeded;
|
|
1004
|
-
(function (ParameterLimitExceeded) {
|
|
1005
|
-
ParameterLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1006
|
-
})(ParameterLimitExceeded || (ParameterLimitExceeded = {}));
|
|
1007
|
-
export var ParameterMaxVersionLimitExceeded;
|
|
1008
|
-
(function (ParameterMaxVersionLimitExceeded) {
|
|
1009
|
-
ParameterMaxVersionLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1010
|
-
})(ParameterMaxVersionLimitExceeded || (ParameterMaxVersionLimitExceeded = {}));
|
|
1011
|
-
export var ParameterPatternMismatchException;
|
|
1012
|
-
(function (ParameterPatternMismatchException) {
|
|
1013
|
-
ParameterPatternMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1014
|
-
})(ParameterPatternMismatchException || (ParameterPatternMismatchException = {}));
|
|
1015
|
-
export var PoliciesLimitExceededException;
|
|
1016
|
-
(function (PoliciesLimitExceededException) {
|
|
1017
|
-
PoliciesLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1018
|
-
})(PoliciesLimitExceededException || (PoliciesLimitExceededException = {}));
|
|
1019
875
|
export var PutParameterRequest;
|
|
1020
876
|
(function (PutParameterRequest) {
|
|
1021
877
|
PutParameterRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Value && { Value: SENSITIVE_STRING }))); };
|
|
@@ -1024,10 +880,6 @@ export var PutParameterResult;
|
|
|
1024
880
|
(function (PutParameterResult) {
|
|
1025
881
|
PutParameterResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1026
882
|
})(PutParameterResult || (PutParameterResult = {}));
|
|
1027
|
-
export var UnsupportedParameterType;
|
|
1028
|
-
(function (UnsupportedParameterType) {
|
|
1029
|
-
UnsupportedParameterType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1030
|
-
})(UnsupportedParameterType || (UnsupportedParameterType = {}));
|
|
1031
883
|
export var RegisterDefaultPatchBaselineRequest;
|
|
1032
884
|
(function (RegisterDefaultPatchBaselineRequest) {
|
|
1033
885
|
RegisterDefaultPatchBaselineRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1052,10 +904,6 @@ export var RegisterTargetWithMaintenanceWindowResult;
|
|
|
1052
904
|
(function (RegisterTargetWithMaintenanceWindowResult) {
|
|
1053
905
|
RegisterTargetWithMaintenanceWindowResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1054
906
|
})(RegisterTargetWithMaintenanceWindowResult || (RegisterTargetWithMaintenanceWindowResult = {}));
|
|
1055
|
-
export var FeatureNotAvailableException;
|
|
1056
|
-
(function (FeatureNotAvailableException) {
|
|
1057
|
-
FeatureNotAvailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1058
|
-
})(FeatureNotAvailableException || (FeatureNotAvailableException = {}));
|
|
1059
907
|
export var RegisterTaskWithMaintenanceWindowRequest;
|
|
1060
908
|
(function (RegisterTaskWithMaintenanceWindowRequest) {
|
|
1061
909
|
RegisterTaskWithMaintenanceWindowRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.TaskParameters && { TaskParameters: SENSITIVE_STRING })), (obj.TaskInvocationParameters && {
|
|
@@ -1090,14 +938,6 @@ export var ResumeSessionResponse;
|
|
|
1090
938
|
(function (ResumeSessionResponse) {
|
|
1091
939
|
ResumeSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1092
940
|
})(ResumeSessionResponse || (ResumeSessionResponse = {}));
|
|
1093
|
-
export var AutomationStepNotFoundException;
|
|
1094
|
-
(function (AutomationStepNotFoundException) {
|
|
1095
|
-
AutomationStepNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1096
|
-
})(AutomationStepNotFoundException || (AutomationStepNotFoundException = {}));
|
|
1097
|
-
export var InvalidAutomationSignalException;
|
|
1098
|
-
(function (InvalidAutomationSignalException) {
|
|
1099
|
-
InvalidAutomationSignalException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1100
|
-
})(InvalidAutomationSignalException || (InvalidAutomationSignalException = {}));
|
|
1101
941
|
export var SignalType;
|
|
1102
942
|
(function (SignalType) {
|
|
1103
943
|
SignalType["APPROVE"] = "Approve";
|
|
@@ -1114,18 +954,6 @@ export var SendAutomationSignalResult;
|
|
|
1114
954
|
(function (SendAutomationSignalResult) {
|
|
1115
955
|
SendAutomationSignalResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1116
956
|
})(SendAutomationSignalResult || (SendAutomationSignalResult = {}));
|
|
1117
|
-
export var InvalidNotificationConfig;
|
|
1118
|
-
(function (InvalidNotificationConfig) {
|
|
1119
|
-
InvalidNotificationConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1120
|
-
})(InvalidNotificationConfig || (InvalidNotificationConfig = {}));
|
|
1121
|
-
export var InvalidOutputFolder;
|
|
1122
|
-
(function (InvalidOutputFolder) {
|
|
1123
|
-
InvalidOutputFolder.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1124
|
-
})(InvalidOutputFolder || (InvalidOutputFolder = {}));
|
|
1125
|
-
export var InvalidRole;
|
|
1126
|
-
(function (InvalidRole) {
|
|
1127
|
-
InvalidRole.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1128
|
-
})(InvalidRole || (InvalidRole = {}));
|
|
1129
957
|
export var SendCommandRequest;
|
|
1130
958
|
(function (SendCommandRequest) {
|
|
1131
959
|
SendCommandRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Parameters && { Parameters: SENSITIVE_STRING }))); };
|
|
@@ -1134,10 +962,6 @@ export var SendCommandResult;
|
|
|
1134
962
|
(function (SendCommandResult) {
|
|
1135
963
|
SendCommandResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Command && { Command: Command.filterSensitiveLog(obj.Command) }))); };
|
|
1136
964
|
})(SendCommandResult || (SendCommandResult = {}));
|
|
1137
|
-
export var InvalidAssociation;
|
|
1138
|
-
(function (InvalidAssociation) {
|
|
1139
|
-
InvalidAssociation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1140
|
-
})(InvalidAssociation || (InvalidAssociation = {}));
|
|
1141
965
|
export var StartAssociationsOnceRequest;
|
|
1142
966
|
(function (StartAssociationsOnceRequest) {
|
|
1143
967
|
StartAssociationsOnceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1146,22 +970,6 @@ export var StartAssociationsOnceResult;
|
|
|
1146
970
|
(function (StartAssociationsOnceResult) {
|
|
1147
971
|
StartAssociationsOnceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1148
972
|
})(StartAssociationsOnceResult || (StartAssociationsOnceResult = {}));
|
|
1149
|
-
export var AutomationDefinitionNotFoundException;
|
|
1150
|
-
(function (AutomationDefinitionNotFoundException) {
|
|
1151
|
-
AutomationDefinitionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1152
|
-
})(AutomationDefinitionNotFoundException || (AutomationDefinitionNotFoundException = {}));
|
|
1153
|
-
export var AutomationDefinitionVersionNotFoundException;
|
|
1154
|
-
(function (AutomationDefinitionVersionNotFoundException) {
|
|
1155
|
-
AutomationDefinitionVersionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1156
|
-
})(AutomationDefinitionVersionNotFoundException || (AutomationDefinitionVersionNotFoundException = {}));
|
|
1157
|
-
export var AutomationExecutionLimitExceededException;
|
|
1158
|
-
(function (AutomationExecutionLimitExceededException) {
|
|
1159
|
-
AutomationExecutionLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1160
|
-
})(AutomationExecutionLimitExceededException || (AutomationExecutionLimitExceededException = {}));
|
|
1161
|
-
export var InvalidAutomationExecutionParametersException;
|
|
1162
|
-
(function (InvalidAutomationExecutionParametersException) {
|
|
1163
|
-
InvalidAutomationExecutionParametersException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1164
|
-
})(InvalidAutomationExecutionParametersException || (InvalidAutomationExecutionParametersException = {}));
|
|
1165
973
|
export var StartAutomationExecutionRequest;
|
|
1166
974
|
(function (StartAutomationExecutionRequest) {
|
|
1167
975
|
StartAutomationExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1170,10 +978,6 @@ export var StartAutomationExecutionResult;
|
|
|
1170
978
|
(function (StartAutomationExecutionResult) {
|
|
1171
979
|
StartAutomationExecutionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1172
980
|
})(StartAutomationExecutionResult || (StartAutomationExecutionResult = {}));
|
|
1173
|
-
export var AutomationDefinitionNotApprovedException;
|
|
1174
|
-
(function (AutomationDefinitionNotApprovedException) {
|
|
1175
|
-
AutomationDefinitionNotApprovedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1176
|
-
})(AutomationDefinitionNotApprovedException || (AutomationDefinitionNotApprovedException = {}));
|
|
1177
981
|
export var StartChangeRequestExecutionRequest;
|
|
1178
982
|
(function (StartChangeRequestExecutionRequest) {
|
|
1179
983
|
StartChangeRequestExecutionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1190,14 +994,6 @@ export var StartSessionResponse;
|
|
|
1190
994
|
(function (StartSessionResponse) {
|
|
1191
995
|
StartSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1192
996
|
})(StartSessionResponse || (StartSessionResponse = {}));
|
|
1193
|
-
export var TargetNotConnected;
|
|
1194
|
-
(function (TargetNotConnected) {
|
|
1195
|
-
TargetNotConnected.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1196
|
-
})(TargetNotConnected || (TargetNotConnected = {}));
|
|
1197
|
-
export var InvalidAutomationStatusUpdateException;
|
|
1198
|
-
(function (InvalidAutomationStatusUpdateException) {
|
|
1199
|
-
InvalidAutomationStatusUpdateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1200
|
-
})(InvalidAutomationStatusUpdateException || (InvalidAutomationStatusUpdateException = {}));
|
|
1201
997
|
export var StopType;
|
|
1202
998
|
(function (StopType) {
|
|
1203
999
|
StopType["CANCEL"] = "Cancel";
|
|
@@ -1227,14 +1023,6 @@ export var UnlabelParameterVersionResult;
|
|
|
1227
1023
|
(function (UnlabelParameterVersionResult) {
|
|
1228
1024
|
UnlabelParameterVersionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1229
1025
|
})(UnlabelParameterVersionResult || (UnlabelParameterVersionResult = {}));
|
|
1230
|
-
export var AssociationVersionLimitExceeded;
|
|
1231
|
-
(function (AssociationVersionLimitExceeded) {
|
|
1232
|
-
AssociationVersionLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1233
|
-
})(AssociationVersionLimitExceeded || (AssociationVersionLimitExceeded = {}));
|
|
1234
|
-
export var InvalidUpdate;
|
|
1235
|
-
(function (InvalidUpdate) {
|
|
1236
|
-
InvalidUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1237
|
-
})(InvalidUpdate || (InvalidUpdate = {}));
|
|
1238
1026
|
export var UpdateAssociationRequest;
|
|
1239
1027
|
(function (UpdateAssociationRequest) {
|
|
1240
1028
|
UpdateAssociationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Parameters && { Parameters: SENSITIVE_STRING }))); };
|
|
@@ -1245,10 +1033,6 @@ export var UpdateAssociationResult;
|
|
|
1245
1033
|
AssociationDescription: AssociationDescription.filterSensitiveLog(obj.AssociationDescription),
|
|
1246
1034
|
}))); };
|
|
1247
1035
|
})(UpdateAssociationResult || (UpdateAssociationResult = {}));
|
|
1248
|
-
export var StatusUnchanged;
|
|
1249
|
-
(function (StatusUnchanged) {
|
|
1250
|
-
StatusUnchanged.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1251
|
-
})(StatusUnchanged || (StatusUnchanged = {}));
|
|
1252
1036
|
export var UpdateAssociationStatusRequest;
|
|
1253
1037
|
(function (UpdateAssociationStatusRequest) {
|
|
1254
1038
|
UpdateAssociationStatusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1259,18 +1043,6 @@ export var UpdateAssociationStatusResult;
|
|
|
1259
1043
|
AssociationDescription: AssociationDescription.filterSensitiveLog(obj.AssociationDescription),
|
|
1260
1044
|
}))); };
|
|
1261
1045
|
})(UpdateAssociationStatusResult || (UpdateAssociationStatusResult = {}));
|
|
1262
|
-
export var DocumentVersionLimitExceeded;
|
|
1263
|
-
(function (DocumentVersionLimitExceeded) {
|
|
1264
|
-
DocumentVersionLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1265
|
-
})(DocumentVersionLimitExceeded || (DocumentVersionLimitExceeded = {}));
|
|
1266
|
-
export var DuplicateDocumentContent;
|
|
1267
|
-
(function (DuplicateDocumentContent) {
|
|
1268
|
-
DuplicateDocumentContent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1269
|
-
})(DuplicateDocumentContent || (DuplicateDocumentContent = {}));
|
|
1270
|
-
export var DuplicateDocumentVersionName;
|
|
1271
|
-
(function (DuplicateDocumentVersionName) {
|
|
1272
|
-
DuplicateDocumentVersionName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1273
|
-
})(DuplicateDocumentVersionName || (DuplicateDocumentVersionName = {}));
|
|
1274
1046
|
export var UpdateDocumentRequest;
|
|
1275
1047
|
(function (UpdateDocumentRequest) {
|
|
1276
1048
|
UpdateDocumentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -50,10 +50,6 @@ export var UpdateOpsItemResponse;
|
|
|
50
50
|
(function (UpdateOpsItemResponse) {
|
|
51
51
|
UpdateOpsItemResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
52
52
|
})(UpdateOpsItemResponse || (UpdateOpsItemResponse = {}));
|
|
53
|
-
export var OpsMetadataKeyLimitExceededException;
|
|
54
|
-
(function (OpsMetadataKeyLimitExceededException) {
|
|
55
|
-
OpsMetadataKeyLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
56
|
-
})(OpsMetadataKeyLimitExceededException || (OpsMetadataKeyLimitExceededException = {}));
|
|
57
53
|
export var UpdateOpsMetadataRequest;
|
|
58
54
|
(function (UpdateOpsMetadataRequest) {
|
|
59
55
|
UpdateOpsMetadataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -70,10 +66,6 @@ export var UpdatePatchBaselineResult;
|
|
|
70
66
|
(function (UpdatePatchBaselineResult) {
|
|
71
67
|
UpdatePatchBaselineResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Sources && { Sources: obj.Sources.map(function (item) { return PatchSource.filterSensitiveLog(item); }) }))); };
|
|
72
68
|
})(UpdatePatchBaselineResult || (UpdatePatchBaselineResult = {}));
|
|
73
|
-
export var ResourceDataSyncConflictException;
|
|
74
|
-
(function (ResourceDataSyncConflictException) {
|
|
75
|
-
ResourceDataSyncConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
76
|
-
})(ResourceDataSyncConflictException || (ResourceDataSyncConflictException = {}));
|
|
77
69
|
export var UpdateResourceDataSyncRequest;
|
|
78
70
|
(function (UpdateResourceDataSyncRequest) {
|
|
79
71
|
UpdateResourceDataSyncRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -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
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand";
|
|
10
10
|
import { AssociateOpsItemRelatedItemCommandInput, AssociateOpsItemRelatedItemCommandOutput } from "./commands/AssociateOpsItemRelatedItemCommand";
|
|
@@ -243,6 +243,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
243
243
|
* @internal
|
|
244
244
|
*/
|
|
245
245
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
246
|
+
/**
|
|
247
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
248
|
+
*/
|
|
249
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
246
250
|
}
|
|
247
251
|
declare type SSMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
248
252
|
/**
|