aws-sdk-managedgrafana 1.5.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-managedgrafana/client.rb +226 -21
- data/lib/aws-sdk-managedgrafana/client_api.rb +130 -0
- data/lib/aws-sdk-managedgrafana/types.rb +235 -14
- data/lib/aws-sdk-managedgrafana.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8e6f4657047140c76d7e67e03d5e597c6f198c4eca53f6c836e8540f4e729c
|
4
|
+
data.tar.gz: 4fba88dce5a57ebf73610fbd32076467149489e18f56f9843ea2c1cbf1e88c2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bbb7a0dd95cf6e0d5727475f10b7a5867e58b4a74c9ed79147fc58b974c1e62750c4a20ff38b7fb51f2343f04f220a2339473485ce2dd045a01d557bfbd0406
|
7
|
+
data.tar.gz: 819600eb6c12c6325cc3b7b6eecac7f239a65a71d62b1a0baa1766b313cd4468d0ba90e0907f35fcc00b478c7efd040a82d110acd2d93ca40c405132eb416f88
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.8.0 (2022-05-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds APIs for creating and deleting API keys in an Amazon Managed Grafana workspace.
|
8
|
+
|
9
|
+
1.7.0 (2022-03-31)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds tagging support to the Managed Grafana service. New APIs: TagResource, UntagResource and ListTagsForResource. Updates: add optional field tags to support tagging while calling CreateWorkspace.
|
13
|
+
|
14
|
+
1.6.0 (2022-02-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.5.0 (2022-02-03)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.8.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
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
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
@@ -75,6 +76,7 @@ module Aws::ManagedGrafana
|
|
75
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
78
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
79
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
@@ -382,7 +384,7 @@ module Aws::ManagedGrafana
|
|
382
384
|
# resp.workspace.authentication.saml_configuration_status #=> String, one of "CONFIGURED", "NOT_CONFIGURED"
|
383
385
|
# resp.workspace.created #=> Time
|
384
386
|
# resp.workspace.data_sources #=> Array
|
385
|
-
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE"
|
387
|
+
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE", "ATHENA", "REDSHIFT"
|
386
388
|
# resp.workspace.description #=> String
|
387
389
|
# resp.workspace.endpoint #=> String
|
388
390
|
# resp.workspace.free_trial_consumed #=> Boolean
|
@@ -401,6 +403,8 @@ module Aws::ManagedGrafana
|
|
401
403
|
# resp.workspace.permission_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
|
402
404
|
# resp.workspace.stack_set_name #=> String
|
403
405
|
# resp.workspace.status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
406
|
+
# resp.workspace.tags #=> Hash
|
407
|
+
# resp.workspace.tags["TagKey"] #=> String
|
404
408
|
# resp.workspace.workspace_role_arn #=> String
|
405
409
|
#
|
406
410
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/AssociateLicense AWS API Documentation
|
@@ -455,10 +459,11 @@ module Aws::ManagedGrafana
|
|
455
459
|
# in other accounts in an organization.
|
456
460
|
#
|
457
461
|
# @option params [required, String] :permission_type
|
458
|
-
# If you specify `
|
459
|
-
# creates the IAM roles and provisions the
|
460
|
-
# workspace needs to use Amazon Web Services data
|
461
|
-
# notification channels.
|
462
|
+
# If you specify `SERVICE_MANAGED` on AWS Grafana console, Amazon
|
463
|
+
# Managed Grafana automatically creates the IAM roles and provisions the
|
464
|
+
# permissions that the workspace needs to use Amazon Web Services data
|
465
|
+
# sources and notification channels. In CLI mode, the permissionType
|
466
|
+
# `SERVICE_MANAGED` will not create the IAM role for you.
|
462
467
|
#
|
463
468
|
# If you specify `CUSTOMER_MANAGED`, you will manage those roles and
|
464
469
|
# permissions yourself. If you are creating this workspace in a member
|
@@ -469,7 +474,7 @@ module Aws::ManagedGrafana
|
|
469
474
|
#
|
470
475
|
# For more information, see [Amazon Managed Grafana permissions and
|
471
476
|
# policies for Amazon Web Services data sources and notification
|
472
|
-
# channels][1]
|
477
|
+
# channels][1].
|
473
478
|
#
|
474
479
|
#
|
475
480
|
#
|
@@ -479,6 +484,9 @@ module Aws::ManagedGrafana
|
|
479
484
|
# The name of the CloudFormation stack set to use to generate IAM roles
|
480
485
|
# to be used for this workspace.
|
481
486
|
#
|
487
|
+
# @option params [Hash<String,String>] :tags
|
488
|
+
# The list of tags associated with the workspace.
|
489
|
+
#
|
482
490
|
# @option params [Array<String>] :workspace_data_sources
|
483
491
|
# Specify the Amazon Web Services data sources that you want to be
|
484
492
|
# queried in this workspace. Specifying these data sources here enables
|
@@ -494,6 +502,8 @@ module Aws::ManagedGrafana
|
|
494
502
|
# A description for the workspace. This is used only to help you
|
495
503
|
# identify this workspace.
|
496
504
|
#
|
505
|
+
# Pattern: `^[\\p\{L\}\\p\{Z\}\\p\{N\}\\p\{P\}]\{0,2048\}$`
|
506
|
+
#
|
497
507
|
# @option params [String] :workspace_name
|
498
508
|
# The name for the workspace. It does not have to be unique.
|
499
509
|
#
|
@@ -511,10 +521,8 @@ module Aws::ManagedGrafana
|
|
511
521
|
# @option params [String] :workspace_role_arn
|
512
522
|
# The workspace needs an IAM role that grants permissions to the Amazon
|
513
523
|
# Web Services resources that the workspace will view data from. If you
|
514
|
-
# already have a role that you want to use, specify it here.
|
515
|
-
#
|
516
|
-
# `workspaceDataSources` or `workspaceNotificationDestinations`, a new
|
517
|
-
# IAM role with the necessary permissions is automatically created.
|
524
|
+
# already have a role that you want to use, specify it here. The
|
525
|
+
# permission type should be set to `CUSTOMER_MANAGED`.
|
518
526
|
#
|
519
527
|
# @return [Types::CreateWorkspaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
520
528
|
#
|
@@ -529,7 +537,10 @@ module Aws::ManagedGrafana
|
|
529
537
|
# organization_role_name: "OrganizationRoleName",
|
530
538
|
# permission_type: "CUSTOMER_MANAGED", # required, accepts CUSTOMER_MANAGED, SERVICE_MANAGED
|
531
539
|
# stack_set_name: "StackSetName",
|
532
|
-
#
|
540
|
+
# tags: {
|
541
|
+
# "TagKey" => "TagValue",
|
542
|
+
# },
|
543
|
+
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE, ATHENA, REDSHIFT
|
533
544
|
# workspace_description: "Description",
|
534
545
|
# workspace_name: "WorkspaceName",
|
535
546
|
# workspace_notification_destinations: ["SNS"], # accepts SNS
|
@@ -545,7 +556,7 @@ module Aws::ManagedGrafana
|
|
545
556
|
# resp.workspace.authentication.saml_configuration_status #=> String, one of "CONFIGURED", "NOT_CONFIGURED"
|
546
557
|
# resp.workspace.created #=> Time
|
547
558
|
# resp.workspace.data_sources #=> Array
|
548
|
-
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE"
|
559
|
+
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE", "ATHENA", "REDSHIFT"
|
549
560
|
# resp.workspace.description #=> String
|
550
561
|
# resp.workspace.endpoint #=> String
|
551
562
|
# resp.workspace.free_trial_consumed #=> Boolean
|
@@ -564,6 +575,8 @@ module Aws::ManagedGrafana
|
|
564
575
|
# resp.workspace.permission_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
|
565
576
|
# resp.workspace.stack_set_name #=> String
|
566
577
|
# resp.workspace.status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
578
|
+
# resp.workspace.tags #=> Hash
|
579
|
+
# resp.workspace.tags["TagKey"] #=> String
|
567
580
|
# resp.workspace.workspace_role_arn #=> String
|
568
581
|
#
|
569
582
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/CreateWorkspace AWS API Documentation
|
@@ -575,6 +588,58 @@ module Aws::ManagedGrafana
|
|
575
588
|
req.send_request(options)
|
576
589
|
end
|
577
590
|
|
591
|
+
# Creates an API key for the workspace. This key can be used to
|
592
|
+
# authenticate requests sent to the workspace's HTTP API. See [
|
593
|
+
# https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html](
|
594
|
+
# https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html)
|
595
|
+
# for available APIs and example requests.
|
596
|
+
#
|
597
|
+
# @option params [required, String] :key_name
|
598
|
+
# Specifies the name of the key to create. Key names must be unique to
|
599
|
+
# the workspace.
|
600
|
+
#
|
601
|
+
# @option params [required, String] :key_role
|
602
|
+
# Specifies the permission level of the key.
|
603
|
+
#
|
604
|
+
# Valid Values: `VIEWER` \| `EDITOR` \| `ADMIN`
|
605
|
+
#
|
606
|
+
# @option params [required, Integer] :seconds_to_live
|
607
|
+
# Specifies the time in seconds until the key expires. Keys can be valid
|
608
|
+
# for up to 30 days.
|
609
|
+
#
|
610
|
+
# @option params [required, String] :workspace_id
|
611
|
+
# The ID of the workspace in which to create an API key.
|
612
|
+
#
|
613
|
+
# @return [Types::CreateWorkspaceApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
614
|
+
#
|
615
|
+
# * {Types::CreateWorkspaceApiKeyResponse#key #key} => String
|
616
|
+
# * {Types::CreateWorkspaceApiKeyResponse#key_name #key_name} => String
|
617
|
+
# * {Types::CreateWorkspaceApiKeyResponse#workspace_id #workspace_id} => String
|
618
|
+
#
|
619
|
+
# @example Request syntax with placeholder values
|
620
|
+
#
|
621
|
+
# resp = client.create_workspace_api_key({
|
622
|
+
# key_name: "ApiKeyName", # required
|
623
|
+
# key_role: "String", # required
|
624
|
+
# seconds_to_live: 1, # required
|
625
|
+
# workspace_id: "WorkspaceId", # required
|
626
|
+
# })
|
627
|
+
#
|
628
|
+
# @example Response structure
|
629
|
+
#
|
630
|
+
# resp.key #=> String
|
631
|
+
# resp.key_name #=> String
|
632
|
+
# resp.workspace_id #=> String
|
633
|
+
#
|
634
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/CreateWorkspaceApiKey AWS API Documentation
|
635
|
+
#
|
636
|
+
# @overload create_workspace_api_key(params = {})
|
637
|
+
# @param [Hash] params ({})
|
638
|
+
def create_workspace_api_key(params = {}, options = {})
|
639
|
+
req = build_request(:create_workspace_api_key, params)
|
640
|
+
req.send_request(options)
|
641
|
+
end
|
642
|
+
|
578
643
|
# Deletes an Amazon Managed Grafana workspace.
|
579
644
|
#
|
580
645
|
# @option params [required, String] :workspace_id
|
@@ -598,7 +663,7 @@ module Aws::ManagedGrafana
|
|
598
663
|
# resp.workspace.authentication.saml_configuration_status #=> String, one of "CONFIGURED", "NOT_CONFIGURED"
|
599
664
|
# resp.workspace.created #=> Time
|
600
665
|
# resp.workspace.data_sources #=> Array
|
601
|
-
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE"
|
666
|
+
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE", "ATHENA", "REDSHIFT"
|
602
667
|
# resp.workspace.description #=> String
|
603
668
|
# resp.workspace.endpoint #=> String
|
604
669
|
# resp.workspace.free_trial_consumed #=> Boolean
|
@@ -617,6 +682,8 @@ module Aws::ManagedGrafana
|
|
617
682
|
# resp.workspace.permission_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
|
618
683
|
# resp.workspace.stack_set_name #=> String
|
619
684
|
# resp.workspace.status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
685
|
+
# resp.workspace.tags #=> Hash
|
686
|
+
# resp.workspace.tags["TagKey"] #=> String
|
620
687
|
# resp.workspace.workspace_role_arn #=> String
|
621
688
|
#
|
622
689
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DeleteWorkspace AWS API Documentation
|
@@ -628,6 +695,40 @@ module Aws::ManagedGrafana
|
|
628
695
|
req.send_request(options)
|
629
696
|
end
|
630
697
|
|
698
|
+
# Deletes an API key for a workspace.
|
699
|
+
#
|
700
|
+
# @option params [required, String] :key_name
|
701
|
+
# The name of the API key to delete.
|
702
|
+
#
|
703
|
+
# @option params [required, String] :workspace_id
|
704
|
+
# The ID of the workspace to delete.
|
705
|
+
#
|
706
|
+
# @return [Types::DeleteWorkspaceApiKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
707
|
+
#
|
708
|
+
# * {Types::DeleteWorkspaceApiKeyResponse#key_name #key_name} => String
|
709
|
+
# * {Types::DeleteWorkspaceApiKeyResponse#workspace_id #workspace_id} => String
|
710
|
+
#
|
711
|
+
# @example Request syntax with placeholder values
|
712
|
+
#
|
713
|
+
# resp = client.delete_workspace_api_key({
|
714
|
+
# key_name: "ApiKeyName", # required
|
715
|
+
# workspace_id: "WorkspaceId", # required
|
716
|
+
# })
|
717
|
+
#
|
718
|
+
# @example Response structure
|
719
|
+
#
|
720
|
+
# resp.key_name #=> String
|
721
|
+
# resp.workspace_id #=> String
|
722
|
+
#
|
723
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DeleteWorkspaceApiKey AWS API Documentation
|
724
|
+
#
|
725
|
+
# @overload delete_workspace_api_key(params = {})
|
726
|
+
# @param [Hash] params ({})
|
727
|
+
def delete_workspace_api_key(params = {}, options = {})
|
728
|
+
req = build_request(:delete_workspace_api_key, params)
|
729
|
+
req.send_request(options)
|
730
|
+
end
|
731
|
+
|
631
732
|
# Displays information about one Amazon Managed Grafana workspace.
|
632
733
|
#
|
633
734
|
# @option params [required, String] :workspace_id
|
@@ -651,7 +752,7 @@ module Aws::ManagedGrafana
|
|
651
752
|
# resp.workspace.authentication.saml_configuration_status #=> String, one of "CONFIGURED", "NOT_CONFIGURED"
|
652
753
|
# resp.workspace.created #=> Time
|
653
754
|
# resp.workspace.data_sources #=> Array
|
654
|
-
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE"
|
755
|
+
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE", "ATHENA", "REDSHIFT"
|
655
756
|
# resp.workspace.description #=> String
|
656
757
|
# resp.workspace.endpoint #=> String
|
657
758
|
# resp.workspace.free_trial_consumed #=> Boolean
|
@@ -670,6 +771,8 @@ module Aws::ManagedGrafana
|
|
670
771
|
# resp.workspace.permission_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
|
671
772
|
# resp.workspace.stack_set_name #=> String
|
672
773
|
# resp.workspace.status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
774
|
+
# resp.workspace.tags #=> Hash
|
775
|
+
# resp.workspace.tags["TagKey"] #=> String
|
673
776
|
# resp.workspace.workspace_role_arn #=> String
|
674
777
|
#
|
675
778
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DescribeWorkspace AWS API Documentation
|
@@ -755,7 +858,7 @@ module Aws::ManagedGrafana
|
|
755
858
|
# resp.workspace.authentication.saml_configuration_status #=> String, one of "CONFIGURED", "NOT_CONFIGURED"
|
756
859
|
# resp.workspace.created #=> Time
|
757
860
|
# resp.workspace.data_sources #=> Array
|
758
|
-
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE"
|
861
|
+
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE", "ATHENA", "REDSHIFT"
|
759
862
|
# resp.workspace.description #=> String
|
760
863
|
# resp.workspace.endpoint #=> String
|
761
864
|
# resp.workspace.free_trial_consumed #=> Boolean
|
@@ -774,6 +877,8 @@ module Aws::ManagedGrafana
|
|
774
877
|
# resp.workspace.permission_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
|
775
878
|
# resp.workspace.stack_set_name #=> String
|
776
879
|
# resp.workspace.status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
880
|
+
# resp.workspace.tags #=> Hash
|
881
|
+
# resp.workspace.tags["TagKey"] #=> String
|
777
882
|
# resp.workspace.workspace_role_arn #=> String
|
778
883
|
#
|
779
884
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DisassociateLicense AWS API Documentation
|
@@ -837,7 +942,7 @@ module Aws::ManagedGrafana
|
|
837
942
|
#
|
838
943
|
# resp.next_token #=> String
|
839
944
|
# resp.permissions #=> Array
|
840
|
-
# resp.permissions[0].role #=> String, one of "ADMIN", "EDITOR"
|
945
|
+
# resp.permissions[0].role #=> String, one of "ADMIN", "EDITOR", "VIEWER"
|
841
946
|
# resp.permissions[0].user.id #=> String
|
842
947
|
# resp.permissions[0].user.type #=> String, one of "SSO_USER", "SSO_GROUP"
|
843
948
|
#
|
@@ -850,6 +955,38 @@ module Aws::ManagedGrafana
|
|
850
955
|
req.send_request(options)
|
851
956
|
end
|
852
957
|
|
958
|
+
# The `ListTagsForResource` operation returns the tags that are
|
959
|
+
# associated with the Amazon Managed Service for Grafana resource
|
960
|
+
# specified by the `resourceArn`. Currently, the only resource that can
|
961
|
+
# be tagged is a workspace.
|
962
|
+
#
|
963
|
+
# @option params [required, String] :resource_arn
|
964
|
+
# The ARN of the resource the list of tags are associated with.
|
965
|
+
#
|
966
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
967
|
+
#
|
968
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
|
969
|
+
#
|
970
|
+
# @example Request syntax with placeholder values
|
971
|
+
#
|
972
|
+
# resp = client.list_tags_for_resource({
|
973
|
+
# resource_arn: "String", # required
|
974
|
+
# })
|
975
|
+
#
|
976
|
+
# @example Response structure
|
977
|
+
#
|
978
|
+
# resp.tags #=> Hash
|
979
|
+
# resp.tags["TagKey"] #=> String
|
980
|
+
#
|
981
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListTagsForResource AWS API Documentation
|
982
|
+
#
|
983
|
+
# @overload list_tags_for_resource(params = {})
|
984
|
+
# @param [Hash] params ({})
|
985
|
+
def list_tags_for_resource(params = {}, options = {})
|
986
|
+
req = build_request(:list_tags_for_resource, params)
|
987
|
+
req.send_request(options)
|
988
|
+
end
|
989
|
+
|
853
990
|
# Returns a list of Amazon Managed Grafana workspaces in the account,
|
854
991
|
# with some information about each workspace. For more complete
|
855
992
|
# information about one workspace, use [DescribeWorkspace][1].
|
@@ -896,6 +1033,8 @@ module Aws::ManagedGrafana
|
|
896
1033
|
# resp.workspaces[0].notification_destinations #=> Array
|
897
1034
|
# resp.workspaces[0].notification_destinations[0] #=> String, one of "SNS"
|
898
1035
|
# resp.workspaces[0].status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
1036
|
+
# resp.workspaces[0].tags #=> Hash
|
1037
|
+
# resp.workspaces[0].tags["TagKey"] #=> String
|
899
1038
|
#
|
900
1039
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListWorkspaces AWS API Documentation
|
901
1040
|
#
|
@@ -906,6 +1045,70 @@ module Aws::ManagedGrafana
|
|
906
1045
|
req.send_request(options)
|
907
1046
|
end
|
908
1047
|
|
1048
|
+
# The `TagResource` operation associates tags with an Amazon Managed
|
1049
|
+
# Grafana resource. Currently, the only resource that can be tagged is
|
1050
|
+
# workspaces.
|
1051
|
+
#
|
1052
|
+
# If you specify a new tag key for the resource, this tag is appended to
|
1053
|
+
# the list of tags associated with the resource. If you specify a tag
|
1054
|
+
# key that is already associated with the resource, the new tag value
|
1055
|
+
# that you specify replaces the previous value for that tag.
|
1056
|
+
#
|
1057
|
+
# @option params [required, String] :resource_arn
|
1058
|
+
# The ARN of the resource the tag is associated with.
|
1059
|
+
#
|
1060
|
+
# @option params [required, Hash<String,String>] :tags
|
1061
|
+
# The list of tag keys and values to associate with the resource. You
|
1062
|
+
# can associate tag keys only, tags (key and values) only or a
|
1063
|
+
# combination of tag keys and tags.
|
1064
|
+
#
|
1065
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1066
|
+
#
|
1067
|
+
# @example Request syntax with placeholder values
|
1068
|
+
#
|
1069
|
+
# resp = client.tag_resource({
|
1070
|
+
# resource_arn: "String", # required
|
1071
|
+
# tags: { # required
|
1072
|
+
# "TagKey" => "TagValue",
|
1073
|
+
# },
|
1074
|
+
# })
|
1075
|
+
#
|
1076
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/TagResource AWS API Documentation
|
1077
|
+
#
|
1078
|
+
# @overload tag_resource(params = {})
|
1079
|
+
# @param [Hash] params ({})
|
1080
|
+
def tag_resource(params = {}, options = {})
|
1081
|
+
req = build_request(:tag_resource, params)
|
1082
|
+
req.send_request(options)
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
# The `UntagResource` operation removes the association of the tag with
|
1086
|
+
# the Amazon Managed Grafana resource.
|
1087
|
+
#
|
1088
|
+
# @option params [required, String] :resource_arn
|
1089
|
+
# The ARN of the resource the tag association is removed from.
|
1090
|
+
#
|
1091
|
+
# @option params [required, Array<String>] :tag_keys
|
1092
|
+
# The key values of the tag to be removed from the resource.
|
1093
|
+
#
|
1094
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1095
|
+
#
|
1096
|
+
# @example Request syntax with placeholder values
|
1097
|
+
#
|
1098
|
+
# resp = client.untag_resource({
|
1099
|
+
# resource_arn: "String", # required
|
1100
|
+
# tag_keys: ["TagKey"], # required
|
1101
|
+
# })
|
1102
|
+
#
|
1103
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UntagResource AWS API Documentation
|
1104
|
+
#
|
1105
|
+
# @overload untag_resource(params = {})
|
1106
|
+
# @param [Hash] params ({})
|
1107
|
+
def untag_resource(params = {}, options = {})
|
1108
|
+
req = build_request(:untag_resource, params)
|
1109
|
+
req.send_request(options)
|
1110
|
+
end
|
1111
|
+
|
909
1112
|
# Updates which users in a workspace have the Grafana `Admin` or
|
910
1113
|
# `Editor` roles.
|
911
1114
|
#
|
@@ -925,7 +1128,7 @@ module Aws::ManagedGrafana
|
|
925
1128
|
# update_instruction_batch: [ # required
|
926
1129
|
# {
|
927
1130
|
# action: "ADD", # required, accepts ADD, REVOKE
|
928
|
-
# role: "ADMIN", # required, accepts ADMIN, EDITOR
|
1131
|
+
# role: "ADMIN", # required, accepts ADMIN, EDITOR, VIEWER
|
929
1132
|
# users: [ # required
|
930
1133
|
# {
|
931
1134
|
# id: "SsoId", # required
|
@@ -941,7 +1144,7 @@ module Aws::ManagedGrafana
|
|
941
1144
|
#
|
942
1145
|
# resp.errors #=> Array
|
943
1146
|
# resp.errors[0].caused_by.action #=> String, one of "ADD", "REVOKE"
|
944
|
-
# resp.errors[0].caused_by.role #=> String, one of "ADMIN", "EDITOR"
|
1147
|
+
# resp.errors[0].caused_by.role #=> String, one of "ADMIN", "EDITOR", "VIEWER"
|
945
1148
|
# resp.errors[0].caused_by.users #=> Array
|
946
1149
|
# resp.errors[0].caused_by.users[0].id #=> String
|
947
1150
|
# resp.errors[0].caused_by.users[0].type #=> String, one of "SSO_USER", "SSO_GROUP"
|
@@ -1061,7 +1264,7 @@ module Aws::ManagedGrafana
|
|
1061
1264
|
# organization_role_name: "OrganizationRoleName",
|
1062
1265
|
# permission_type: "CUSTOMER_MANAGED", # accepts CUSTOMER_MANAGED, SERVICE_MANAGED
|
1063
1266
|
# stack_set_name: "StackSetName",
|
1064
|
-
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE
|
1267
|
+
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE, ATHENA, REDSHIFT
|
1065
1268
|
# workspace_description: "Description",
|
1066
1269
|
# workspace_id: "WorkspaceId", # required
|
1067
1270
|
# workspace_name: "WorkspaceName",
|
@@ -1078,7 +1281,7 @@ module Aws::ManagedGrafana
|
|
1078
1281
|
# resp.workspace.authentication.saml_configuration_status #=> String, one of "CONFIGURED", "NOT_CONFIGURED"
|
1079
1282
|
# resp.workspace.created #=> Time
|
1080
1283
|
# resp.workspace.data_sources #=> Array
|
1081
|
-
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE"
|
1284
|
+
# resp.workspace.data_sources[0] #=> String, one of "AMAZON_OPENSEARCH_SERVICE", "CLOUDWATCH", "PROMETHEUS", "XRAY", "TIMESTREAM", "SITEWISE", "ATHENA", "REDSHIFT"
|
1082
1285
|
# resp.workspace.description #=> String
|
1083
1286
|
# resp.workspace.endpoint #=> String
|
1084
1287
|
# resp.workspace.free_trial_consumed #=> Boolean
|
@@ -1097,6 +1300,8 @@ module Aws::ManagedGrafana
|
|
1097
1300
|
# resp.workspace.permission_type #=> String, one of "CUSTOMER_MANAGED", "SERVICE_MANAGED"
|
1098
1301
|
# resp.workspace.stack_set_name #=> String
|
1099
1302
|
# resp.workspace.status #=> String, one of "ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING", "UPGRADING", "DELETION_FAILED", "CREATION_FAILED", "UPDATE_FAILED", "UPGRADE_FAILED", "LICENSE_REMOVAL_FAILED"
|
1303
|
+
# resp.workspace.tags #=> Hash
|
1304
|
+
# resp.workspace.tags["TagKey"] #=> String
|
1100
1305
|
# resp.workspace.workspace_role_arn #=> String
|
1101
1306
|
#
|
1102
1307
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UpdateWorkspace AWS API Documentation
|
@@ -1208,7 +1413,7 @@ module Aws::ManagedGrafana
|
|
1208
1413
|
params: params,
|
1209
1414
|
config: config)
|
1210
1415
|
context[:gem_name] = 'aws-sdk-managedgrafana'
|
1211
|
-
context[:gem_version] = '1.
|
1416
|
+
context[:gem_version] = '1.8.0'
|
1212
1417
|
Seahorse::Client::Request.new(handlers, context)
|
1213
1418
|
end
|
1214
1419
|
|
@@ -17,6 +17,8 @@ module Aws::ManagedGrafana
|
|
17
17
|
AccountAccessType = Shapes::StringShape.new(name: 'AccountAccessType')
|
18
18
|
AllowedOrganization = Shapes::StringShape.new(name: 'AllowedOrganization')
|
19
19
|
AllowedOrganizations = Shapes::ListShape.new(name: 'AllowedOrganizations')
|
20
|
+
ApiKeyName = Shapes::StringShape.new(name: 'ApiKeyName')
|
21
|
+
ApiKeyToken = Shapes::StringShape.new(name: 'ApiKeyToken')
|
20
22
|
AssertionAttribute = Shapes::StringShape.new(name: 'AssertionAttribute')
|
21
23
|
AssertionAttributes = Shapes::StructureShape.new(name: 'AssertionAttributes')
|
22
24
|
AssociateLicenseRequest = Shapes::StructureShape.new(name: 'AssociateLicenseRequest')
|
@@ -29,10 +31,15 @@ module Aws::ManagedGrafana
|
|
29
31
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
30
32
|
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
31
33
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
34
|
+
CreateWorkspaceApiKeyRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceApiKeyRequest')
|
35
|
+
CreateWorkspaceApiKeyRequestSecondsToLiveInteger = Shapes::IntegerShape.new(name: 'CreateWorkspaceApiKeyRequestSecondsToLiveInteger')
|
36
|
+
CreateWorkspaceApiKeyResponse = Shapes::StructureShape.new(name: 'CreateWorkspaceApiKeyResponse')
|
32
37
|
CreateWorkspaceRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceRequest')
|
33
38
|
CreateWorkspaceResponse = Shapes::StructureShape.new(name: 'CreateWorkspaceResponse')
|
34
39
|
DataSourceType = Shapes::StringShape.new(name: 'DataSourceType')
|
35
40
|
DataSourceTypesList = Shapes::ListShape.new(name: 'DataSourceTypesList')
|
41
|
+
DeleteWorkspaceApiKeyRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceApiKeyRequest')
|
42
|
+
DeleteWorkspaceApiKeyResponse = Shapes::StructureShape.new(name: 'DeleteWorkspaceApiKeyResponse')
|
36
43
|
DeleteWorkspaceRequest = Shapes::StructureShape.new(name: 'DeleteWorkspaceRequest')
|
37
44
|
DeleteWorkspaceResponse = Shapes::StructureShape.new(name: 'DeleteWorkspaceResponse')
|
38
45
|
DescribeWorkspaceAuthenticationRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceAuthenticationRequest')
|
@@ -53,6 +60,8 @@ module Aws::ManagedGrafana
|
|
53
60
|
ListPermissionsRequest = Shapes::StructureShape.new(name: 'ListPermissionsRequest')
|
54
61
|
ListPermissionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListPermissionsRequestMaxResultsInteger')
|
55
62
|
ListPermissionsResponse = Shapes::StructureShape.new(name: 'ListPermissionsResponse')
|
63
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
64
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
56
65
|
ListWorkspacesRequest = Shapes::StructureShape.new(name: 'ListWorkspacesRequest')
|
57
66
|
ListWorkspacesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListWorkspacesRequestMaxResultsInteger')
|
58
67
|
ListWorkspacesResponse = Shapes::StructureShape.new(name: 'ListWorkspacesResponse')
|
@@ -79,8 +88,16 @@ module Aws::ManagedGrafana
|
|
79
88
|
SsoId = Shapes::StringShape.new(name: 'SsoId')
|
80
89
|
StackSetName = Shapes::StringShape.new(name: 'StackSetName')
|
81
90
|
String = Shapes::StringShape.new(name: 'String')
|
91
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
92
|
+
TagKeys = Shapes::ListShape.new(name: 'TagKeys')
|
93
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
94
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
95
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
96
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
82
97
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
83
98
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
99
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
100
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
84
101
|
UpdateAction = Shapes::StringShape.new(name: 'UpdateAction')
|
85
102
|
UpdateError = Shapes::StructureShape.new(name: 'UpdateError')
|
86
103
|
UpdateErrorCodeInteger = Shapes::IntegerShape.new(name: 'UpdateErrorCodeInteger')
|
@@ -146,12 +163,24 @@ module Aws::ManagedGrafana
|
|
146
163
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
147
164
|
ConflictException.struct_class = Types::ConflictException
|
148
165
|
|
166
|
+
CreateWorkspaceApiKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ApiKeyName, required: true, location_name: "keyName"))
|
167
|
+
CreateWorkspaceApiKeyRequest.add_member(:key_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "keyRole"))
|
168
|
+
CreateWorkspaceApiKeyRequest.add_member(:seconds_to_live, Shapes::ShapeRef.new(shape: CreateWorkspaceApiKeyRequestSecondsToLiveInteger, required: true, location_name: "secondsToLive"))
|
169
|
+
CreateWorkspaceApiKeyRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
|
170
|
+
CreateWorkspaceApiKeyRequest.struct_class = Types::CreateWorkspaceApiKeyRequest
|
171
|
+
|
172
|
+
CreateWorkspaceApiKeyResponse.add_member(:key, Shapes::ShapeRef.new(shape: ApiKeyToken, required: true, location_name: "key"))
|
173
|
+
CreateWorkspaceApiKeyResponse.add_member(:key_name, Shapes::ShapeRef.new(shape: ApiKeyName, required: true, location_name: "keyName"))
|
174
|
+
CreateWorkspaceApiKeyResponse.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "workspaceId"))
|
175
|
+
CreateWorkspaceApiKeyResponse.struct_class = Types::CreateWorkspaceApiKeyResponse
|
176
|
+
|
149
177
|
CreateWorkspaceRequest.add_member(:account_access_type, Shapes::ShapeRef.new(shape: AccountAccessType, required: true, location_name: "accountAccessType"))
|
150
178
|
CreateWorkspaceRequest.add_member(:authentication_providers, Shapes::ShapeRef.new(shape: AuthenticationProviders, required: true, location_name: "authenticationProviders"))
|
151
179
|
CreateWorkspaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
152
180
|
CreateWorkspaceRequest.add_member(:organization_role_name, Shapes::ShapeRef.new(shape: OrganizationRoleName, location_name: "organizationRoleName"))
|
153
181
|
CreateWorkspaceRequest.add_member(:permission_type, Shapes::ShapeRef.new(shape: PermissionType, required: true, location_name: "permissionType"))
|
154
182
|
CreateWorkspaceRequest.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetName, location_name: "stackSetName"))
|
183
|
+
CreateWorkspaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
155
184
|
CreateWorkspaceRequest.add_member(:workspace_data_sources, Shapes::ShapeRef.new(shape: DataSourceTypesList, location_name: "workspaceDataSources"))
|
156
185
|
CreateWorkspaceRequest.add_member(:workspace_description, Shapes::ShapeRef.new(shape: Description, location_name: "workspaceDescription"))
|
157
186
|
CreateWorkspaceRequest.add_member(:workspace_name, Shapes::ShapeRef.new(shape: WorkspaceName, location_name: "workspaceName"))
|
@@ -165,6 +194,14 @@ module Aws::ManagedGrafana
|
|
165
194
|
|
166
195
|
DataSourceTypesList.member = Shapes::ShapeRef.new(shape: DataSourceType)
|
167
196
|
|
197
|
+
DeleteWorkspaceApiKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ApiKeyName, required: true, location: "uri", location_name: "keyName"))
|
198
|
+
DeleteWorkspaceApiKeyRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
|
199
|
+
DeleteWorkspaceApiKeyRequest.struct_class = Types::DeleteWorkspaceApiKeyRequest
|
200
|
+
|
201
|
+
DeleteWorkspaceApiKeyResponse.add_member(:key_name, Shapes::ShapeRef.new(shape: ApiKeyName, required: true, location_name: "keyName"))
|
202
|
+
DeleteWorkspaceApiKeyResponse.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "workspaceId"))
|
203
|
+
DeleteWorkspaceApiKeyResponse.struct_class = Types::DeleteWorkspaceApiKeyResponse
|
204
|
+
|
168
205
|
DeleteWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location: "uri", location_name: "workspaceId"))
|
169
206
|
DeleteWorkspaceRequest.struct_class = Types::DeleteWorkspaceRequest
|
170
207
|
|
@@ -214,6 +251,12 @@ module Aws::ManagedGrafana
|
|
214
251
|
ListPermissionsResponse.add_member(:permissions, Shapes::ShapeRef.new(shape: PermissionEntryList, required: true, location_name: "permissions"))
|
215
252
|
ListPermissionsResponse.struct_class = Types::ListPermissionsResponse
|
216
253
|
|
254
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
255
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
256
|
+
|
257
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
258
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
259
|
+
|
217
260
|
ListWorkspacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListWorkspacesRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
|
218
261
|
ListWorkspacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
219
262
|
ListWorkspacesRequest.struct_class = Types::ListWorkspacesRequest
|
@@ -261,12 +304,29 @@ module Aws::ManagedGrafana
|
|
261
304
|
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
|
262
305
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
263
306
|
|
307
|
+
TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
|
308
|
+
|
309
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
310
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
311
|
+
|
312
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
313
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
|
314
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
315
|
+
|
316
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
317
|
+
|
264
318
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
265
319
|
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
|
266
320
|
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
267
321
|
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
|
268
322
|
ThrottlingException.struct_class = Types::ThrottlingException
|
269
323
|
|
324
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
|
325
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
326
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
327
|
+
|
328
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
329
|
+
|
270
330
|
UpdateError.add_member(:caused_by, Shapes::ShapeRef.new(shape: UpdateInstruction, required: true, location_name: "causedBy"))
|
271
331
|
UpdateError.add_member(:code, Shapes::ShapeRef.new(shape: UpdateErrorCodeInteger, required: true, location_name: "code"))
|
272
332
|
UpdateError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
@@ -349,6 +409,7 @@ module Aws::ManagedGrafana
|
|
349
409
|
WorkspaceDescription.add_member(:permission_type, Shapes::ShapeRef.new(shape: PermissionType, location_name: "permissionType"))
|
350
410
|
WorkspaceDescription.add_member(:stack_set_name, Shapes::ShapeRef.new(shape: StackSetName, location_name: "stackSetName"))
|
351
411
|
WorkspaceDescription.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
|
412
|
+
WorkspaceDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
352
413
|
WorkspaceDescription.add_member(:workspace_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "workspaceRoleArn"))
|
353
414
|
WorkspaceDescription.struct_class = Types::WorkspaceDescription
|
354
415
|
|
@@ -364,6 +425,7 @@ module Aws::ManagedGrafana
|
|
364
425
|
WorkspaceSummary.add_member(:name, Shapes::ShapeRef.new(shape: WorkspaceName, location_name: "name"))
|
365
426
|
WorkspaceSummary.add_member(:notification_destinations, Shapes::ShapeRef.new(shape: NotificationDestinationsList, location_name: "notificationDestinations"))
|
366
427
|
WorkspaceSummary.add_member(:status, Shapes::ShapeRef.new(shape: WorkspaceStatus, required: true, location_name: "status"))
|
428
|
+
WorkspaceSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
367
429
|
WorkspaceSummary.struct_class = Types::WorkspaceSummary
|
368
430
|
|
369
431
|
|
@@ -411,6 +473,21 @@ module Aws::ManagedGrafana
|
|
411
473
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
412
474
|
end)
|
413
475
|
|
476
|
+
api.add_operation(:create_workspace_api_key, Seahorse::Model::Operation.new.tap do |o|
|
477
|
+
o.name = "CreateWorkspaceApiKey"
|
478
|
+
o.http_method = "POST"
|
479
|
+
o.http_request_uri = "/workspaces/{workspaceId}/apikeys"
|
480
|
+
o.input = Shapes::ShapeRef.new(shape: CreateWorkspaceApiKeyRequest)
|
481
|
+
o.output = Shapes::ShapeRef.new(shape: CreateWorkspaceApiKeyResponse)
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
483
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
487
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
488
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
489
|
+
end)
|
490
|
+
|
414
491
|
api.add_operation(:delete_workspace, Seahorse::Model::Operation.new.tap do |o|
|
415
492
|
o.name = "DeleteWorkspace"
|
416
493
|
o.http_method = "DELETE"
|
@@ -425,6 +502,20 @@ module Aws::ManagedGrafana
|
|
425
502
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
426
503
|
end)
|
427
504
|
|
505
|
+
api.add_operation(:delete_workspace_api_key, Seahorse::Model::Operation.new.tap do |o|
|
506
|
+
o.name = "DeleteWorkspaceApiKey"
|
507
|
+
o.http_method = "DELETE"
|
508
|
+
o.http_request_uri = "/workspaces/{workspaceId}/apikeys/{keyName}"
|
509
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteWorkspaceApiKeyRequest)
|
510
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteWorkspaceApiKeyResponse)
|
511
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
513
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
514
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
515
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
516
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
517
|
+
end)
|
518
|
+
|
428
519
|
api.add_operation(:describe_workspace, Seahorse::Model::Operation.new.tap do |o|
|
429
520
|
o.name = "DescribeWorkspace"
|
430
521
|
o.http_method = "GET"
|
@@ -483,6 +574,19 @@ module Aws::ManagedGrafana
|
|
483
574
|
)
|
484
575
|
end)
|
485
576
|
|
577
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
578
|
+
o.name = "ListTagsForResource"
|
579
|
+
o.http_method = "GET"
|
580
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
581
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
582
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
583
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
585
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
586
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
588
|
+
end)
|
589
|
+
|
486
590
|
api.add_operation(:list_workspaces, Seahorse::Model::Operation.new.tap do |o|
|
487
591
|
o.name = "ListWorkspaces"
|
488
592
|
o.http_method = "GET"
|
@@ -500,6 +604,32 @@ module Aws::ManagedGrafana
|
|
500
604
|
)
|
501
605
|
end)
|
502
606
|
|
607
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
608
|
+
o.name = "TagResource"
|
609
|
+
o.http_method = "POST"
|
610
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
611
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
612
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
613
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
614
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
615
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
616
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
617
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
618
|
+
end)
|
619
|
+
|
620
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
621
|
+
o.name = "UntagResource"
|
622
|
+
o.http_method = "DELETE"
|
623
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
624
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
625
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
626
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
627
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
628
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
629
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
630
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
631
|
+
end)
|
632
|
+
|
503
633
|
api.add_operation(:update_permissions, Seahorse::Model::Operation.new.tap do |o|
|
504
634
|
o.name = "UpdatePermissions"
|
505
635
|
o.http_method = "PATCH"
|
@@ -213,6 +213,70 @@ module Aws::ManagedGrafana
|
|
213
213
|
include Aws::Structure
|
214
214
|
end
|
215
215
|
|
216
|
+
# @note When making an API call, you may pass CreateWorkspaceApiKeyRequest
|
217
|
+
# data as a hash:
|
218
|
+
#
|
219
|
+
# {
|
220
|
+
# key_name: "ApiKeyName", # required
|
221
|
+
# key_role: "String", # required
|
222
|
+
# seconds_to_live: 1, # required
|
223
|
+
# workspace_id: "WorkspaceId", # required
|
224
|
+
# }
|
225
|
+
#
|
226
|
+
# @!attribute [rw] key_name
|
227
|
+
# Specifies the name of the key to create. Key names must be unique to
|
228
|
+
# the workspace.
|
229
|
+
# @return [String]
|
230
|
+
#
|
231
|
+
# @!attribute [rw] key_role
|
232
|
+
# Specifies the permission level of the key.
|
233
|
+
#
|
234
|
+
# Valid Values: `VIEWER` \| `EDITOR` \| `ADMIN`
|
235
|
+
# @return [String]
|
236
|
+
#
|
237
|
+
# @!attribute [rw] seconds_to_live
|
238
|
+
# Specifies the time in seconds until the key expires. Keys can be
|
239
|
+
# valid for up to 30 days.
|
240
|
+
# @return [Integer]
|
241
|
+
#
|
242
|
+
# @!attribute [rw] workspace_id
|
243
|
+
# The ID of the workspace in which to create an API key.
|
244
|
+
# @return [String]
|
245
|
+
#
|
246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/CreateWorkspaceApiKeyRequest AWS API Documentation
|
247
|
+
#
|
248
|
+
class CreateWorkspaceApiKeyRequest < Struct.new(
|
249
|
+
:key_name,
|
250
|
+
:key_role,
|
251
|
+
:seconds_to_live,
|
252
|
+
:workspace_id)
|
253
|
+
SENSITIVE = []
|
254
|
+
include Aws::Structure
|
255
|
+
end
|
256
|
+
|
257
|
+
# @!attribute [rw] key
|
258
|
+
# The key token that was created. Use this value as a bearer token to
|
259
|
+
# authenticate HTTP requests to the workspace.
|
260
|
+
# @return [String]
|
261
|
+
#
|
262
|
+
# @!attribute [rw] key_name
|
263
|
+
# The name of the key that was created.
|
264
|
+
# @return [String]
|
265
|
+
#
|
266
|
+
# @!attribute [rw] workspace_id
|
267
|
+
# The ID of the workspace that the key is valid for.
|
268
|
+
# @return [String]
|
269
|
+
#
|
270
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/CreateWorkspaceApiKeyResponse AWS API Documentation
|
271
|
+
#
|
272
|
+
class CreateWorkspaceApiKeyResponse < Struct.new(
|
273
|
+
:key,
|
274
|
+
:key_name,
|
275
|
+
:workspace_id)
|
276
|
+
SENSITIVE = [:key]
|
277
|
+
include Aws::Structure
|
278
|
+
end
|
279
|
+
|
216
280
|
# @note When making an API call, you may pass CreateWorkspaceRequest
|
217
281
|
# data as a hash:
|
218
282
|
#
|
@@ -223,7 +287,10 @@ module Aws::ManagedGrafana
|
|
223
287
|
# organization_role_name: "OrganizationRoleName",
|
224
288
|
# permission_type: "CUSTOMER_MANAGED", # required, accepts CUSTOMER_MANAGED, SERVICE_MANAGED
|
225
289
|
# stack_set_name: "StackSetName",
|
226
|
-
#
|
290
|
+
# tags: {
|
291
|
+
# "TagKey" => "TagValue",
|
292
|
+
# },
|
293
|
+
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE, ATHENA, REDSHIFT
|
227
294
|
# workspace_description: "Description",
|
228
295
|
# workspace_name: "WorkspaceName",
|
229
296
|
# workspace_notification_destinations: ["SNS"], # accepts SNS
|
@@ -266,10 +333,12 @@ module Aws::ManagedGrafana
|
|
266
333
|
# @return [String]
|
267
334
|
#
|
268
335
|
# @!attribute [rw] permission_type
|
269
|
-
# If you specify `
|
270
|
-
# automatically creates the IAM roles and provisions
|
271
|
-
# that the workspace needs to use Amazon Web Services
|
272
|
-
# notification channels.
|
336
|
+
# If you specify `SERVICE_MANAGED` on AWS Grafana console, Amazon
|
337
|
+
# Managed Grafana automatically creates the IAM roles and provisions
|
338
|
+
# the permissions that the workspace needs to use Amazon Web Services
|
339
|
+
# data sources and notification channels. In CLI mode, the
|
340
|
+
# permissionType `SERVICE_MANAGED` will not create the IAM role for
|
341
|
+
# you.
|
273
342
|
#
|
274
343
|
# If you specify `CUSTOMER_MANAGED`, you will manage those roles and
|
275
344
|
# permissions yourself. If you are creating this workspace in a member
|
@@ -280,7 +349,7 @@ module Aws::ManagedGrafana
|
|
280
349
|
#
|
281
350
|
# For more information, see [Amazon Managed Grafana permissions and
|
282
351
|
# policies for Amazon Web Services data sources and notification
|
283
|
-
# channels][1]
|
352
|
+
# channels][1].
|
284
353
|
#
|
285
354
|
#
|
286
355
|
#
|
@@ -292,6 +361,10 @@ module Aws::ManagedGrafana
|
|
292
361
|
# roles to be used for this workspace.
|
293
362
|
# @return [String]
|
294
363
|
#
|
364
|
+
# @!attribute [rw] tags
|
365
|
+
# The list of tags associated with the workspace.
|
366
|
+
# @return [Hash<String,String>]
|
367
|
+
#
|
295
368
|
# @!attribute [rw] workspace_data_sources
|
296
369
|
# Specify the Amazon Web Services data sources that you want to be
|
297
370
|
# queried in this workspace. Specifying these data sources here
|
@@ -308,6 +381,8 @@ module Aws::ManagedGrafana
|
|
308
381
|
# @!attribute [rw] workspace_description
|
309
382
|
# A description for the workspace. This is used only to help you
|
310
383
|
# identify this workspace.
|
384
|
+
#
|
385
|
+
# Pattern: `^[\\p\{L\}\\p\{Z\}\\p\{N\}\\p\{P\}]\{0,2048\}$`
|
311
386
|
# @return [String]
|
312
387
|
#
|
313
388
|
# @!attribute [rw] workspace_name
|
@@ -331,10 +406,7 @@ module Aws::ManagedGrafana
|
|
331
406
|
# The workspace needs an IAM role that grants permissions to the
|
332
407
|
# Amazon Web Services resources that the workspace will view data
|
333
408
|
# from. If you already have a role that you want to use, specify it
|
334
|
-
# here.
|
335
|
-
# Services resources in `workspaceDataSources` or
|
336
|
-
# `workspaceNotificationDestinations`, a new IAM role with the
|
337
|
-
# necessary permissions is automatically created.
|
409
|
+
# here. The permission type should be set to `CUSTOMER_MANAGED`.
|
338
410
|
# @return [String]
|
339
411
|
#
|
340
412
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/CreateWorkspaceRequest AWS API Documentation
|
@@ -346,6 +418,7 @@ module Aws::ManagedGrafana
|
|
346
418
|
:organization_role_name,
|
347
419
|
:permission_type,
|
348
420
|
:stack_set_name,
|
421
|
+
:tags,
|
349
422
|
:workspace_data_sources,
|
350
423
|
:workspace_description,
|
351
424
|
:workspace_name,
|
@@ -368,6 +441,48 @@ module Aws::ManagedGrafana
|
|
368
441
|
include Aws::Structure
|
369
442
|
end
|
370
443
|
|
444
|
+
# @note When making an API call, you may pass DeleteWorkspaceApiKeyRequest
|
445
|
+
# data as a hash:
|
446
|
+
#
|
447
|
+
# {
|
448
|
+
# key_name: "ApiKeyName", # required
|
449
|
+
# workspace_id: "WorkspaceId", # required
|
450
|
+
# }
|
451
|
+
#
|
452
|
+
# @!attribute [rw] key_name
|
453
|
+
# The name of the API key to delete.
|
454
|
+
# @return [String]
|
455
|
+
#
|
456
|
+
# @!attribute [rw] workspace_id
|
457
|
+
# The ID of the workspace to delete.
|
458
|
+
# @return [String]
|
459
|
+
#
|
460
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DeleteWorkspaceApiKeyRequest AWS API Documentation
|
461
|
+
#
|
462
|
+
class DeleteWorkspaceApiKeyRequest < Struct.new(
|
463
|
+
:key_name,
|
464
|
+
:workspace_id)
|
465
|
+
SENSITIVE = []
|
466
|
+
include Aws::Structure
|
467
|
+
end
|
468
|
+
|
469
|
+
# @!attribute [rw] key_name
|
470
|
+
# The name of the API key that was deleted.
|
471
|
+
# @return [String]
|
472
|
+
#
|
473
|
+
# @!attribute [rw] workspace_id
|
474
|
+
# The ID of the workspace where the key was deleted.
|
475
|
+
# @return [String]
|
476
|
+
#
|
477
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DeleteWorkspaceApiKeyResponse AWS API Documentation
|
478
|
+
#
|
479
|
+
class DeleteWorkspaceApiKeyResponse < Struct.new(
|
480
|
+
:key_name,
|
481
|
+
:workspace_id)
|
482
|
+
SENSITIVE = []
|
483
|
+
include Aws::Structure
|
484
|
+
end
|
485
|
+
|
371
486
|
# @note When making an API call, you may pass DeleteWorkspaceRequest
|
372
487
|
# data as a hash:
|
373
488
|
#
|
@@ -626,6 +741,37 @@ module Aws::ManagedGrafana
|
|
626
741
|
include Aws::Structure
|
627
742
|
end
|
628
743
|
|
744
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
745
|
+
# data as a hash:
|
746
|
+
#
|
747
|
+
# {
|
748
|
+
# resource_arn: "String", # required
|
749
|
+
# }
|
750
|
+
#
|
751
|
+
# @!attribute [rw] resource_arn
|
752
|
+
# The ARN of the resource the list of tags are associated with.
|
753
|
+
# @return [String]
|
754
|
+
#
|
755
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListTagsForResourceRequest AWS API Documentation
|
756
|
+
#
|
757
|
+
class ListTagsForResourceRequest < Struct.new(
|
758
|
+
:resource_arn)
|
759
|
+
SENSITIVE = []
|
760
|
+
include Aws::Structure
|
761
|
+
end
|
762
|
+
|
763
|
+
# @!attribute [rw] tags
|
764
|
+
# The list of tags that are associated with the resource.
|
765
|
+
# @return [Hash<String,String>]
|
766
|
+
#
|
767
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListTagsForResourceResponse AWS API Documentation
|
768
|
+
#
|
769
|
+
class ListTagsForResourceResponse < Struct.new(
|
770
|
+
:tags)
|
771
|
+
SENSITIVE = []
|
772
|
+
include Aws::Structure
|
773
|
+
end
|
774
|
+
|
629
775
|
# @note When making an API call, you may pass ListWorkspacesRequest
|
630
776
|
# data as a hash:
|
631
777
|
#
|
@@ -868,6 +1014,39 @@ module Aws::ManagedGrafana
|
|
868
1014
|
include Aws::Structure
|
869
1015
|
end
|
870
1016
|
|
1017
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1018
|
+
# data as a hash:
|
1019
|
+
#
|
1020
|
+
# {
|
1021
|
+
# resource_arn: "String", # required
|
1022
|
+
# tags: { # required
|
1023
|
+
# "TagKey" => "TagValue",
|
1024
|
+
# },
|
1025
|
+
# }
|
1026
|
+
#
|
1027
|
+
# @!attribute [rw] resource_arn
|
1028
|
+
# The ARN of the resource the tag is associated with.
|
1029
|
+
# @return [String]
|
1030
|
+
#
|
1031
|
+
# @!attribute [rw] tags
|
1032
|
+
# The list of tag keys and values to associate with the resource. You
|
1033
|
+
# can associate tag keys only, tags (key and values) only or a
|
1034
|
+
# combination of tag keys and tags.
|
1035
|
+
# @return [Hash<String,String>]
|
1036
|
+
#
|
1037
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/TagResourceRequest AWS API Documentation
|
1038
|
+
#
|
1039
|
+
class TagResourceRequest < Struct.new(
|
1040
|
+
:resource_arn,
|
1041
|
+
:tags)
|
1042
|
+
SENSITIVE = []
|
1043
|
+
include Aws::Structure
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/TagResourceResponse AWS API Documentation
|
1047
|
+
#
|
1048
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
1049
|
+
|
871
1050
|
# The request was denied because of request throttling. Retry the
|
872
1051
|
# request.
|
873
1052
|
#
|
@@ -898,6 +1077,35 @@ module Aws::ManagedGrafana
|
|
898
1077
|
include Aws::Structure
|
899
1078
|
end
|
900
1079
|
|
1080
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
1081
|
+
# data as a hash:
|
1082
|
+
#
|
1083
|
+
# {
|
1084
|
+
# resource_arn: "String", # required
|
1085
|
+
# tag_keys: ["TagKey"], # required
|
1086
|
+
# }
|
1087
|
+
#
|
1088
|
+
# @!attribute [rw] resource_arn
|
1089
|
+
# The ARN of the resource the tag association is removed from.
|
1090
|
+
# @return [String]
|
1091
|
+
#
|
1092
|
+
# @!attribute [rw] tag_keys
|
1093
|
+
# The key values of the tag to be removed from the resource.
|
1094
|
+
# @return [Array<String>]
|
1095
|
+
#
|
1096
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UntagResourceRequest AWS API Documentation
|
1097
|
+
#
|
1098
|
+
class UntagResourceRequest < Struct.new(
|
1099
|
+
:resource_arn,
|
1100
|
+
:tag_keys)
|
1101
|
+
SENSITIVE = []
|
1102
|
+
include Aws::Structure
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UntagResourceResponse AWS API Documentation
|
1106
|
+
#
|
1107
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
1108
|
+
|
901
1109
|
# A structure containing information about one error encountered while
|
902
1110
|
# performing an [UpdatePermissions][1] operation.
|
903
1111
|
#
|
@@ -939,7 +1147,7 @@ module Aws::ManagedGrafana
|
|
939
1147
|
#
|
940
1148
|
# {
|
941
1149
|
# action: "ADD", # required, accepts ADD, REVOKE
|
942
|
-
# role: "ADMIN", # required, accepts ADMIN, EDITOR
|
1150
|
+
# role: "ADMIN", # required, accepts ADMIN, EDITOR, VIEWER
|
943
1151
|
# users: [ # required
|
944
1152
|
# {
|
945
1153
|
# id: "SsoId", # required
|
@@ -979,7 +1187,7 @@ module Aws::ManagedGrafana
|
|
979
1187
|
# update_instruction_batch: [ # required
|
980
1188
|
# {
|
981
1189
|
# action: "ADD", # required, accepts ADD, REVOKE
|
982
|
-
# role: "ADMIN", # required, accepts ADMIN, EDITOR
|
1190
|
+
# role: "ADMIN", # required, accepts ADMIN, EDITOR, VIEWER
|
983
1191
|
# users: [ # required
|
984
1192
|
# {
|
985
1193
|
# id: "SsoId", # required
|
@@ -1102,7 +1310,7 @@ module Aws::ManagedGrafana
|
|
1102
1310
|
# organization_role_name: "OrganizationRoleName",
|
1103
1311
|
# permission_type: "CUSTOMER_MANAGED", # accepts CUSTOMER_MANAGED, SERVICE_MANAGED
|
1104
1312
|
# stack_set_name: "StackSetName",
|
1105
|
-
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE
|
1313
|
+
# workspace_data_sources: ["AMAZON_OPENSEARCH_SERVICE"], # accepts AMAZON_OPENSEARCH_SERVICE, CLOUDWATCH, PROMETHEUS, XRAY, TIMESTREAM, SITEWISE, ATHENA, REDSHIFT
|
1106
1314
|
# workspace_description: "Description",
|
1107
1315
|
# workspace_id: "WorkspaceId", # required
|
1108
1316
|
# workspace_name: "WorkspaceName",
|
@@ -1243,6 +1451,9 @@ module Aws::ManagedGrafana
|
|
1243
1451
|
#
|
1244
1452
|
# @!attribute [rw] id
|
1245
1453
|
# The ID of the user or group.
|
1454
|
+
#
|
1455
|
+
# Pattern:
|
1456
|
+
# `^([0-9a-fA-F]\{10\}-|)[A-Fa-f0-9]\{8\}-[A-Fa-f0-9]\{4\}-[A-Fa-f0-9]\{4\}-[A-Fa-f0-9]\{4\}-[A-Fa-f0-9]\{12\}$`
|
1246
1457
|
# @return [String]
|
1247
1458
|
#
|
1248
1459
|
# @!attribute [rw] type
|
@@ -1422,6 +1633,10 @@ module Aws::ManagedGrafana
|
|
1422
1633
|
# The current status of the workspace.
|
1423
1634
|
# @return [String]
|
1424
1635
|
#
|
1636
|
+
# @!attribute [rw] tags
|
1637
|
+
# The list of tags associated with the workspace.
|
1638
|
+
# @return [Hash<String,String>]
|
1639
|
+
#
|
1425
1640
|
# @!attribute [rw] workspace_role_arn
|
1426
1641
|
# The IAM role that grants permissions to the Amazon Web Services
|
1427
1642
|
# resources that the workspace will view data from. This role must
|
@@ -1451,6 +1666,7 @@ module Aws::ManagedGrafana
|
|
1451
1666
|
:permission_type,
|
1452
1667
|
:stack_set_name,
|
1453
1668
|
:status,
|
1669
|
+
:tags,
|
1454
1670
|
:workspace_role_arn)
|
1455
1671
|
SENSITIVE = [:description, :name, :organization_role_name, :organizational_units, :workspace_role_arn]
|
1456
1672
|
include Aws::Structure
|
@@ -1503,6 +1719,10 @@ module Aws::ManagedGrafana
|
|
1503
1719
|
# The current status of the workspace.
|
1504
1720
|
# @return [String]
|
1505
1721
|
#
|
1722
|
+
# @!attribute [rw] tags
|
1723
|
+
# The list of tags associated with the workspace.
|
1724
|
+
# @return [Hash<String,String>]
|
1725
|
+
#
|
1506
1726
|
# @see http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/WorkspaceSummary AWS API Documentation
|
1507
1727
|
#
|
1508
1728
|
class WorkspaceSummary < Struct.new(
|
@@ -1515,7 +1735,8 @@ module Aws::ManagedGrafana
|
|
1515
1735
|
:modified,
|
1516
1736
|
:name,
|
1517
1737
|
:notification_destinations,
|
1518
|
-
:status
|
1738
|
+
:status,
|
1739
|
+
:tags)
|
1519
1740
|
SENSITIVE = [:description, :name]
|
1520
1741
|
include Aws::Structure
|
1521
1742
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-managedgrafana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.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: 2022-
|
11
|
+
date: 2022-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|