aws-sdk-ssm 1.85.0 → 1.86.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c52dbd9dad8d7c424f84fed75b848caf2329b22f0204eae992a3d6795caf828
4
- data.tar.gz: abb5e8da3bb3993f7096b3ea02838f066fbcd7fdaa0640cb7519d8d0f4e50cf7
3
+ metadata.gz: 14e022796c1a6510c3cee97d6c83bed60a1aa1711775d90b1e3b08b49ec85522
4
+ data.tar.gz: 2e55b6b0c735d0fd7946702a3065bd1cbfbd51e2785090b547fdb83deccd90ce
5
5
  SHA512:
6
- metadata.gz: 549ca09d68ef6d73f95f250c497e6c1f54e458e6b00c1b71621af26fbd014a3a18759fd4f4cec66a31e6c4804c9e8275b4073e09052ffb7a157bc4e6e9c38512
7
- data.tar.gz: 1f07e4f7b791a7b1eb7e142bebe03601b3528c61e4ebd6d69b742536bb602aee4d7b399c678506142c147bd1e576de7f0ac77915f7e5c14090fc2c60da0df50f
6
+ metadata.gz: 220d1621a995c2febcba0f8b3a69c16440bec95ded413cfe186feb6cc092c746adcd3659ac972176bc9f0067f3d6cb891238a46eb5e075d693c67a14ecba638b
7
+ data.tar.gz: 799e8b7d4445f5e8f7eb44bf8d28c480af06fc7602e5587c2aa87a48daa4af515447375c3ba1bc738dfb6f371ebc069e5c140b31e5e8e48b77763ba5e346c7de
@@ -14,6 +14,7 @@ require_relative 'aws-sdk-ssm/types'
14
14
  require_relative 'aws-sdk-ssm/client_api'
15
15
  require_relative 'aws-sdk-ssm/client'
16
16
  require_relative 'aws-sdk-ssm/errors'
17
+ require_relative 'aws-sdk-ssm/waiters'
17
18
  require_relative 'aws-sdk-ssm/resource'
18
19
  require_relative 'aws-sdk-ssm/customizations'
19
20
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-ssm/customizations'
47
48
  # @service
48
49
  module Aws::SSM
49
50
 
50
- GEM_VERSION = '1.85.0'
51
+ GEM_VERSION = '1.86.0'
51
52
 
52
53
  end
@@ -2295,6 +2295,8 @@ module Aws::SSM
2295
2295
  # * {Types::DescribeAssociationExecutionTargetsResult#association_execution_targets #association_execution_targets} => Array<Types::AssociationExecutionTarget>
2296
2296
  # * {Types::DescribeAssociationExecutionTargetsResult#next_token #next_token} => String
2297
2297
  #
2298
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2299
+ #
2298
2300
  # @example Request syntax with placeholder values
2299
2301
  #
2300
2302
  # resp = client.describe_association_execution_targets({
@@ -2365,6 +2367,8 @@ module Aws::SSM
2365
2367
  # * {Types::DescribeAssociationExecutionsResult#association_executions #association_executions} => Array<Types::AssociationExecution>
2366
2368
  # * {Types::DescribeAssociationExecutionsResult#next_token #next_token} => String
2367
2369
  #
2370
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2371
+ #
2368
2372
  # @example Request syntax with placeholder values
2369
2373
  #
2370
2374
  # resp = client.describe_association_executions({
@@ -2422,6 +2426,8 @@ module Aws::SSM
2422
2426
  # * {Types::DescribeAutomationExecutionsResult#automation_execution_metadata_list #automation_execution_metadata_list} => Array<Types::AutomationExecutionMetadata>
2423
2427
  # * {Types::DescribeAutomationExecutionsResult#next_token #next_token} => String
2424
2428
  #
2429
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2430
+ #
2425
2431
  # @example Request syntax with placeholder values
2426
2432
  #
2427
2433
  # resp = client.describe_automation_executions({
@@ -2510,6 +2516,8 @@ module Aws::SSM
2510
2516
  # * {Types::DescribeAutomationStepExecutionsResult#step_executions #step_executions} => Array<Types::StepExecution>
2511
2517
  # * {Types::DescribeAutomationStepExecutionsResult#next_token #next_token} => String
2512
2518
  #
2519
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2520
+ #
2513
2521
  # @example Request syntax with placeholder values
2514
2522
  #
2515
2523
  # resp = client.describe_automation_step_executions({
@@ -2597,6 +2605,8 @@ module Aws::SSM
2597
2605
  # * {Types::DescribeAvailablePatchesResult#patches #patches} => Array<Types::Patch>
2598
2606
  # * {Types::DescribeAvailablePatchesResult#next_token #next_token} => String
2599
2607
  #
2608
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2609
+ #
2600
2610
  # @example Request syntax with placeholder values
2601
2611
  #
2602
2612
  # resp = client.describe_available_patches({
@@ -2767,6 +2777,8 @@ module Aws::SSM
2767
2777
  # * {Types::DescribeEffectiveInstanceAssociationsResult#associations #associations} => Array<Types::InstanceAssociation>
2768
2778
  # * {Types::DescribeEffectiveInstanceAssociationsResult#next_token #next_token} => String
2769
2779
  #
2780
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2781
+ #
2770
2782
  # @example Request syntax with placeholder values
2771
2783
  #
2772
2784
  # resp = client.describe_effective_instance_associations({
@@ -2812,6 +2824,8 @@ module Aws::SSM
2812
2824
  # * {Types::DescribeEffectivePatchesForPatchBaselineResult#effective_patches #effective_patches} => Array<Types::EffectivePatch>
2813
2825
  # * {Types::DescribeEffectivePatchesForPatchBaselineResult#next_token #next_token} => String
2814
2826
  #
2827
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2828
+ #
2815
2829
  # @example Request syntax with placeholder values
2816
2830
  #
2817
2831
  # resp = client.describe_effective_patches_for_patch_baseline({
@@ -2869,6 +2883,8 @@ module Aws::SSM
2869
2883
  # * {Types::DescribeInstanceAssociationsStatusResult#instance_association_status_infos #instance_association_status_infos} => Array<Types::InstanceAssociationStatusInfo>
2870
2884
  # * {Types::DescribeInstanceAssociationsStatusResult#next_token #next_token} => String
2871
2885
  #
2886
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2887
+ #
2872
2888
  # @example Request syntax with placeholder values
