aws-sdk-prometheusservice 1.20.0 → 1.22.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.
@@ -28,6 +28,7 @@ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
+ require 'aws-sdk-core/plugins/request_compression.rb'
31
32
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
33
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
34
  require 'aws-sdk-core/plugins/sign.rb'
@@ -77,6 +78,7 @@ module Aws::PrometheusService
77
78
  add_plugin(Aws::Plugins::TransferEncoding)
78
79
  add_plugin(Aws::Plugins::HttpChecksum)
79
80
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
+ add_plugin(Aws::Plugins::RequestCompression)
80
82
  add_plugin(Aws::Plugins::DefaultsMode)
81
83
  add_plugin(Aws::Plugins::RecursionDetection)
82
84
  add_plugin(Aws::Plugins::Sign)
@@ -190,6 +192,10 @@ module Aws::PrometheusService
190
192
  # Set to true to disable SDK automatically adding host prefix
191
193
  # to default service endpoint when available.
192
194
  #
195
+ # @option options [Boolean] :disable_request_compression (false)
196
+ # When set to 'true' the request body will not be compressed
197
+ # for supported operations.
198
+ #
193
199
  # @option options [String] :endpoint
194
200
  # The client endpoint is normally constructed from the `:region`
195
201
  # option. You should only configure an `:endpoint` when connecting
@@ -230,6 +236,11 @@ module Aws::PrometheusService
230
236
  # Used when loading credentials from the shared credentials file
231
237
  # at HOME/.aws/credentials. When not specified, 'default' is used.
232
238
  #
239
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
240
+ # The minimum size in bytes that triggers compression for request
241
+ # bodies. The value must be non-negative integer value between 0
242
+ # and 10485780 bytes inclusive.
243
+ #
233
244
  # @option options [Proc] :retry_backoff
234
245
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
235
246
  # This option is only used in the `legacy` retry mode.
@@ -375,6 +386,13 @@ module Aws::PrometheusService
375
386
 
376
387
  # Create an alert manager definition.
377
388
  #
389
+ # @option params [required, String] :workspace_id
390
+ # The ID of the workspace in which to create the alert manager
391
+ # definition.
392
+ #
393
+ # @option params [required, String, StringIO, File] :data
394
+ # The alert manager definition data.
395
+ #
378
396
  # @option params [String] :client_token
379
397
  # Optional, unique, case-sensitive, user-provided identifier to ensure
380
398
  # the idempotency of the request.
@@ -382,13 +400,6 @@ module Aws::PrometheusService
382
400
  # **A suitable default value is auto-generated.** You should normally
383
401
  # not need to pass this option.**
384
402
  #
385
- # @option params [required, String, StringIO, File] :data
386
- # The alert manager definition data.
387
- #
388
- # @option params [required, String] :workspace_id
389
- # The ID of the workspace in which to create the alert manager
390
- # definition.
391
- #
392
403
  # @return [Types::CreateAlertManagerDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
393
404
  #
394
405
  # * {Types::CreateAlertManagerDefinitionResponse#status #status} => Types::AlertManagerDefinitionStatus
@@ -396,9 +407,9 @@ module Aws::PrometheusService
396
407
  # @example Request syntax with placeholder values
397
408
  #
398
409
  # resp = client.create_alert_manager_definition({
399
- # client_token: "IdempotencyToken",
400
- # data: "data", # required
401
410
  # workspace_id: "WorkspaceId", # required
411
+ # data: "data", # required
412
+ # client_token: "IdempotencyToken",
402
413
  # })
403
414
  #
404
415
  # @example Response structure
@@ -417,6 +428,13 @@ module Aws::PrometheusService
417
428
 
418
429
  # Create logging configuration.
419
430
  #
431
+ # @option params [required, String] :workspace_id
432
+ # The ID of the workspace to vend logs to.
433
+ #
434
+ # @option params [required, String] :log_group_arn
435
+ # The ARN of the CW log group to which the vended log data will be
436
+ # published.
437
+ #
420
438
  # @option params [String] :client_token
