@aws-sdk/client-ssm 3.211.0 → 3.213.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.
Files changed (63) hide show
  1. package/dist-cjs/SSM.js +45 -0
  2. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +46 -0
  3. package/dist-cjs/commands/DescribeOpsItemsCommand.js +3 -3
  4. package/dist-cjs/commands/GetResourcePoliciesCommand.js +46 -0
  5. package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
  6. package/dist-cjs/commands/UpdateAssociationCommand.js +3 -3
  7. package/dist-cjs/commands/UpdateAssociationStatusCommand.js +3 -3
  8. package/dist-cjs/commands/UpdateDocumentCommand.js +3 -3
  9. package/dist-cjs/commands/index.js +3 -0
  10. package/dist-cjs/models/models_0.js +58 -44
  11. package/dist-cjs/models/models_1.js +80 -106
  12. package/dist-cjs/models/models_2.js +101 -1
  13. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +36 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +356 -115
  16. package/dist-es/SSM.js +45 -0
  17. package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
  18. package/dist-es/commands/DescribeOpsItemsCommand.js +1 -1
  19. package/dist-es/commands/GetResourcePoliciesCommand.js +42 -0
  20. package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
  21. package/dist-es/commands/UpdateAssociationCommand.js +1 -1
  22. package/dist-es/commands/UpdateAssociationStatusCommand.js +1 -1
  23. package/dist-es/commands/UpdateDocumentCommand.js +1 -1
  24. package/dist-es/commands/index.js +3 -0
  25. package/dist-es/models/models_0.js +47 -34
  26. package/dist-es/models/models_1.js +65 -90
  27. package/dist-es/models/models_2.js +90 -1
  28. package/dist-es/pagination/GetResourcePoliciesPaginator.js +32 -0
  29. package/dist-es/pagination/index.js +1 -0
  30. package/dist-es/protocols/Aws_json1_1.js +342 -107
  31. package/dist-types/SSM.d.ts +28 -0
  32. package/dist-types/SSMClient.d.ts +5 -2
  33. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +40 -0
  34. package/dist-types/commands/DescribeOpsItemsCommand.d.ts +1 -1
  35. package/dist-types/commands/GetResourcePoliciesCommand.d.ts +37 -0
  36. package/dist-types/commands/PutResourcePolicyCommand.d.ts +41 -0
  37. package/dist-types/commands/UpdateAssociationCommand.d.ts +1 -1
  38. package/dist-types/commands/UpdateAssociationStatusCommand.d.ts +1 -1
  39. package/dist-types/commands/UpdateDocumentCommand.d.ts +1 -1
  40. package/dist-types/commands/index.d.ts +3 -0
  41. package/dist-types/models/models_0.d.ts +105 -223
  42. package/dist-types/models/models_1.d.ts +385 -324
  43. package/dist-types/models/models_2.d.ts +343 -3
  44. package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +4 -0
  45. package/dist-types/pagination/index.d.ts +1 -0
  46. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  47. package/dist-types/ts3.4/SSM.d.ts +51 -0
  48. package/dist-types/ts3.4/SSMClient.d.ts +18 -0
  49. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/DescribeOpsItemsCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/UpdateAssociationStatusCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +46 -66
  58. package/dist-types/ts3.4/models/models_1.d.ts +122 -104
  59. package/dist-types/ts3.4/models/models_2.d.ts +110 -1
  60. package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  62. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  63. package/package.json +29 -29