2873
2889
  #
2874
2890
  # resp = client.describe_instance_associations_status({
@@ -3023,6 +3039,8 @@ module Aws::SSM
3023
3039
  # * {Types::DescribeInstancePatchStatesResult#instance_patch_states #instance_patch_states} => Array<Types::InstancePatchState>
3024
3040
  # * {Types::DescribeInstancePatchStatesResult#next_token #next_token} => String
3025
3041
  #
3042
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3043
+ #
3026
3044
  # @example Request syntax with placeholder values
3027
3045
  #
3028
3046
  # resp = client.describe_instance_patch_states({
@@ -3092,6 +3110,8 @@ module Aws::SSM
3092
3110
  # * {Types::DescribeInstancePatchStatesForPatchGroupResult#instance_patch_states #instance_patch_states} => Array<Types::InstancePatchState>
3093
3111
  # * {Types::DescribeInstancePatchStatesForPatchGroupResult#next_token #next_token} => String
3094
3112
  #
3113
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3114
+ #
3095
3115
  # @example Request syntax with placeholder values
3096
3116
  #
3097
3117
  # resp = client.describe_instance_patch_states_for_patch_group({
@@ -3165,6 +3185,8 @@ module Aws::SSM
3165
3185
  # * {Types::DescribeInstancePatchesResult#patches #patches} => Array<Types::PatchComplianceData>
3166
3186
  # * {Types::DescribeInstancePatchesResult#next_token #next_token} => String
3167
3187
  #
3188
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3189
+ #
3168
3190
  # @example Request syntax with placeholder values
3169
3191
  #
3170
3192
  # resp = client.describe_instance_patches({
@@ -3219,6 +3241,8 @@ module Aws::SSM
3219
3241
  # * {Types::DescribeInventoryDeletionsResult#inventory_deletions #inventory_deletions} => Array<Types::InventoryDeletionStatusItem>
3220
3242
  # * {Types::DescribeInventoryDeletionsResult#next_token #next_token} => String
3221
3243
  #
3244
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3245
+ #
3222
3246
  # @example Request syntax with placeholder values
3223
3247
  #
3224
3248
  # resp = client.describe_inventory_deletions({
@@ -3282,6 +3306,8 @@ module Aws::SSM
3282
3306
  # * {Types::DescribeMaintenanceWindowExecutionTaskInvocationsResult#window_execution_task_invocation_identities #window_execution_task_invocation_identities} => Array<Types::MaintenanceWindowExecutionTaskInvocationIdentity>
3283
3307
  # * {Types::DescribeMaintenanceWindowExecutionTaskInvocationsResult#next_token #next_token} => String
3284
3308
  #
3309
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3310
+ #
3285
3311
  # @example Request syntax with placeholder values
3286
3312
  #
3287
3313
  # resp = client.describe_maintenance_window_execution_task_invocations({
@@ -3349,6 +3375,8 @@ module Aws::SSM
3349
3375
  # * {Types::DescribeMaintenanceWindowExecutionTasksResult#window_execution_task_identities #window_execution_task_identities} => Array<Types::MaintenanceWindowExecutionTaskIdentity>
3350
3376
  # * {Types::DescribeMaintenanceWindowExecutionTasksResult#next_token #next_token} => String
3351
3377
  #
3378
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3379
+ #
3352
3380
  # @example Request syntax with placeholder values
3353
3381
  #
3354
3382
  # resp = client.describe_maintenance_window_execution_tasks({
@@ -3417,6 +3445,8 @@ module Aws::SSM
3417
3445
  # * {Types::DescribeMaintenanceWindowExecutionsResult#window_executions #window_executions} => Array<Types::MaintenanceWindowExecution>
3418
3446
  # * {Types::DescribeMaintenanceWindowExecutionsResult#next_token #next_token} => String
3419
3447
  #
3448
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3449
+ #
3420
3450
  # @example Request syntax with placeholder values
3421
3451
  #
3422
3452
  # resp = client.describe_maintenance_window_executions({
@@ -3483,6 +3513,8 @@ module Aws::SSM
3483
3513
  # * {Types::DescribeMaintenanceWindowScheduleResult#scheduled_window_executions #scheduled_window_executions} => Array<Types::ScheduledWindowExecution>
3484
3514
  # * {Types::DescribeMaintenanceWindowScheduleResult#next_token #next_token} => String
3485
3515
  #
3516
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3517
+ #
3486
3518
  # @example Request syntax with placeholder values
3487
3519
  #
3488
3520
  # resp = client.describe_maintenance_window_schedule({
@@ -3545,6 +3577,8 @@ module Aws::SSM
3545
3577
  # * {Types::DescribeMaintenanceWindowTargetsResult#targets #targets} => Array<Types::MaintenanceWindowTarget>
3546
3578
  # * {Types::DescribeMaintenanceWindowTargetsResult#next_token #next_token} => String
3547
3579
  #
3580
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3581
+ #
3548
3582
  # @example Request syntax with placeholder values
3549
3583
  #
3550
3584
  # resp = client.describe_maintenance_window_targets({
@@ -3607,6 +3641,8 @@ module Aws::SSM
3607
3641
  # * {Types::DescribeMaintenanceWindowTasksResult#tasks #tasks} => Array<Types::MaintenanceWindowTask>
3608
3642
  # * {Types::DescribeMaintenanceWindowTasksResult#next_token #next_token} => String
3609
3643
  #
3644
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3645
+ #
3610
3646
  # @example Request syntax with placeholder values
3611
3647
  #
3612
3648
  # resp = client.describe_maintenance_window_tasks({
@@ -3676,6 +3712,8 @@ module Aws::SSM
3676
3712
  # * {Types::DescribeMaintenanceWindowsResult#window_identities #window_identities} => Array<Types::MaintenanceWindowIdentity>
3677
3713
  # * {Types::DescribeMaintenanceWindowsResult#next_token #next_token} => String
3678
3714
  #
3715
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3716
+ #
3679
3717
  # @example Request syntax with placeholder values
3680
3718
  #
3681
3719
  # resp = client.describe_maintenance_windows({
@@ -3739,6 +3777,8 @@ module Aws::SSM
3739
3777
  # * {Types::DescribeMaintenanceWindowsForTargetResult#window_identities #window_identities} => Array<Types::MaintenanceWindowIdentityForTarget>