421
439
  # Optional, unique, case-sensitive, user-provided identifier to ensure
422
440
  # the idempotency of the request.
@@ -424,13 +442,6 @@ module Aws::PrometheusService
424
442
  # **A suitable default value is auto-generated.** You should normally
425
443
  # not need to pass this option.**
426
444
  #
427
- # @option params [required, String] :log_group_arn
428
- # The ARN of the CW log group to which the vended log data will be
429
- # published.
430
- #
431
- # @option params [required, String] :workspace_id
432
- # The ID of the workspace to vend logs to.
433
- #
434
445
  # @return [Types::CreateLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
435
446
  #
436
447
  # * {Types::CreateLoggingConfigurationResponse#status #status} => Types::LoggingConfigurationStatus
@@ -438,9 +449,9 @@ module Aws::PrometheusService
438
449
  # @example Request syntax with placeholder values
439
450
  #
440
451
  # resp = client.create_logging_configuration({
441
- # client_token: "IdempotencyToken",
442
- # log_group_arn: "LogGroupArn", # required
443
452
  # workspace_id: "WorkspaceId", # required
453
+ # log_group_arn: "LogGroupArn", # required
454
+ # client_token: "IdempotencyToken",
444
455
  # })
445
456
  #
446
457
  # @example Response structure
@@ -459,6 +470,15 @@ module Aws::PrometheusService
459
470
 
460
471
  # Create a rule group namespace.
461
472
  #
473
+ # @option params [required, String] :workspace_id
474
+ # The ID of the workspace in which to create the rule group namespace.
475
+ #
476
+ # @option params [required, String] :name
477
+ # The rule groups namespace name.
478
+ #
479
+ # @option params [required, String, StringIO, File] :data
480
+ # The namespace data that define the rule groups.
481
+ #
462
482
  # @option params [String] :client_token
463
483
  # Optional, unique, case-sensitive, user-provided identifier to ensure
464
484
  # the idempotency of the request.
@@ -466,41 +486,32 @@ module Aws::PrometheusService
466
486
  # **A suitable default value is auto-generated.** You should normally
467
487
  # not need to pass this option.**
468
488
  #
469
- # @option params [required, String, StringIO, File] :data
470
- # The namespace data that define the rule groups.
471
- #
472
- # @option params [required, String] :name
473
- # The rule groups namespace name.
474
- #
475
489
  # @option params [Hash<String,String>] :tags
476
490
  # Optional, user-provided tags for this rule groups namespace.
477
491
  #
478
- # @option params [required, String] :workspace_id
479
- # The ID of the workspace in which to create the rule group namespace.
480
- #
481
492
  # @return [Types::CreateRuleGroupsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
482
493
  #
483
- # * {Types::CreateRuleGroupsNamespaceResponse#arn #arn} => String
484
494
  # * {Types::CreateRuleGroupsNamespaceResponse#name #name} => String
495
+ # * {Types::CreateRuleGroupsNamespaceResponse#arn #arn} => String
485
496
  # * {Types::CreateRuleGroupsNamespaceResponse#status #status} => Types::RuleGroupsNamespaceStatus
486
497
  # * {Types::CreateRuleGroupsNamespaceResponse#tags #tags} => Hash&lt;String,String&gt;
487
498
  #
488
499
  # @example Request syntax with placeholder values
489
500
  #
490
501
  # resp = client.create_rule_groups_namespace({
491
- # client_token: "IdempotencyToken",
492
- # data: "data", # required
502
+ # workspace_id: "WorkspaceId", # required
493
503
  # name: "RuleGroupsNamespaceName", # required
504
+ # data: "data", # required
505
+ # client_token: "IdempotencyToken",
494
506
  # tags: {
495
507
  # "TagKey" => "TagValue",
496
508
  # },
497
- # workspace_id: "WorkspaceId", # required
498
509
  # })
499
510
  #
500
511
  # @example Response structure
501
512
  #
502
- # resp.arn #=> String
503
513
  # resp.name #=> String
514
+ # resp.arn #=> String
504
515
  # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