@@ -475,6 +475,9 @@ export interface CreateActivationRequest {
475
475
  * Amazon Web Services Systems Manager service principal <code>ssm.amazonaws.com</code>. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-service-role.html">Create an
476
476
  * IAM service role for a hybrid environment</a> in the
477
477
  * <i>Amazon Web Services Systems Manager User Guide</i>.</p>
478
+ * <note>
479
+ * <p>You can't specify an IAM service-linked role for this parameter. You must create a unique role.</p>
480
+ * </note>
478
481
  */
479
482
  IamRole: string | undefined;
480
483
  /**
@@ -2076,8 +2079,29 @@ export interface CreateOpsItemRequest {
2076
2079
  */
2077
2080
  Description: string | undefined;
2078
2081
  /**
2079
- * <p>The type of OpsItem to create. Currently, the only valid values are
2080
- * <code>/aws/changerequest</code> and <code>/aws/issue</code>.</p>
2082
+ * <p>The type of OpsItem to create. Systems Manager supports the following types of OpsItems:</p>
2083
+ * <ul>
2084
+ * <li>
2085
+ * <p>
2086
+ * <code>/aws/issue</code>
2087
+ * </p>
2088
+ * <p>This type of OpsItem is used for default OpsItems created by OpsCenter. </p>
2089
+ * </li>
2090
+ * <li>
2091
+ * <p>
2092
+ * <code>/aws/changerequest</code>
2093
+ * </p>
2094
+ * <p>This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change
2095
+ * requests. </p>
2096
+ * </li>
2097
+ * <li>
2098
+ * <p>
2099
+ * <code>/aws/insights</code>
2100
+ * </p>
2101
+ * <p>This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate
2102
+ * OpsItems. </p>
2103
+ * </li>
2104
+ * </ul>
2081
2105
  */
2082
2106
  OpsItemType?: string;
2083
2107
  /**
@@ -2171,12 +2195,37 @@ export interface CreateOpsItemRequest {
2171
2195
  * only for the OpsItem type <code>/aws/changerequest</code>.</p>
2172
2196
  */
2173
2197
  PlannedEndTime?: Date;
2198
+ /**
2199
+ * <p>The target Amazon Web Services account where you want to create an OpsItem. To make this call, your account
2200
+ * must be configured to work with OpsItems across accounts. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-OpsCenter-multiple-accounts.html">Setting
2201
+ * up OpsCenter to work with OpsItems across accounts</a> in the
2202
+ * <i>Amazon Web Services Systems Manager User Guide</i>.</p>
2203
+ */
2204
+ AccountId?: string;
2174
2205
  }
2175
2206
  export interface CreateOpsItemResponse {
2176
2207
  /**
2177
2208
  * <p>The ID of the OpsItem.</p>
2178
2209
  */
2179
2210
  OpsItemId?: string;
2211
+ /**
2212
+ * <p>The OpsItem Amazon Resource Name (ARN).</p>
2213
+ */
2214
+ OpsItemArn?: string;
2215
+ }
2216
+ /**
2217
+ * <p>You don't have permission to view OpsItems in the specified account. Verify that your account
2218
+ * is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations
2219
+ * management account.</p>
2220
+ */
2221
+ export declare class OpsItemAccessDeniedException extends __BaseException {
2222
+ readonly name: "OpsItemAccessDeniedException";
2223
+ readonly $fault: "client";
2224
+ Message?: string;
2225
+ /**
2226
+ * @internal
2227
+ */
2228
+ constructor(opts: __ExceptionOptionType<OpsItemAccessDeniedException, __BaseException>);
2180
2229
  }
2181
2230
  /**
2182
2231
  * <p>The OpsItem already exists.</p>
@@ -3098,6 +3147,51 @@ export declare class ResourceDataSyncNotFoundException extends __BaseException {
3098
3147
  */
3099
3148
  constructor(opts: __ExceptionOptionType<ResourceDataSyncNotFoundException, __BaseException>);
3100
3149
  }