3740
3778
  # * {Types::DescribeMaintenanceWindowsForTargetResult#next_token #next_token} => String
3741
3779
  #
3780
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3781
+ #
3742
3782
  # @example Request syntax with placeholder values
3743
3783
  #
3744
3784
  # resp = client.describe_maintenance_windows_for_target({
@@ -3858,6 +3898,8 @@ module Aws::SSM
3858
3898
  # * {Types::DescribeOpsItemsResponse#next_token #next_token} => String
3859
3899
  # * {Types::DescribeOpsItemsResponse#ops_item_summaries #ops_item_summaries} => Array<Types::OpsItemSummary>
3860
3900
  #
3901
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3902
+ #
3861
3903
  # @example Request syntax with placeholder values
3862
3904
  #
3863
3905
  # resp = client.describe_ops_items({
@@ -4005,6 +4047,8 @@ module Aws::SSM
4005
4047
  # * {Types::DescribePatchBaselinesResult#baseline_identities #baseline_identities} => Array<Types::PatchBaselineIdentity>
4006
4048
  # * {Types::DescribePatchBaselinesResult#next_token #next_token} => String
4007
4049
  #
4050
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4051
+ #
4008
4052
  # @example Request syntax with placeholder values
4009
4053
  #
4010
4054
  # resp = client.describe_patch_baselines({
@@ -4116,6 +4160,8 @@ module Aws::SSM
4116
4160
  # * {Types::DescribePatchGroupsResult#mappings #mappings} => Array<Types::PatchGroupPatchBaselineMapping>
4117
4161
  # * {Types::DescribePatchGroupsResult#next_token #next_token} => String
4118
4162
  #
4163
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4164
+ #
4119
4165
  # @example Request syntax with placeholder values
4120
4166
  #
4121
4167
  # resp = client.describe_patch_groups({
@@ -4213,6 +4259,8 @@ module Aws::SSM
4213
4259
  # * {Types::DescribePatchPropertiesResult#properties #properties} => Array<Hash<String,String>>
4214
4260
  # * {Types::DescribePatchPropertiesResult#next_token #next_token} => String
4215
4261
  #
4262
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4263
+ #
4216
4264
  # @example Request syntax with placeholder values
4217
4265
  #
4218
4266
  # resp = client.describe_patch_properties({
@@ -4264,6 +4312,8 @@ module Aws::SSM
4264
4312
  # * {Types::DescribeSessionsResponse#sessions #sessions} => Array<Types::Session>
4265
4313
  # * {Types::DescribeSessionsResponse#next_token #next_token} => String
4266
4314
  #
4315
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4316
+ #
4267
4317
  # @example Request syntax with placeholder values
4268
4318
  #
4269
4319
  # resp = client.describe_sessions({
@@ -4544,6 +4594,11 @@ module Aws::SSM
4544
4594
  # resp.cloud_watch_output_config.cloud_watch_log_group_name #=> String
4545
4595
  # resp.cloud_watch_output_config.cloud_watch_output_enabled #=> Boolean
4546
4596
  #
4597
+ #
4598
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
4599
+ #
4600
+ # * command_executed
4601
+ #
4547
4602
  # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetCommandInvocation AWS API Documentation
4548
4603
  #
4549
4604
  # @overload get_command_invocation(params = {})
@@ -4758,6 +4813,8 @@ module Aws::SSM
4758
4813
  # * {Types::GetInventoryResult#entities #entities} => Array<Types::InventoryResultEntity>
4759
4814
  # * {Types::GetInventoryResult#next_token #next_token} => String
4760
4815
  #
4816
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4817
+ #
4761
4818
  # @example Request syntax with placeholder values
4762
4819
  #
4763
4820
  # resp = client.get_inventory({
@@ -4849,6 +4906,8 @@ module Aws::SSM
4849
4906
  # * {Types::GetInventorySchemaResult#schemas #schemas} => Array<Types::InventoryItemSchema>
4850
4907
  # * {Types::GetInventorySchemaResult#next_token #next_token} => String
4851
4908
  #
4909
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4910
+ #
4852
4911
  # @example Request syntax with placeholder values
4853
4912
  #
4854
4913
  # resp = client.get_inventory_schema({
@@ -5277,6 +5336,8 @@ module Aws::SSM
5277
5336
  # * {Types::GetOpsSummaryResult#entities #entities} => Array<Types::OpsEntity>
5278
5337
  # * {Types::GetOpsSummaryResult#next_token #next_token} => String
5279
5338
  #
5339
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5340
+ #
5280
5341
  # @example Request syntax with placeholder values
5281
5342
  #
5282
5343
  # resp = client.get_ops_summary({
@@ -5839,6 +5900,8 @@ module Aws::SSM
5839
5900
  # * {Types::ListAssociationVersionsResult#association_versions #association_versions} => Array<Types::AssociationVersionInfo>
5840
5901
  # * {Types::ListAssociationVersionsResult#next_token #next_token} => String
5841
5902
  #
5903
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5904
+ #
5842
5905
  # @example Request syntax with placeholder values
5843
5906
  #
5844
5907
  # resp = client.list_association_versions({
@@ -6177,6 +6240,8 @@ module Aws::SSM
6177
6240
  # * {Types::ListComplianceItemsResult#compliance_items #compliance_items} => Array<Types::ComplianceItem>
6178
6241
  # * {Types::ListComplianceItemsResult#next_token #next_token} => String
6179
6242
  #
6243
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6244
+ #
6180
6245
  # @example Request syntax with placeholder values
6181
6246
  #
6182
6247
  # resp = client.list_compliance_items({
@@ -6242,6 +6307,8 @@ module Aws::SSM
6242
6307
  # * {Types::ListComplianceSummariesResult#compliance_summary_items #compliance_summary_items} => Array<Types::ComplianceSummaryItem>
6243
6308
  # * {Types::ListComplianceSummariesResult#next_token #next_token} => String
6244
6309
  #
6310
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6311
+ #
6245
6312
  # @example Request syntax with placeholder values
6246
6313
  #
6247
6314
  # resp = client.list_compliance_summaries({
@@ -6305,6 +6372,8 @@ module Aws::SSM
6305
6372
  # * {Types::ListDocumentVersionsResult#document_versions #document_versions} => Array<Types::DocumentVersionInfo>
6306
6373
  # * {Types::ListDocumentVersionsResult#next_token #next_token} => String