505
516
  # resp.status.status_reason #=> String
506
517
  # resp.tags #=> Hash
@@ -533,10 +544,10 @@ module Aws::PrometheusService
533
544
  #
534
545
  # @return [Types::CreateWorkspaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
535
546
  #
547
+ # * {Types::CreateWorkspaceResponse#workspace_id #workspace_id} => String
536
548
  # * {Types::CreateWorkspaceResponse#arn #arn} => String
537
549
  # * {Types::CreateWorkspaceResponse#status #status} => Types::WorkspaceStatus
538
550
  # * {Types::CreateWorkspaceResponse#tags #tags} => Hash&lt;String,String&gt;
539
- # * {Types::CreateWorkspaceResponse#workspace_id #workspace_id} => String
540
551
  #
541
552
  # @example Request syntax with placeholder values
542
553
  #
@@ -550,11 +561,11 @@ module Aws::PrometheusService
550
561
  #
551
562
  # @example Response structure
552
563
  #
564
+ # resp.workspace_id #=> String
553
565
  # resp.arn #=> String
554
566
  # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED"
555
567
  # resp.tags #=> Hash
556
568
  # resp.tags["TagKey"] #=> String
557
- # resp.workspace_id #=> String
558
569
  #
559
570
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace AWS API Documentation
560
571
  #
@@ -567,6 +578,10 @@ module Aws::PrometheusService
567
578
 
568
579
  # Deletes an alert manager definition.
569
580
  #
581
+ # @option params [required, String] :workspace_id
582
+ # The ID of the workspace in which to delete the alert manager
583
+ # definition.
584
+ #
570
585
  # @option params [String] :client_token
571
586
  # Optional, unique, case-sensitive, user-provided identifier to ensure
572
587
  # the idempotency of the request.
@@ -574,17 +589,13 @@ module Aws::PrometheusService
574
589
  # **A suitable default value is auto-generated.** You should normally
575
590
  # not need to pass this option.**
576
591
  #
577
- # @option params [required, String] :workspace_id
578
- # The ID of the workspace in which to delete the alert manager
579
- # definition.
580
- #
581
592
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
582
593
  #
583
594
  # @example Request syntax with placeholder values
584
595
  #
585
596
  # resp = client.delete_alert_manager_definition({
586
- # client_token: "IdempotencyToken",
587
597
  # workspace_id: "WorkspaceId", # required
598
+ # client_token: "IdempotencyToken",
588
599
  # })
589
600
  #
590
601
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteAlertManagerDefinition AWS API Documentation
@@ -598,6 +609,9 @@ module Aws::PrometheusService
598
609
 
599
610
  # Delete logging configuration.
600
611
  #
612
+ # @option params [required, String] :workspace_id
613
+ # The ID of the workspace to vend logs to.
614
+ #
601
615
  # @option params [String] :client_token
602
616
  # Optional, unique, case-sensitive, user-provided identifier to ensure
603
617
  # the idempotency of the request.
@@ -605,16 +619,13 @@ module Aws::PrometheusService
605
619
  # **A suitable default value is auto-generated.** You should normally
606
620
  # not need to pass this option.**
607
621
  #
608
- # @option params [required, String] :workspace_id
609
- # The ID of the workspace to vend logs to.
610
- #
611
622
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
612
623
  #
613
624
  # @example Request syntax with placeholder values
614
625
  #
615
626
  # resp = client.delete_logging_configuration({
616
- # client_token: "IdempotencyToken",
617
627
  # workspace_id: "WorkspaceId", # required
628
+ # client_token: "IdempotencyToken",
618
629
  # })
619
630
  #
620
631
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteLoggingConfiguration AWS API Documentation
@@ -628,6 +639,12 @@ module Aws::PrometheusService
628
639
 
629
640
  # Delete a rule groups namespace.
630
641
  #
642
+ # @option params [required, String] :workspace_id
643
+ # The ID of the workspace to delete rule group definition.
644
+ #
645
+ # @option params [required, String] :name
646
+ # The rule groups namespace name.
647
+ #
631
648
  # @option params [String] :client_token
