@aws-sdk/client-ssm 3.797.0 → 3.799.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 (54) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +333 -71
  3. package/dist-cjs/runtimeConfig.js +1 -0
  4. package/dist-es/SSM.js +4 -0
  5. package/dist-es/commands/GetAccessTokenCommand.js +23 -0
  6. package/dist-es/commands/RegisterTargetWithMaintenanceWindowCommand.js +1 -1
  7. package/dist-es/commands/RegisterTaskWithMaintenanceWindowCommand.js +1 -1
  8. package/dist-es/commands/StartAccessRequestCommand.js +22 -0
  9. package/dist-es/commands/index.js +2 -0
  10. package/dist-es/models/models_0.js +24 -4
  11. package/dist-es/models/models_1.js +57 -27
  12. package/dist-es/models/models_2.js +50 -16
  13. package/dist-es/protocols/Aws_json1_1.js +94 -6
  14. package/dist-es/runtimeConfig.js +2 -1
  15. package/dist-types/SSM.d.ts +14 -0
  16. package/dist-types/SSMClient.d.ts +4 -2
  17. package/dist-types/commands/CreateDocumentCommand.d.ts +2 -2
  18. package/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeDocumentCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +1 -2
  21. package/dist-types/commands/DescribeOpsItemsCommand.d.ts +2 -2
  22. package/dist-types/commands/GetAccessTokenCommand.d.ts +94 -0
  23. package/dist-types/commands/GetAutomationExecutionCommand.d.ts +1 -1
  24. package/dist-types/commands/GetDocumentCommand.d.ts +1 -1
  25. package/dist-types/commands/GetOpsItemCommand.d.ts +1 -1
  26. package/dist-types/commands/ListDocumentsCommand.d.ts +1 -1
  27. package/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +1 -1
  28. package/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +1 -1
  29. package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
  30. package/dist-types/commands/SendAutomationSignalCommand.d.ts +1 -1
  31. package/dist-types/commands/StartAccessRequestCommand.d.ts +105 -0
  32. package/dist-types/commands/UpdateDocumentCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateOpsItemCommand.d.ts +1 -1
  34. package/dist-types/commands/index.d.ts +2 -0
  35. package/dist-types/models/models_0.d.ts +31 -51
  36. package/dist-types/models/models_1.d.ts +163 -348
  37. package/dist-types/models/models_2.d.ts +413 -21
  38. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/ts3.4/SSM.d.ts +34 -0
  41. package/dist-types/ts3.4/SSMClient.d.ts +12 -0
  42. package/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/GetAccessTokenCommand.d.ts +50 -0
  44. package/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/StartAccessRequestCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +20 -14
  50. package/dist-types/ts3.4/models/models_1.d.ts +61 -58
  51. package/dist-types/ts3.4/models/models_2.d.ts +81 -9
  52. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -4
  54. package/package.json +11 -11
package/dist-cjs/index.js CHANGED
@@ -21,6 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AccessRequestStatus: () => AccessRequestStatus,
24
26
  AddTagsToResourceCommand: () => AddTagsToResourceCommand,
25
27
  AlreadyExistsException: () => AlreadyExistsException,
26
28
  AssociateOpsItemRelatedItemCommand: () => AssociateOpsItemRelatedItemCommand,