6307
6374
  #
6375
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6376
+ #
6308
6377
  # @example Request syntax with placeholder values
6309
6378
  #
6310
6379
  # resp = client.list_document_versions({
@@ -6505,6 +6574,8 @@ module Aws::SSM
6505
6574
  # * {Types::ListResourceComplianceSummariesResult#resource_compliance_summary_items #resource_compliance_summary_items} => Array<Types::ResourceComplianceSummaryItem>
6506
6575
  # * {Types::ListResourceComplianceSummariesResult#next_token #next_token} => String
6507
6576
  #
6577
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6578
+ #
6508
6579
  # @example Request syntax with placeholder values
6509
6580
  #
6510
6581
  # resp = client.list_resource_compliance_summaries({
@@ -6588,6 +6659,8 @@ module Aws::SSM
6588
6659
  # * {Types::ListResourceDataSyncResult#resource_data_sync_items #resource_data_sync_items} => Array<Types::ResourceDataSyncItem>
6589
6660
  # * {Types::ListResourceDataSyncResult#next_token #next_token} => String
6590
6661
  #
6662
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6663
+ #
6591
6664
  # @example Request syntax with placeholder values
6592
6665
  #
6593
6666
  # resp = client.list_resource_data_sync({
@@ -9618,14 +9691,127 @@ module Aws::SSM
9618
9691
  params: params,
9619
9692
  config: config)
9620
9693
  context[:gem_name] = 'aws-sdk-ssm'
9621
- context[:gem_version] = '1.85.0'
9694
+ context[:gem_version] = '1.86.0'
9622
9695
  Seahorse::Client::Request.new(handlers, context)
9623
9696
  end
9624
9697
 
9698
+ # Polls an API operation until a resource enters a desired state.
9699
+ #
9700
+ # ## Basic Usage
9701
+ #
9702
+ # A waiter will call an API operation until:
9703
+ #
9704
+ # * It is successful
9705
+ # * It enters a terminal state
9706
+ # * It makes the maximum number of attempts
9707
+ #
9708
+ # In between attempts, the waiter will sleep.
9709
+ #
9710
+ # # polls in a loop, sleeping between attempts
9711
+ # client.wait_until(waiter_name, params)
9712
+ #
9713
+ # ## Configuration
9714
+ #
9715
+ # You can configure the maximum number of polling attempts, and the
9716
+ # delay (in seconds) between each polling attempt. You can pass
9717
+ # configuration as the final arguments hash.
9718
+ #
9719
+ # # poll for ~25 seconds
9720
+ # client.wait_until(waiter_name, params, {
9721
+ # max_attempts: 5,
9722
+ # delay: 5,
9723
+ # })
9724
+ #
9725
+ # ## Callbacks
9726
+ #
9727
+ # You can be notified before each polling attempt and before each
9728
+ # delay. If you throw `:success` or `:failure` from these callbacks,
9729
+ # it will terminate the waiter.
9730
+ #
9731
+ # started_at = Time.now
9732
+ # client.wait_until(waiter_name, params, {
9733
+ #
9734
+ # # disable max attempts
9735
+ # max_attempts: nil,
9736
+ #
9737
+ # # poll for 1 hour, instead of a number of attempts
9738
+ # before_wait: -> (attempts, response) do
9739
+ # throw :failure if Time.now - started_at > 3600
9740
+ # end
9741
+ # })
9742
+ #
9743
+ # ## Handling Errors
9744
+ #
9745
+ # When a waiter is unsuccessful, it will raise an error.
9746
+ # All of the failure errors extend from
9747
+ # {Aws::Waiters::Errors::WaiterFailed}.
9748
+ #
9749
+ # begin
9750
+ # client.wait_until(...)
9751
+ # rescue Aws::Waiters::Errors::WaiterFailed
9752
+ # # resource did not enter the desired state in time
9753
+ # end
9754
+ #
9755
+ # ## Valid Waiters
9756
+ #
9757
+ # The following table lists the valid waiter names, the operations they call,
9758
+ # and the default `:delay` and `:max_attempts` values.
9759
+ #
9760
+ # | waiter_name | params | :delay | :max_attempts |
9761
+ # | ---------------- | ------------------------------- | -------- | ------------- |
9762
+ # | command_executed | {Client#get_command_invocation} | 5 | 20 |
9763
+ #
9764
+ # @raise [Errors::FailureStateError] Raised when the waiter terminates
9765
+ # because the waiter has entered a state that it will not transition
9766
+ # out of, preventing success.
9767
+ #
9768
+ # @raise [Errors::TooManyAttemptsError] Raised when the configured
9769
+ # maximum number of attempts have been made, and the waiter is not
9770
+ # yet successful.
9771
+ #
9772
+ # @raise [Errors::UnexpectedError] Raised when an error is encounted
9773
+ # while polling for a resource that is not expected.
9774
+ #
9775
+ # @raise [Errors::NoSuchWaiterError] Raised when you request to wait
9776
+ # for an unknown state.
9777
+ #
9778
+ # @return [Boolean] Returns `true` if the waiter was successful.
9779
+ # @param [Symbol] waiter_name
9780
+ # @param [Hash] params ({})
9781
+ # @param [Hash] options ({})
9782
+ # @option options [Integer] :max_attempts
9783
+ # @option options [Integer] :delay
9784
+ # @option options [Proc] :before_attempt
9785
+ # @option options [Proc] :before_wait
9786
+ def wait_until(waiter_name, params = {}, options = {})
9787
+ w = waiter(waiter_name, options)
9788
+ yield(w.waiter) if block_given? # deprecated
9789
+ w.wait(params)
9790
+ end
9791
+
9625
9792
  # @api private
9626
9793
  # @deprecated
9627
9794
  def waiter_names
9628
- []
9795
+ waiters.keys
9796
+ end
9797
+
9798
+ private
9799
+
9800
+ # @param [Symbol] waiter_name
9801
+ # @param [Hash] options ({})
9802
+ def waiter(waiter_name, options = {})
9803
+ waiter_class = waiters[waiter_name]
9804
+ if waiter_class
9805
+ waiter_class.new(options.merge(client: self))
9806
+ else
9807
+ raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
9808
+ end
9809
+ end
9810
+
9811
+ def waiters
9812
+ {
9813
+ command_executed: Waiters::CommandExecuted
9814
+ }
9629
9815
  end