632
649
  # Optional, unique, case-sensitive, user-provided identifier to ensure
633
650
  # the idempotency of the request.
@@ -635,20 +652,14 @@ module Aws::PrometheusService
635
652
  # **A suitable default value is auto-generated.** You should normally
636
653
  # not need to pass this option.**
637
654
  #
638
- # @option params [required, String] :name
639
- # The rule groups namespace name.
640
- #
641
- # @option params [required, String] :workspace_id
642
- # The ID of the workspace to delete rule group definition.
643
- #
644
655
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
645
656
  #
646
657
  # @example Request syntax with placeholder values
647
658
  #
648
659
  # resp = client.delete_rule_groups_namespace({
649
- # client_token: "IdempotencyToken",
650
- # name: "RuleGroupsNamespaceName", # required
651
660
  # workspace_id: "WorkspaceId", # required
661
+ # name: "RuleGroupsNamespaceName", # required
662
+ # client_token: "IdempotencyToken",
652
663
  # })
653
664
  #
654
665
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteRuleGroupsNamespace AWS API Documentation
@@ -662,6 +673,9 @@ module Aws::PrometheusService
662
673
 
663
674
  # Deletes an AMP workspace.
664
675
  #
676
+ # @option params [required, String] :workspace_id
677
+ # The ID of the workspace to delete.
678
+ #
665
679
  # @option params [String] :client_token
666
680
  # Optional, unique, case-sensitive, user-provided identifier to ensure
667
681
  # the idempotency of the request.
@@ -669,16 +683,13 @@ module Aws::PrometheusService
669
683
  # **A suitable default value is auto-generated.** You should normally
670
684
  # not need to pass this option.**
671
685
  #
672
- # @option params [required, String] :workspace_id
673
- # The ID of the workspace to delete.
674
- #
675
686
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
676
687
  #
677
688
  # @example Request syntax with placeholder values
678
689
  #
679
690
  # resp = client.delete_workspace({
680
- # client_token: "IdempotencyToken",
681
691
  # workspace_id: "WorkspaceId", # required
692
+ # client_token: "IdempotencyToken",
682
693
  # })
683
694
  #
684
695
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspace AWS API Documentation
@@ -707,11 +718,11 @@ module Aws::PrometheusService
707
718
  #
708
719
  # @example Response structure
709
720
  #
710
- # resp.alert_manager_definition.created_at #=> Time
711
- # resp.alert_manager_definition.data #=> String
712
- # resp.alert_manager_definition.modified_at #=> Time
713
721
  # resp.alert_manager_definition.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
714
722
  # resp.alert_manager_definition.status.status_reason #=> String
723
+ # resp.alert_manager_definition.data #=> String
724
+ # resp.alert_manager_definition.created_at #=> Time
725
+ # resp.alert_manager_definition.modified_at #=> Time
715
726
  #
716
727
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeAlertManagerDefinition AWS API Documentation
717
728
  #
@@ -739,12 +750,12 @@ module Aws::PrometheusService
739
750
  #
740
751
  # @example Response structure
741
752
  #
742
- # resp.logging_configuration.created_at #=> Time
743
- # resp.logging_configuration.log_group_arn #=> String
744
- # resp.logging_configuration.modified_at #=> Time
745
753
  # resp.logging_configuration.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
746
754
  # resp.logging_configuration.status.status_reason #=> String
747
755
  # resp.logging_configuration.workspace #=> String
756
+ # resp.logging_configuration.log_group_arn #=> String
757
+ # resp.logging_configuration.created_at #=> Time
758
+ # resp.logging_configuration.modified_at #=> Time
748
759
  #
749
760
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeLoggingConfiguration AWS API Documentation
750
761
  #
@@ -757,12 +768,12 @@ module Aws::PrometheusService
757
768
 
758
769
  # Describe a rule groups namespace.
759
770
  #
760
- # @option params [required, String] :name
761
- # The rule groups namespace.
762
- #
763
771
  # @option params [required, String] :workspace_id
764
772
  # The ID of the workspace to describe.