@@ -82,6 +84,7 @@ __export(index_exports, {
82
84
  CreatePatchBaselineCommand: () => CreatePatchBaselineCommand,
83
85
  CreatePatchBaselineRequestFilterSensitiveLog: () => CreatePatchBaselineRequestFilterSensitiveLog,
84
86
  CreateResourceDataSyncCommand: () => CreateResourceDataSyncCommand,
87
+ CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
85
88
  CustomSchemaCountLimitExceededException: () => CustomSchemaCountLimitExceededException,
86
89
  DeleteActivationCommand: () => DeleteActivationCommand,
87
90
  DeleteAssociationCommand: () => DeleteAssociationCommand,
@@ -169,6 +172,8 @@ __export(index_exports, {
169
172
  FailedCreateAssociationFilterSensitiveLog: () => FailedCreateAssociationFilterSensitiveLog,
170
173
  Fault: () => Fault,
171
174
  FeatureNotAvailableException: () => FeatureNotAvailableException,
175
+ GetAccessTokenCommand: () => GetAccessTokenCommand,
176
+ GetAccessTokenResponseFilterSensitiveLog: () => GetAccessTokenResponseFilterSensitiveLog,
172
177
  GetAutomationExecutionCommand: () => GetAutomationExecutionCommand,
173
178
  GetCalendarStateCommand: () => GetCalendarStateCommand,
174
179
  GetCommandInvocationCommand: () => GetCommandInvocationCommand,
@@ -413,12 +418,14 @@ __export(index_exports, {
413
418
  SendCommandCommand: () => SendCommandCommand,
414
419
  SendCommandRequestFilterSensitiveLog: () => SendCommandRequestFilterSensitiveLog,
415
420
  SendCommandResultFilterSensitiveLog: () => SendCommandResultFilterSensitiveLog,
421
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
416
422
  ServiceSettingNotFound: () => ServiceSettingNotFound,
417
423
  SessionFilterKey: () => SessionFilterKey,
418
424
  SessionState: () => SessionState,
419
425
  SessionStatus: () => SessionStatus,
420
426
  SignalType: () => SignalType,
421
427
  SourceType: () => SourceType,
428
+ StartAccessRequestCommand: () => StartAccessRequestCommand,
422
429
  StartAssociationsOnceCommand: () => StartAssociationsOnceCommand,
423
430
  StartAutomationExecutionCommand: () => StartAutomationExecutionCommand,
424
431
  StartChangeRequestExecutionCommand: () => StartChangeRequestExecutionCommand,
@@ -432,6 +439,7 @@ __export(index_exports, {
432
439
  TargetInUseException: () => TargetInUseException,
433
440
  TargetNotConnected: () => TargetNotConnected,
434
441
  TerminateSessionCommand: () => TerminateSessionCommand,
442
+ ThrottlingException: () => ThrottlingException,
435
443
  TooManyTagsError: () => TooManyTagsError,
436
444
  TooManyUpdates: () => TooManyUpdates,
437
445
  TotalSizeLimitExceededException: () => TotalSizeLimitExceededException,
@@ -700,6 +708,33 @@ var SSMServiceException = class _SSMServiceException extends import_smithy_clien
700
708
  };
701
709
 
702
710
  // src/models/models_0.ts
711
+ var AccessDeniedException = class _AccessDeniedException extends SSMServiceException {
712
+ static {
713
+ __name(this, "AccessDeniedException");
714
+ }
715
+ name = "AccessDeniedException";
716
+ $fault = "client";
717
+ Message;
718
+ /**
719
+ * @internal
720
+ */
721
+ constructor(opts) {
722
+ super({
723
+ name: "AccessDeniedException",
724
+ $fault: "client",
725
+ ...opts
726
+ });
727
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
728
+ this.Message = opts.Message;
729
+ }
730
+ };
731
+ var AccessRequestStatus = {
732
+ APPROVED: "Approved",
733
+ EXPIRED: "Expired",
734
+ PENDING: "Pending",
735
+ REJECTED: "Rejected",
736
+ REVOKED: "Revoked"
737
+ };
703
738
  var ResourceTypeForTagging = {
704
739
  ASSOCIATION: "Association",
705
740
  AUTOMATION: "Automation",
@@ -1270,6 +1305,7 @@ var DocumentFormat = {
1270
1305
  var DocumentType = {
1271
1306
  ApplicationConfiguration: "ApplicationConfiguration",
1272
1307
  ApplicationConfigurationSchema: "ApplicationConfigurationSchema",
1308
+ AutoApprovalPolicy: "AutoApprovalPolicy",
1273
1309
  Automation: "Automation",
1274
1310
  ChangeCalendar: "ChangeCalendar",
1275
1311
  ChangeTemplate: "Automation.ChangeTemplate",
@@ -1277,6 +1313,7 @@ var DocumentType = {
1277
1313
  Command: "Command",
1278
1314
  ConformancePackTemplate: "ConformancePackTemplate",
1279
1315
  DeploymentStrategy: "DeploymentStrategy",
1316
+ ManualApprovalPolicy: "ManualApprovalPolicy",
1280
1317
  Package: "Package",
1281
1318
  Policy: "Policy",
1282
1319
  ProblemAnalysis: "ProblemAnalysis",
@@ -2209,6 +2246,7 @@ var AutomationExecutionStatus = {
2209
2246
  WAITING: "Waiting"
2210
2247
  };
2211
2248
  var AutomationSubtype = {
2249
+ AccessRequest: "AccessRequest",
2212
2250
  ChangeRequest: "ChangeRequest"
2213
2251
  };
2214
2252
  var AutomationType = {
@@ -2479,10 +2517,6 @@ var MaintenanceWindowTaskType = {
2479
2517
  RunCommand: "RUN_COMMAND",
2480
2518
  StepFunctions: "STEP_FUNCTIONS"
2481
2519
  };
2482
- var MaintenanceWindowResourceType = {
2483
- Instance: "INSTANCE",
2484
- ResourceGroup: "RESOURCE_GROUP"
2485
- };
2486
2520
  var CreateAssociationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2487
2521
  ...obj,
2488
2522
  ...obj.Parameters && { Parameters: import_smithy_client.SENSITIVE_STRING }
@@ -2596,11 +2630,24 @@ var DescribeMaintenanceWindowsResultFilterSensitiveLog = /* @__PURE__ */ __name(
2596
2630
 
2597
2631
  // src/models/models_1.ts
2598
2632
 
2633
+ var MaintenanceWindowResourceType = {
2634
+ Instance: "INSTANCE",
2635
+ ResourceGroup: "RESOURCE_GROUP"
2636
+ };
2599
2637
  var MaintenanceWindowTaskCutoffBehavior = {
2600
2638
  CancelTask: "CANCEL_TASK",
2601
2639
  ContinueTask: "CONTINUE_TASK"
2602
2640
  };
2603
2641
  var OpsItemFilterKey = {
2642
+ ACCESS_REQUEST_APPROVER_ARN: "AccessRequestByApproverArn",
2643
+ ACCESS_REQUEST_APPROVER_ID: "AccessRequestByApproverId",
2644
+ ACCESS_REQUEST_IS_REPLICA: "AccessRequestByIsReplica",
2645
+ ACCESS_REQUEST_REQUESTER_ARN: "AccessRequestByRequesterArn",
2646
+ ACCESS_REQUEST_REQUESTER_ID: "AccessRequestByRequesterId",
2647
+ ACCESS_REQUEST_SOURCE_ACCOUNT_ID: "AccessRequestBySourceAccountId",
2648
+ ACCESS_REQUEST_SOURCE_OPS_ITEM_ID: "AccessRequestBySourceOpsItemId",
2649
+ ACCESS_REQUEST_SOURCE_REGION: "AccessRequestBySourceRegion",
2650
+ ACCESS_REQUEST_TARGET_RESOURCE_ID: "AccessRequestByTargetResourceId",
2604
2651
  ACCOUNT_ID: "AccountId",
2605
2652
  ACTUAL_END_TIME: "ActualEndTime",
2606
2653
  ACTUAL_START_TIME: "ActualStartTime",
@@ -2653,6 +2700,7 @@ var OpsItemStatus = {
2653
2700
  PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride",
2654
2701
  REJECTED: "Rejected",
2655
2702
  RESOLVED: "Resolved",
2703
+ REVOKED: "Revoked",
2656
2704
  RUNBOOK_IN_PROGRESS: "RunbookInProgress",
2657
2705
  SCHEDULED: "Scheduled",
2658
2706
  TIMED_OUT: "TimedOut"
@@ -2742,6 +2790,64 @@ var OpsItemRelatedItemAssociationNotFoundException = class _OpsItemRelatedItemAs
2742
2790
  this.Message = opts.Message;
2743
2791
  }
2744
2792
  };
2793
+ var ThrottlingException = class _ThrottlingException extends SSMServiceException {
2794
+ static {
2795
+ __name(this, "ThrottlingException");
2796
+ }
2797
+ name = "ThrottlingException";
2798
+ $fault = "client";
2799
+ Message;
2800
+ /**
2801
+ * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
2802
+ * @public
2803
+ */
2804
+ QuotaCode;
2805
+ /**
2806
+ * <p>The code for the Amazon Web Services service that owns the quota.</p>
2807
+ * @public
2808
+ */
2809
+ ServiceCode;
2810
+ /**
2811
+ * @internal
2812
+ */
2813
+ constructor(opts) {
2814
+ super({
2815
+ name: "ThrottlingException",
2816
+ $fault: "client",
2817
+ ...opts
2818
+ });
2819
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
2820
+ this.Message = opts.Message;
2821
+ this.QuotaCode = opts.QuotaCode;
2822
+ this.ServiceCode = opts.ServiceCode;
2823
+ }
2824
+ };
2825
+ var ValidationException = class _ValidationException extends SSMServiceException {
2826
+ static {
2827
+ __name(this, "ValidationException");
2828
+ }
2829
+ name = "ValidationException";
2830
+ $fault = "client";
2831
+ Message;
2832
+ /**
2833
+ * <p>The reason code for the invalid request.</p>
2834
+ * @public
2835
+ */
2836
+ ReasonCode;
2837
+ /**
2838
+ * @internal
2839
+ */
2840
+ constructor(opts) {
2841
+ super({
2842
+ name: "ValidationException",
2843
+ $fault: "client",
2844
+ ...opts
2845
+ });
2846
+ Object.setPrototypeOf(this, _ValidationException.prototype);
2847
+ this.Message = opts.Message;
2848
+ this.ReasonCode = opts.ReasonCode;
2849
+ }
2850
+ };
2745
2851
  var CalendarState = {
2746
2852
  CLOSED: "CLOSED",
2747
2853
  OPEN: "OPEN"
@@ -3667,26 +3773,6 @@ var ResourcePolicyLimitExceededException = class _ResourcePolicyLimitExceededExc
3667
3773
  this.Message = opts.Message;
3668
3774
  }
3669
3775
  };
3670
- var FeatureNotAvailableException = class _FeatureNotAvailableException extends SSMServiceException {
3671
- static {
3672
- __name(this, "FeatureNotAvailableException");
3673
- }
3674
- name = "FeatureNotAvailableException";
3675
- $fault = "client";
3676
- Message;
3677
- /**
3678
- * @internal
3679
- */
3680
- constructor(opts) {
3681
- super({
3682
- name: "FeatureNotAvailableException",
3683
- $fault: "client",
3684
- ...opts
3685
- });
3686
- Object.setPrototypeOf(this, _FeatureNotAvailableException.prototype);
3687
- this.Message = opts.Message;
3688
- }
3689
- };
3690
3776
  var MaintenanceWindowTargetFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3691
3777
  ...obj,
3692
3778
  ...obj.OwnerInformation && { OwnerInformation: import_smithy_client.SENSITIVE_STRING },
@@ -3709,6 +3795,15 @@ var DescribeMaintenanceWindowTasksResultFilterSensitiveLog = /* @__PURE__ */ __n
3709
3795
  ...obj,
3710
3796
  ...obj.Tasks && { Tasks: obj.Tasks.map((item) => MaintenanceWindowTaskFilterSensitiveLog(item)) }
3711
3797
  }), "DescribeMaintenanceWindowTasksResultFilterSensitiveLog");
3798
+ var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3799
+ ...obj,
3800
+ ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client.SENSITIVE_STRING },
3801
+ ...obj.SessionToken && { SessionToken: import_smithy_client.SENSITIVE_STRING }
3802
+ }), "CredentialsFilterSensitiveLog");
3803
+ var GetAccessTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3804
+ ...obj,
3805
+ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
3806
+ }), "GetAccessTokenResponseFilterSensitiveLog");
3712
3807
  var BaselineOverrideFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3713
3808
  ...obj,
3714
3809
  ...obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }
@@ -3823,22 +3918,29 @@ var PutParameterRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3823
3918
  ...obj,
3824
3919
  ...obj.Value && { Value: import_smithy_client.SENSITIVE_STRING }
3825
3920
  }), "PutParameterRequestFilterSensitiveLog");