9630
9816
 
9631
9817
  class << self
@@ -4384,6 +4384,12 @@ module Aws::SSM
4384
4384
  o.errors << Shapes::ShapeRef.new(shape: AssociationDoesNotExist)
4385
4385
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4386
4386
  o.errors << Shapes::ShapeRef.new(shape: AssociationExecutionDoesNotExist)
4387
+ o[:pager] = Aws::Pager.new(
4388
+ limit_key: "max_results",
4389
+ tokens: {
4390
+ "next_token" => "next_token"
4391
+ }
4392
+ )
4387
4393
  end)
4388
4394
 
4389
4395
  api.add_operation(:describe_association_executions, Seahorse::Model::Operation.new.tap do |o|
@@ -4395,6 +4401,12 @@ module Aws::SSM
4395
4401
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4396
4402
  o.errors << Shapes::ShapeRef.new(shape: AssociationDoesNotExist)
4397
4403
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4404
+ o[:pager] = Aws::Pager.new(
4405
+ limit_key: "max_results",
4406
+ tokens: {
4407
+ "next_token" => "next_token"
4408
+ }
4409
+ )
4398
4410
  end)
4399
4411
 
4400
4412
  api.add_operation(:describe_automation_executions, Seahorse::Model::Operation.new.tap do |o|
@@ -4407,6 +4419,12 @@ module Aws::SSM
4407
4419
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilterValue)
4408
4420
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4409
4421
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4422
+ o[:pager] = Aws::Pager.new(
4423
+ limit_key: "max_results",
4424
+ tokens: {
4425
+ "next_token" => "next_token"
4426
+ }
4427
+ )
4410
4428
  end)
4411
4429
 
4412
4430
  api.add_operation(:describe_automation_step_executions, Seahorse::Model::Operation.new.tap do |o|
@@ -4420,6 +4438,12 @@ module Aws::SSM
4420
4438
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilterKey)
4421
4439
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilterValue)
4422
4440
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4441
+ o[:pager] = Aws::Pager.new(
4442
+ limit_key: "max_results",
4443
+ tokens: {
4444
+ "next_token" => "next_token"
4445
+ }
4446
+ )
4423
4447
  end)
4424
4448
 
4425
4449
  api.add_operation(:describe_available_patches, Seahorse::Model::Operation.new.tap do |o|
@@ -4429,6 +4453,12 @@ module Aws::SSM
4429
4453
  o.input = Shapes::ShapeRef.new(shape: DescribeAvailablePatchesRequest)
4430
4454
  o.output = Shapes::ShapeRef.new(shape: DescribeAvailablePatchesResult)
4431
4455
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4456
+ o[:pager] = Aws::Pager.new(
4457
+ limit_key: "max_results",
4458
+ tokens: {
4459
+ "next_token" => "next_token"
4460
+ }
4461
+ )
4432
4462
  end)
4433
4463
 
4434
4464
  api.add_operation(:describe_document, Seahorse::Model::Operation.new.tap do |o|
@@ -4462,6 +4492,12 @@ module Aws::SSM
4462
4492
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4463
4493
  o.errors << Shapes::ShapeRef.new(shape: InvalidInstanceId)
4464
4494
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4495
+ o[:pager] = Aws::Pager.new(
4496
+ limit_key: "max_results",
4497
+ tokens: {
4498
+ "next_token" => "next_token"
4499
+ }
4500
+ )
4465
4501
  end)
4466
4502
 
4467
4503
  api.add_operation(:describe_effective_patches_for_patch_baseline, Seahorse::Model::Operation.new.tap do |o|
@@ -4474,6 +4510,12 @@ module Aws::SSM
4474
4510
  o.errors << Shapes::ShapeRef.new(shape: DoesNotExistException)
4475
4511
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperatingSystem)
4476
4512
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4513
+ o[:pager] = Aws::Pager.new(
4514
+ limit_key: "max_results",
4515
+ tokens: {
4516
+ "next_token" => "next_token"
4517
+ }
4518
+ )
4477
4519
  end)
4478
4520
 
4479
4521
  api.add_operation(:describe_instance_associations_status, Seahorse::Model::Operation.new.tap do |o|
@@ -4485,6 +4527,12 @@ module Aws::SSM
4485
4527
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4486
4528
  o.errors << Shapes::ShapeRef.new(shape: InvalidInstanceId)
4487
4529
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4530
+ o[:pager] = Aws::Pager.new(
4531
+ limit_key: "max_results",
4532
+ tokens: {
4533
+ "next_token" => "next_token"
4534
+ }
4535
+ )
4488
4536
  end)
4489
4537
 
4490
4538
  api.add_operation(:describe_instance_information, Seahorse::Model::Operation.new.tap do |o|
@@ -4514,6 +4562,12 @@ module Aws::SSM
4514
4562
  o.output = Shapes::ShapeRef.new(shape: DescribeInstancePatchStatesResult)
4515
4563
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4516
4564
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4565
+ o[:pager] = Aws::Pager.new(
4566
+ limit_key: "max_results",
4567
+ tokens: {
4568
+ "next_token" => "next_token"
4569
+ }
4570
+ )
4517
4571
  end)
4518
4572
 
4519
4573
  api.add_operation(:describe_instance_patch_states_for_patch_group, Seahorse::Model::Operation.new.tap do |o|
@@ -4525,6 +4579,12 @@ module Aws::SSM
4525
4579
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4526
4580
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilter)
4527
4581
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4582
+ o[:pager] = Aws::Pager.new(
4583
+ limit_key: "max_results",
4584
+ tokens: {
4585
+ "next_token" => "next_token"
4586
+ }
4587
+ )
4528
4588
  end)
4529
4589
 
4530
4590
  api.add_operation(:describe_instance_patches, Seahorse::Model::Operation.new.tap do |o|
@@ -4537,6 +4597,12 @@ module Aws::SSM
4537
4597
  o.errors << Shapes::ShapeRef.new(shape: InvalidInstanceId)
4538
4598
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilter)
4539
4599
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4600
+ o[:pager] = Aws::Pager.new(
4601
+ limit_key: "max_results",
4602
+ tokens: {
4603
+ "next_token" => "next_token"
4604
+ }
4605
+ )
4540
4606
  end)
4541
4607
 
