@aws-sdk/client-ssm 3.1140.0 → 3.1142.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 CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1139.0";
72
+ var version = "3.1141.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -2429,6 +2429,7 @@ const _DIoc = "DocumentIdentifiers";
2429
2429
  const _DKVF = "DocumentKeyValuesFilter";
2430
2430
  const _DKVFL = "DocumentKeyValuesFilterList";
2431
2431
  const _DLE = "DocumentLimitExceeded";
2432
+ const _DM = "DeletionMode";
2432
2433
  const _DMI = "DeregisterManagedInstance";
2433
2434
  const _DMIR = "DeregisterManagedInstanceRequest";
2434
2435
  const _DMIRe = "DeregisterManagedInstanceResult";
@@ -4912,8 +4913,8 @@ var DeleteResourceDataSyncResult$ = [3, n0, _DRDSRe,
4912
4913
  ];
4913
4914
  var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
4914
4915
  0,
4915
- [_RAe, _PI, _PH],
4916
- [0, 0, 0], 3
4916
+ [_RAe, _PI, _PH, _DM],
4917
+ [0, 0, 0, 0], 3
4917
4918
  ];
4918
4919
  var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
4919
4920
  0,
@@ -8964,6 +8965,10 @@ const InventorySchemaDeleteOption = {
8964
8965
  DELETE_SCHEMA: "DeleteSchema",
8965
8966
  DISABLE_SCHEMA: "DisableSchema",
8966
8967
  };