3826
- var RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3827
- ...obj,
3828
- ...obj.OwnerInformation && { OwnerInformation: import_smithy_client.SENSITIVE_STRING },
3829
- ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
3830
- }), "RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog");
3831
- var RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3832
- ...obj,
3833
- ...obj.TaskParameters && { TaskParameters: import_smithy_client.SENSITIVE_STRING },
3834
- ...obj.TaskInvocationParameters && {
3835
- TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters)
3836
- },
3837
- ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
3838
- }), "RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog");
3839
3921
 
3840
3922
  // src/models/models_2.ts
3841
3923
 
3924
+ var FeatureNotAvailableException = class _FeatureNotAvailableException extends SSMServiceException {
3925
+ static {
3926
+ __name(this, "FeatureNotAvailableException");
3927
+ }
3928
+ name = "FeatureNotAvailableException";
3929
+ $fault = "client";
3930
+ Message;
3931
+ /**
3932
+ * @internal
3933
+ */
3934
+ constructor(opts) {
3935
+ super({
3936
+ name: "FeatureNotAvailableException",
3937
+ $fault: "client",
3938
+ ...opts
3939
+ });
3940
+ Object.setPrototypeOf(this, _FeatureNotAvailableException.prototype);
3941
+ this.Message = opts.Message;
3942
+ }
3943
+ };
3842
3944
  var AutomationStepNotFoundException = class _AutomationStepNotFoundException extends SSMServiceException {
3843
3945
  static {
3844
3946
  __name(this, "AutomationStepNotFoundException");
@@ -3883,6 +3985,7 @@ var SignalType = {
3883
3985
  APPROVE: "Approve",
3884
3986
  REJECT: "Reject",
3885
3987
  RESUME: "Resume",
3988
+ REVOKE: "Revoke",
3886
3989
  START_STEP: "StartStep",
3887
3990
  STOP_STEP: "StopStep"
3888
3991
  };
@@ -3944,6 +4047,50 @@ var InvalidRole = class _InvalidRole extends SSMServiceException {
3944
4047
  this.Message = opts.Message;
3945
4048
  }
3946
4049
  };
4050
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SSMServiceException {
4051
+ static {
4052
+ __name(this, "ServiceQuotaExceededException");
4053
+ }
4054
+ name = "ServiceQuotaExceededException";
4055
+ $fault = "client";
4056
+ Message;
4057
+ /**
4058
+ * <p>The unique ID of the resource referenced in the failed request.</p>
4059
+ * @public
4060
+ */
4061
+ ResourceId;
4062
+ /**
4063
+ * <p>The resource type of the resource referenced in the failed request.</p>
4064
+ * @public
4065
+ */
4066
+ ResourceType;
4067
+ /**
4068
+ * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
4069
+ * @public
4070
+ */
4071
+ QuotaCode;
4072
+ /**
4073
+ * <p>The code for the Amazon Web Services service that owns the quota.</p>
4074
+ * @public
4075
+ */
4076
+ ServiceCode;
4077
+ /**
4078
+ * @internal
4079
+ */
4080
+ constructor(opts) {
4081
+ super({
4082
+ name: "ServiceQuotaExceededException",
4083
+ $fault: "client",
4084
+ ...opts
4085
+ });
4086
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
4087
+ this.Message = opts.Message;
4088
+ this.ResourceId = opts.ResourceId;
4089
+ this.ResourceType = opts.ResourceType;
4090
+ this.QuotaCode = opts.QuotaCode;
4091
+ this.ServiceCode = opts.ServiceCode;
4092
+ }
4093
+ };
3947
4094
  var InvalidAssociation = class _InvalidAssociation extends SSMServiceException {
3948
4095
  static {
3949
4096
  __name(this, "InvalidAssociation");
@@ -4071,32 +4218,6 @@ var ExecutionInputs;
4071
4218
  return visitor._(value.$unknown[0], value.$unknown[1]);
4072
4219
  }, "visit");
4073
4220
  })(ExecutionInputs || (ExecutionInputs = {}));