4542
4608
  api.add_operation(:describe_inventory_deletions, Seahorse::Model::Operation.new.tap do |o|
@@ -4548,6 +4614,12 @@ module Aws::SSM
4548
4614
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4549
4615
  o.errors << Shapes::ShapeRef.new(shape: InvalidDeletionIdException)
4550
4616
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4617
+ o[:pager] = Aws::Pager.new(
4618
+ limit_key: "max_results",
4619
+ tokens: {
4620
+ "next_token" => "next_token"
4621
+ }
4622
+ )
4551
4623
  end)
4552
4624
 
4553
4625
  api.add_operation(:describe_maintenance_window_execution_task_invocations, Seahorse::Model::Operation.new.tap do |o|
@@ -4558,6 +4630,12 @@ module Aws::SSM
4558
4630
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowExecutionTaskInvocationsResult)
4559
4631
  o.errors << Shapes::ShapeRef.new(shape: DoesNotExistException)
4560
4632
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4633
+ o[:pager] = Aws::Pager.new(
4634
+ limit_key: "max_results",
4635
+ tokens: {
4636
+ "next_token" => "next_token"
4637
+ }
4638
+ )
4561
4639
  end)
4562
4640
 
4563
4641
  api.add_operation(:describe_maintenance_window_execution_tasks, Seahorse::Model::Operation.new.tap do |o|
@@ -4568,6 +4646,12 @@ module Aws::SSM
4568
4646
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowExecutionTasksResult)
4569
4647
  o.errors << Shapes::ShapeRef.new(shape: DoesNotExistException)
4570
4648
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4649
+ o[:pager] = Aws::Pager.new(
4650
+ limit_key: "max_results",
4651
+ tokens: {
4652
+ "next_token" => "next_token"
4653
+ }
4654
+ )
4571
4655
  end)
4572
4656
 
4573
4657
  api.add_operation(:describe_maintenance_window_executions, Seahorse::Model::Operation.new.tap do |o|
@@ -4577,6 +4661,12 @@ module Aws::SSM
4577
4661
  o.input = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowExecutionsRequest)
4578
4662
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowExecutionsResult)
4579
4663
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4664
+ o[:pager] = Aws::Pager.new(
4665
+ limit_key: "max_results",
4666
+ tokens: {
4667
+ "next_token" => "next_token"
4668
+ }
4669
+ )
4580
4670
  end)
4581
4671
 
4582
4672
  api.add_operation(:describe_maintenance_window_schedule, Seahorse::Model::Operation.new.tap do |o|
@@ -4587,6 +4677,12 @@ module Aws::SSM
4587
4677
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowScheduleResult)
4588
4678
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4589
4679
  o.errors << Shapes::ShapeRef.new(shape: DoesNotExistException)
4680
+ o[:pager] = Aws::Pager.new(
4681
+ limit_key: "max_results",
4682
+ tokens: {
4683
+ "next_token" => "next_token"
4684
+ }
4685
+ )
4590
4686
  end)
4591
4687
 
4592
4688
  api.add_operation(:describe_maintenance_window_targets, Seahorse::Model::Operation.new.tap do |o|
@@ -4597,6 +4693,12 @@ module Aws::SSM
4597
4693
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowTargetsResult)
4598
4694
  o.errors << Shapes::ShapeRef.new(shape: DoesNotExistException)
4599
4695
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4696
+ o[:pager] = Aws::Pager.new(
4697
+ limit_key: "max_results",
4698
+ tokens: {
4699
+ "next_token" => "next_token"
4700
+ }
4701
+ )
4600
4702
  end)
4601
4703
 
4602
4704
  api.add_operation(:describe_maintenance_window_tasks, Seahorse::Model::Operation.new.tap do |o|
@@ -4607,6 +4709,12 @@ module Aws::SSM
4607
4709
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowTasksResult)
4608
4710
  o.errors << Shapes::ShapeRef.new(shape: DoesNotExistException)
4609
4711
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4712
+ o[:pager] = Aws::Pager.new(
4713
+ limit_key: "max_results",
4714
+ tokens: {
4715
+ "next_token" => "next_token"
4716
+ }
4717
+ )
4610
4718
  end)
4611
4719
 
4612
4720
  api.add_operation(:describe_maintenance_windows, Seahorse::Model::Operation.new.tap do |o|
@@ -4616,6 +4724,12 @@ module Aws::SSM
4616
4724
  o.input = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowsRequest)
4617
4725
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowsResult)
4618
4726
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4727
+ o[:pager] = Aws::Pager.new(
4728
+ limit_key: "max_results",
4729
+ tokens: {
4730
+ "next_token" => "next_token"
4731
+ }
4732
+ )
4619
4733
  end)
4620
4734
 
4621
4735
  api.add_operation(:describe_maintenance_windows_for_target, Seahorse::Model::Operation.new.tap do |o|
@@ -4625,6 +4739,12 @@ module Aws::SSM
4625
4739
  o.input = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowsForTargetRequest)
4626
4740
  o.output = Shapes::ShapeRef.new(shape: DescribeMaintenanceWindowsForTargetResult)
4627
4741
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4742
+ o[:pager] = Aws::Pager.new(
4743
+ limit_key: "max_results",
4744
+ tokens: {
4745
+ "next_token" => "next_token"
4746
+ }
4747
+ )
4628
4748
  end)
4629
4749
 
4630
4750
  api.add_operation(:describe_ops_items, Seahorse::Model::Operation.new.tap do |o|
@@ -4634,6 +4754,12 @@ module Aws::SSM
4634
4754
  o.input = Shapes::ShapeRef.new(shape: DescribeOpsItemsRequest)
4635
4755
  o.output = Shapes::ShapeRef.new(shape: DescribeOpsItemsResponse)
4636
4756
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4757
+ o[:pager] = Aws::Pager.new(
4758
+ limit_key: "max_results",
4759
+ tokens: {
4760
+ "next_token" => "next_token"
4761
+ }
4762
+ )
4637
4763
  end)
4638
4764
 
4639
4765
  api.add_operation(:describe_parameters, Seahorse::Model::Operation.new.tap do |o|
@@ -4662,6 +4788,12 @@ module Aws::SSM
4662
4788
  o.input = Shapes::ShapeRef.new(shape: DescribePatchBaselinesRequest)
4663
4789
  o.output = Shapes::ShapeRef.new(shape: DescribePatchBaselinesResult)
4664
4790
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4791
+ o[:pager] = Aws::Pager.new(
4792
+ limit_key: "max_results",
4793
+ tokens: {
4794
+ "next_token" => "next_token"
4795
+ }
4796
+ )
4665
4797
  end)
