@aws-sdk/client-grafana 3.58.0 → 3.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +2 -2
  3. package/dist-cjs/Grafana.js +45 -0
  4. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  5. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  6. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +3 -0
  8. package/dist-cjs/models/models_0.js +40 -2
  9. package/dist-cjs/protocols/Aws_restJson1.js +256 -1
  10. package/dist-es/Grafana.js +45 -0
  11. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  12. package/dist-es/commands/TagResourceCommand.js +39 -0
  13. package/dist-es/commands/UntagResourceCommand.js +39 -0
  14. package/dist-es/commands/index.js +3 -0
  15. package/dist-es/models/models_0.js +26 -0
  16. package/dist-es/protocols/Aws_restJson1.js +331 -3
  17. package/dist-types/Grafana.d.ts +28 -0
  18. package/dist-types/GrafanaClient.d.ts +5 -2
  19. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  20. package/dist-types/commands/TagResourceCommand.d.ts +39 -0
  21. package/dist-types/commands/UntagResourceCommand.d.ts +36 -0
  22. package/dist-types/commands/index.d.ts +3 -0
  23. package/dist-types/models/models_0.d.ts +112 -8
  24. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  25. package/dist-types/ts3.4/Grafana.d.ts +15 -0
  26. package/dist-types/ts3.4/GrafanaClient.d.ts +5 -2
  27. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +68 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  33. package/package.json +6 -6
