@aws-sdk/client-ssm 3.515.0 → 3.519.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/dist-cjs/index.js +107 -10
- package/dist-es/models/models_0.js +39 -8
- package/dist-es/models/models_1.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +38 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +26 -4
- package/dist-types/commands/DescribeParametersCommand.d.ts +6 -3
- package/dist-types/commands/GetParameterHistoryCommand.d.ts +2 -2
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +3 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +40 -3
- package/dist-types/commands/StopAutomationExecutionCommand.d.ts +1 -1
- package/dist-types/commands/TerminateSessionCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +52 -61
- package/dist-types/models/models_1.d.ts +108 -45
- package/dist-types/models/models_2.d.ts +39 -4
- package/dist-types/ts3.4/commands/StopAutomationExecutionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +30 -17
- package/dist-types/ts3.4/models/models_1.d.ts +19 -11
- package/dist-types/ts3.4/models/models_2.d.ts +12 -3
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -295,6 +295,7 @@ __export(src_exports, {
|
|
|
295
295
|
MaintenanceWindowTaskInvocationParametersFilterSensitiveLog: () => MaintenanceWindowTaskInvocationParametersFilterSensitiveLog,
|
|
296
296
|
MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog: () => MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog,
|
|
297
297
|
MaintenanceWindowTaskType: () => MaintenanceWindowTaskType,
|
|
298
|
+
MalformedResourcePolicyDocumentException: () => MalformedResourcePolicyDocumentException,
|
|
298
299
|
MaxDocumentSizeExceeded: () => MaxDocumentSizeExceeded,
|
|
299
300
|
ModifyDocumentPermissionCommand: () => ModifyDocumentPermissionCommand,
|
|
300
301
|
NotificationEvent: () => NotificationEvent,
|
|
@@ -369,9 +370,11 @@ __export(src_exports, {
|
|
|
369
370
|
ResourceDataSyncS3Format: () => ResourceDataSyncS3Format,
|
|
370
371
|
ResourceInUseException: () => ResourceInUseException,
|
|
371
372
|
ResourceLimitExceededException: () => ResourceLimitExceededException,
|
|
373
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
372
374
|
ResourcePolicyConflictException: () => ResourcePolicyConflictException,
|
|
373
375
|
ResourcePolicyInvalidParameterException: () => ResourcePolicyInvalidParameterException,
|
|
374
376
|
ResourcePolicyLimitExceededException: () => ResourcePolicyLimitExceededException,
|
|
377
|
+
ResourcePolicyNotFoundException: () => ResourcePolicyNotFoundException,
|
|
375
378
|
ResourceType: () => ResourceType,
|
|
376
379
|
ResourceTypeForTagging: () => ResourceTypeForTagging,
|
|
377
380
|
ResumeSessionCommand: () => ResumeSessionCommand,
|
|
@@ -1799,6 +1802,42 @@ var _ResourceDataSyncNotFoundException = class _ResourceDataSyncNotFoundExceptio
|
|
|
1799
1802
|
};
|
|
1800
1803
|
__name(_ResourceDataSyncNotFoundException, "ResourceDataSyncNotFoundException");
|
|
1801
1804
|
var ResourceDataSyncNotFoundException = _ResourceDataSyncNotFoundException;
|
|
1805
|
+
var _MalformedResourcePolicyDocumentException = class _MalformedResourcePolicyDocumentException extends SSMServiceException {
|
|
1806
|
+
/**
|
|
1807
|
+
* @internal
|
|
1808
|
+
*/
|
|
1809
|
+
constructor(opts) {
|
|
1810
|
+
super({
|
|
1811
|
+
name: "MalformedResourcePolicyDocumentException",
|
|
1812
|
+
$fault: "client",
|
|
1813
|
+
...opts
|
|
1814
|
+
});
|
|
1815
|
+
this.name = "MalformedResourcePolicyDocumentException";
|
|
1816
|
+
this.$fault = "client";
|
|
1817
|
+
Object.setPrototypeOf(this, _MalformedResourcePolicyDocumentException.prototype);
|
|
1818
|
+
this.Message = opts.Message;
|
|
1819
|
+
}
|
|
1820
|
+
};
|
|
1821
|
+
__name(_MalformedResourcePolicyDocumentException, "MalformedResourcePolicyDocumentException");
|
|
1822
|
+
var MalformedResourcePolicyDocumentException = _MalformedResourcePolicyDocumentException;
|
|
1823
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends SSMServiceException {
|
|
1824
|
+
/**
|
|
1825
|
+
* @internal
|
|
1826
|
+
*/
|
|
1827
|
+
constructor(opts) {
|
|
1828
|
+
super({
|
|
1829
|
+
name: "ResourceNotFoundException",
|
|
1830
|
+
$fault: "client",
|
|
1831
|
+
...opts
|
|
1832
|
+
});
|
|
1833
|
+
this.name = "ResourceNotFoundException";
|
|
1834
|
+
this.$fault = "client";
|
|
1835
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
1836
|
+
this.Message = opts.Message;
|
|
1837
|
+
}
|
|
1838
|
+
};
|
|
1839
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
1840
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
1802
1841
|
var _ResourcePolicyConflictException = class _ResourcePolicyConflictException extends SSMServiceException {
|
|
1803
1842
|
/**
|
|
1804
1843
|
* @internal
|
|
@@ -1836,6 +1875,24 @@ var _ResourcePolicyInvalidParameterException = class _ResourcePolicyInvalidParam
|
|
|
1836
1875
|
};
|
|
1837
1876
|
__name(_ResourcePolicyInvalidParameterException, "ResourcePolicyInvalidParameterException");
|
|
1838
1877
|
var ResourcePolicyInvalidParameterException = _ResourcePolicyInvalidParameterException;
|
|
1878
|
+
var _ResourcePolicyNotFoundException = class _ResourcePolicyNotFoundException extends SSMServiceException {
|
|
1879
|
+
/**
|
|
1880
|
+
* @internal
|
|
1881
|
+
*/
|
|
1882
|
+
constructor(opts) {
|
|
1883
|
+
super({
|
|
1884
|
+
name: "ResourcePolicyNotFoundException",
|
|
1885
|
+
$fault: "client",
|
|
1886
|
+
...opts
|
|
1887
|
+
});
|
|
1888
|
+
this.name = "ResourcePolicyNotFoundException";
|
|
1889
|
+
this.$fault = "client";
|
|
1890
|
+
Object.setPrototypeOf(this, _ResourcePolicyNotFoundException.prototype);
|
|
1891
|
+
this.Message = opts.Message;
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
__name(_ResourcePolicyNotFoundException, "ResourcePolicyNotFoundException");
|
|
1895
|
+
var ResourcePolicyNotFoundException = _ResourcePolicyNotFoundException;
|
|
1839
1896
|
var _TargetInUseException = class _TargetInUseException extends SSMServiceException {
|
|
1840
1897
|
/**
|
|
1841
1898
|
* @internal
|
|
@@ -2207,10 +2264,6 @@ var MaintenanceWindowResourceType = {
|
|
|
2207
2264
|
Instance: "INSTANCE",
|
|
2208
2265
|
ResourceGroup: "RESOURCE_GROUP"
|
|
2209
2266
|
};
|
|
2210
|
-
var MaintenanceWindowTaskCutoffBehavior = {
|
|
2211
|
-
CancelTask: "CANCEL_TASK",
|
|
2212
|
-
ContinueTask: "CONTINUE_TASK"
|
|
2213
|
-
};
|
|
2214
2267
|
var CreateAssociationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2215
2268
|
...obj,
|
|
2216
2269
|
...obj.Parameters && { Parameters: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -2310,13 +2363,13 @@ var DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = /* @__PURE__ */ _
|
|
|
2310
2363
|
...obj,
|
|
2311
2364
|
...obj.Targets && { Targets: obj.Targets.map((item) => MaintenanceWindowTargetFilterSensitiveLog(item)) }
|
|
2312
2365
|
}), "DescribeMaintenanceWindowTargetsResultFilterSensitiveLog");
|
|
2313
|
-
var MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2314
|
-
...obj,
|
|
2315
|
-
...obj.Values && { Values: import_smithy_client.SENSITIVE_STRING }
|
|
2316
|
-
}), "MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog");
|
|
2317
2366
|
|
|
2318
2367
|
// src/models/models_1.ts
|
|
2319
2368
|
|
|
2369
|
+
var MaintenanceWindowTaskCutoffBehavior = {
|
|
2370
|
+
CancelTask: "CANCEL_TASK",
|
|
2371
|
+
ContinueTask: "CONTINUE_TASK"
|
|
2372
|
+
};
|
|
2320
2373
|
var OpsItemFilterKey = {
|
|
2321
2374
|
ACCOUNT_ID: "AccountId",
|
|
2322
2375
|
ACTUAL_END_TIME: "ActualEndTime",
|
|
@@ -3496,6 +3549,10 @@ var StopType = {
|
|
|
3496
3549
|
CANCEL: "Cancel",
|
|
3497
3550
|
COMPLETE: "Complete"
|
|
3498
3551
|
};
|
|
3552
|
+
var MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
3553
|
+
...obj,
|
|
3554
|
+
...obj.Values && { Values: import_smithy_client.SENSITIVE_STRING }
|
|
3555
|
+
}), "MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog");
|
|
3499
3556
|
var MaintenanceWindowTaskFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
3500
3557
|
...obj,
|
|
3501
3558
|
...obj.TaskParameters && { TaskParameters: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -6645,12 +6702,21 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
6645
6702
|
case "ResourceDataSyncNotFoundException":
|
|
6646
6703
|
case "com.amazonaws.ssm#ResourceDataSyncNotFoundException":
|
|
6647
6704
|
throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context);
|
|
6705
|
+
case "MalformedResourcePolicyDocumentException":
|
|
6706
|
+
case "com.amazonaws.ssm#MalformedResourcePolicyDocumentException":
|
|
6707
|
+
throw await de_MalformedResourcePolicyDocumentExceptionRes(parsedOutput, context);
|
|
6708
|
+
case "ResourceNotFoundException":
|
|
6709
|
+
case "com.amazonaws.ssm#ResourceNotFoundException":
|
|
6710
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6648
6711
|
case "ResourcePolicyConflictException":
|
|
6649
6712
|
case "com.amazonaws.ssm#ResourcePolicyConflictException":
|
|
6650
6713
|
throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context);
|
|
6651
6714
|
case "ResourcePolicyInvalidParameterException":
|
|
6652
6715
|
case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException":
|
|
6653
6716
|
throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context);
|
|
6717
|
+
case "ResourcePolicyNotFoundException":
|
|
6718
|
+
case "com.amazonaws.ssm#ResourcePolicyNotFoundException":
|
|
6719
|
+
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
6654
6720
|
case "TargetInUseException":
|
|
6655
6721
|
case "com.amazonaws.ssm#TargetInUseException":
|
|
6656
6722
|
throw await de_TargetInUseExceptionRes(parsedOutput, context);
|
|
@@ -7608,6 +7674,15 @@ var de_ItemSizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedO
|
|
|
7608
7674
|
});
|
|
7609
7675
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
7610
7676
|
}, "de_ItemSizeLimitExceededExceptionRes");
|
|
7677
|
+
var de_MalformedResourcePolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7678
|
+
const body = parsedOutput.body;
|
|
7679
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
7680
|
+
const exception = new MalformedResourcePolicyDocumentException({
|
|
7681
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7682
|
+
...deserialized
|
|
7683
|
+
});
|
|
7684
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
7685
|
+
}, "de_MalformedResourcePolicyDocumentExceptionRes");
|
|
7611
7686
|
var de_MaxDocumentSizeExceededRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7612
7687
|
const body = parsedOutput.body;
|
|
7613
7688
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -7878,6 +7953,15 @@ var de_ResourceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedO
|
|
|
7878
7953
|
});
|
|
7879
7954
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
7880
7955
|
}, "de_ResourceLimitExceededExceptionRes");
|
|
7956
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7957
|
+
const body = parsedOutput.body;
|
|
7958
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
7959
|
+
const exception = new ResourceNotFoundException({
|
|
7960
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7961
|
+
...deserialized
|
|
7962
|
+
});
|
|
7963
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
7964
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
7881
7965
|
var de_ResourcePolicyConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7882
7966
|
const body = parsedOutput.body;
|
|
7883
7967
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -7905,6 +7989,15 @@ var de_ResourcePolicyLimitExceededExceptionRes = /* @__PURE__ */ __name(async (p
|
|
|
7905
7989
|
});
|
|
7906
7990
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
7907
7991
|
}, "de_ResourcePolicyLimitExceededExceptionRes");
|
|
7992
|
+
var de_ResourcePolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7993
|
+
const body = parsedOutput.body;
|
|
7994
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
7995
|
+
const exception = new ResourcePolicyNotFoundException({
|
|
7996
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7997
|
+
...deserialized
|
|
7998
|
+
});
|
|
7999
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
8000
|
+
}, "de_ResourcePolicyNotFoundExceptionRes");
|
|
7908
8001
|
var de_ServiceSettingNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
7909
8002
|
const body = parsedOutput.body;
|
|
7910
8003
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -9458,6 +9551,7 @@ var de_ParameterList = /* @__PURE__ */ __name((output, context) => {
|
|
|
9458
9551
|
}, "de_ParameterList");
|
|
9459
9552
|
var de_ParameterMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
9460
9553
|
return (0, import_smithy_client.take)(output, {
|
|
9554
|
+
ARN: import_smithy_client.expectString,
|
|
9461
9555
|
AllowedPattern: import_smithy_client.expectString,
|
|
9462
9556
|
DataType: import_smithy_client.expectString,
|
|
9463
9557
|
Description: import_smithy_client.expectString,
|
|
@@ -12852,8 +12946,11 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
12852
12946
|
ParameterNotFound,
|
|
12853
12947
|
ResourceInUseException,
|
|
12854
12948
|
ResourceDataSyncNotFoundException,
|
|
12949
|
+
MalformedResourcePolicyDocumentException,
|
|
12950
|
+
ResourceNotFoundException,
|
|
12855
12951
|
ResourcePolicyConflictException,
|
|
12856
12952
|
ResourcePolicyInvalidParameterException,
|
|
12953
|
+
ResourcePolicyNotFoundException,
|
|
12857
12954
|
TargetInUseException,
|
|
12858
12955
|
DescribeActivationsFilterKeys,
|
|
12859
12956
|
InvalidFilter,
|
|
@@ -12890,7 +12987,6 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
12890
12987
|
MaintenanceWindowExecutionStatus,
|
|
12891
12988
|
MaintenanceWindowTaskType,
|
|
12892
12989
|
MaintenanceWindowResourceType,
|
|
12893
|
-
MaintenanceWindowTaskCutoffBehavior,
|
|
12894
12990
|
CreateAssociationRequestFilterSensitiveLog,
|
|
12895
12991
|
AssociationDescriptionFilterSensitiveLog,
|
|
12896
12992
|
CreateAssociationResultFilterSensitiveLog,
|
|
@@ -12911,7 +13007,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
12911
13007
|
DescribeMaintenanceWindowsResultFilterSensitiveLog,
|
|
12912
13008
|
MaintenanceWindowTargetFilterSensitiveLog,
|
|
12913
13009
|
DescribeMaintenanceWindowTargetsResultFilterSensitiveLog,
|
|
12914
|
-
|
|
13010
|
+
MaintenanceWindowTaskCutoffBehavior,
|
|
12915
13011
|
OpsItemFilterKey,
|
|
12916
13012
|
OpsItemFilterOperator,
|
|
12917
13013
|
OpsItemStatus,
|
|
@@ -13002,6 +13098,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
13002
13098
|
TargetNotConnected,
|
|
13003
13099
|
InvalidAutomationStatusUpdateException,
|
|
13004
13100
|
StopType,
|
|
13101
|
+
MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog,
|
|
13005
13102
|
MaintenanceWindowTaskFilterSensitiveLog,
|
|
13006
13103
|
DescribeMaintenanceWindowTasksResultFilterSensitiveLog,
|
|
13007
13104
|
BaselineOverrideFilterSensitiveLog,
|
|
@@ -859,6 +859,32 @@ export class ResourceDataSyncNotFoundException extends __BaseException {
|
|
|
859
859
|
this.Message = opts.Message;
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
+
export class MalformedResourcePolicyDocumentException extends __BaseException {
|
|
863
|
+
constructor(opts) {
|
|
864
|
+
super({
|
|
865
|
+
name: "MalformedResourcePolicyDocumentException",
|
|
866
|
+
$fault: "client",
|
|
867
|
+
...opts,
|
|
868
|
+
});
|
|
869
|
+
this.name = "MalformedResourcePolicyDocumentException";
|
|
870
|
+
this.$fault = "client";
|
|
871
|
+
Object.setPrototypeOf(this, MalformedResourcePolicyDocumentException.prototype);
|
|
872
|
+
this.Message = opts.Message;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
876
|
+
constructor(opts) {
|
|
877
|
+
super({
|
|
878
|
+
name: "ResourceNotFoundException",
|
|
879
|
+
$fault: "client",
|
|
880
|
+
...opts,
|
|
881
|
+
});
|
|
882
|
+
this.name = "ResourceNotFoundException";
|
|
883
|
+
this.$fault = "client";
|
|
884
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
885
|
+
this.Message = opts.Message;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
862
888
|
export class ResourcePolicyConflictException extends __BaseException {
|
|
863
889
|
constructor(opts) {
|
|
864
890
|
super({
|
|
@@ -886,6 +912,19 @@ export class ResourcePolicyInvalidParameterException extends __BaseException {
|
|
|
886
912
|
this.Message = opts.Message;
|
|
887
913
|
}
|
|
888
914
|
}
|
|
915
|
+
export class ResourcePolicyNotFoundException extends __BaseException {
|
|
916
|
+
constructor(opts) {
|
|
917
|
+
super({
|
|
918
|
+
name: "ResourcePolicyNotFoundException",
|
|
919
|
+
$fault: "client",
|
|
920
|
+
...opts,
|
|
921
|
+
});
|
|
922
|
+
this.name = "ResourcePolicyNotFoundException";
|
|
923
|
+
this.$fault = "client";
|
|
924
|
+
Object.setPrototypeOf(this, ResourcePolicyNotFoundException.prototype);
|
|
925
|
+
this.Message = opts.Message;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
889
928
|
export class TargetInUseException extends __BaseException {
|
|
890
929
|
constructor(opts) {
|
|
891
930
|
super({
|
|
@@ -1197,10 +1236,6 @@ export const MaintenanceWindowResourceType = {
|
|
|
1197
1236
|
Instance: "INSTANCE",
|
|
1198
1237
|
ResourceGroup: "RESOURCE_GROUP",
|
|
1199
1238
|
};
|
|
1200
|
-
export const MaintenanceWindowTaskCutoffBehavior = {
|
|
1201
|
-
CancelTask: "CANCEL_TASK",
|
|
1202
|
-
ContinueTask: "CONTINUE_TASK",
|
|
1203
|
-
};
|
|
1204
1239
|
export const CreateAssociationRequestFilterSensitiveLog = (obj) => ({
|
|
1205
1240
|
...obj,
|
|
1206
1241
|
...(obj.Parameters && { Parameters: SENSITIVE_STRING }),
|
|
@@ -1298,7 +1333,3 @@ export const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = (obj) =>
|
|
|
1298
1333
|
...obj,
|
|
1299
1334
|
...(obj.Targets && { Targets: obj.Targets.map((item) => MaintenanceWindowTargetFilterSensitiveLog(item)) }),
|
|
1300
1335
|
});
|
|
1301
|
-
export const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = (obj) => ({
|
|
1302
|
-
...obj,
|
|
1303
|
-
...(obj.Values && { Values: SENSITIVE_STRING }),
|
|
1304
|
-
});
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { PatchSourceFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { SSMServiceException as __BaseException } from "./SSMServiceException";
|
|
4
|
+
export const MaintenanceWindowTaskCutoffBehavior = {
|
|
5
|
+
CancelTask: "CANCEL_TASK",
|
|
6
|
+
ContinueTask: "CONTINUE_TASK",
|
|
7
|
+
};
|
|
4
8
|
export const OpsItemFilterKey = {
|
|
5
9
|
ACCOUNT_ID: "AccountId",
|
|
6
10
|
ACTUAL_END_TIME: "ActualEndTime",
|
|
@@ -920,6 +924,10 @@ export const StopType = {
|
|
|
920
924
|
CANCEL: "Cancel",
|
|
921
925
|
COMPLETE: "Complete",
|
|
922
926
|
};
|
|
927
|
+
export const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = (obj) => ({
|
|
928
|
+
...obj,
|
|
929
|
+
...(obj.Values && { Values: SENSITIVE_STRING }),
|
|
930
|
+
});
|
|
923
931
|
export const MaintenanceWindowTaskFilterSensitiveLog = (obj) => ({
|
|
924
932
|
...obj,
|
|
925
933
|
...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
|
-
import { AlreadyExistsException, AssociatedInstances, AssociationAlreadyExists, AssociationDoesNotExist, AssociationExecutionDoesNotExist, AssociationLimitExceeded, AutomationExecutionNotFoundException, DocumentAlreadyExists, DocumentLimitExceeded, DoesNotExistException, DuplicateInstanceId, IdempotentParameterMismatch, InternalServerError, InvalidActivation, InvalidActivationId, InvalidAssociationVersion, InvalidCommandId, InvalidDeleteInventoryParametersException, InvalidDeletionIdException, InvalidDocument, InvalidDocumentContent, InvalidDocumentOperation, InvalidDocumentSchemaVersion, InvalidDocumentVersion, InvalidFilter, InvalidFilterKey, InvalidFilterValue, InvalidInstanceId, InvalidInstanceInformationFilterValue, InvalidInventoryRequestException, InvalidNextToken, InvalidOptionException, InvalidOutputLocation, InvalidParameters, InvalidPermissionType, InvalidResourceId, InvalidResourceType, InvalidSchedule, InvalidTag, InvalidTarget, InvalidTargetMaps, InvalidTypeNameException, MaxDocumentSizeExceeded, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, OpsItemConflictException, OpsItemInvalidParameterException, OpsItemLimitExceededException, OpsItemNotFoundException, OpsItemRelatedItemAlreadyExistsException, OpsMetadataAlreadyExistsException, OpsMetadataInvalidArgumentException, OpsMetadataLimitExceededException, OpsMetadataNotFoundException, OpsMetadataTooManyUpdatesException, ParameterNotFound, ResourceDataSyncAlreadyExistsException, ResourceDataSyncCountExceededException, ResourceDataSyncInvalidConfigurationException, ResourceDataSyncNotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourcePolicyConflictException, ResourcePolicyInvalidParameterException, TargetInUseException, TooManyTagsError, TooManyUpdates, UnsupportedOperatingSystem, UnsupportedPlatformType, } from "../models/models_0";
|
|
4
|
+
import { AlreadyExistsException, AssociatedInstances, AssociationAlreadyExists, AssociationDoesNotExist, AssociationExecutionDoesNotExist, AssociationLimitExceeded, AutomationExecutionNotFoundException, DocumentAlreadyExists, DocumentLimitExceeded, DoesNotExistException, DuplicateInstanceId, IdempotentParameterMismatch, InternalServerError, InvalidActivation, InvalidActivationId, InvalidAssociationVersion, InvalidCommandId, InvalidDeleteInventoryParametersException, InvalidDeletionIdException, InvalidDocument, InvalidDocumentContent, InvalidDocumentOperation, InvalidDocumentSchemaVersion, InvalidDocumentVersion, InvalidFilter, InvalidFilterKey, InvalidFilterValue, InvalidInstanceId, InvalidInstanceInformationFilterValue, InvalidInventoryRequestException, InvalidNextToken, InvalidOptionException, InvalidOutputLocation, InvalidParameters, InvalidPermissionType, InvalidResourceId, InvalidResourceType, InvalidSchedule, InvalidTag, InvalidTarget, InvalidTargetMaps, InvalidTypeNameException, MalformedResourcePolicyDocumentException, MaxDocumentSizeExceeded, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, OpsItemConflictException, OpsItemInvalidParameterException, OpsItemLimitExceededException, OpsItemNotFoundException, OpsItemRelatedItemAlreadyExistsException, OpsMetadataAlreadyExistsException, OpsMetadataInvalidArgumentException, OpsMetadataLimitExceededException, OpsMetadataNotFoundException, OpsMetadataTooManyUpdatesException, ParameterNotFound, ResourceDataSyncAlreadyExistsException, ResourceDataSyncCountExceededException, ResourceDataSyncInvalidConfigurationException, ResourceDataSyncNotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourcePolicyConflictException, ResourcePolicyInvalidParameterException, ResourcePolicyNotFoundException, TargetInUseException, TooManyTagsError, TooManyUpdates, UnsupportedOperatingSystem, UnsupportedPlatformType, } from "../models/models_0";
|
|
5
5
|
import { AutomationDefinitionNotApprovedException, AutomationDefinitionNotFoundException, AutomationDefinitionVersionNotFoundException, AutomationExecutionLimitExceededException, AutomationStepNotFoundException, ComplianceTypeCountLimitExceededException, CustomSchemaCountLimitExceededException, DocumentPermissionLimit, FeatureNotAvailableException, HierarchyLevelLimitExceededException, HierarchyTypeMismatchException, IncompatiblePolicyException, InvalidAggregatorException, InvalidAllowedPatternException, InvalidAssociation, InvalidAutomationExecutionParametersException, InvalidAutomationSignalException, InvalidAutomationStatusUpdateException, InvalidDocumentType, InvalidFilterOption, InvalidInventoryGroupException, InvalidInventoryItemContextException, InvalidItemContentException, InvalidKeyId, InvalidNotificationConfig, InvalidOutputFolder, InvalidPluginName, InvalidPolicyAttributeException, InvalidPolicyTypeException, InvalidResultAttributeException, InvalidRole, InvocationDoesNotExist, ItemContentMismatchException, ItemSizeLimitExceededException, OpsItemRelatedItemAssociationNotFoundException, ParameterAlreadyExists, ParameterLimitExceeded, ParameterMaxVersionLimitExceeded, ParameterPatternMismatchException, ParameterVersionLabelLimitExceeded, ParameterVersionNotFound, PoliciesLimitExceededException, ResourcePolicyLimitExceededException, ServiceSettingNotFound, SubTypeCountLimitExceededException, TargetNotConnected, TotalSizeLimitExceededException, UnsupportedCalendarException, UnsupportedFeatureRequiredException, UnsupportedInventoryItemContextException, UnsupportedInventorySchemaVersionException, UnsupportedParameterType, } from "../models/models_1";
|
|
6
6
|
import { AssociationVersionLimitExceeded, DocumentVersionLimitExceeded, DuplicateDocumentContent, DuplicateDocumentVersionName, InvalidUpdate, OpsMetadataKeyLimitExceededException, ResourceDataSyncConflictException, StatusUnchanged, } from "../models/models_2";
|
|
7
7
|
import { SSMServiceException as __BaseException } from "../models/SSMServiceException";
|
|
@@ -2815,12 +2815,21 @@ const de_CommandError = async (output, context) => {
|
|
|
2815
2815
|
case "ResourceDataSyncNotFoundException":
|
|
2816
2816
|
case "com.amazonaws.ssm#ResourceDataSyncNotFoundException":
|
|
2817
2817
|
throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context);
|
|
2818
|
+
case "MalformedResourcePolicyDocumentException":
|
|
2819
|
+
case "com.amazonaws.ssm#MalformedResourcePolicyDocumentException":
|
|
2820
|
+
throw await de_MalformedResourcePolicyDocumentExceptionRes(parsedOutput, context);
|
|
2821
|
+
case "ResourceNotFoundException":
|
|
2822
|
+
case "com.amazonaws.ssm#ResourceNotFoundException":
|
|
2823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2818
2824
|
case "ResourcePolicyConflictException":
|
|
2819
2825
|
case "com.amazonaws.ssm#ResourcePolicyConflictException":
|
|
2820
2826
|
throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context);
|
|
2821
2827
|
case "ResourcePolicyInvalidParameterException":
|
|
2822
2828
|
case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException":
|
|
2823
2829
|
throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context);
|
|
2830
|
+
case "ResourcePolicyNotFoundException":
|
|
2831
|
+
case "com.amazonaws.ssm#ResourcePolicyNotFoundException":
|
|
2832
|
+
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2824
2833
|
case "TargetInUseException":
|
|
2825
2834
|
case "com.amazonaws.ssm#TargetInUseException":
|
|
2826
2835
|
throw await de_TargetInUseExceptionRes(parsedOutput, context);
|
|
@@ -3778,6 +3787,15 @@ const de_ItemSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3778
3787
|
});
|
|
3779
3788
|
return __decorateServiceException(exception, body);
|
|
3780
3789
|
};
|
|
3790
|
+
const de_MalformedResourcePolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3791
|
+
const body = parsedOutput.body;
|
|
3792
|
+
const deserialized = _json(body);
|
|
3793
|
+
const exception = new MalformedResourcePolicyDocumentException({
|
|
3794
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3795
|
+
...deserialized,
|
|
3796
|
+
});
|
|
3797
|
+
return __decorateServiceException(exception, body);
|
|
3798
|
+
};
|
|
3781
3799
|
const de_MaxDocumentSizeExceededRes = async (parsedOutput, context) => {
|
|
3782
3800
|
const body = parsedOutput.body;
|
|
3783
3801
|
const deserialized = _json(body);
|
|
@@ -4048,6 +4066,15 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
4048
4066
|
});
|
|
4049
4067
|
return __decorateServiceException(exception, body);
|
|
4050
4068
|
};
|
|
4069
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4070
|
+
const body = parsedOutput.body;
|
|
4071
|
+
const deserialized = _json(body);
|
|
4072
|
+
const exception = new ResourceNotFoundException({
|
|
4073
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4074
|
+
...deserialized,
|
|
4075
|
+
});
|
|
4076
|
+
return __decorateServiceException(exception, body);
|
|
4077
|
+
};
|
|
4051
4078
|
const de_ResourcePolicyConflictExceptionRes = async (parsedOutput, context) => {
|
|
4052
4079
|
const body = parsedOutput.body;
|
|
4053
4080
|
const deserialized = _json(body);
|
|
@@ -4075,6 +4102,15 @@ const de_ResourcePolicyLimitExceededExceptionRes = async (parsedOutput, context)
|
|
|
4075
4102
|
});
|
|
4076
4103
|
return __decorateServiceException(exception, body);
|
|
4077
4104
|
};
|
|
4105
|
+
const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4106
|
+
const body = parsedOutput.body;
|
|
4107
|
+
const deserialized = _json(body);
|
|
4108
|
+
const exception = new ResourcePolicyNotFoundException({
|
|
4109
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4110
|
+
...deserialized,
|
|
4111
|
+
});
|
|
4112
|
+
return __decorateServiceException(exception, body);
|
|
4113
|
+
};
|
|
4078
4114
|
const de_ServiceSettingNotFoundRes = async (parsedOutput, context) => {
|
|
4079
4115
|
const body = parsedOutput.body;
|
|
4080
4116
|
const deserialized = _json(body);
|
|
@@ -5690,6 +5726,7 @@ const de_ParameterList = (output, context) => {
|
|
|
5690
5726
|
};
|
|
5691
5727
|
const de_ParameterMetadata = (output, context) => {
|
|
5692
5728
|
return take(output, {
|
|
5729
|
+
ARN: __expectString,
|
|
5693
5730
|
AllowedPattern: __expectString,
|
|
5694
5731
|
DataType: __expectString,
|
|
5695
5732
|
Description: __expectString,
|
|
@@ -26,10 +26,22 @@ declare const DeleteResourcePolicyCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Deletes a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources.
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
29
|
+
* <p>Deletes a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources. The following
|
|
30
|
+
* resources support Systems Manager resource policies.</p>
|
|
31
|
+
* <ul>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>
|
|
34
|
+
* <code>OpsItemGroup</code> - The resource policy for <code>OpsItemGroup</code> enables
|
|
35
|
+
* Amazon Web Services accounts to view and interact with OpsCenter operational work items (OpsItems).</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>
|
|
39
|
+
* <code>Parameter</code> - The resource policy is used to share a parameter with other
|
|
40
|
+
* accounts using Resource Access Manager (RAM). For more information about
|
|
41
|
+
* cross-account sharing of parameters, see <a href="systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with
|
|
42
|
+
* shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
|
43
|
+
* </li>
|
|
44
|
+
* </ul>
|
|
33
45
|
* @example
|
|
34
46
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
47
|
* ```javascript
|
|
@@ -56,6 +68,13 @@ declare const DeleteResourcePolicyCommand_base: {
|
|
|
56
68
|
* @throws {@link InternalServerError} (server fault)
|
|
57
69
|
* <p>An error occurred on the server side.</p>
|
|
58
70
|
*
|
|
71
|
+
* @throws {@link MalformedResourcePolicyDocumentException} (client fault)
|
|
72
|
+
* <p>The specified policy document is malformed or invalid, or excessive
|
|
73
|
+
* <code>PutResourcePolicy</code> or <code>DeleteResourcePolicy</code> calls have been made.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>The specified parameter to be shared could not be found.</p>
|
|
77
|
+
*
|
|
59
78
|
* @throws {@link ResourcePolicyConflictException} (client fault)
|
|
60
79
|
* <p>The hash provided in the call doesn't match the stored hash. This exception is thrown when
|
|
61
80
|
* trying to update an obsolete policy version or when multiple requests to update a policy are
|
|
@@ -65,6 +84,9 @@ declare const DeleteResourcePolicyCommand_base: {
|
|
|
65
84
|
* <p>One or more parameters specified for the call aren't valid. Verify the parameters and their
|
|
66
85
|
* values and try again.</p>
|
|
67
86
|
*
|
|
87
|
+
* @throws {@link ResourcePolicyNotFoundException} (client fault)
|
|
88
|
+
* <p>No policies with the specified policy ID and hash could be found.</p>
|
|
89
|
+
*
|
|
68
90
|
* @throws {@link SSMServiceException}
|
|
69
91
|
* <p>Base exception class for all service exceptions from SSM service.</p>
|
|
70
92
|
*
|
|
@@ -26,7 +26,8 @@ declare const DescribeParametersCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>
|
|
29
|
+
* <p>Lists the parameters in your Amazon Web Services account or the parameters shared with you when you enable
|
|
30
|
+
* the <a href="https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_DescribeParameters.html#systemsmanager-DescribeParameters-request-Shared">Shared</a> option.</p>
|
|
30
31
|
* <p>Request results are returned on a best-effort basis. If you specify <code>MaxResults</code>
|
|
31
32
|
* in the request, the response includes information up to the limit specified. The number of items
|
|
32
33
|
* returned, however, can be between zero and the value of <code>MaxResults</code>. If the service
|
|
@@ -34,8 +35,8 @@ declare const DescribeParametersCommand_base: {
|
|
|
34
35
|
* matching values up to that point and a <code>NextToken</code>. You can specify the
|
|
35
36
|
* <code>NextToken</code> in a subsequent call to get the next set of results.</p>
|
|
36
37
|
* <important>
|
|
37
|
-
* <p>If you change the KMS key alias for the KMS key used to encrypt a parameter,
|
|
38
|
-
* also update the key alias the parameter uses to reference KMS. Otherwise,
|
|
38
|
+
* <p>If you change the KMS key alias for the KMS key used to encrypt a parameter,
|
|
39
|
+
* then you must also update the key alias the parameter uses to reference KMS. Otherwise,
|
|
39
40
|
* <code>DescribeParameters</code> retrieves whatever the original key alias was
|
|
40
41
|
* referencing.</p>
|
|
41
42
|
* </important>
|
|
@@ -65,6 +66,7 @@ declare const DescribeParametersCommand_base: {
|
|
|
65
66
|
* ],
|
|
66
67
|
* MaxResults: Number("int"),
|
|
67
68
|
* NextToken: "STRING_VALUE",
|
|
69
|
+
* Shared: true || false,
|
|
68
70
|
* };
|
|
69
71
|
* const command = new DescribeParametersCommand(input);
|
|
70
72
|
* const response = await client.send(command);
|
|
@@ -72,6 +74,7 @@ declare const DescribeParametersCommand_base: {
|
|
|
72
74
|
* // Parameters: [ // ParameterMetadataList
|
|
73
75
|
* // { // ParameterMetadata
|
|
74
76
|
* // Name: "STRING_VALUE",
|
|
77
|
+
* // ARN: "STRING_VALUE",
|
|
75
78
|
* // Type: "String" || "StringList" || "SecureString",
|
|
76
79
|
* // KeyId: "STRING_VALUE",
|
|
77
80
|
* // LastModifiedDate: new Date("TIMESTAMP"),
|
|
@@ -28,8 +28,8 @@ declare const GetParameterHistoryCommand_base: {
|
|
|
28
28
|
* @public
|
|
29
29
|
* <p>Retrieves the history of all changes to a parameter.</p>
|
|
30
30
|
* <important>
|
|
31
|
-
* <p>If you change the KMS key alias for the KMS key used to encrypt a parameter,
|
|
32
|
-
* also update the key alias the parameter uses to reference KMS. Otherwise,
|
|
31
|
+
* <p>If you change the KMS key alias for the KMS key used to encrypt a parameter,
|
|
32
|
+
* then you must also update the key alias the parameter uses to reference KMS. Otherwise,
|
|
33
33
|
* <code>GetParameterHistory</code> retrieves whatever the original key alias was
|
|
34
34
|
* referencing.</p>
|
|
35
35
|
* </important>
|
|
@@ -62,6 +62,9 @@ declare const GetResourcePoliciesCommand_base: {
|
|
|
62
62
|
* @throws {@link InternalServerError} (server fault)
|
|
63
63
|
* <p>An error occurred on the server side.</p>
|
|
64
64
|
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The specified parameter to be shared could not be found.</p>
|
|
67
|
+
*
|
|
65
68
|
* @throws {@link ResourcePolicyInvalidParameterException} (client fault)
|
|
66
69
|
* <p>One or more parameters specified for the call aren't valid. Verify the parameters and their
|
|
67
70
|
* values and try again.</p>
|
|
@@ -28,9 +28,36 @@ declare const PutResourcePolicyCommand_base: {
|
|
|
28
28
|
* @public
|
|
29
29
|
* <p>Creates or updates a Systems Manager resource policy. A resource policy helps you to define the
|
|
30
30
|
* IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* The following resources support Systems Manager resource policies.</p>
|
|
32
|
+
* <ul>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>
|
|
35
|
+
* <code>OpsItemGroup</code> - The resource policy for <code>OpsItemGroup</code> enables
|
|
36
|
+
* Amazon Web Services accounts to view and interact with OpsCenter operational work items (OpsItems).</p>
|
|
37
|
+
* </li>
|
|
38
|
+
* <li>
|
|
39
|
+
* <p>
|
|
40
|
+
* <code>Parameter</code> - The resource policy is used to share a parameter with other
|
|
41
|
+
* accounts using Resource Access Manager (RAM). </p>
|
|
42
|
+
* <p>To share a parameter, it must be in the advanced parameter tier. For information about
|
|
43
|
+
* parameter tiers, see <a href="https://docs.aws.amazon.com/parameter-store- advanced-parameters.html">Managing parameter tiers</a>. For information about
|
|
44
|
+
* changing an existing standard parameter to an advanced parameter, see <a href="https://docs.aws.amazon.com/parameter-store-advanced-parameters.html#parameter- store-advanced-parameters-enabling">Changing a standard parameter to an advanced
|
|
45
|
+
* parameter</a>.</p>
|
|
46
|
+
* <p>To share a <code>SecureString</code> parameter, it must be encrypted with a customer managed key, and you must share the key separately through Key Management Service. Amazon Web Services managed keys cannot be shared. Parameters encrypted with the default Amazon Web Services managed key can be updated to use a customer managed key instead. For KMS key definitions, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-mgmt">KMS concepts</a> in
|
|
47
|
+
* the <i>Key Management Service Developer Guide</i>.</p>
|
|
48
|
+
* <important>
|
|
49
|
+
* <p>While you can share a parameter using the Systems Manager <code>PutResourcePolicy</code> operation,
|
|
50
|
+
* we recommend using Resource Access Manager (RAM) instead. This is because using
|
|
51
|
+
* <code>PutResourcePolicy</code> requires the extra step of promoting the parameter to a
|
|
52
|
+
* standard RAM Resource Share using the RAM
|
|
53
|
+
* <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation. Otherwise, the parameter won't
|
|
54
|
+
* be returned by the Systems Manager <a href="https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_DescribeParameters.html">DescribeParameters</a> API operation using the <code>--shared</code> option.</p>
|
|
55
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html#share">Sharing a
|
|
56
|
+
* parameter</a> in the <i>Amazon Web Services Systems Manager User Guide</i>
|
|
57
|
+
* </p>
|
|
58
|
+
* </important>
|
|
59
|
+
* </li>
|
|
60
|
+
* </ul>
|
|
34
61
|
* @example
|
|
35
62
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
63
|
* ```javascript
|
|
@@ -61,6 +88,13 @@ declare const PutResourcePolicyCommand_base: {
|
|
|
61
88
|
* @throws {@link InternalServerError} (server fault)
|
|
62
89
|
* <p>An error occurred on the server side.</p>
|
|
63
90
|
*
|
|
91
|
+
* @throws {@link MalformedResourcePolicyDocumentException} (client fault)
|
|
92
|
+
* <p>The specified policy document is malformed or invalid, or excessive
|
|
93
|
+
* <code>PutResourcePolicy</code> or <code>DeleteResourcePolicy</code> calls have been made.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
96
|
+
* <p>The specified parameter to be shared could not be found.</p>
|
|
97
|
+
*
|
|
64
98
|
* @throws {@link ResourcePolicyConflictException} (client fault)
|
|
65
99
|
* <p>The hash provided in the call doesn't match the stored hash. This exception is thrown when
|
|
66
100
|
* trying to update an obsolete policy version or when multiple requests to update a policy are
|
|
@@ -75,6 +109,9 @@ declare const PutResourcePolicyCommand_base: {
|
|
|
75
109
|
* greater than 1024 bytes in size. And only one policy can be attached to
|
|
76
110
|
* <code>OpsItemGroup</code>. Verify these limits and try again.</p>
|
|
77
111
|
*
|
|
112
|
+
* @throws {@link ResourcePolicyNotFoundException} (client fault)
|
|
113
|
+
* <p>No policies with the specified policy ID and hash could be found.</p>
|
|
114
|
+
*
|
|
78
115
|
* @throws {@link SSMServiceException}
|
|
79
116
|
* <p>Base exception class for all service exceptions from SSM service.</p>
|
|
80
117
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { StopAutomationExecutionRequest, StopAutomationExecutionResult } from "../models/
|
|
3
|
+
import { StopAutomationExecutionRequest, StopAutomationExecutionResult } from "../models/models_2";
|
|
4
4
|
import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { TerminateSessionRequest } from "../models/
|
|
4
|
-
import { TerminateSessionResponse } from "../models/models_2";
|
|
3
|
+
import { TerminateSessionRequest, TerminateSessionResponse } from "../models/models_2";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|