4666
4798
 
4667
4799
  api.add_operation(:describe_patch_group_state, Seahorse::Model::Operation.new.tap do |o|
@@ -4681,6 +4813,12 @@ module Aws::SSM
4681
4813
  o.input = Shapes::ShapeRef.new(shape: DescribePatchGroupsRequest)
4682
4814
  o.output = Shapes::ShapeRef.new(shape: DescribePatchGroupsResult)
4683
4815
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4816
+ o[:pager] = Aws::Pager.new(
4817
+ limit_key: "max_results",
4818
+ tokens: {
4819
+ "next_token" => "next_token"
4820
+ }
4821
+ )
4684
4822
  end)
4685
4823
 
4686
4824
  api.add_operation(:describe_patch_properties, Seahorse::Model::Operation.new.tap do |o|
@@ -4690,6 +4828,12 @@ module Aws::SSM
4690
4828
  o.input = Shapes::ShapeRef.new(shape: DescribePatchPropertiesRequest)
4691
4829
  o.output = Shapes::ShapeRef.new(shape: DescribePatchPropertiesResult)
4692
4830
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4831
+ o[:pager] = Aws::Pager.new(
4832
+ limit_key: "max_results",
4833
+ tokens: {
4834
+ "next_token" => "next_token"
4835
+ }
4836
+ )
4693
4837
  end)
4694
4838
 
4695
4839
  api.add_operation(:describe_sessions, Seahorse::Model::Operation.new.tap do |o|
@@ -4701,6 +4845,12 @@ module Aws::SSM
4701
4845
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4702
4846
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilterKey)
4703
4847
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4848
+ o[:pager] = Aws::Pager.new(
4849
+ limit_key: "max_results",
4850
+ tokens: {
4851
+ "next_token" => "next_token"
4852
+ }
4853
+ )
4704
4854
  end)
4705
4855
 
4706
4856
  api.add_operation(:get_automation_execution, Seahorse::Model::Operation.new.tap do |o|
@@ -4791,6 +4941,12 @@ module Aws::SSM
4791
4941
  o.errors << Shapes::ShapeRef.new(shape: InvalidTypeNameException)
4792
4942
  o.errors << Shapes::ShapeRef.new(shape: InvalidAggregatorException)
4793
4943
  o.errors << Shapes::ShapeRef.new(shape: InvalidResultAttributeException)
4944
+ o[:pager] = Aws::Pager.new(
4945
+ limit_key: "max_results",
4946
+ tokens: {
4947
+ "next_token" => "next_token"
4948
+ }
4949
+ )
4794
4950
  end)
4795
4951
 
4796
4952
  api.add_operation(:get_inventory_schema, Seahorse::Model::Operation.new.tap do |o|
@@ -4802,6 +4958,12 @@ module Aws::SSM
4802
4958
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4803
4959
  o.errors << Shapes::ShapeRef.new(shape: InvalidTypeNameException)
4804
4960
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4961
+ o[:pager] = Aws::Pager.new(
4962
+ limit_key: "max_results",
4963
+ tokens: {
4964
+ "next_token" => "next_token"
4965
+ }
4966
+ )
4805
4967
  end)
4806
4968
 
4807
4969
  api.add_operation(:get_maintenance_window, Seahorse::Model::Operation.new.tap do |o|
@@ -4876,6 +5038,12 @@ module Aws::SSM
4876
5038
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4877
5039
  o.errors << Shapes::ShapeRef.new(shape: InvalidTypeNameException)
4878
5040
  o.errors << Shapes::ShapeRef.new(shape: InvalidAggregatorException)
5041
+ o[:pager] = Aws::Pager.new(
5042
+ limit_key: "max_results",
5043
+ tokens: {
5044
+ "next_token" => "next_token"
5045
+ }
5046
+ )
4879
5047
  end)
4880
5048
 
4881
5049
  api.add_operation(:get_parameter, Seahorse::Model::Operation.new.tap do |o|
@@ -4990,6 +5158,12 @@ module Aws::SSM
4990
5158
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
4991
5159
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
4992
5160
  o.errors << Shapes::ShapeRef.new(shape: AssociationDoesNotExist)
5161
+ o[:pager] = Aws::Pager.new(
5162
+ limit_key: "max_results",
5163
+ tokens: {
5164
+ "next_token" => "next_token"
5165
+ }
5166
+ )
4993
5167
  end)
4994
5168
 
4995
5169
  api.add_operation(:list_associations, Seahorse::Model::Operation.new.tap do |o|
@@ -5057,6 +5231,12 @@ module Aws::SSM
5057
5231
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
5058
5232
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilter)
5059
5233
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
5234
+ o[:pager] = Aws::Pager.new(
5235
+ limit_key: "max_results",
5236
+ tokens: {
5237
+ "next_token" => "next_token"
5238
+ }
5239
+ )
5060
5240
  end)
5061
5241
 
5062
5242
  api.add_operation(:list_compliance_summaries, Seahorse::Model::Operation.new.tap do |o|
@@ -5068,6 +5248,12 @@ module Aws::SSM
5068
5248
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilter)
5069
5249
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
5070
5250
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
5251
+ o[:pager] = Aws::Pager.new(
5252
+ limit_key: "max_results",
5253
+ tokens: {
5254
+ "next_token" => "next_token"
5255
+ }
5256
+ )
5071
5257
  end)
5072
5258
 
5073
5259
  api.add_operation(:list_document_versions, Seahorse::Model::Operation.new.tap do |o|
@@ -5079,6 +5265,12 @@ module Aws::SSM
5079
5265
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
5080
5266
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
5081
5267
  o.errors << Shapes::ShapeRef.new(shape: InvalidDocument)
5268
+ o[:pager] = Aws::Pager.new(
5269
+ limit_key: "max_results",
5270
+ tokens: {
5271
+ "next_token" => "next_token"
5272
+ }
5273
+ )
5082
5274
  end)
5083
5275
 