@@ -6,7 +6,10 @@ import { DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthentic
6
6
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
7
7
  import { DisassociateLicenseCommandInput, DisassociateLicenseCommandOutput } from "./commands/DisassociateLicenseCommand";
8
8
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
9
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
9
10
  import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
11
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
12
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
10
13
  import { UpdatePermissionsCommandInput, UpdatePermissionsCommandOutput } from "./commands/UpdatePermissionsCommand";
11
14
  import { UpdateWorkspaceAuthenticationCommandInput, UpdateWorkspaceAuthenticationCommandOutput } from "./commands/UpdateWorkspaceAuthenticationCommand";
12
15
  import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
@@ -75,6 +78,14 @@ export declare class Grafana extends GrafanaClient {
75
78
  listPermissions(args: ListPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPermissionsCommandOutput>;
76
79
  listPermissions(args: ListPermissionsCommandInput, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
77
80
  listPermissions(args: ListPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
81
+ /**
82
+ * <p>The <code>ListTagsForResource</code> operation returns the tags that
83
+ * are associated with the Amazon Managed Service for Grafana resource specified by the <code>resourceArn</code>.
84
+ * Currently, the only resource that can be tagged is a workspace. </p>
85
+ */
86
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
87
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
88
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
78
89
  /**
79
90
  * <p>Returns a list of Amazon Managed Grafana workspaces in the account, with some information
80
91
  * about each workspace. For more complete information about one workspace, use <a href="https://docs.aws.amazon.com/AAMG/latest/APIReference/API_DescribeWorkspace.html">DescribeWorkspace</a>.</p>
@@ -82,6 +93,23 @@ export declare class Grafana extends GrafanaClient {
82
93
  listWorkspaces(args: ListWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkspacesCommandOutput>;
83
94
  listWorkspaces(args: ListWorkspacesCommandInput, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
84
95
  listWorkspaces(args: ListWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
96
+ /**
97
+ * <p>The <code>TagResource</code> operation associates tags with an Amazon Managed Grafana resource.
98
+ * Currently, the only resource that can be tagged is workspaces. </p>
99
+ * <p>If you specify a new tag key for the resource, this tag is appended to the list of tags associated
100
+ * with the resource. If you specify a tag key that is already associated with the resource, the new tag
101
+ * value that you specify replaces the previous value for that tag.</p>
102
+ */
103
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
104
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
105
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
106
+ /**
107
+ * <p>The <code>UntagResource</code> operation removes the association of the tag with the Amazon Managed Grafana resource.
108
+ * </p>
109
+ */
110
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
111
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
112
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
85
113
  /**
86
114
  * <p>Updates which users in a workspace have the Grafana <code>Admin</code> or <code>Editor</code> roles.</p>
87
115
  */
@@ -13,12 +13,15 @@ import { DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthentic
13
13
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
14
14
  import { DisassociateLicenseCommandInput, DisassociateLicenseCommandOutput } from "./commands/DisassociateLicenseCommand";
15
15
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
16
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
16
17
  import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
18
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
19
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
17
20
  import { UpdatePermissionsCommandInput, UpdatePermissionsCommandOutput } from "./commands/UpdatePermissionsCommand";
18
21
  import { UpdateWorkspaceAuthenticationCommandInput, UpdateWorkspaceAuthenticationCommandOutput } from "./commands/UpdateWorkspaceAuthenticationCommand";
19
22
  import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
20
- export declare type ServiceInputTypes = AssociateLicenseCommandInput | CreateWorkspaceCommandInput | DeleteWorkspaceCommandInput | DescribeWorkspaceAuthenticationCommandInput | DescribeWorkspaceCommandInput | DisassociateLicenseCommandInput | ListPermissionsCommandInput | ListWorkspacesCommandInput | UpdatePermissionsCommandInput | UpdateWorkspaceAuthenticationCommandInput | UpdateWorkspaceCommandInput;
21
- export declare type ServiceOutputTypes = AssociateLicenseCommandOutput | CreateWorkspaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeWorkspaceAuthenticationCommandOutput | DescribeWorkspaceCommandOutput | DisassociateLicenseCommandOutput | ListPermissionsCommandOutput | ListWorkspacesCommandOutput | UpdatePermissionsCommandOutput | UpdateWorkspaceAuthenticationCommandOutput | UpdateWorkspaceCommandOutput;
23
+ export declare type ServiceInputTypes = AssociateLicenseCommandInput | CreateWorkspaceCommandInput | DeleteWorkspaceCommandInput | DescribeWorkspaceAuthenticationCommandInput | DescribeWorkspaceCommandInput | DisassociateLicenseCommandInput | ListPermissionsCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePermissionsCommandInput | UpdateWorkspaceAuthenticationCommandInput | UpdateWorkspaceCommandInput;
24
+ export declare type ServiceOutputTypes = AssociateLicenseCommandOutput | CreateWorkspaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeWorkspaceAuthenticationCommandOutput | DescribeWorkspaceCommandOutput | DisassociateLicenseCommandOutput | ListPermissionsCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePermissionsCommandOutput | UpdateWorkspaceAuthenticationCommandOutput | UpdateWorkspaceCommandOutput;
22
25
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
23
26
  /**
24
27
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,37 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
6
+ }
7
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>The <code>ListTagsForResource</code> operation returns the tags that
11
+ * are associated with the Amazon Managed Service for Grafana resource specified by the <code>resourceArn</code>.
12
+ * Currently, the only resource that can be tagged is a workspace. </p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { GrafanaClient, ListTagsForResourceCommand } from "@aws-sdk/client-grafana"; // ES Modules import
17
+ * // const { GrafanaClient, ListTagsForResourceCommand } = require("@aws-sdk/client-grafana"); // CommonJS import
18
+ * const client = new GrafanaClient(config);
19
+ * const command = new ListTagsForResourceCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
24
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
25
+ * @see {@link GrafanaClientResolvedConfig | config} for GrafanaClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, GrafanaClientResolvedConfig> {
29
+ readonly input: ListTagsForResourceCommandInput;
30
+ constructor(input: ListTagsForResourceCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ export interface TagResourceCommandInput extends TagResourceRequest {
6
+ }
7
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>The <code>TagResource</code> operation associates tags with an Amazon Managed Grafana resource.
11
+ * Currently, the only resource that can be tagged is workspaces. </p>
12
+ * <p>If you specify a new tag key for the resource, this tag is appended to the list of tags associated
13
+ * with the resource. If you specify a tag key that is already associated with the resource, the new tag
14
+ * value that you specify replaces the previous value for that tag.</p>
15
+ * @example
16
+ * Use a bare-bones client and the command you need to make an API call.
17
+ * ```javascript
18
+ * import { GrafanaClient, TagResourceCommand } from "@aws-sdk/client-grafana"; // ES Modules import
19
+ * // const { GrafanaClient, TagResourceCommand } = require("@aws-sdk/client-grafana"); // CommonJS import
20
+ * const client = new GrafanaClient(config);
21
+ * const command = new TagResourceCommand(input);
22
+ * const response = await client.send(command);
23
+ * ```
24
+ *
25
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
26
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
27
+ * @see {@link GrafanaClientResolvedConfig | config} for GrafanaClient's `config` shape.
28
+ *
29
+ */
30
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, GrafanaClientResolvedConfig> {
31
+ readonly input: TagResourceCommandInput;
32
+ constructor(input: TagResourceCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
5
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
6
+ }
7
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>The <code>UntagResource</code> operation removes the association of the tag with the Amazon Managed Grafana resource.
11
+ * </p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { GrafanaClient, UntagResourceCommand } from "@aws-sdk/client-grafana"; // ES Modules import
16
+ * // const { GrafanaClient, UntagResourceCommand } = require("@aws-sdk/client-grafana"); // CommonJS import
17
+ * const client = new GrafanaClient(config);
18
+ * const command = new UntagResourceCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
23
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
24
+ * @see {@link GrafanaClientResolvedConfig | config} for GrafanaClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, GrafanaClientResolvedConfig> {
28
+ readonly input: UntagResourceCommandInput;
29
+ constructor(input: UntagResourceCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -5,7 +5,10 @@ export * from "./DescribeWorkspaceAuthenticationCommand";
5
5
  export * from "./DescribeWorkspaceCommand";
6
6
  export * from "./DisassociateLicenseCommand";
7
7
  export * from "./ListPermissionsCommand";
8
+ export * from "./ListTagsForResourceCommand";
8
9
  export * from "./ListWorkspacesCommand";
10
+ export * from "./TagResourceCommand";
11
+ export * from "./UntagResourceCommand";
9
12
  export * from "./UpdatePermissionsCommand";
10
13
  export * from "./UpdateWorkspaceAuthenticationCommand";
11
14
  export * from "./UpdateWorkspaceCommand";
@@ -129,6 +129,10 @@ export declare enum DataSourceType {
129
129
  * Amazon OpenSearch Service
130
130
  */
131
131
  AMAZON_OPENSEARCH_SERVICE = "AMAZON_OPENSEARCH_SERVICE",
132
+ /**
133
+ * Amazon Athena
134
+ */
135
+ ATHENA = "ATHENA",
132
136
  /**
133
137
  * CloudWatch Logs
134
138
  */
@@ -137,6 +141,10 @@ export declare enum DataSourceType {
137
141
  * Managed Prometheus
138
142
  */
139
143
  PROMETHEUS = "PROMETHEUS",
144
+ /**
145
+ * Redshift
146
+ */
147
+ REDSHIFT = "REDSHIFT",
140
148
  /**
141
149
  * IoT SiteWise
142
150
  */
@@ -322,6 +330,12 @@ export interface WorkspaceDescription {
322
330
  * for user authentication.</p>
323
331
  */
324
332
  authentication: AuthenticationSummary | undefined;
333
+ /**
334
+ * <p>The list of tags associated with the workspace.</p>
335
+ */
336
+ tags?: {
337
+ [key: string]: string;
338
+ };
325
339
  }
326
340
  export declare namespace WorkspaceDescription {
327
341
  /**
@@ -716,6 +730,32 @@ export declare namespace DisassociateLicenseResponse {
716
730
  */
717
731
  const filterSensitiveLog: (obj: DisassociateLicenseResponse) => any;
718
732
  }
733
+ export interface ListTagsForResourceRequest {
734
+ /**
735
+ * <p>The ARN of the resource the list of tags are associated with.</p>
736
+ */
737
+ resourceArn: string | undefined;
738
+ }
739
+ export declare namespace ListTagsForResourceRequest {
740
+ /**
741
+ * @internal
742
+ */
743
+ const filterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
744
+ }
745
+ export interface ListTagsForResourceResponse {
746
+ /**
747
+ * <p>The list of tags that are associated with the resource.</p>
748
+ */
749
+ tags?: {
750
+ [key: string]: string;
751
+ };
752
+ }
753
+ export declare namespace ListTagsForResourceResponse {
754
+ /**
755
+ * @internal
756
+ */
757
+ const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
758
+ }
719
759
  export declare enum UserType {
720
760
  /**
721
761
  * SSO group.
@@ -777,6 +817,8 @@ export declare enum Role {
777
817
  export interface User {
778
818
  /**
779
819
  * <p>The ID of the user or group.</p>
820
+ * <p>Pattern: <code>^([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}$</code>
821
+ * </p>
780
822
  */
781
823
  id: string | undefined;
782
824
  /**
@@ -914,6 +956,57 @@ export declare namespace UpdatePermissionsResponse {
914
956
  */
915
957
  const filterSensitiveLog: (obj: UpdatePermissionsResponse) => any;
916
958
  }
959
+ export interface TagResourceRequest {
960
+ /**
961
+ * <p>The ARN of the resource the tag is associated with.</p>
962
+ */
963
+ resourceArn: string | undefined;
964
+ /**
965
+ * <p>The list of tag keys and values to associate with the resource. You can associate tag keys only, tags (key and values) only
966
+ * or a combination of tag keys and tags.</p>
967
+ */
968
+ tags: {
969
+ [key: string]: string;
970
+ } | undefined;
971
+ }
972
+ export declare namespace TagResourceRequest {
973
+ /**
974
+ * @internal
975
+ */
976
+ const filterSensitiveLog: (obj: TagResourceRequest) => any;
977
+ }
978
+ export interface TagResourceResponse {
979
+ }
980
+ export declare namespace TagResourceResponse {
981
+ /**
982
+ * @internal
983
+ */
984
+ const filterSensitiveLog: (obj: TagResourceResponse) => any;
985
+ }
986
+ export interface UntagResourceRequest {
987
+ /**
988
+ * <p>The ARN of the resource the tag association is removed from. </p>
989
+ */
990
+ resourceArn: string | undefined;
991
+ /**
992
+ * <p>The key values of the tag to be removed from the resource.</p>
993
+ */
994
+ tagKeys: string[] | undefined;
995
+ }
996
+ export declare namespace UntagResourceRequest {
997
+ /**
998
+ * @internal
999
+ */
1000
+ const filterSensitiveLog: (obj: UntagResourceRequest) => any;
1001
+ }
1002
+ export interface UntagResourceResponse {
1003
+ }
1004
+ export declare namespace UntagResourceResponse {
1005
+ /**
1006
+ * @internal
1007
+ */
1008
+ const filterSensitiveLog: (obj: UntagResourceResponse) => any;
1009
+ }
917
1010
  export interface CreateWorkspaceRequest {
918
1011
  /**
919
1012
  * <p>Specifies whether the workspace can access Amazon Web Services resources in this Amazon Web Services account only, or whether it can also access Amazon Web Services resources in
@@ -932,16 +1025,16 @@ export interface CreateWorkspaceRequest {
932
1025
  */
933
1026
  organizationRoleName?: string;
934
1027
  /**
935
- * <p>If you specify <code>Service Managed</code>, Amazon Managed Grafana automatically creates
1028
+ * <p>If you specify <code>SERVICE_MANAGED</code> on AWS Grafana console, Amazon Managed Grafana automatically creates
936
1029
  * the IAM roles and provisions the permissions that the workspace needs to use
937
- * Amazon Web Services data sources and notification channels.</p>
1030
+ * Amazon Web Services data sources and notification channels. In CLI mode, the permissionType <code>SERVICE_MANAGED</code> will not create the IAM role
1031
+ * for you.</p>
938
1032
  * <p>If you specify <code>CUSTOMER_MANAGED</code>, you will manage those roles and
939
1033
  * permissions yourself. If you are creating this workspace in a member account of an
940
1034
  * organization that is not a delegated administrator account, and you want the workspace to access data sources in other Amazon Web Services
941
1035
  * accounts in the organization, you must choose <code>CUSTOMER_MANAGED</code>.</p>
942
1036
  * <p>For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed Grafana permissions and policies for
943
- * Amazon Web Services data sources and notification channels</a>
944
- * </p>
1037
+ * Amazon Web Services data sources and notification channels</a>.</p>
945
1038
  */
946
1039
  permissionType: PermissionType | string | undefined;
947
1040
  /**
@@ -961,6 +1054,8 @@ export interface CreateWorkspaceRequest {
961
1054
  workspaceDataSources?: (DataSourceType | string)[];
962
1055
  /**
963
1056
  * <p>A description for the workspace. This is used only to help you identify this workspace.</p>
1057
+ * <p>Pattern: <code>^[\\p{L}\\p{Z}\\p{N}\\p{P}]{0,2048}$</code>
1058
+ * </p>
964
1059
  */
965
1060
  workspaceDescription?: string;
966
1061
  /**
@@ -980,10 +1075,7 @@ export interface CreateWorkspaceRequest {
980
1075
  workspaceOrganizationalUnits?: string[];
981
1076
  /**
982
1077
  * <p>The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the
983
- * workspace will view data from. If you already have a role that you want to use, specify it here. If you omit
984
- * this field and you specify some Amazon Web Services resources in <code>workspaceDataSources</code> or
985
- * <code>workspaceNotificationDestinations</code>, a new IAM role with the necessary permissions is
986
- * automatically created.</p>
1078
+ * workspace will view data from. If you already have a role that you want to use, specify it here. The permission type should be set to <code>CUSTOMER_MANAGED</code>.</p>
987
1079
  */
988
1080
  workspaceRoleArn?: string;
989
1081
  /**
@@ -993,6 +1085,12 @@ export interface CreateWorkspaceRequest {
993
1085
  * Amazon Managed Grafana</a>.</p>
994
1086
  */
995
1087
  authenticationProviders: (AuthenticationProviderTypes | string)[] | undefined;
1088
+ /**
1089
+ * <p>The list of tags associated with the workspace.</p>
1090
+ */
1091
+ tags?: {
1092
+ [key: string]: string;
1093
+ };
996
1094
  }
997
1095
  export declare namespace CreateWorkspaceRequest {
998
1096
  /**
@@ -1151,6 +1249,12 @@ export interface WorkspaceSummary {
1151
1249
  * the workspace.</p>
1152
1250
  */
1153
1251
  authentication: AuthenticationSummary | undefined;
1252
+ /**
1253
+ * <p>The list of tags associated with the workspace.</p>
1254
+ */
1255
+ tags?: {
1256
+ [key: string]: string;
1257
+ };
1154
1258
  }
1155
1259
  export declare namespace WorkspaceSummary {
1156
1260
  /**
@@ -7,7 +7,10 @@ import { DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthentic
7
7
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "../commands/DescribeWorkspaceCommand";
8
8
  import { DisassociateLicenseCommandInput, DisassociateLicenseCommandOutput } from "../commands/DisassociateLicenseCommand";
9
9
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "../commands/ListPermissionsCommand";
10
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
10
11
  import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "../commands/ListWorkspacesCommand";
12
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
13
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
11
14
  import { UpdatePermissionsCommandInput, UpdatePermissionsCommandOutput } from "../commands/UpdatePermissionsCommand";
12
15
  import { UpdateWorkspaceAuthenticationCommandInput, UpdateWorkspaceAuthenticationCommandOutput } from "../commands/UpdateWorkspaceAuthenticationCommand";
13
16
  import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "../commands/UpdateWorkspaceCommand";
@@ -18,7 +21,10 @@ export declare const serializeAws_restJson1DescribeWorkspaceCommand: (input: Des
18
21
  export declare const serializeAws_restJson1DescribeWorkspaceAuthenticationCommand: (input: DescribeWorkspaceAuthenticationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
22
  export declare const serializeAws_restJson1DisassociateLicenseCommand: (input: DisassociateLicenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
23
  export declare const serializeAws_restJson1ListPermissionsCommand: (input: ListPermissionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
+ export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
25
  export declare const serializeAws_restJson1ListWorkspacesCommand: (input: ListWorkspacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
+ export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
+ export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
28
  export declare const serializeAws_restJson1UpdatePermissionsCommand: (input: UpdatePermissionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
29
  export declare const serializeAws_restJson1UpdateWorkspaceCommand: (input: UpdateWorkspaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
30
  export declare const serializeAws_restJson1UpdateWorkspaceAuthenticationCommand: (input: UpdateWorkspaceAuthenticationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -29,7 +35,10 @@ export declare const deserializeAws_restJson1DescribeWorkspaceCommand: (output:
29
35
  export declare const deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeWorkspaceAuthenticationCommandOutput>;
30
36
  export declare const deserializeAws_restJson1DisassociateLicenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisassociateLicenseCommandOutput>;
31
37
  export declare const deserializeAws_restJson1ListPermissionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPermissionsCommandOutput>;
38
+ export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
32
39
  export declare const deserializeAws_restJson1ListWorkspacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListWorkspacesCommandOutput>;
40
+ export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
41
+ export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
33
42
  export declare const deserializeAws_restJson1UpdatePermissionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePermissionsCommandOutput>;
34
43
  export declare const deserializeAws_restJson1UpdateWorkspaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkspaceCommandOutput>;
35
44
  export declare const deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkspaceAuthenticationCommandOutput>;
@@ -6,7 +6,10 @@ import { DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthentic
6
6
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
7
7
  import { DisassociateLicenseCommandInput, DisassociateLicenseCommandOutput } from "./commands/DisassociateLicenseCommand";
8
8
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
9
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
9
10
  import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
11
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
12
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
10
13
  import { UpdatePermissionsCommandInput, UpdatePermissionsCommandOutput } from "./commands/UpdatePermissionsCommand";
11
14
  import { UpdateWorkspaceAuthenticationCommandInput, UpdateWorkspaceAuthenticationCommandOutput } from "./commands/UpdateWorkspaceAuthenticationCommand";
12
15
  import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
@@ -42,10 +45,22 @@ export declare class Grafana extends GrafanaClient {
42
45
  listPermissions(args: ListPermissionsCommandInput, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
43
46
  listPermissions(args: ListPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
44
47
 
48
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
49
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
50
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
51
+
45
52
  listWorkspaces(args: ListWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkspacesCommandOutput>;
46
53
  listWorkspaces(args: ListWorkspacesCommandInput, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
47
54
  listWorkspaces(args: ListWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
48
55
 
56
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
57
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
58
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
59
+
60
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
61
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
62
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
63
+
49
64
  updatePermissions(args: UpdatePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePermissionsCommandOutput>;
50
65
  updatePermissions(args: UpdatePermissionsCommandInput, cb: (err: any, data?: UpdatePermissionsCommandOutput) => void): void;
51
66
  updatePermissions(args: UpdatePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePermissionsCommandOutput) => void): void;
@@ -13,12 +13,15 @@ import { DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthentic
13
13
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
14
14
  import { DisassociateLicenseCommandInput, DisassociateLicenseCommandOutput } from "./commands/DisassociateLicenseCommand";
15
15
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
16
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
16
17
  import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
18
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
19
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
17
20
  import { UpdatePermissionsCommandInput, UpdatePermissionsCommandOutput } from "./commands/UpdatePermissionsCommand";
18
21
  import { UpdateWorkspaceAuthenticationCommandInput, UpdateWorkspaceAuthenticationCommandOutput } from "./commands/UpdateWorkspaceAuthenticationCommand";
19
22
  import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
20
- export declare type ServiceInputTypes = AssociateLicenseCommandInput | CreateWorkspaceCommandInput | DeleteWorkspaceCommandInput | DescribeWorkspaceAuthenticationCommandInput | DescribeWorkspaceCommandInput | DisassociateLicenseCommandInput | ListPermissionsCommandInput | ListWorkspacesCommandInput | UpdatePermissionsCommandInput | UpdateWorkspaceAuthenticationCommandInput | UpdateWorkspaceCommandInput;
21
- export declare type ServiceOutputTypes = AssociateLicenseCommandOutput | CreateWorkspaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeWorkspaceAuthenticationCommandOutput | DescribeWorkspaceCommandOutput | DisassociateLicenseCommandOutput | ListPermissionsCommandOutput | ListWorkspacesCommandOutput | UpdatePermissionsCommandOutput | UpdateWorkspaceAuthenticationCommandOutput | UpdateWorkspaceCommandOutput;
23
+ export declare type ServiceInputTypes = AssociateLicenseCommandInput | CreateWorkspaceCommandInput | DeleteWorkspaceCommandInput | DescribeWorkspaceAuthenticationCommandInput | DescribeWorkspaceCommandInput | DisassociateLicenseCommandInput | ListPermissionsCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePermissionsCommandInput | UpdateWorkspaceAuthenticationCommandInput | UpdateWorkspaceCommandInput;
24
+ export declare type ServiceOutputTypes = AssociateLicenseCommandOutput | CreateWorkspaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeWorkspaceAuthenticationCommandOutput | DescribeWorkspaceCommandOutput | DisassociateLicenseCommandOutput | ListPermissionsCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePermissionsCommandOutput | UpdateWorkspaceAuthenticationCommandOutput | UpdateWorkspaceCommandOutput;
22
25
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
23
26
 
24
27
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
6
+ }
7
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, GrafanaClientResolvedConfig> {
11
+ readonly input: ListTagsForResourceCommandInput;
12
+ constructor(input: ListTagsForResourceCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ export interface TagResourceCommandInput extends TagResourceRequest {
6
+ }
7
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, GrafanaClientResolvedConfig> {
11
+ readonly input: TagResourceCommandInput;
12
+ constructor(input: TagResourceCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
5
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
6
+ }
7
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, GrafanaClientResolvedConfig> {
11
+ readonly input: UntagResourceCommandInput;
12
+ constructor(input: UntagResourceCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -5,7 +5,10 @@ export * from "./DescribeWorkspaceAuthenticationCommand";
5
5
  export * from "./DescribeWorkspaceCommand";
6
6
  export * from "./DisassociateLicenseCommand";
7
7
  export * from "./ListPermissionsCommand";
8
+ export * from "./ListTagsForResourceCommand";
8
9
  export * from "./ListWorkspacesCommand";
10
+ export * from "./TagResourceCommand";
11
+ export * from "./UntagResourceCommand";
9
12
  export * from "./UpdatePermissionsCommand";
10
13
  export * from "./UpdateWorkspaceAuthenticationCommand";
11
14
  export * from "./UpdateWorkspaceCommand";