4074
- var ValidationException = class _ValidationException extends SSMServiceException {
4075
- static {
4076
- __name(this, "ValidationException");
4077
- }
4078
- name = "ValidationException";
4079
- $fault = "client";
4080
- Message;
4081
- /**
4082
- * <p>The reason code for the invalid request.</p>
4083
- * @public
4084
- */
4085
- ReasonCode;
4086
- /**
4087
- * @internal
4088
- */
4089
- constructor(opts) {
4090
- super({
4091
- name: "ValidationException",
4092
- $fault: "client",
4093
- ...opts
4094
- });
4095
- Object.setPrototypeOf(this, _ValidationException.prototype);
4096
- this.Message = opts.Message;
4097
- this.ReasonCode = opts.ReasonCode;
4098
- }
4099
- };
4100
4221
  var TargetNotConnected = class _TargetNotConnected extends SSMServiceException {
4101
4222
  static {
4102
4223
  __name(this, "TargetNotConnected");
@@ -4303,6 +4424,19 @@ var ResourceDataSyncConflictException = class _ResourceDataSyncConflictException
4303
4424
  this.Message = opts.Message;
4304
4425
  }
4305
4426
  };
4427
+ var RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4428
+ ...obj,
4429
+ ...obj.OwnerInformation && { OwnerInformation: import_smithy_client.SENSITIVE_STRING },
4430
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
4431
+ }), "RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog");
4432
+ var RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4433
+ ...obj,
4434
+ ...obj.TaskParameters && { TaskParameters: import_smithy_client.SENSITIVE_STRING },
4435
+ ...obj.TaskInvocationParameters && {
4436
+ TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters)
4437
+ },
4438
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
4439
+ }), "RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog");
4306
4440
  var SendCommandRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4307