765
773
  #
774
+ # @option params [required, String] :name
775
+ # The rule groups namespace.
776
+ #
766
777
  # @return [Types::DescribeRuleGroupsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
767
778
  #
768
779
  # * {Types::DescribeRuleGroupsNamespaceResponse#rule_groups_namespace #rule_groups_namespace} => Types::RuleGroupsNamespaceDescription
@@ -770,19 +781,19 @@ module Aws::PrometheusService
770
781
  # @example Request syntax with placeholder values
771
782
  #
772
783
  # resp = client.describe_rule_groups_namespace({
773
- # name: "RuleGroupsNamespaceName", # required
774
784
  # workspace_id: "WorkspaceId", # required
785
+ # name: "RuleGroupsNamespaceName", # required
775
786
  # })
776
787
  #
777
788
  # @example Response structure
778
789
  #
779
790
  # resp.rule_groups_namespace.arn #=> String
780
- # resp.rule_groups_namespace.created_at #=> Time
781
- # resp.rule_groups_namespace.data #=> String
782
- # resp.rule_groups_namespace.modified_at #=> Time
783
791
  # resp.rule_groups_namespace.name #=> String
784
792
  # resp.rule_groups_namespace.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
785
793
  # resp.rule_groups_namespace.status.status_reason #=> String
794
+ # resp.rule_groups_namespace.data #=> String
795
+ # resp.rule_groups_namespace.created_at #=> Time
796
+ # resp.rule_groups_namespace.modified_at #=> Time
786
797
  # resp.rule_groups_namespace.tags #=> Hash
787
798
  # resp.rule_groups_namespace.tags["TagKey"] #=> String
788
799
  #
@@ -812,14 +823,14 @@ module Aws::PrometheusService
812
823
  #
813
824
  # @example Response structure
814
825
  #
826
+ # resp.workspace.workspace_id #=> String
815
827
  # resp.workspace.alias #=> String
816
828
  # resp.workspace.arn #=> String
817
- # resp.workspace.created_at #=> Time
818
- # resp.workspace.prometheus_endpoint #=> String
819
829
  # resp.workspace.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED"
830
+ # resp.workspace.prometheus_endpoint #=> String
831
+ # resp.workspace.created_at #=> Time
820
832
  # resp.workspace.tags #=> Hash
821
833
  # resp.workspace.tags["TagKey"] #=> String
822
- # resp.workspace.workspace_id #=> String
823
834
  #
824
835
  #
825
836
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -838,8 +849,8 @@ module Aws::PrometheusService
838
849
 
839
850
  # Lists rule groups namespaces.
840
851
  #
841
- # @option params [Integer] :max_results
842
- # Maximum results to return in response (default=100, maximum=1000).
852
+ # @option params [required, String] :workspace_id
853
+ # The ID of the workspace.
843
854
  #
844
855
  # @option params [String] :name
845
856
  # Optional filter for rule groups namespace name. Only the rule groups
@@ -850,37 +861,37 @@ module Aws::PrometheusService
850
861
  # token is obtained from the output of the previous
851
862
  # ListRuleGroupsNamespaces request.
852
863
  #
853
- # @option params [required, String] :workspace_id
854
- # The ID of the workspace.
864
+ # @option params [Integer] :max_results
865
+ # Maximum results to return in response (default=100, maximum=1000).
855
866
  #
856
867
  # @return [Types::ListRuleGroupsNamespacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
857
868
  #
858
- # * {Types::ListRuleGroupsNamespacesResponse#next_token #next_token} => String
859
869
  # * {Types::ListRuleGroupsNamespacesResponse#rule_groups_namespaces #rule_groups_namespaces} => Array&lt;Types::RuleGroupsNamespaceSummary&gt;
870
+ # * {Types::ListRuleGroupsNamespacesResponse#next_token #next_token} => String
860
871
  #
861
872
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
862
873
  #
863
874
  # @example Request syntax with placeholder values
864
875
  #
865
876
  # resp = client.list_rule_groups_namespaces({
