@robhan-cdk-lib/aws_grafana 0.0.1 → 0.0.2
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.
- package/.jsii +100 -108
- package/API.md +130 -93
- package/lib/workspace.d.ts +108 -54
- package/lib/workspace.js +5 -15
- package/package.json +1 -1
package/API.md
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
### Workspace <a name="Workspace" id="@robhan-cdk-lib/aws_grafana.Workspace"></a>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Specifies a workspace.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
In a workspace, you can create Grafana dashboards and visualizations to
|
|
10
|
+
analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware
|
|
11
|
+
to run the Grafana server.
|
|
11
12
|
|
|
12
13
|
#### Initializers <a name="Initializers" id="@robhan-cdk-lib/aws_grafana.Workspace.Initializer"></a>
|
|
13
14
|
|
|
@@ -19,9 +20,9 @@ new Workspace(scope: Construct, id: string, props: WorkspaceProps)
|
|
|
19
20
|
|
|
20
21
|
| **Name** | **Type** | **Description** |
|
|
21
22
|
| --- | --- | --- |
|
|
22
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> |
|
|
23
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.id">id</a></code> | <code>string</code> |
|
|
24
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.props">props</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps">WorkspaceProps</a></code> |
|
|
23
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
|
|
24
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
|
|
25
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.props">props</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps">WorkspaceProps</a></code> | *No description.* |
|
|
25
26
|
|
|
26
27
|
---
|
|
27
28
|
|
|
@@ -29,24 +30,18 @@ new Workspace(scope: Construct, id: string, props: WorkspaceProps)
|
|
|
29
30
|
|
|
30
31
|
- *Type:* constructs.Construct
|
|
31
32
|
|
|
32
|
-
The scope in which to define this construct.
|
|
33
|
-
|
|
34
33
|
---
|
|
35
34
|
|
|
36
35
|
##### `id`<sup>Required</sup> <a name="id" id="@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.id"></a>
|
|
37
36
|
|
|
38
37
|
- *Type:* string
|
|
39
38
|
|
|
40
|
-
The scoped construct ID.
|
|
41
|
-
|
|
42
39
|
---
|
|
43
40
|
|
|
44
41
|
##### `props`<sup>Required</sup> <a name="props" id="@robhan-cdk-lib/aws_grafana.Workspace.Initializer.parameter.props"></a>
|
|
45
42
|
|
|
46
43
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps">WorkspaceProps</a>
|
|
47
44
|
|
|
48
|
-
Configuration properties for the workspace.
|
|
49
|
-
|
|
50
45
|
---
|
|
51
46
|
|
|
52
47
|
#### Methods <a name="Methods" id="Methods"></a>
|
|
@@ -96,30 +91,30 @@ Any object.
|
|
|
96
91
|
| **Name** | **Type** | **Description** |
|
|
97
92
|
| --- | --- | --- |
|
|
98
93
|
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
|
|
99
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.accountAccessType">accountAccessType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AccountAccessType">AccountAccessType</a></code> |
|
|
100
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.authenticationProviders">authenticationProviders</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AuthenticationProviders">AuthenticationProviders</a>[]</code> |
|
|
101
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.creationTimestamp">creationTimestamp</a></code> | <code>string</code> |
|
|
102
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.endpoint">endpoint</a></code> | <code>string</code> |
|
|
103
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.grafanaVersion">grafanaVersion</a></code> | <code>string</code> |
|
|
104
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.id">id</a></code> | <code>string</code> |
|
|
105
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.modificationTimestamp">modificationTimestamp</a></code> | <code>string</code> |
|
|
106
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.permissionType">permissionType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.PermissionTypes">PermissionTypes</a></code> |
|
|
107
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.samlConfigurationStatus">samlConfigurationStatus</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.SamlConfigurationStatuses">SamlConfigurationStatuses</a></code> |
|
|
108
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.ssoClientId">ssoClientId</a></code> | <code>string</code> |
|
|
109
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.status">status</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.Status">Status</a></code> |
|
|
110
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.clientToken">clientToken</a></code> | <code>string</code> |
|
|
111
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.dataSources">dataSources</a></code> | <code>string[]</code> |
|
|
112
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.description">description</a></code> | <code>string</code> |
|
|
113
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.name">name</a></code> | <code>string</code> |
|
|
114
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.networkAccessControl">networkAccessControl</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NetworkAccessControl">NetworkAccessControl</a></code> |
|
|
115
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.notificationDestinations">notificationDestinations</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NotificationDestinations">NotificationDestinations</a>[]</code> |
|
|
116
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.organizationalUnits">organizationalUnits</a></code> | <code>string[]</code> |
|
|
117
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.organizationRoleName">organizationRoleName</a></code> | <code>string</code> |
|
|
118
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.pluginAdminEnabled">pluginAdminEnabled</a></code> | <code>boolean</code> | Whether
|
|
119
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.role">role</a></code> | <code>aws-cdk-lib.aws_iam.IRole</code> | IAM role
|
|
120
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.samlConfiguration">samlConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.SamlConfiguration">SamlConfiguration</a></code> | SAML
|
|
121
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.stackSetName">stackSetName</a></code> | <code>string</code> |
|
|
122
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.vpcConfiguration">vpcConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.VpcConfiguration">VpcConfiguration</a></code> |
|
|
94
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.accountAccessType">accountAccessType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AccountAccessType">AccountAccessType</a></code> | Specifies whether the workspace can access AWS resources in this AWS account only, or whether it can also access AWS resources in other accounts in the same organization. |
|
|
95
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.authenticationProviders">authenticationProviders</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AuthenticationProviders">AuthenticationProviders</a>[]</code> | Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. |
|
|
96
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.creationTimestamp">creationTimestamp</a></code> | <code>string</code> | The date that the workspace was created. |
|
|
97
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.endpoint">endpoint</a></code> | <code>string</code> | The URL that users can use to access the Grafana console in the workspace. |
|
|
98
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.grafanaVersion">grafanaVersion</a></code> | <code>string</code> | Specifies the version of Grafana supported by this workspace. |
|
|
99
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.id">id</a></code> | <code>string</code> | The unique ID of this workspace. |
|
|
100
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.modificationTimestamp">modificationTimestamp</a></code> | <code>string</code> | The most recent date that the workspace was modified. |
|
|
101
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.permissionType">permissionType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.PermissionTypes">PermissionTypes</a></code> | If this is SERVICE_MANAGED, and the workplace was created through the Amazon Managed Grafana console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use AWS data sources and notification channels. |
|
|
102
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.samlConfigurationStatus">samlConfigurationStatus</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.SamlConfigurationStatuses">SamlConfigurationStatuses</a></code> | Specifies whether the workspace's SAML configuration is complete. |
|
|
103
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.ssoClientId">ssoClientId</a></code> | <code>string</code> | The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana. |
|
|
104
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.status">status</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.Status">Status</a></code> | The current status of the workspace. |
|
|
105
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.clientToken">clientToken</a></code> | <code>string</code> | A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. |
|
|
106
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.dataSources">dataSources</a></code> | <code>string[]</code> | Specifies the AWS data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources. |
|
|
107
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.description">description</a></code> | <code>string</code> | The user-defined description of the workspace. |
|
|
108
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.name">name</a></code> | <code>string</code> | The name of the workspace. |
|
|
109
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.networkAccessControl">networkAccessControl</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NetworkAccessControl">NetworkAccessControl</a></code> | The configuration settings for network access to your workspace. |
|
|
110
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.notificationDestinations">notificationDestinations</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NotificationDestinations">NotificationDestinations</a>[]</code> | The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these channels. |
|
|
111
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.organizationalUnits">organizationalUnits</a></code> | <code>string[]</code> | Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization. |
|
|
112
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.organizationRoleName">organizationRoleName</a></code> | <code>string</code> | The name of the IAM role that is used to access resources through Organizations. |
|
|
113
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.pluginAdminEnabled">pluginAdminEnabled</a></code> | <code>boolean</code> | Whether plugin administration is enabled in the workspace. |
|
|
114
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.role">role</a></code> | <code>aws-cdk-lib.aws_iam.IRole</code> | The IAM role that grants permissions to the AWS resources that the workspace will view data from. |
|
|
115
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.samlConfiguration">samlConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.SamlConfiguration">SamlConfiguration</a></code> | If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace. |
|
|
116
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.stackSetName">stackSetName</a></code> | <code>string</code> | The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace. |
|
|
117
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.Workspace.property.vpcConfiguration">vpcConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.VpcConfiguration">VpcConfiguration</a></code> | The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. |
|
|
123
118
|
|
|
124
119
|
---
|
|
125
120
|
|
|
@@ -143,7 +138,11 @@ public readonly accountAccessType: AccountAccessType;
|
|
|
143
138
|
|
|
144
139
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.AccountAccessType">AccountAccessType</a>
|
|
145
140
|
|
|
146
|
-
|
|
141
|
+
Specifies whether the workspace can access AWS resources in this AWS account only, or whether it can also access AWS resources in other accounts in the same organization.
|
|
142
|
+
|
|
143
|
+
If this is
|
|
144
|
+
ORGANIZATION, the OrganizationalUnits parameter specifies which organizational units the
|
|
145
|
+
workspace can access.
|
|
147
146
|
|
|
148
147
|
---
|
|
149
148
|
|
|
@@ -155,7 +154,7 @@ public readonly authenticationProviders: AuthenticationProviders[];
|
|
|
155
154
|
|
|
156
155
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.AuthenticationProviders">AuthenticationProviders</a>[]
|
|
157
156
|
|
|
158
|
-
|
|
157
|
+
Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace.
|
|
159
158
|
|
|
160
159
|
---
|
|
161
160
|
|
|
@@ -167,7 +166,7 @@ public readonly creationTimestamp: string;
|
|
|
167
166
|
|
|
168
167
|
- *Type:* string
|
|
169
168
|
|
|
170
|
-
|
|
169
|
+
The date that the workspace was created.
|
|
171
170
|
|
|
172
171
|
---
|
|
173
172
|
|
|
@@ -179,7 +178,7 @@ public readonly endpoint: string;
|
|
|
179
178
|
|
|
180
179
|
- *Type:* string
|
|
181
180
|
|
|
182
|
-
|
|
181
|
+
The URL that users can use to access the Grafana console in the workspace.
|
|
183
182
|
|
|
184
183
|
---
|
|
185
184
|
|
|
@@ -191,7 +190,7 @@ public readonly grafanaVersion: string;
|
|
|
191
190
|
|
|
192
191
|
- *Type:* string
|
|
193
192
|
|
|
194
|
-
|
|
193
|
+
Specifies the version of Grafana supported by this workspace.
|
|
195
194
|
|
|
196
195
|
---
|
|
197
196
|
|
|
@@ -203,7 +202,7 @@ public readonly id: string;
|
|
|
203
202
|
|
|
204
203
|
- *Type:* string
|
|
205
204
|
|
|
206
|
-
|
|
205
|
+
The unique ID of this workspace.
|
|
207
206
|
|
|
208
207
|
---
|
|
209
208
|
|
|
@@ -215,7 +214,7 @@ public readonly modificationTimestamp: string;
|
|
|
215
214
|
|
|
216
215
|
- *Type:* string
|
|
217
216
|
|
|
218
|
-
|
|
217
|
+
The most recent date that the workspace was modified.
|
|
219
218
|
|
|
220
219
|
---
|
|
221
220
|
|
|
@@ -227,7 +226,13 @@ public readonly permissionType: PermissionTypes;
|
|
|
227
226
|
|
|
228
227
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.PermissionTypes">PermissionTypes</a>
|
|
229
228
|
|
|
230
|
-
|
|
229
|
+
If this is SERVICE_MANAGED, and the workplace was created through the Amazon Managed Grafana console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use AWS data sources and notification channels.
|
|
230
|
+
|
|
231
|
+
If this is CUSTOMER_MANAGED, you must manage those roles and permissions yourself.
|
|
232
|
+
|
|
233
|
+
If you are working with a workspace in a member account of an organization and that account is
|
|
234
|
+
not a delegated administrator account, and you want the workspace to access data sources in
|
|
235
|
+
other AWS accounts in the organization, this parameter must be set to CUSTOMER_MANAGED.
|
|
231
236
|
|
|
232
237
|
---
|
|
233
238
|
|
|
@@ -239,7 +244,7 @@ public readonly samlConfigurationStatus: SamlConfigurationStatuses;
|
|
|
239
244
|
|
|
240
245
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.SamlConfigurationStatuses">SamlConfigurationStatuses</a>
|
|
241
246
|
|
|
242
|
-
|
|
247
|
+
Specifies whether the workspace's SAML configuration is complete.
|
|
243
248
|
|
|
244
249
|
---
|
|
245
250
|
|
|
@@ -251,7 +256,7 @@ public readonly ssoClientId: string;
|
|
|
251
256
|
|
|
252
257
|
- *Type:* string
|
|
253
258
|
|
|
254
|
-
|
|
259
|
+
The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana.
|
|
255
260
|
|
|
256
261
|
---
|
|
257
262
|
|
|
@@ -263,7 +268,7 @@ public readonly status: Status;
|
|
|
263
268
|
|
|
264
269
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.Status">Status</a>
|
|
265
270
|
|
|
266
|
-
|
|
271
|
+
The current status of the workspace.
|
|
267
272
|
|
|
268
273
|
---
|
|
269
274
|
|
|
@@ -275,7 +280,7 @@ public readonly clientToken: string;
|
|
|
275
280
|
|
|
276
281
|
- *Type:* string
|
|
277
282
|
|
|
278
|
-
|
|
283
|
+
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
|
279
284
|
|
|
280
285
|
---
|
|
281
286
|
|
|
@@ -287,7 +292,10 @@ public readonly dataSources: string[];
|
|
|
287
292
|
|
|
288
293
|
- *Type:* string[]
|
|
289
294
|
|
|
290
|
-
|
|
295
|
+
Specifies the AWS data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources.
|
|
296
|
+
|
|
297
|
+
This list is only used when the workspace was created through the AWS console, and the
|
|
298
|
+
permissionType is SERVICE_MANAGED.
|
|
291
299
|
|
|
292
300
|
---
|
|
293
301
|
|
|
@@ -299,7 +307,7 @@ public readonly description: string;
|
|
|
299
307
|
|
|
300
308
|
- *Type:* string
|
|
301
309
|
|
|
302
|
-
|
|
310
|
+
The user-defined description of the workspace.
|
|
303
311
|
|
|
304
312
|
---
|
|
305
313
|
|
|
@@ -311,7 +319,7 @@ public readonly name: string;
|
|
|
311
319
|
|
|
312
320
|
- *Type:* string
|
|
313
321
|
|
|
314
|
-
|
|
322
|
+
The name of the workspace.
|
|
315
323
|
|
|
316
324
|
---
|
|
317
325
|
|
|
@@ -323,7 +331,7 @@ public readonly networkAccessControl: NetworkAccessControl;
|
|
|
323
331
|
|
|
324
332
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.NetworkAccessControl">NetworkAccessControl</a>
|
|
325
333
|
|
|
326
|
-
|
|
334
|
+
The configuration settings for network access to your workspace.
|
|
327
335
|
|
|
328
336
|
---
|
|
329
337
|
|
|
@@ -335,7 +343,7 @@ public readonly notificationDestinations: NotificationDestinations[];
|
|
|
335
343
|
|
|
336
344
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.NotificationDestinations">NotificationDestinations</a>[]
|
|
337
345
|
|
|
338
|
-
|
|
346
|
+
The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these channels.
|
|
339
347
|
|
|
340
348
|
---
|
|
341
349
|
|
|
@@ -347,7 +355,7 @@ public readonly organizationalUnits: string[];
|
|
|
347
355
|
|
|
348
356
|
- *Type:* string[]
|
|
349
357
|
|
|
350
|
-
|
|
358
|
+
Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.
|
|
351
359
|
|
|
352
360
|
---
|
|
353
361
|
|
|
@@ -359,7 +367,7 @@ public readonly organizationRoleName: string;
|
|
|
359
367
|
|
|
360
368
|
- *Type:* string
|
|
361
369
|
|
|
362
|
-
|
|
370
|
+
The name of the IAM role that is used to access resources through Organizations.
|
|
363
371
|
|
|
364
372
|
---
|
|
365
373
|
|
|
@@ -371,7 +379,12 @@ public readonly pluginAdminEnabled: boolean;
|
|
|
371
379
|
|
|
372
380
|
- *Type:* boolean
|
|
373
381
|
|
|
374
|
-
Whether
|
|
382
|
+
Whether plugin administration is enabled in the workspace.
|
|
383
|
+
|
|
384
|
+
Setting to true allows workspace
|
|
385
|
+
admins to install, uninstall, and update plugins from within the Grafana workspace.
|
|
386
|
+
|
|
387
|
+
This option is only valid for workspaces that support Grafana version 9 or newer.
|
|
375
388
|
|
|
376
389
|
---
|
|
377
390
|
|
|
@@ -383,7 +396,7 @@ public readonly role: IRole;
|
|
|
383
396
|
|
|
384
397
|
- *Type:* aws-cdk-lib.aws_iam.IRole
|
|
385
398
|
|
|
386
|
-
IAM role
|
|
399
|
+
The IAM role that grants permissions to the AWS resources that the workspace will view data from.
|
|
387
400
|
|
|
388
401
|
---
|
|
389
402
|
|
|
@@ -395,7 +408,7 @@ public readonly samlConfiguration: SamlConfiguration;
|
|
|
395
408
|
|
|
396
409
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.SamlConfiguration">SamlConfiguration</a>
|
|
397
410
|
|
|
398
|
-
SAML
|
|
411
|
+
If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace.
|
|
399
412
|
|
|
400
413
|
---
|
|
401
414
|
|
|
@@ -407,7 +420,7 @@ public readonly stackSetName: string;
|
|
|
407
420
|
|
|
408
421
|
- *Type:* string
|
|
409
422
|
|
|
410
|
-
|
|
423
|
+
The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
|
|
411
424
|
|
|
412
425
|
---
|
|
413
426
|
|
|
@@ -419,7 +432,7 @@ public readonly vpcConfiguration: VpcConfiguration;
|
|
|
419
432
|
|
|
420
433
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.VpcConfiguration">VpcConfiguration</a>
|
|
421
434
|
|
|
422
|
-
|
|
435
|
+
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
|
|
423
436
|
|
|
424
437
|
---
|
|
425
438
|
|
|
@@ -855,23 +868,23 @@ const workspaceProps: WorkspaceProps = { ... }
|
|
|
855
868
|
|
|
856
869
|
| **Name** | **Type** | **Description** |
|
|
857
870
|
| --- | --- | --- |
|
|
858
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.accountAccessType">accountAccessType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AccountAccessType">AccountAccessType</a></code> |
|
|
859
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.authenticationProviders">authenticationProviders</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AuthenticationProviders">AuthenticationProviders</a>[]</code> |
|
|
860
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.permissionType">permissionType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.PermissionTypes">PermissionTypes</a></code> |
|
|
861
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.clientToken">clientToken</a></code> | <code>string</code> |
|
|
862
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.dataSources">dataSources</a></code> | <code>string[]</code> |
|
|
863
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.description">description</a></code> | <code>string</code> |
|
|
864
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.grafanaVersion">grafanaVersion</a></code> | <code>string</code> |
|
|
865
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.name">name</a></code> | <code>string</code> |
|
|
866
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.networkAccessControl">networkAccessControl</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NetworkAccessControl">NetworkAccessControl</a></code> |
|
|
867
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.notificationDestinations">notificationDestinations</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NotificationDestinations">NotificationDestinations</a>[]</code> |
|
|
868
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.organizationalUnits">organizationalUnits</a></code> | <code>string[]</code> |
|
|
871
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.accountAccessType">accountAccessType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AccountAccessType">AccountAccessType</a></code> | Specifies whether the workspace can access AWS resources in this AWS account only, or whether it can also access AWS resources in other accounts in the same organization. |
|
|
872
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.authenticationProviders">authenticationProviders</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.AuthenticationProviders">AuthenticationProviders</a>[]</code> | Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. |
|
|
873
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.permissionType">permissionType</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.PermissionTypes">PermissionTypes</a></code> | If this is SERVICE_MANAGED, and the workplace was created through the Amazon Managed Grafana console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use AWS data sources and notification channels. |
|
|
874
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.clientToken">clientToken</a></code> | <code>string</code> | A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. |
|
|
875
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.dataSources">dataSources</a></code> | <code>string[]</code> | Specifies the AWS data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources. |
|
|
876
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.description">description</a></code> | <code>string</code> | The user-defined description of the workspace. |
|
|
877
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.grafanaVersion">grafanaVersion</a></code> | <code>string</code> | Specifies the version of Grafana to support in the workspace. |
|
|
878
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.name">name</a></code> | <code>string</code> | The name of the workspace. |
|
|
879
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.networkAccessControl">networkAccessControl</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NetworkAccessControl">NetworkAccessControl</a></code> | The configuration settings for network access to your workspace. |
|
|
880
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.notificationDestinations">notificationDestinations</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.NotificationDestinations">NotificationDestinations</a>[]</code> | The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these channels. |
|
|
881
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.organizationalUnits">organizationalUnits</a></code> | <code>string[]</code> | Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization. |
|
|
869
882
|
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.organizationRoleName">organizationRoleName</a></code> | <code>string</code> | Name of the IAM role to use for the organization. |
|
|
870
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.pluginAdminEnabled">pluginAdminEnabled</a></code> | <code>boolean</code> | Whether
|
|
871
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.role">role</a></code> | <code>aws-cdk-lib.aws_iam.IRole</code> | IAM role to
|
|
872
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.samlConfiguration">samlConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.SamlConfiguration">SamlConfiguration</a></code> | SAML
|
|
873
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.stackSetName">stackSetName</a></code> | <code>string</code> |
|
|
874
|
-
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.vpcConfiguration">vpcConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.VpcConfiguration">VpcConfiguration</a></code> |
|
|
883
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.pluginAdminEnabled">pluginAdminEnabled</a></code> | <code>boolean</code> | Whether plugin administration is enabled in the workspace. |
|
|
884
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.role">role</a></code> | <code>aws-cdk-lib.aws_iam.IRole</code> | The IAM role that grants permissions to the AWS resources that the workspace will view data from. |
|
|
885
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.samlConfiguration">samlConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.SamlConfiguration">SamlConfiguration</a></code> | If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace. |
|
|
886
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.stackSetName">stackSetName</a></code> | <code>string</code> | The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace. |
|
|
887
|
+
| <code><a href="#@robhan-cdk-lib/aws_grafana.WorkspaceProps.property.vpcConfiguration">vpcConfiguration</a></code> | <code><a href="#@robhan-cdk-lib/aws_grafana.VpcConfiguration">VpcConfiguration</a></code> | The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. |
|
|
875
888
|
|
|
876
889
|
---
|
|
877
890
|
|
|
@@ -883,7 +896,11 @@ public readonly accountAccessType: AccountAccessType;
|
|
|
883
896
|
|
|
884
897
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.AccountAccessType">AccountAccessType</a>
|
|
885
898
|
|
|
886
|
-
|
|
899
|
+
Specifies whether the workspace can access AWS resources in this AWS account only, or whether it can also access AWS resources in other accounts in the same organization.
|
|
900
|
+
|
|
901
|
+
If this is
|
|
902
|
+
ORGANIZATION, the OrganizationalUnits parameter specifies which organizational units the
|
|
903
|
+
workspace can access.
|
|
887
904
|
|
|
888
905
|
Required field.
|
|
889
906
|
|
|
@@ -897,7 +914,7 @@ public readonly authenticationProviders: AuthenticationProviders[];
|
|
|
897
914
|
|
|
898
915
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.AuthenticationProviders">AuthenticationProviders</a>[]
|
|
899
916
|
|
|
900
|
-
|
|
917
|
+
Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace.
|
|
901
918
|
|
|
902
919
|
Required field.
|
|
903
920
|
|
|
@@ -911,7 +928,13 @@ public readonly permissionType: PermissionTypes;
|
|
|
911
928
|
|
|
912
929
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.PermissionTypes">PermissionTypes</a>
|
|
913
930
|
|
|
914
|
-
|
|
931
|
+
If this is SERVICE_MANAGED, and the workplace was created through the Amazon Managed Grafana console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use AWS data sources and notification channels.
|
|
932
|
+
|
|
933
|
+
If this is CUSTOMER_MANAGED, you must manage those roles and permissions yourself.
|
|
934
|
+
|
|
935
|
+
If you are working with a workspace in a member account of an organization and that account is
|
|
936
|
+
not a delegated administrator account, and you want the workspace to access data sources in
|
|
937
|
+
other AWS accounts in the organization, this parameter must be set to CUSTOMER_MANAGED.
|
|
915
938
|
|
|
916
939
|
Required field.
|
|
917
940
|
|
|
@@ -925,7 +948,7 @@ public readonly clientToken: string;
|
|
|
925
948
|
|
|
926
949
|
- *Type:* string
|
|
927
950
|
|
|
928
|
-
|
|
951
|
+
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
|
929
952
|
|
|
930
953
|
Must be 1-64 characters long and contain only printable ASCII characters.
|
|
931
954
|
|
|
@@ -939,7 +962,10 @@ public readonly dataSources: string[];
|
|
|
939
962
|
|
|
940
963
|
- *Type:* string[]
|
|
941
964
|
|
|
942
|
-
|
|
965
|
+
Specifies the AWS data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources.
|
|
966
|
+
|
|
967
|
+
This list is only used when the workspace was created through the AWS console, and the
|
|
968
|
+
permissionType is SERVICE_MANAGED.
|
|
943
969
|
|
|
944
970
|
---
|
|
945
971
|
|
|
@@ -951,7 +977,7 @@ public readonly description: string;
|
|
|
951
977
|
|
|
952
978
|
- *Type:* string
|
|
953
979
|
|
|
954
|
-
|
|
980
|
+
The user-defined description of the workspace.
|
|
955
981
|
|
|
956
982
|
Maximum length of 2048 characters.
|
|
957
983
|
|
|
@@ -965,7 +991,12 @@ public readonly grafanaVersion: string;
|
|
|
965
991
|
|
|
966
992
|
- *Type:* string
|
|
967
993
|
|
|
968
|
-
|
|
994
|
+
Specifies the version of Grafana to support in the workspace.
|
|
995
|
+
|
|
996
|
+
Defaults to the latest version
|
|
997
|
+
on create (for example, 9.4), or the current version of the workspace on update.
|
|
998
|
+
Can only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for example, from
|
|
999
|
+
9.4 to 8.4).
|
|
969
1000
|
|
|
970
1001
|
Must be 1-255 characters long.
|
|
971
1002
|
|
|
@@ -979,9 +1010,10 @@ public readonly name: string;
|
|
|
979
1010
|
|
|
980
1011
|
- *Type:* string
|
|
981
1012
|
|
|
982
|
-
|
|
1013
|
+
The name of the workspace.
|
|
983
1014
|
|
|
984
|
-
Must be 1-255 characters long and contain only alphanumeric characters, hyphens, dots,
|
|
1015
|
+
Must be 1-255 characters long and contain only alphanumeric characters, hyphens, dots,
|
|
1016
|
+
underscores, and tildes.
|
|
985
1017
|
|
|
986
1018
|
---
|
|
987
1019
|
|
|
@@ -993,7 +1025,7 @@ public readonly networkAccessControl: NetworkAccessControl;
|
|
|
993
1025
|
|
|
994
1026
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.NetworkAccessControl">NetworkAccessControl</a>
|
|
995
1027
|
|
|
996
|
-
|
|
1028
|
+
The configuration settings for network access to your workspace.
|
|
997
1029
|
|
|
998
1030
|
---
|
|
999
1031
|
|
|
@@ -1005,7 +1037,7 @@ public readonly notificationDestinations: NotificationDestinations[];
|
|
|
1005
1037
|
|
|
1006
1038
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.NotificationDestinations">NotificationDestinations</a>[]
|
|
1007
1039
|
|
|
1008
|
-
|
|
1040
|
+
The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these channels.
|
|
1009
1041
|
|
|
1010
1042
|
---
|
|
1011
1043
|
|
|
@@ -1017,7 +1049,7 @@ public readonly organizationalUnits: string[];
|
|
|
1017
1049
|
|
|
1018
1050
|
- *Type:* string[]
|
|
1019
1051
|
|
|
1020
|
-
|
|
1052
|
+
Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.
|
|
1021
1053
|
|
|
1022
1054
|
---
|
|
1023
1055
|
|
|
@@ -1043,7 +1075,12 @@ public readonly pluginAdminEnabled: boolean;
|
|
|
1043
1075
|
|
|
1044
1076
|
- *Type:* boolean
|
|
1045
1077
|
|
|
1046
|
-
Whether
|
|
1078
|
+
Whether plugin administration is enabled in the workspace.
|
|
1079
|
+
|
|
1080
|
+
Setting to true allows workspace
|
|
1081
|
+
admins to install, uninstall, and update plugins from within the Grafana workspace.
|
|
1082
|
+
|
|
1083
|
+
This option is only valid for workspaces that support Grafana version 9 or newer.
|
|
1047
1084
|
|
|
1048
1085
|
Default: false
|
|
1049
1086
|
|
|
@@ -1057,7 +1094,7 @@ public readonly role: IRole;
|
|
|
1057
1094
|
|
|
1058
1095
|
- *Type:* aws-cdk-lib.aws_iam.IRole
|
|
1059
1096
|
|
|
1060
|
-
IAM role to
|
|
1097
|
+
The IAM role that grants permissions to the AWS resources that the workspace will view data from.
|
|
1061
1098
|
|
|
1062
1099
|
---
|
|
1063
1100
|
|
|
@@ -1069,7 +1106,7 @@ public readonly samlConfiguration: SamlConfiguration;
|
|
|
1069
1106
|
|
|
1070
1107
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.SamlConfiguration">SamlConfiguration</a>
|
|
1071
1108
|
|
|
1072
|
-
SAML
|
|
1109
|
+
If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace.
|
|
1073
1110
|
|
|
1074
1111
|
---
|
|
1075
1112
|
|
|
@@ -1081,7 +1118,7 @@ public readonly stackSetName: string;
|
|
|
1081
1118
|
|
|
1082
1119
|
- *Type:* string
|
|
1083
1120
|
|
|
1084
|
-
|
|
1121
|
+
The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
|
|
1085
1122
|
|
|
1086
1123
|
---
|
|
1087
1124
|
|
|
@@ -1093,7 +1130,7 @@ public readonly vpcConfiguration: VpcConfiguration;
|
|
|
1093
1130
|
|
|
1094
1131
|
- *Type:* <a href="#@robhan-cdk-lib/aws_grafana.VpcConfiguration">VpcConfiguration</a>
|
|
1095
1132
|
|
|
1096
|
-
|
|
1133
|
+
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
|
|
1097
1134
|
|
|
1098
1135
|
---
|
|
1099
1136
|
|