4441
  ...obj,
4308
4442
  ...obj.Parameters && { Parameters: import_smithy_client.SENSITIVE_STRING }
@@ -4749,6 +4883,12 @@ var se_DisassociateOpsItemRelatedItemCommand = /* @__PURE__ */ __name(async (inp
4749
4883
  body = JSON.stringify((0, import_smithy_client._json)(input));
4750
4884
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
4751
4885
  }, "se_DisassociateOpsItemRelatedItemCommand");
4886
+ var se_GetAccessTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
4887
+ const headers = sharedHeaders("GetAccessToken");
4888
+ let body;
4889
+ body = JSON.stringify((0, import_smithy_client._json)(input));
4890
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
4891
+ }, "se_GetAccessTokenCommand");
4752
4892
  var se_GetAutomationExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
4753
4893
  const headers = sharedHeaders("GetAutomationExecution");
4754
4894
  let body;
@@ -5103,6 +5243,12 @@ var se_SendCommandCommand = /* @__PURE__ */ __name(async (input, context) => {
5103
5243
  body = JSON.stringify((0, import_smithy_client._json)(input));
5104
5244
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
5105
5245
  }, "se_SendCommandCommand");
5246
+ var se_StartAccessRequestCommand = /* @__PURE__ */ __name(async (input, context) => {
5247
+ const headers = sharedHeaders("StartAccessRequest");
5248
+ let body;
5249
+ body = JSON.stringify((0, import_smithy_client._json)(input));
5250
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
5251
+ }, "se_StartAccessRequestCommand");
5106
5252
  var se_StartAssociationsOnceCommand = /* @__PURE__ */ __name(async (input, context) => {
5107
5253
  const headers = sharedHeaders("StartAssociationsOnce");
5108
5254
  let body;
@@ -6054,6 +6200,19 @@ var de_DisassociateOpsItemRelatedItemCommand = /* @__PURE__ */ __name(async (out
6054
6200
  };
6055
6201
  return response;
6056
6202
  }, "de_DisassociateOpsItemRelatedItemCommand");
6203
+ var de_GetAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
6204
+ if (output.statusCode >= 300) {
6205
+ return de_CommandError(output, context);
6206
+ }
6207
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
6208
+ let contents = {};
6209
+ contents = de_GetAccessTokenResponse(data, context);
6210
+ const response = {
6211
+ $metadata: deserializeMetadata(output),
6212
+ ...contents
6213
+ };
6214
+ return response;
6215
+ }, "de_GetAccessTokenCommand");
6057
6216
  var de_GetAutomationExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
6058
6217
  if (output.statusCode >= 300) {
6059
6218
  return de_CommandError(output, context);
@@ -6821,6 +6980,19 @@ var de_SendCommandCommand = /* @__PURE__ */ __name(async (output, context) => {
6821
6980
  };
6822
6981
  return response;
6823
6982
  }, "de_SendCommandCommand");