3150
+ export interface DeleteResourcePolicyRequest {
3151
+ /**
3152
+ * <p>Amazon Resource Name (ARN) of the resource to which the policies are attached.</p>
3153
+ */
3154
+ ResourceArn: string | undefined;
3155
+ /**
3156
+ * <p>The policy ID.</p>
3157
+ */
3158
+ PolicyId: string | undefined;
3159
+ /**
3160
+ * <p>ID of the current policy version. The hash helps to prevent multiple calls from attempting
3161
+ * to overwrite a policy.</p>
3162
+ */
3163
+ PolicyHash: string | undefined;
3164
+ }
3165
+ export interface DeleteResourcePolicyResponse {
3166
+ }
3167
+ /**
3168
+ * <p>The hash provided in the call doesn't match the stored hash. This exception is thrown when
3169
+ * trying to update an obsolete policy version or when multiple requests to update a policy are
3170
+ * sent.</p>
3171
+ */
3172
+ export declare class ResourcePolicyConflictException extends __BaseException {
3173
+ readonly name: "ResourcePolicyConflictException";
3174
+ readonly $fault: "client";
3175
+ Message?: string;
3176
+ /**
3177
+ * @internal
3178
+ */
3179
+ constructor(opts: __ExceptionOptionType<ResourcePolicyConflictException, __BaseException>);
3180
+ }
3181
+ /**
3182
+ * <p>One or more parameters specified for the call aren't valid. Verify the parameters and their
3183
+ * values and try again.</p>
3184
+ */
3185
+ export declare class ResourcePolicyInvalidParameterException extends __BaseException {
3186
+ readonly name: "ResourcePolicyInvalidParameterException";
3187
+ readonly $fault: "client";
3188
+ ParameterNames?: string[];
3189
+ Message?: string;
3190
+ /**
3191
+ * @internal
3192
+ */
3193
+ constructor(opts: __ExceptionOptionType<ResourcePolicyInvalidParameterException, __BaseException>);
3194
+ }
3101
3195
  export interface DeregisterManagedInstanceRequest {
3102
3196
  /**
3103
3197
  * <p>The ID assigned to the managed node when you registered it using the activation process.
@@ -6254,6 +6348,7 @@ export interface DescribeMaintenanceWindowTasksResult {
6254
6348
  NextToken?: string;
6255
6349
  }
6256
6350
  export declare enum OpsItemFilterKey {
6351
+ ACCOUNT_ID = "AccountId",
6257
6352
  ACTUAL_END_TIME = "ActualEndTime",
6258
6353
  ACTUAL_START_TIME = "ActualStartTime",
6259
6354
  AUTOMATION_ID = "AutomationId",
@@ -6288,211 +6383,6 @@ export declare enum OpsItemFilterOperator {
6288
6383
  GREATER_THAN = "GreaterThan",
6289
6384
  LESS_THAN = "LessThan"
6290
6385
  }
6291
- /**
6292
- * <p>Describes an OpsItem filter.</p>
6293
- */
6294
- export interface OpsItemFilter {
6295
- /**
6296
- * <p>The name of the filter.</p>
6297
- */
6298
- Key: OpsItemFilterKey | string | undefined;
6299
- /**
6300
- * <p>The filter value.</p>
6301
- */
6302
- Values: string[] | undefined;
6303
- /**
6304
- * <p>The operator used by the filter call.</p>
6305
- */
6306
- Operator: OpsItemFilterOperator | string | undefined;
6307
- }
6308
- export interface DescribeOpsItemsRequest {
6309
- /**
6310
- * <p>One or more filters to limit the response.</p>
6311
- * <ul>
6312
- * <li>
6313
- * <p>Key: CreatedTime</p>
6314
- * <p>Operations: GreaterThan, LessThan</p>
6315
- * </li>
6316
- * <li>
6317
- * <p>Key: LastModifiedBy</p>
6318
- * <p>Operations: Contains, Equals</p>
6319
- * </li>
6320
- * <li>
6321
- * <p>Key: LastModifiedTime</p>
6322
- * <p>Operations: GreaterThan, LessThan</p>
6323
- * </li>
6324
- * <li>
6325
- * <p>Key: Priority</p>
6326
- * <p>Operations: Equals</p>
6327
- * </li>
6328
- * <li>
6329
- * <p>Key: Source</p>
6330
- * <p>Operations: Contains, Equals</p>
6331
- * </li>
6332
- * <li>
6333
- * <p>Key: Status</p>
6334
- * <p>Operations: Equals</p>
6335
- * </li>
6336
- * <li>
6337
- * <p>Key: Title*</p>
6338
- * <p>Operations: Equals,Contains</p>
6339
- * </li>
6340
- * <li>
6341
- * <p>Key: OperationalData**</p>
6342
- * <p>Operations: Equals</p>
6343
- * </li>
6344
- * <li>
6345
- * <p>Key: OperationalDataKey</p>
6346
- * <p>Operations: Equals</p>
6347
- * </li>
6348
- * <li>
6349
- * <p>Key: OperationalDataValue</p>
6350
- * <p>Operations: Equals, Contains</p>
6351
- * </li>
6352
- * <li>
6353
- * <p>Key: OpsItemId</p>
6354
- * <p>Operations: Equals</p>
6355
- * </li>
6356
- * <li>
6357
- * <p>Key: ResourceId</p>
6358
- * <p>Operations: Contains</p>
6359
- * </li>
6360
- * <li>
6361
- * <p>Key: AutomationId</p>
6362
- * <p>Operations: Equals</p>
6363
- * </li>
6364
- * </ul>
6365
- * <p>*The Equals operator for Title matches the first 100 characters. If you specify more than
6366
- * 100 characters, they system returns an error that the filter value exceeds the length
6367
- * limit.</p>
6368
- * <p>**If you filter the response by using the OperationalData operator, specify a key-value pair
6369
- * by using the following JSON format: {"key":"key_name","value":"a_value"}</p>
6370
- */
6371
- OpsItemFilters?: OpsItemFilter[];
6372
- /**
6373
- * <p>The maximum number of items to return for this call. The call also returns a token that you
6374
- * can specify in a subsequent call to get the next set of results.</p>
6375
- */
6376
- MaxResults?: number;
6377
- /**
6378
- * <p>A token to start the list. Use this token to get the next set of results.</p>
6379
- */
6380
- NextToken?: string;
6381
- }
6382
- export declare enum OpsItemStatus {
6383
- APPROVED = "Approved",
6384
- CANCELLED = "Cancelled",
6385
- CANCELLING = "Cancelling",
6386
- CHANGE_CALENDAR_OVERRIDE_APPROVED = "ChangeCalendarOverrideApproved",
6387
- CHANGE_CALENDAR_OVERRIDE_REJECTED = "ChangeCalendarOverrideRejected",
6388
- CLOSED = "Closed",
6389
- COMPLETED_WITH_FAILURE = "CompletedWithFailure",
6390
- COMPLETED_WITH_SUCCESS = "CompletedWithSuccess",
6391
- FAILED = "Failed",
6392
- IN_PROGRESS = "InProgress",
6393
- OPEN = "Open",
6394
- PENDING = "Pending",
6395
- PENDING_APPROVAL = "PendingApproval",
6396
- PENDING_CHANGE_CALENDAR_OVERRIDE = "PendingChangeCalendarOverride",
6397
- REJECTED = "Rejected",
6398
- RESOLVED = "Resolved",
6399
- RUNBOOK_IN_PROGRESS = "RunbookInProgress",
6400
- SCHEDULED = "Scheduled",
6401
- TIMED_OUT = "TimedOut"
6402
- }
6403
- /**
6404
- * <p>A count of OpsItems.</p>
6405
- */
6406
- export interface OpsItemSummary {
6407
- /**
6408
- * <p>The Amazon Resource Name (ARN) of the IAM entity that created the
6409
- * OpsItem.</p>
6410
- */
6411
- CreatedBy?: string;
6412
- /**
6413
- * <p>The date and time the OpsItem was created.</p>
6414
- */
6415
- CreatedTime?: Date;
6416
- /**
6417
- * <p>The Amazon Resource Name (ARN) of the IAM entity that created the
6418
- * OpsItem.</p>
6419
- */
6420
- LastModifiedBy?: string;
6421
- /**
6422
- * <p>The date and time the OpsItem was last updated.</p>
6423
- */
6424
- LastModifiedTime?: Date;
6425
- /**
6426
- * <p>The importance of this OpsItem in relation to other OpsItems in the system.</p>
6427
- */
6428
- Priority?: number;
6429
- /**
6430
- * <p>The impacted Amazon Web Services resource.</p>
6431
- */
6432
- Source?: string;
6433
- /**
6434
- * <p>The OpsItem status. Status can be <code>Open</code>, <code>In Progress</code>, or
6435
- * <code>Resolved</code>.</p>
6436
- */
6437
- Status?: OpsItemStatus | string;
6438
- /**
6439
- * <p>The ID of the OpsItem.</p>
6440
- */
6441
- OpsItemId?: string;
6442
- /**
6443
- * <p>A short heading that describes the nature of the OpsItem and the impacted resource.</p>
6444
- */
6445
- Title?: string;
6446
- /**
6447
- * <p>Operational data is custom data that provides useful reference details about the OpsItem.
6448
- * </p>
6449
- */
6450
- OperationalData?: Record<string, OpsItemDataValue>;
6451
- /**
6452
- * <p>A list of OpsItems by category.</p>
6453
- */
6454
- Category?: string;
6455
- /**
6456
- * <p>A list of OpsItems by severity.</p>
6457
- */
6458
- Severity?: string;
6459
- /**
6460
- * <p>The type of OpsItem. Currently, the only valid values are <code>/aws/changerequest</code>
6461
- * and <code>/aws/issue</code>.</p>
6462
- */
6463
- OpsItemType?: string;
6464
- /**
6465
- * <p>The time a runbook workflow started. Currently reported only for the OpsItem type
6466
- * <code>/aws/changerequest</code>.</p>
6467
- */
6468
- ActualStartTime?: Date;
6469
- /**
6470
- * <p>The time a runbook workflow ended. Currently reported only for the OpsItem type
6471
- * <code>/aws/changerequest</code>.</p>
6472
- */
6473
- ActualEndTime?: Date;
6474
- /**
6475
- * <p>The time specified in a change request for a runbook workflow to start. Currently supported
6476
- * only for the OpsItem type <code>/aws/changerequest</code>.</p>
6477
- */
6478
- PlannedStartTime?: Date;
6479
- /**
6480
- * <p>The time specified in a change request for a runbook workflow to end. Currently supported
6481
- * only for the OpsItem type <code>/aws/changerequest</code>.</p>
6482
- */
6483
- PlannedEndTime?: Date;
6484
- }
6485
- export interface DescribeOpsItemsResponse {
6486
- /**
6487
- * <p>The token for the next set of items to return. Use this token to get the next set of
6488
- * results.</p>
6489
- */
6490
- NextToken?: string;
6491
- /**
6492
- * <p>A list of OpsItems.</p>
6493
- */
6494
- OpsItemSummaries?: OpsItemSummary[];
6495
- }
6496
6386
  /**
6497
6387
  * @internal
6498
6388
  */
@@ -6829,6 +6719,14 @@ export declare const DeleteResourceDataSyncRequestFilterSensitiveLog: (obj: Dele
6829
6719
  * @internal
6830
6720
  */
6831
6721
  export declare const DeleteResourceDataSyncResultFilterSensitiveLog: (obj: DeleteResourceDataSyncResult) => any;
6722
+ /**
6723
+ * @internal
6724
+ */
6725
+ export declare const DeleteResourcePolicyRequestFilterSensitiveLog: (obj: DeleteResourcePolicyRequest) => any;
6726
+ /**
6727
+ * @internal
6728
+ */
6729
+ export declare const DeleteResourcePolicyResponseFilterSensitiveLog: (obj: DeleteResourcePolicyResponse) => any;
6832
6730
  /**
6833
6731
  * @internal
6834
6732
  */
@@ -7221,19 +7119,3 @@ export declare const MaintenanceWindowTaskFilterSensitiveLog: (obj: MaintenanceW
7221
7119
  * @internal
7222
7120
  */
7223
7121
  export declare const DescribeMaintenanceWindowTasksResultFilterSensitiveLog: (obj: DescribeMaintenanceWindowTasksResult) => any;
7224
- /**
7225
- * @internal
7226
- */
7227
- export declare const OpsItemFilterFilterSensitiveLog: (obj: OpsItemFilter) => any;
7228
- /**
7229
- * @internal
7230
- */
7231
- export declare const DescribeOpsItemsRequestFilterSensitiveLog: (obj: DescribeOpsItemsRequest) => any;
7232
- /**
7233
- * @internal
7234
- */
7235
- export declare const OpsItemSummaryFilterSensitiveLog: (obj: OpsItemSummary) => any;
7236
- /**
7237
- * @internal
7238
- */
7239
- export declare const DescribeOpsItemsResponseFilterSensitiveLog: (obj: DescribeOpsItemsResponse) => any;