866
- # max_results: 1,
877
+ # workspace_id: "WorkspaceId", # required
867
878
  # name: "RuleGroupsNamespaceName",
868
879
  # next_token: "PaginationToken",
869
- # workspace_id: "WorkspaceId", # required
880
+ # max_results: 1,
870
881
  # })
871
882
  #
872
883
  # @example Response structure
873
884
  #
874
- # resp.next_token #=> String
875
885
  # resp.rule_groups_namespaces #=> Array
876
886
  # resp.rule_groups_namespaces[0].arn #=> String
877
- # resp.rule_groups_namespaces[0].created_at #=> Time
878
- # resp.rule_groups_namespaces[0].modified_at #=> Time
879
887
  # resp.rule_groups_namespaces[0].name #=> String
880
888
  # resp.rule_groups_namespaces[0].status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
881
889
  # resp.rule_groups_namespaces[0].status.status_reason #=> String
890
+ # resp.rule_groups_namespaces[0].created_at #=> Time
891
+ # resp.rule_groups_namespaces[0].modified_at #=> Time
882
892
  # resp.rule_groups_namespaces[0].tags #=> Hash
883
893
  # resp.rule_groups_namespaces[0].tags["TagKey"] #=> String
894
+ # resp.next_token #=> String
884
895
  #
885
896
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListRuleGroupsNamespaces AWS API Documentation
886
897
  #
@@ -923,6 +934,11 @@ module Aws::PrometheusService
923
934
  # Lists all AMP workspaces, including workspaces being created or
924
935
  # deleted.
925
936
  #
937
+ # @option params [String] :next_token
938
+ # Pagination token to request the next page in a paginated list. This
939
+ # token is obtained from the output of the previous ListWorkspaces
940
+ # request.
941
+ #
926
942
  # @option params [String] :alias
927
943
  # Optional filter for workspace alias. Only the workspaces with aliases
928
944
  # that begin with this value will be returned.
@@ -930,37 +946,32 @@ module Aws::PrometheusService
930
946
  # @option params [Integer] :max_results
931
947
  # Maximum results to return in response (default=100, maximum=1000).
932
948
  #
933
- # @option params [String] :next_token
934
- # Pagination token to request the next page in a paginated list. This
935
- # token is obtained from the output of the previous ListWorkspaces
936
- # request.
937
- #
938
949
  # @return [Types::ListWorkspacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
939
950
  #
940
- # * {Types::ListWorkspacesResponse#next_token #next_token} => String
941
951
  # * {Types::ListWorkspacesResponse#workspaces #workspaces} => Array&lt;Types::WorkspaceSummary&gt;
952
+ # * {Types::ListWorkspacesResponse#next_token #next_token} => String
942
953
  #
943
954
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
944
955
  #
945
956
  # @example Request syntax with placeholder values
946
957
  #
947
958
  # resp = client.list_workspaces({
959
+ # next_token: "PaginationToken",
948
960
  # alias: "WorkspaceAlias",
949
961
  # max_results: 1,
950
- # next_token: "PaginationToken",
951
962
  # })
952
963
  #
953
964
  # @example Response structure
954
965
  #
955
- # resp.next_token #=> String
956
966
  # resp.workspaces #=> Array
967
+ # resp.workspaces[0].workspace_id #=> String
957
968
  # resp.workspaces[0].alias #=> String
958
969
  # resp.workspaces[0].arn #=> String
959
- # resp.workspaces[0].created_at #=> Time
960
970
  # resp.workspaces[0].status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED"
971
+ # resp.workspaces[0].created_at #=> Time
961
972
  # resp.workspaces[0].tags #=> Hash
962
973
  # resp.workspaces[0].tags["TagKey"] #=> String
963
- # resp.workspaces[0].workspace_id #=> String
974
+ # resp.next_token #=> String
964
975
  #
965
976
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces AWS API Documentation
966
977
  #
@@ -973,6 +984,13 @@ module Aws::PrometheusService
973
984
 
974
985
  # Update an alert manager definition.
975
986
  #