6983
+ var de_StartAccessRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
6984
+ if (output.statusCode >= 300) {
6985
+ return de_CommandError(output, context);
6986
+ }
6987
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
6988
+ let contents = {};
6989
+ contents = (0, import_smithy_client._json)(data);
6990
+ const response = {
6991
+ $metadata: deserializeMetadata(output),
6992
+ ...contents
6993
+ };
6994
+ return response;
6995
+ }, "de_StartAccessRequestCommand");
6824
6996
  var de_StartAssociationsOnceCommand = /* @__PURE__ */ __name(async (output, context) => {
6825
6997
  if (output.statusCode >= 300) {
6826
6998
  return de_CommandError(output, context);
@@ -7336,6 +7508,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
7336
7508
  case "OpsItemRelatedItemAssociationNotFoundException":
7337
7509
  case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException":
7338
7510
  throw await de_OpsItemRelatedItemAssociationNotFoundExceptionRes(parsedOutput, context);
7511
+ case "AccessDeniedException":
7512
+ case "com.amazonaws.ssm#AccessDeniedException":
7513
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
7514
+ case "ThrottlingException":
7515
+ case "com.amazonaws.ssm#ThrottlingException":
7516
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
7517
+ case "ValidationException":
7518
+ case "com.amazonaws.ssm#ValidationException":
7519
+ throw await de_ValidationExceptionRes(parsedOutput, context);
7339
7520
  case "InvalidDocumentType":
7340
7521
  case "com.amazonaws.ssm#InvalidDocumentType":
7341
7522
  throw await de_InvalidDocumentTypeRes(parsedOutput, context);
@@ -7468,6 +7649,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
7468
7649
  case "InvalidRole":
7469
7650
  case "com.amazonaws.ssm#InvalidRole":
7470
7651
  throw await de_InvalidRoleRes(parsedOutput, context);
7652
+ case "ServiceQuotaExceededException":
7653
+ case "com.amazonaws.ssm#ServiceQuotaExceededException":
7654
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
7471
7655
  case "InvalidAssociation":
7472
7656
  case "com.amazonaws.ssm#InvalidAssociation":
7473
7657
  throw await de_InvalidAssociationRes(parsedOutput, context);
@@ -7486,9 +7670,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
7486
7670
  case "AutomationDefinitionNotApprovedException":
7487
7671
  case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException":
7488
7672
  throw await de_AutomationDefinitionNotApprovedExceptionRes(parsedOutput, context);
7489
- case "ValidationException":
7490
- case "com.amazonaws.ssm#ValidationException":
7491
- throw await de_ValidationExceptionRes(parsedOutput, context);
7492
7673
  case "TargetNotConnected":
7493
7674
  case "com.amazonaws.ssm#TargetNotConnected":
7494
7675
  throw await de_TargetNotConnectedRes(parsedOutput, context);
@@ -7528,6 +7709,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
7528
7709
  });
7529
7710
  }
7530
7711
  }, "de_CommandError");
7712
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
7713
+ const body = parsedOutput.body;
7714
+ const deserialized = (0, import_smithy_client._json)(body);
7715
+ const exception = new AccessDeniedException({
7716
+ $metadata: deserializeMetadata(parsedOutput),
7717
+ ...deserialized
7718
+ });
7719
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
7720
+ }, "de_AccessDeniedExceptionRes");
7531
7721
  var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
7532
7722
  const body = parsedOutput.body;
7533
7723
  const deserialized = (0, import_smithy_client._json)(body);
@@ -8590,6 +8780,15 @@ var de_ResourcePolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsed
8590
8780
  });
8591
8781
  return (0, import_smithy_client.decorateServiceException)(exception, body);
8592
8782
  }, "de_ResourcePolicyNotFoundExceptionRes");
8783
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
8784
+ const body = parsedOutput.body;
8785
+ const deserialized = (0, import_smithy_client._json)(body);
8786
+ const exception = new ServiceQuotaExceededException({
8787
+ $metadata: deserializeMetadata(parsedOutput),
8788
+ ...deserialized
8789
+ });
8790
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
8791
+ }, "de_ServiceQuotaExceededExceptionRes");
8593
8792
  var de_ServiceSettingNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
8594
8793
  const body = parsedOutput.body;
8595
8794
  const deserialized = (0, import_smithy_client._json)(body);
@@ -8635,6 +8834,15 @@ var de_TargetNotConnectedRes = /* @__PURE__ */ __name(async (parsedOutput, conte
8635
8834
  });
8636
8835
  return (0, import_smithy_client.decorateServiceException)(exception, body);
8637
8836
  }, "de_TargetNotConnectedRes");
8837
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
8838
+ const body = parsedOutput.body;
8839
+ const deserialized = (0, import_smithy_client._json)(body);
8840
+ const exception = new ThrottlingException({
8841
+ $metadata: deserializeMetadata(parsedOutput),
8842
+ ...deserialized
8843
+ });
8844
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
8845
+ }, "de_ThrottlingExceptionRes");
8638
8846
  var de_TooManyTagsErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
8639
8847
  const body = parsedOutput.body;