8968
+ const DeletionMode = {
8969
+ RemoveSharing: "RemoveSharing",
8970
+ RollbackMigration: "RollbackMigration",
8971
+ };
8967
8972
  const DescribeActivationsFilterKeys = {
8968
8973
  ACTIVATION_IDS: "ActivationIds",
8969
8974
  DEFAULT_INSTANCE_NAME: "DefaultInstanceName",
@@ -9716,6 +9721,7 @@ exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
9716
9721
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
9717
9722
  exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;
9718
9723
  exports.DeleteResourcePolicyResponse$ = DeleteResourcePolicyResponse$;
9724
+ exports.DeletionMode = DeletionMode;
9719
9725
  exports.DeregisterManagedInstance$ = DeregisterManagedInstance$;
9720
9726
  exports.DeregisterManagedInstanceCommand = DeregisterManagedInstanceCommand;
9721
9727
  exports.DeregisterManagedInstanceRequest$ = DeregisterManagedInstanceRequest$;
@@ -166,6 +166,10 @@ export const InventorySchemaDeleteOption = {
166
166
  DELETE_SCHEMA: "DeleteSchema",
167
167
  DISABLE_SCHEMA: "DisableSchema",
168
168
  };
169
+ export const DeletionMode = {
170
+ RemoveSharing: "RemoveSharing",
171
+ RollbackMigration: "RollbackMigration",
172
+ };
169
173
  export const DescribeActivationsFilterKeys = {
170
174
  ACTIVATION_IDS: "ActivationIds",
171
175
  DEFAULT_INSTANCE_NAME: "DefaultInstanceName",
@@ -357,6 +357,7 @@ const _DIoc = "DocumentIdentifiers";
357
357
  const _DKVF = "DocumentKeyValuesFilter";
358
358
  const _DKVFL = "DocumentKeyValuesFilterList";
359
359
  const _DLE = "DocumentLimitExceeded";
360
+ const _DM = "DeletionMode";
360
361
  const _DMI = "DeregisterManagedInstance";
361
362
  const _DMIR = "DeregisterManagedInstanceRequest";
362
363
  const _DMIRe = "DeregisterManagedInstanceResult";
@@ -2843,8 +2844,8 @@ export var DeleteResourceDataSyncResult$ = [3, n0, _DRDSRe,
2843
2844
  ];
2844
2845
  export var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
2845
2846
  0,
2846
- [_RAe, _PI, _PH],
2847
- [0, 0, 0], 3
2847
+ [_RAe, _PI, _PH, _DM],
2848
+ [0, 0, 0, 0], 3
2848
2849
  ];
2849
2850
  export var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
2850
2851
  0,
@@ -39,6 +39,11 @@ declare const DeleteResourcePolicyCommand_base: {
39
39
  * cross-account sharing of parameters, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working with
40
40
  * shared parameters</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
41
41
  * </li>
42
+ * <li>
43
+ * <p>
44
+ * <code>Document</code> – Shares the document using Resource Access Manager (RAM). For more information about sharing documents, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/documents-ssm-sharing.html">Sharing
45
+ * Systems Manager documents</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
46
+ * </li>
42
47
  * </ul>
43
48
  * @example
44
49
  * Use a bare-bones client and the command you need to make an API call.
@@ -52,6 +57,7 @@ declare const DeleteResourcePolicyCommand_base: {
52
57
  * ResourceArn: "STRING_VALUE", // required
53
58
  * PolicyId: "STRING_VALUE", // required
54
59
  * PolicyHash: "STRING_VALUE", // required
60
+ * DeletionMode: "RemoveSharing" || "RollbackMigration",
55
61
  * };
56
62
  * const command = new DeleteResourcePolicyCommand(input);
57
63
  * const response = await client.send(command);
@@ -55,7 +55,19 @@ declare const PutResourcePolicyCommand_base: {
55
55
  * </p>
56
56
  * </important>
57
57
  * </li>
58
+ * <li>
59
+ * <p>
60
+ * <code>Document</code> – Shares the document using Resource Access Manager (RAM). For more information about sharing documents, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/documents-ssm-sharing.html">Sharing
61
+ * Systems Manager documents</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
62
+ * </li>
58
63
  * </ul>
64
+ * <important>
65
+ * <p>While you can share a document using the Systems Manager <code>PutResourcePolicy</code> operation, we
66
+ * recommend using Resource Access Manager (RAM) instead. Using
67
+ * <code>PutResourcePolicy</code> requires an extra step. You must promote the document to a
68
+ * standard RAM Resource Share using the RAM <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> API operation. Otherwise, the Systems Manager <a href="https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_ListDocuments.html">ListDocuments</a> API operation won't return the document when filtering for shared
69
+ * documents. The Amazon Web Services Config <a href="https://docs.aws.amazon.com/config/latest/APIReference/API_PutRemediationConfigurations.html">PutRemediationConfigurations</a> API operation also can't use the document.</p>
70
+ * </important>
59
71
  * @example
60
72
  * Use a bare-bones client and the command you need to make an API call.
61
73
  * ```javascript
@@ -358,6 +358,18 @@ export declare const InventorySchemaDeleteOption: {
358
358
  * @public
359
359
  */
360
360
  export type InventorySchemaDeleteOption = (typeof InventorySchemaDeleteOption)[keyof typeof InventorySchemaDeleteOption];
361
+ /**
362
+ * @public
363
+ * @enum
364
+ */
365
+ export declare const DeletionMode: {
366
+ readonly RemoveSharing: "RemoveSharing";
367
+ readonly RollbackMigration: "RollbackMigration";
368
+ };
369
+ /**
370
+ * @public
371
+ */
372
+ export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
361
373
  /**
362
374
  * @public
363
375
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AccessRequestStatus, AccessType, AssociationComplianceSeverity, AssociationExecutionFilterKey, AssociationExecutionTargetsFilterKey, AssociationFilterOperatorType, AssociationStatusName, AssociationSyncCompliance, AttachmentHashType, AttachmentsSourceKey, AutomationExecutionFilterKey, AutomationExecutionStatus, AutomationSubtype, AutomationType, CalendarState, CommandInvocationStatus, ConnectionStatus, DescribeActivationsFilterKeys, DocumentFormat, DocumentHashType, DocumentParameterType, DocumentPermissionType, DocumentStatus, DocumentType, ExecutionMode, ExecutionPreviewStatus, ExternalAlarmState, Fault, ImpactType, InstanceInformationFilterKey, InstancePatchStateOperatorType, InstancePropertyFilterKey, InstancePropertyFilterOperator, InventoryAttributeDataType, InventoryDeletionStatus, InventoryQueryOperatorType, InventorySchemaDeleteOption, MaintenanceWindowExecutionStatus, MaintenanceWindowResourceType, MaintenanceWindowTaskCutoffBehavior, MaintenanceWindowTaskType, NotificationEvent, NotificationType, OperatingSystem, OpsFilterOperatorType, OpsItemDataType, OpsItemFilterKey, OpsItemFilterOperator, OpsItemStatus, ParametersFilterKey, ParameterTier, ParameterType, PatchAction, PatchComplianceDataState, PatchComplianceLevel, PatchComplianceStatus, PatchDeploymentStatus, PatchFilterKey, PatchOperationType, PatchProperty, PatchSet, PingStatus, PlatformType, RebootOption, ResourceDataSyncS3Format, ResourceType, ResourceTypeForTagging, ReviewStatus, SessionFilterKey, SessionState, SessionStatus, SourceType, StepExecutionFilterKey } from "./enums";
1
+ import type { AccessRequestStatus, AccessType, AssociationComplianceSeverity, AssociationExecutionFilterKey, AssociationExecutionTargetsFilterKey, AssociationFilterOperatorType, AssociationStatusName, AssociationSyncCompliance, AttachmentHashType, AttachmentsSourceKey, AutomationExecutionFilterKey, AutomationExecutionStatus, AutomationSubtype, AutomationType, CalendarState, CommandInvocationStatus, ConnectionStatus, DeletionMode, DescribeActivationsFilterKeys, DocumentFormat, DocumentHashType, DocumentParameterType, DocumentPermissionType, DocumentStatus, DocumentType, ExecutionMode, ExecutionPreviewStatus, ExternalAlarmState, Fault, ImpactType, InstanceInformationFilterKey, InstancePatchStateOperatorType, InstancePropertyFilterKey, InstancePropertyFilterOperator, InventoryAttributeDataType, InventoryDeletionStatus, InventoryQueryOperatorType, InventorySchemaDeleteOption, MaintenanceWindowExecutionStatus, MaintenanceWindowResourceType, MaintenanceWindowTaskCutoffBehavior, MaintenanceWindowTaskType, NotificationEvent, NotificationType, OperatingSystem, OpsFilterOperatorType, OpsItemDataType, OpsItemFilterKey, OpsItemFilterOperator, OpsItemStatus, ParametersFilterKey, ParameterTier, ParameterType, PatchAction, PatchComplianceDataState, PatchComplianceLevel, PatchComplianceStatus, PatchDeploymentStatus, PatchFilterKey, PatchOperationType, PatchProperty, PatchSet, PingStatus, PlatformType, RebootOption, ResourceDataSyncS3Format, ResourceType, ResourceTypeForTagging, ReviewStatus, SessionFilterKey, SessionState, SessionStatus, SourceType, StepExecutionFilterKey } from "./enums";
2
2
  /**
3
3
  * <p>Information includes the Amazon Web Services account ID where the current document is shared and the
4
4
  * version shared with that account.</p>
@@ -3289,6 +3289,25 @@ export interface DeleteResourcePolicyRequest {
3289
3289
  * @public
3290
3290
  */
3291
3291
  PolicyHash: string | undefined;
3292
+ /**
3293
+ * <p>Specifies the intended outcome of the operation. Applies only to the <code>Document</code>
3294
+ * resource type. The operation ignores this parameter for other resource types. Optional. Defaults
3295
+ * to <code>RemoveSharing</code>.</p>
3296
+ * <ul>
3297
+ * <li>
3298
+ * <p>
3299
+ * <code>RemoveSharing</code> – Deletes the resource policy and removes sharing of the
3300
+ * document.</p>
3301
+ * </li>
3302
+ * <li>
3303
+ * <p>
3304
+ * <code>RollbackMigration</code> – Reverts the document to Custom sharing, preserving
3305
+ * existing consumer access, instead of removing the policy.</p>
3306
+ * </li>
3307
+ * </ul>
3308
+ * @public
3309
+ */
3310
+ DeletionMode?: DeletionMode | undefined;
3292
3311
  }
3293
3312
  /**
3294
3313
  * @public
@@ -5622,8 +5622,8 @@ export interface UpdateDocumentRequest {
5622
5622
  */
5623
5623
  DocumentVersion?: string | undefined;
5624
5624
  /**
5625
- * <p>Specify the document format for the new document version. Systems Manager supports JSON and YAML
5626
- * documents. JSON is the default format.</p>
5625
+ * <p>Specify the document format for the new document version. The document format can be JSON,
5626
+ * YAML, or TEXT. JSON is the default format.</p>
5627
5627
  * @public
5628
5628
  */
5629
5629
  DocumentFormat?: DocumentFormat | undefined;
@@ -198,6 +198,11 @@ export declare const InventorySchemaDeleteOption: {
198
198
  };
199
199
  export type InventorySchemaDeleteOption =
200
200
  (typeof InventorySchemaDeleteOption)[keyof typeof InventorySchemaDeleteOption];
201
+ export declare const DeletionMode: {
202
+ readonly RemoveSharing: "RemoveSharing";
203
+ readonly RollbackMigration: "RollbackMigration";
204
+ };
205
+ export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
201
206
  export declare const DescribeActivationsFilterKeys: {
202
207
  readonly ACTIVATION_IDS: "ActivationIds";
203
208
  readonly DEFAULT_INSTANCE_NAME: "DefaultInstanceName";
@@ -16,6 +16,7 @@ import {
16
16
  CalendarState,
17
17
  CommandInvocationStatus,
18
18
  ConnectionStatus,
19
+ DeletionMode,
19
20
  DescribeActivationsFilterKeys,
20
21
  DocumentFormat,
21
22
  DocumentHashType,
@@ -622,6 +623,7 @@ export interface DeleteResourcePolicyRequest {
622
623
  ResourceArn: string | undefined;
623
624
  PolicyId: string | undefined;
624
625
  PolicyHash: string | undefined;
626
+ DeletionMode?: DeletionMode | undefined;
625
627
  }
626
628
  export interface DeleteResourcePolicyResponse {}
627
629
  export interface DeregisterManagedInstanceRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm",
3
- "version": "3.1140.0",
3
+ "version": "3.1142.0",
4
4
  "description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
6
6
  "license": "Apache-2.0",