987
+ # @option params [required, String] :workspace_id
988
+ # The ID of the workspace in which to update the alert manager
989
+ # definition.
990
+ #
991
+ # @option params [required, String, StringIO, File] :data
992
+ # The alert manager definition data.
993
+ #
976
994
  # @option params [String] :client_token
977
995
  # Optional, unique, case-sensitive, user-provided identifier to ensure
978
996
  # the idempotency of the request.
@@ -980,13 +998,6 @@ module Aws::PrometheusService
980
998
  # **A suitable default value is auto-generated.** You should normally
981
999
  # not need to pass this option.**
982
1000
  #
983
- # @option params [required, String, StringIO, File] :data
984
- # The alert manager definition data.
985
- #
986
- # @option params [required, String] :workspace_id
987
- # The ID of the workspace in which to update the alert manager
988
- # definition.
989
- #
990
1001
  # @return [Types::PutAlertManagerDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
991
1002
  #
992
1003
  # * {Types::PutAlertManagerDefinitionResponse#status #status} => Types::AlertManagerDefinitionStatus
@@ -994,9 +1005,9 @@ module Aws::PrometheusService
994
1005
  # @example Request syntax with placeholder values
995
1006
  #
996
1007
  # resp = client.put_alert_manager_definition({
997
- # client_token: "IdempotencyToken",
998
- # data: "data", # required
999
1008
  # workspace_id: "WorkspaceId", # required
1009
+ # data: "data", # required
1010
+ # client_token: "IdempotencyToken",
1000
1011
  # })
1001
1012
  #
1002
1013
  # @example Response structure
@@ -1015,42 +1026,42 @@ module Aws::PrometheusService
1015
1026
 
1016
1027
  # Update a rule groups namespace.
1017
1028
  #
1018
- # @option params [String] :client_token
1019
- # Optional, unique, case-sensitive, user-provided identifier to ensure
1020
- # the idempotency of the request.
1029
+ # @option params [required, String] :workspace_id
1030
+ # The ID of the workspace in which to update the rule group namespace.
1021
1031
  #
1022
- # **A suitable default value is auto-generated.** You should normally
1023
- # not need to pass this option.**
1032
+ # @option params [required, String] :name
1033
+ # The rule groups namespace name.
1024
1034
  #
1025
1035
  # @option params [required, String, StringIO, File] :data
1026
1036
  # The namespace data that define the rule groups.
1027
1037
  #
1028
- # @option params [required, String] :name
1029
- # The rule groups namespace name.
1038
+ # @option params [String] :client_token
1039
+ # Optional, unique, case-sensitive, user-provided identifier to ensure
1040
+ # the idempotency of the request.
1030
1041
  #
1031
- # @option params [required, String] :workspace_id
1032
- # The ID of the workspace in which to update the rule group namespace.
1042
+ # **A suitable default value is auto-generated.** You should normally
1043
+ # not need to pass this option.**
1033
1044
  #
1034
1045
  # @return [Types::PutRuleGroupsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1035
1046
  #
1036
- # * {Types::PutRuleGroupsNamespaceResponse#arn #arn} => String
1037
1047
  # * {Types::PutRuleGroupsNamespaceResponse#name #name} => String
1048
+ # * {Types::PutRuleGroupsNamespaceResponse#arn #arn} => String
1038
1049
  # * {Types::PutRuleGroupsNamespaceResponse#status #status} => Types::RuleGroupsNamespaceStatus
1039
1050
  # * {Types::PutRuleGroupsNamespaceResponse#tags #tags} => Hash&lt;String,String&gt;
1040
1051
  #
1041
1052
  # @example Request syntax with placeholder values
1042
1053
  #
1043
1054
  # resp = client.put_rule_groups_namespace({
1044
- # client_token: "IdempotencyToken",
1045
- # data: "data", # required
1046
- # name: "RuleGroupsNamespaceName", # required
1047
1055
  # workspace_id: "WorkspaceId", # required
1056
+ # name: "RuleGroupsNamespaceName", # required
1057
+ # data: "data", # required
1058
+ # client_token: "IdempotencyToken",
1048
1059
  # })