8640
8848
  const deserialized = (0, import_smithy_client._json)(body);
@@ -9383,6 +9591,14 @@ var de_CreateDocumentResult = /* @__PURE__ */ __name((output, context) => {
9383
9591
  DocumentDescription: /* @__PURE__ */ __name((_) => de_DocumentDescription(_, context), "DocumentDescription")
9384
9592
  });
9385
9593
  }, "de_CreateDocumentResult");
9594
+ var de_Credentials = /* @__PURE__ */ __name((output, context) => {
9595
+ return (0, import_smithy_client.take)(output, {
9596
+ AccessKeyId: import_smithy_client.expectString,
9597
+ ExpirationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ExpirationTime"),
9598
+ SecretAccessKey: import_smithy_client.expectString,
9599
+ SessionToken: import_smithy_client.expectString
9600
+ });
9601
+ }, "de_Credentials");
9386
9602
  var de_DescribeActivationsResult = /* @__PURE__ */ __name((output, context) => {
9387
9603
  return (0, import_smithy_client.take)(output, {
9388
9604
  ActivationList: /* @__PURE__ */ __name((_) => de_ActivationList(_, context), "ActivationList"),
@@ -9624,6 +9840,12 @@ var de_EffectivePatchList = /* @__PURE__ */ __name((output, context) => {
9624
9840
  });
9625
9841
  return retVal;
9626
9842
  }, "de_EffectivePatchList");
9843
+ var de_GetAccessTokenResponse = /* @__PURE__ */ __name((output, context) => {
9844
+ return (0, import_smithy_client.take)(output, {
9845
+ AccessRequestStatus: import_smithy_client.expectString,
9846
+ Credentials: /* @__PURE__ */ __name((_) => de_Credentials(_, context), "Credentials")
9847
+ });
9848
+ }, "de_GetAccessTokenResponse");
9627
9849
  var de_GetAutomationExecutionResult = /* @__PURE__ */ __name((output, context) => {
9628
9850
  return (0, import_smithy_client.take)(output, {
9629
9851
  AutomationExecution: /* @__PURE__ */ __name((_) => de_AutomationExecution(_, context), "AutomationExecution")
@@ -11491,6 +11713,21 @@ var DisassociateOpsItemRelatedItemCommand = class extends import_smithy_client.C
11491
11713
  }
11492
11714
  };
11493
11715
 
11716
+ // src/commands/GetAccessTokenCommand.ts
11717
+
11718
+
11719
+
11720
+ var GetAccessTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command3, cs, config, o) {
11721
+ return [
11722
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
11723
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
11724
+ ];
11725
+ }).s("AmazonSSM", "GetAccessToken", {}).n("SSMClient", "GetAccessTokenCommand").f(void 0, GetAccessTokenResponseFilterSensitiveLog).ser(se_GetAccessTokenCommand).de(de_GetAccessTokenCommand).build() {
11726
+ static {
11727
+ __name(this, "GetAccessTokenCommand");
11728
+ }
11729
+ };
11730
+
11494
11731
  // src/commands/GetAutomationExecutionCommand.ts
11495
11732
 
11496
11733
 
@@ -12376,6 +12613,21 @@ var SendCommandCommand = class extends import_smithy_client.Command.classBuilder
12376
12613
  }
12377
12614
  };
12378
12615
 
12616
+ // src/commands/StartAccessRequestCommand.ts
12617
+
12618
+
12619
+
12620
+ var StartAccessRequestCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command3, cs, config, o) {
12621
+ return [
12622
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
12623
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command3.getEndpointParameterInstructions())
12624
+ ];
12625
+ }).s("AmazonSSM", "StartAccessRequest", {}).n("SSMClient", "StartAccessRequestCommand").f(void 0, void 0).ser(se_StartAccessRequestCommand).de(de_StartAccessRequestCommand).build() {
12626
+ static {
12627
+ __name(this, "StartAccessRequestCommand");
12628
+ }
12629
+ };
12630
+
12379
12631
  // src/commands/StartAssociationsOnceCommand.ts
12380
12632
 
12381
12633
 