5084
5276
  api.add_operation(:list_documents, Seahorse::Model::Operation.new.tap do |o|
@@ -5120,6 +5312,12 @@ module Aws::SSM
5120
5312
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilter)
5121
5313
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
5122
5314
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
5315
+ o[:pager] = Aws::Pager.new(
5316
+ limit_key: "max_results",
5317
+ tokens: {
5318
+ "next_token" => "next_token"
5319
+ }
5320
+ )
5123
5321
  end)
5124
5322
 
5125
5323
  api.add_operation(:list_resource_data_sync, Seahorse::Model::Operation.new.tap do |o|
@@ -5131,6 +5329,12 @@ module Aws::SSM
5131
5329
  o.errors << Shapes::ShapeRef.new(shape: ResourceDataSyncInvalidConfigurationException)
5132
5330
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
5133
5331
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
5332
+ o[:pager] = Aws::Pager.new(
5333
+ limit_key: "max_results",
5334
+ tokens: {
5335
+ "next_token" => "next_token"
5336
+ }
5337
+ )
5134
5338
  end)
5135
5339
 
5136
5340
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -0,0 +1,156 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::SSM
13
+ # Waiters are utility methods that poll for a particular state to occur
14
+ # on a client. Waiters can fail after a number of attempts at a polling
15
+ # interval defined for the service client.
16
+ #
17
+ # For a list of operations that can be waited for and the
18
+ # client methods called for each operation, see the table below or the
19
+ # {Client#wait_until} field documentation for the {Client}.
20
+ #
21
+ # # Invoking a Waiter
22
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
23
+ # is the waiter name, which is specific to the service client and indicates
24
+ # which operation is being waited for. The second parameter is a hash of
25
+ # parameters that are passed to the client method called by the waiter,
26
+ # which varies according to the waiter name.
27
+ #
28
+ # # Wait Failures
29
+ # To catch errors in a waiter, use WaiterFailed,
30
+ # as shown in the following example.
31
+ #
32
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
33
+ # puts "failed waiting for instance running: #{error.message}
34
+ # end
35
+ #
36
+ # # Configuring a Waiter
37
+ # Each waiter has a default polling interval and a maximum number of
38
+ # attempts it will make before returning control to your program.
39
+ # To set these values, use the `max_attempts` and `delay` parameters
40
+ # in your `#wait_until` call.
41
+ # The following example waits for up to 25 seconds, polling every five seconds.
42
+ #
43
+ # client.wait_until(...) do |w|
44
+ # w.max_attempts = 5
45
+ # w.delay = 5
46
+ # end
47
+ #
48
+ # To disable wait failures, set the value of either of these parameters
49
+ # to `nil`.
50
+ #
51
+ # # Extending a Waiter
52
+ # To modify the behavior of waiters, you can register callbacks that are
53
+ # triggered before each polling attempt and before waiting.
54
+ #
55
+ # The following example implements an exponential backoff in a waiter
56
+ # by doubling the amount of time to wait on every attempt.
57
+ #
58
+ # client.wait_until(...) do |w|
59
+ # w.interval = 0 # disable normal sleep
60
+ # w.before_wait do |n, resp|
61
+ # sleep(n ** 2)
62
+ # end
63
+ # end
64
+ #
65
+ # # Available Waiters
66
+ #
67
+ # The following table lists the valid waiter names, the operations they call,
68
+ # and the default `:delay` and `:max_attempts` values.
69
+ #
70
+ # | waiter_name | params | :delay | :max_attempts |
71
+ # | ---------------- | ------------------------------- | -------- | ------------- |
72
+ # | command_executed | {Client#get_command_invocation} | 5 | 20 |
73
+ #
74
+ module Waiters
75
+
76
+ class CommandExecuted
77
+
78
+ # @param [Hash] options
79
+ # @option options [required, Client] :client
80
+ # @option options [Integer] :max_attempts (20)
81
+ # @option options [Integer] :delay (5)
82
+ # @option options [Proc] :before_attempt
83
+ # @option options [Proc] :before_wait
84
+ def initialize(options)
85
+ @client = options.fetch(:client)
86
+ @waiter = Aws::Waiters::Waiter.new({
87
+ max_attempts: 20,
88
+ delay: 5,
89
+ poller: Aws::Waiters::Poller.new(
90
+ operation_name: :get_command_invocation,
91
+ acceptors: [
92
+ {
93
+ "expected" => "Pending",
94
+ "matcher" => "path",
95
+ "state" => "retry",
96
+ "argument" => "status"
97
+ },
98
+ {
99
+ "expected" => "InProgress",
100
+ "matcher" => "path",
101
+ "state" => "retry",
102
+ "argument" => "status"
103
+ },
104
+ {
105
+ "expected" => "Delayed",
106
+ "matcher" => "path",
107
+ "state" => "retry",
108
+ "argument" => "status"
109
+ },
110
+ {
111
+ "expected" => "Success",
112
+ "matcher" => "path",
113
+ "state" => "success",
114
+ "argument" => "status"
115
+ },
116
+ {
117
+ "expected" => "Cancelled",
118
+ "matcher" => "path",
119
+ "state" => "failure",
120
+ "argument" => "status"
121
+ },
122
+ {
123
+ "expected" => "TimedOut",
124
+ "matcher" => "path",
125
+ "state" => "failure",
126
+ "argument" => "status"
127
+ },
128
+ {
129
+ "expected" => "Failed",
130
+ "matcher" => "path",
131
+ "state" => "failure",
132
+ "argument" => "status"
133
+ },
134
+ {
135
+ "expected" => "Cancelling",
136
+ "matcher" => "path",
137
+ "state" => "failure",
138
+ "argument" => "status"
139
+ }
140
+ ]
141
+ )
142
+ }.merge(options))
143
+ end
144
+
145
+ # @option (see Client#get_command_invocation)
146
+ # @return (see Client#get_command_invocation)
147
+ def wait(params = {})
148
+ @waiter.wait(client: @client, params: params)
149
+ end
150
+
151
+ # @api private
152
+ attr_reader :waiter
153
+
154
+ end
155
+ end
156
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ssm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.85.0
4
+ version: 1.86.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-27 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -59,6 +59,7 @@ files:
59
59
  - lib/aws-sdk-ssm/errors.rb
60
60
  - lib/aws-sdk-ssm/resource.rb
61
61
  - lib/aws-sdk-ssm/types.rb
62
+ - lib/aws-sdk-ssm/waiters.rb
62
63
  homepage: https://github.com/aws/aws-sdk-ruby
63
64
  licenses:
64
65
  - Apache-2.0