1049
1060
  #
1050
1061
  # @example Response structure
1051
1062
  #
1052
- # resp.arn #=> String
1053
1063
  # resp.name #=> String
1064
+ # resp.arn #=> String
1054
1065
  # resp.status.status_code #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATION_FAILED", "UPDATE_FAILED"
1055
1066
  # resp.status.status_reason #=> String
1056
1067
  # resp.tags #=> Hash
@@ -1121,6 +1132,13 @@ module Aws::PrometheusService
1121
1132
 
1122
1133
  # Update logging configuration.
1123
1134
  #
1135
+ # @option params [required, String] :workspace_id
1136
+ # The ID of the workspace to vend logs to.
1137
+ #
1138
+ # @option params [required, String] :log_group_arn
1139
+ # The ARN of the CW log group to which the vended log data will be
1140
+ # published.
1141
+ #
1124
1142
  # @option params [String] :client_token
1125
1143
  # Optional, unique, case-sensitive, user-provided identifier to ensure
1126
1144
  # the idempotency of the request.
@@ -1128,13 +1146,6 @@ module Aws::PrometheusService
1128
1146
  # **A suitable default value is auto-generated.** You should normally
1129
1147
  # not need to pass this option.**
1130
1148
  #
1131
- # @option params [required, String] :log_group_arn
1132
- # The ARN of the CW log group to which the vended log data will be
1133
- # published.
1134
- #
1135
- # @option params [required, String] :workspace_id
1136
- # The ID of the workspace to vend logs to.
1137
- #
1138
1149
  # @return [Types::UpdateLoggingConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1139
1150
  #
1140
1151
  # * {Types::UpdateLoggingConfigurationResponse#status #status} => Types::LoggingConfigurationStatus
@@ -1142,9 +1153,9 @@ module Aws::PrometheusService
1142
1153
  # @example Request syntax with placeholder values
1143
1154
  #
1144
1155
  # resp = client.update_logging_configuration({
1145
- # client_token: "IdempotencyToken",
1146
- # log_group_arn: "LogGroupArn", # required
1147
1156
  # workspace_id: "WorkspaceId", # required
1157
+ # log_group_arn: "LogGroupArn", # required
1158
+ # client_token: "IdempotencyToken",
1148
1159
  # })
1149
1160
  #
1150
1161
  # @example Response structure
@@ -1163,6 +1174,9 @@ module Aws::PrometheusService
1163
1174
 
1164
1175
  # Updates an AMP workspace alias.
1165
1176
  #
1177
+ # @option params [required, String] :workspace_id
1178
+ # The ID of the workspace being updated.
1179
+ #
1166
1180
  # @option params [String] :alias
1167
1181
  # The new alias of the workspace.
1168
1182
  #
@@ -1173,17 +1187,14 @@ module Aws::PrometheusService
1173
1187
  # **A suitable default value is auto-generated.** You should normally
1174
1188
  # not need to pass this option.**
1175
1189
  #
1176
- # @option params [required, String] :workspace_id
1177
- # The ID of the workspace being updated.
1178
- #
1179
1190
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1180
1191
  #
1181
1192
  # @example Request syntax with placeholder values
1182
1193
  #
1183
1194
  # resp = client.update_workspace_alias({
1195
+ # workspace_id: "WorkspaceId", # required
1184
1196
  # alias: "WorkspaceAlias",
1185
1197
  # client_token: "IdempotencyToken",
1186
- # workspace_id: "WorkspaceId", # required
1187
1198
  # })
1188
1199
  #
1189
1200
  # @see http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAlias AWS API Documentation
@@ -1208,7 +1219,7 @@ module Aws::PrometheusService
1208
1219
  params: params,
1209
1220
  config: config)
1210
1221
  context[:gem_name] = 'aws-sdk-prometheusservice'
1211
- context[:gem_version] = '1.20.0'
1222
+ context[:gem_version] = '1.22.0'
1212
1223
  Seahorse::Client::Request.new(handlers, context)
1213
1224
  end
1214
1225