@@ -12771,6 +13023,7 @@ var commands = {
12771
13023
  DescribePatchPropertiesCommand,
12772
13024
  DescribeSessionsCommand,
12773
13025
  DisassociateOpsItemRelatedItemCommand,
13026
+ GetAccessTokenCommand,
12774
13027
  GetAutomationExecutionCommand,
12775
13028
  GetCalendarStateCommand,
12776
13029
  GetCommandInvocationCommand,
@@ -12830,6 +13083,7 @@ var commands = {
12830
13083
  ResumeSessionCommand,
12831
13084
  SendAutomationSignalCommand,
12832
13085
  SendCommandCommand,
13086
+ StartAccessRequestCommand,
12833
13087
  StartAssociationsOnceCommand,
12834
13088
  StartAutomationExecutionCommand,
12835
13089
  StartChangeRequestExecutionCommand,
@@ -13227,6 +13481,7 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13227
13481
  DescribePatchPropertiesCommand,
13228
13482
  DescribeSessionsCommand,
13229
13483
  DisassociateOpsItemRelatedItemCommand,
13484
+ GetAccessTokenCommand,
13230
13485
  GetAutomationExecutionCommand,
13231
13486
  GetCalendarStateCommand,
13232
13487
  GetCommandInvocationCommand,
@@ -13286,6 +13541,7 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13286
13541
  ResumeSessionCommand,
13287
13542
  SendAutomationSignalCommand,
13288
13543
  SendCommandCommand,
13544
+ StartAccessRequestCommand,
13289
13545
  StartAssociationsOnceCommand,
13290
13546
  StartAutomationExecutionCommand,
13291
13547
  StartChangeRequestExecutionCommand,
@@ -13360,6 +13616,8 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13360
13616
  paginateListResourceDataSync,
13361
13617
  waitForCommandExecuted,
13362
13618
  waitUntilCommandExecuted,
13619
+ AccessDeniedException,
13620
+ AccessRequestStatus,
13363
13621
  ResourceTypeForTagging,
13364
13622
  InternalServerError,
13365
13623
  InvalidResourceId,
@@ -13480,7 +13738,6 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13480
13738
  InvalidDeletionIdException,
13481
13739
  MaintenanceWindowExecutionStatus,
13482
13740
  MaintenanceWindowTaskType,
13483
- MaintenanceWindowResourceType,
13484
13741
  CreateAssociationRequestFilterSensitiveLog,
13485
13742
  AssociationDescriptionFilterSensitiveLog,
13486
13743
  CreateAssociationResultFilterSensitiveLog,
@@ -13503,6 +13760,7 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13503
13760
  DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog,
13504
13761
  MaintenanceWindowIdentityFilterSensitiveLog,
13505
13762
  DescribeMaintenanceWindowsResultFilterSensitiveLog,
13763
+ MaintenanceWindowResourceType,
13506
13764
  MaintenanceWindowTaskCutoffBehavior,
13507
13765
  OpsItemFilterKey,
13508
13766
  OpsItemFilterOperator,
@@ -13517,6 +13775,8 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13517
13775
  SessionState,
13518
13776
  SessionStatus,
13519
13777
  OpsItemRelatedItemAssociationNotFoundException,
13778
+ ThrottlingException,
13779
+ ValidationException,
13520
13780
  CalendarState,
13521
13781
  InvalidDocumentType,
13522
13782
  UnsupportedCalendarException,
@@ -13589,12 +13849,13 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13589
13849
  PoliciesLimitExceededException,
13590
13850
  UnsupportedParameterType,
13591
13851
  ResourcePolicyLimitExceededException,
13592
- FeatureNotAvailableException,
13593
13852
  MaintenanceWindowTargetFilterSensitiveLog,
13594
13853
  DescribeMaintenanceWindowTargetsResultFilterSensitiveLog,
13595
13854
  MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog,
13596
13855
  MaintenanceWindowTaskFilterSensitiveLog,
13597
13856
  DescribeMaintenanceWindowTasksResultFilterSensitiveLog,
13857
+ CredentialsFilterSensitiveLog,
13858
+ GetAccessTokenResponseFilterSensitiveLog,
13598
13859
  BaselineOverrideFilterSensitiveLog,
13599
13860
  GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog,
13600
13861
  GetMaintenanceWindowResultFilterSensitiveLog,
@@ -13621,14 +13882,14 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13621
13882
  NodeFilterSensitiveLog,
13622
13883
  ListNodesResultFilterSensitiveLog,
13623
13884
  PutParameterRequestFilterSensitiveLog,
13624
- RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog,
13625
- RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog,
13885
+ FeatureNotAvailableException,
13626
13886
  AutomationStepNotFoundException,
13627
13887
  InvalidAutomationSignalException,
13628
13888
  SignalType,
13629
13889
  InvalidNotificationConfig,
13630
13890
  InvalidOutputFolder,
13631
13891
  InvalidRole,
13892
+ ServiceQuotaExceededException,
13632
13893
  InvalidAssociation,
13633
13894
  AutomationDefinitionNotFoundException,
13634
13895
  AutomationDefinitionVersionNotFoundException,
@@ -13636,7 +13897,6 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13636
13897
  InvalidAutomationExecutionParametersException,
13637
13898
  AutomationDefinitionNotApprovedException,
13638
13899
  ExecutionInputs,
13639
- ValidationException,
13640
13900
  TargetNotConnected,
13641
13901
  InvalidAutomationStatusUpdateException,
13642
13902
  StopType,
@@ -13649,6 +13909,8 @@ var waitUntilCommandExecuted = /* @__PURE__ */ __name(async (params, input) => {
13649
13909
  DocumentReviewAction,
13650
13910
  OpsMetadataKeyLimitExceededException,
13651
13911
  ResourceDataSyncConflictException,
13912
+ RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog,
13913
+ RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog,
13652
13914
  SendCommandRequestFilterSensitiveLog,
13653
13915
  SendCommandResultFilterSensitiveLog,
13654
13916
  UpdateAssociationRequestFilterSensitiveLog,