@robhan-cdk-lib/aws_grafana 0.0.24 → 0.0.26
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 +1728 -462
- package/API.md +1528 -363
- package/lib/index.d.ts +2 -1
- package/lib/index.js +17 -10
- package/lib/workspace-base.d.ts +499 -0
- package/lib/workspace-base.js +150 -0
- package/lib/workspace.d.ts +89 -255
- package/lib/workspace.js +52 -138
- package/package.json +9 -3
package/lib/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './workspace';
|
|
2
|
+
export * from './workspace-base';
|
package/lib/index.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, "AuthenticationProviders", { enumerable: true, get: function () { return workspace_1.AuthenticationProviders; } });
|
|
7
|
-
Object.defineProperty(exports, "NotificationDestinations", { enumerable: true, get: function () { return workspace_1.NotificationDestinations; } });
|
|
8
|
-
Object.defineProperty(exports, "PermissionTypes", { enumerable: true, get: function () { return workspace_1.PermissionTypes; } });
|
|
9
|
-
Object.defineProperty(exports, "SamlConfigurationStatuses", { enumerable: true, get: function () { return workspace_1.SamlConfigurationStatuses; } });
|
|
10
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return workspace_1.Status; } });
|
|
11
|
-
Object.defineProperty(exports, "Workspace", { enumerable: true, get: function () { return workspace_1.Workspace; } });
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUNBZXFCO0FBZG5CLDhHQUFBLGlCQUFpQixPQUFBO0FBQ2pCLG9IQUFBLHVCQUF1QixPQUFBO0FBRXZCLHFIQUFBLHdCQUF3QixPQUFBO0FBQ3hCLDRHQUFBLGVBQWUsT0FBQTtBQUdmLHNIQUFBLHlCQUF5QixPQUFBO0FBR3pCLG1HQUFBLE1BQU0sT0FBQTtBQUVOLHNHQUFBLFNBQVMsT0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7XG4gIEFjY291bnRBY2Nlc3NUeXBlLFxuICBBdXRoZW50aWNhdGlvblByb3ZpZGVycyxcbiAgTmV0d29ya0FjY2Vzc0NvbnRyb2wsXG4gIE5vdGlmaWNhdGlvbkRlc3RpbmF0aW9ucyxcbiAgUGVybWlzc2lvblR5cGVzLFxuICBTYW1sQXNzZXJ0aW9uQXR0cmlidXRlcyxcbiAgU2FtbENvbmZpZ3VyYXRpb24sXG4gIFNhbWxDb25maWd1cmF0aW9uU3RhdHVzZXMsXG4gIFNhbWxJZHBNZXRhZGF0YSxcbiAgU2FtbFJvbGVWYWx1ZXMsXG4gIFN0YXR1cyxcbiAgVnBjQ29uZmlndXJhdGlvbixcbiAgV29ya3NwYWNlLFxuICBXb3Jrc3BhY2VQcm9wcyxcbn0gZnJvbSAnLi93b3Jrc3BhY2UnO1xuIl19
|
|
17
|
+
__exportStar(require("./workspace"), exports);
|
|
18
|
+
__exportStar(require("./workspace-base"), exports);
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhDQUE0QjtBQUM1QixtREFBaUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3dvcmtzcGFjZSc7XG5leHBvcnQgKiBmcm9tICcuL3dvcmtzcGFjZS1iYXNlJztcbiJdfQ==
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
import { IResource, Resource } from 'aws-cdk-lib';
|
|
2
|
+
import { IPrefixList, ISecurityGroup, ISubnet, IVpcEndpoint } from 'aws-cdk-lib/aws-ec2';
|
|
3
|
+
import { IRole } from 'aws-cdk-lib/aws-iam';
|
|
4
|
+
/**
|
|
5
|
+
* Specifies whether the workspace can access AWS resources in this AWS account only, or whether it
|
|
6
|
+
* can also access AWS resources in other accounts in the same organization. If this is
|
|
7
|
+
* ORGANIZATION, the OrganizationalUnits parameter specifies which organizational units the
|
|
8
|
+
* workspace can access.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum AccountAccessType {
|
|
11
|
+
/**
|
|
12
|
+
* Access is limited to the current AWS account only.
|
|
13
|
+
*/
|
|
14
|
+
CURRENT_ACCOUNT = "CURRENT_ACCOUNT",
|
|
15
|
+
/**
|
|
16
|
+
* Access is extended to the entire AWS organization.
|
|
17
|
+
*/
|
|
18
|
+
ORGANIZATION = "ORGANIZATION"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center, or both to authenticate
|
|
22
|
+
* users for using the Grafana console within a workspace.
|
|
23
|
+
*
|
|
24
|
+
* @see https://docs.aws.amazon.com/grafana/latest/APIReference/API_CreateWorkspace.html
|
|
25
|
+
*/
|
|
26
|
+
export declare enum AuthenticationProviders {
|
|
27
|
+
/**
|
|
28
|
+
* AWS Single Sign-On authentication provider.
|
|
29
|
+
*/
|
|
30
|
+
AWS_SSO = "AWS_SSO",
|
|
31
|
+
/**
|
|
32
|
+
* Security Assertion Markup Language (SAML) authentication provider.
|
|
33
|
+
*/
|
|
34
|
+
SAML = "SAML"
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The configuration settings for network access to your workspace.
|
|
38
|
+
*/
|
|
39
|
+
export interface NetworkAccessControl {
|
|
40
|
+
/**
|
|
41
|
+
* An array of prefix list IDs. A prefix list is a list of CIDR ranges of IP addresses. The IP
|
|
42
|
+
* addresses specified are allowed to access your workspace. If the list is not included in the
|
|
43
|
+
* configuration (passed an empty array) then no IP addresses are allowed to access the
|
|
44
|
+
* workspace.
|
|
45
|
+
*
|
|
46
|
+
* Maximum of 5 prefix lists allowed.
|
|
47
|
+
*/
|
|
48
|
+
readonly prefixLists?: IPrefixList[];
|
|
49
|
+
/**
|
|
50
|
+
* An array of Amazon VPC endpoint IDs for the workspace. You can create VPC endpoints to your
|
|
51
|
+
* Amazon Managed Grafana workspace for access from within a VPC. If a NetworkAccessConfiguration
|
|
52
|
+
* is specified then only VPC endpoints specified here are allowed to access the workspace. If
|
|
53
|
+
* you pass in an empty array of strings, then no VPCs are allowed to access the workspace.
|
|
54
|
+
*
|
|
55
|
+
* Maximum of 5 VPC endpoints allowed.
|
|
56
|
+
*/
|
|
57
|
+
readonly vpcEndpoints?: IVpcEndpoint[];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and
|
|
61
|
+
* permissions for, to allow Amazon Managed Grafana to use these channels.
|
|
62
|
+
*/
|
|
63
|
+
export declare enum NotificationDestinations {
|
|
64
|
+
/**
|
|
65
|
+
* Amazon Simple Notification Service (SNS) as notification destination.
|
|
66
|
+
*/
|
|
67
|
+
SNS = "SNS"
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* If this is SERVICE_MANAGED, and the workplace was created through the Amazon Managed Grafana
|
|
71
|
+
* console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the
|
|
72
|
+
* permissions that the workspace needs to use AWS data sources and notification channels.
|
|
73
|
+
*
|
|
74
|
+
* If this is CUSTOMER_MANAGED, you must manage those roles and permissions yourself.
|
|
75
|
+
|
|
76
|
+
* If you are working with a workspace in a member account of an organization and that account is
|
|
77
|
+
* not a delegated administrator account, and you want the workspace to access data sources in
|
|
78
|
+
* other AWS accounts in the organization, this parameter must be set to CUSTOMER_MANAGED.
|
|
79
|
+
*/
|
|
80
|
+
export declare enum PermissionTypes {
|
|
81
|
+
/**
|
|
82
|
+
* Customer-managed permissions where you manage user access to Grafana.
|
|
83
|
+
*/
|
|
84
|
+
CUSTOMER_MANAGED = "CUSTOMER_MANAGED",
|
|
85
|
+
/**
|
|
86
|
+
* Service-managed permissions where AWS manages user access to Grafana.
|
|
87
|
+
*/
|
|
88
|
+
SERVICE_MANAGED = "SERVICE_MANAGED"
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A structure that defines which attributes in the IdP assertion are to be used to define
|
|
92
|
+
* information about the users authenticated by the IdP to use the workspace.
|
|
93
|
+
*
|
|
94
|
+
* Each attribute must be a string with length between 1 and 256 characters.
|
|
95
|
+
*/
|
|
96
|
+
export interface SamlAssertionAttributes {
|
|
97
|
+
/**
|
|
98
|
+
* The name of the attribute within the SAML assertion to use as the email names for SAML users.
|
|
99
|
+
*
|
|
100
|
+
* Must be between 1 and 256 characters long.
|
|
101
|
+
*/
|
|
102
|
+
readonly email?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The name of the attribute within the SAML assertion to use as the user full "friendly" names
|
|
105
|
+
* for user groups.
|
|
106
|
+
*
|
|
107
|
+
* Must be between 1 and 256 characters long.
|
|
108
|
+
*/
|
|
109
|
+
readonly groups?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the attribute within the SAML assertion to use as the login names for SAML users.
|
|
112
|
+
*
|
|
113
|
+
* Must be between 1 and 256 characters long.
|
|
114
|
+
*/
|
|
115
|
+
readonly login?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The name of the attribute within the SAML assertion to use as the user full "friendly" names
|
|
118
|
+
* for SAML users.
|
|
119
|
+
*
|
|
120
|
+
* Must be between 1 and 256 characters long.
|
|
121
|
+
*/
|
|
122
|
+
readonly name?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The name of the attribute within the SAML assertion to use as the user full "friendly" names
|
|
125
|
+
* for the users' organizations.
|
|
126
|
+
*
|
|
127
|
+
* Must be between 1 and 256 characters long.
|
|
128
|
+
*/
|
|
129
|
+
readonly org?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the attribute within the SAML assertion to use as the user roles.
|
|
132
|
+
*
|
|
133
|
+
* Must be between 1 and 256 characters long.
|
|
134
|
+
*/
|
|
135
|
+
readonly role?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A structure containing the identity provider (IdP) metadata used to integrate the identity
|
|
139
|
+
* provider with this workspace.
|
|
140
|
+
*/
|
|
141
|
+
export interface SamlIdpMetadata {
|
|
142
|
+
/**
|
|
143
|
+
* The URL of the location containing the IdP metadata.
|
|
144
|
+
*
|
|
145
|
+
* Must be a string with length between 1 and 2048 characters.
|
|
146
|
+
*/
|
|
147
|
+
readonly url?: string;
|
|
148
|
+
/**
|
|
149
|
+
* The full IdP metadata, in XML format.
|
|
150
|
+
*/
|
|
151
|
+
readonly xml?: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* A structure containing arrays that map group names in the SAML assertion to the Grafana Admin
|
|
155
|
+
* and Editor roles in the workspace.
|
|
156
|
+
*/
|
|
157
|
+
export interface SamlRoleValues {
|
|
158
|
+
/**
|
|
159
|
+
* A list of groups from the SAML assertion attribute to grant the Grafana Admin role to.
|
|
160
|
+
*
|
|
161
|
+
* Maximum of 256 elements.
|
|
162
|
+
*/
|
|
163
|
+
readonly admin?: string[];
|
|
164
|
+
/**
|
|
165
|
+
* A list of groups from the SAML assertion attribute to grant the Grafana Editor role to.
|
|
166
|
+
*
|
|
167
|
+
* Maximum of 256 elements.
|
|
168
|
+
*/
|
|
169
|
+
readonly editor?: string[];
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace
|
|
173
|
+
* user information and define which groups in the assertion attribute are to have the Admin and
|
|
174
|
+
* Editor roles in the workspace.
|
|
175
|
+
*/
|
|
176
|
+
export interface SamlConfiguration {
|
|
177
|
+
/**
|
|
178
|
+
* Lists which organizations defined in the SAML assertion are allowed to use the Amazon Managed
|
|
179
|
+
* Grafana workspace. If this is empty, all organizations in the assertion attribute have access.
|
|
180
|
+
*
|
|
181
|
+
* Must have between 1 and 256 elements.
|
|
182
|
+
*/
|
|
183
|
+
readonly allowedOrganizations?: string[];
|
|
184
|
+
/**
|
|
185
|
+
* A structure that defines which attributes in the SAML assertion are to be used to define
|
|
186
|
+
* information about the users authenticated by that IdP to use the workspace.
|
|
187
|
+
*/
|
|
188
|
+
readonly assertionAtrributes?: SamlAssertionAttributes;
|
|
189
|
+
/**
|
|
190
|
+
* A structure containing the identity provider (IdP) metadata used to integrate the identity
|
|
191
|
+
* provider with this workspace.
|
|
192
|
+
*
|
|
193
|
+
* Required field for SAML configuration.
|
|
194
|
+
*/
|
|
195
|
+
readonly idpMetadata: SamlIdpMetadata;
|
|
196
|
+
/**
|
|
197
|
+
* How long a sign-on session by a SAML user is valid, before the user has to sign on again.
|
|
198
|
+
*
|
|
199
|
+
* Must be a positive number.
|
|
200
|
+
*/
|
|
201
|
+
readonly loginValidityDuration?: number;
|
|
202
|
+
/**
|
|
203
|
+
* A structure containing arrays that map group names in the SAML assertion to the Grafana Admin
|
|
204
|
+
* and Editor roles in the workspace.
|
|
205
|
+
*/
|
|
206
|
+
readonly roleValues?: SamlRoleValues;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* The configuration settings for an Amazon VPC that contains data sources for your Grafana
|
|
210
|
+
* workspace to connect to.
|
|
211
|
+
*/
|
|
212
|
+
export interface VpcConfiguration {
|
|
213
|
+
/**
|
|
214
|
+
* The list of Amazon EC2 security groups attached to the Amazon VPC for your Grafana
|
|
215
|
+
* workspace to connect. Duplicates not allowed.
|
|
216
|
+
*
|
|
217
|
+
* Array Members: Minimum number of 1 items. Maximum number of 5 items.
|
|
218
|
+
*
|
|
219
|
+
* Required for VPC configuration.
|
|
220
|
+
*/
|
|
221
|
+
readonly securityGroups: ISecurityGroup[];
|
|
222
|
+
/**
|
|
223
|
+
* The list of Amazon EC2 subnets created in the Amazon VPC for your Grafana workspace to
|
|
224
|
+
* connect. Duplicates not allowed.
|
|
225
|
+
*
|
|
226
|
+
* Array Members: Minimum number of 2 items. Maximum number of 6 items.
|
|
227
|
+
*
|
|
228
|
+
* Required for VPC configuration.
|
|
229
|
+
*/
|
|
230
|
+
readonly subnets: ISubnet[];
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Status of SAML configuration for a Grafana workspace.
|
|
234
|
+
*/
|
|
235
|
+
export declare enum SamlConfigurationStatuses {
|
|
236
|
+
/**
|
|
237
|
+
* SAML is configured for the workspace.
|
|
238
|
+
*/
|
|
239
|
+
CONFIGURED = "CONFIGURED",
|
|
240
|
+
/**
|
|
241
|
+
* SAML is not configured for the workspace.
|
|
242
|
+
*/
|
|
243
|
+
NOT_CONFIGURED = "NOT_CONFIGURED"
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Status of a Grafana workspace.
|
|
247
|
+
*/
|
|
248
|
+
export declare enum Status {
|
|
249
|
+
/**
|
|
250
|
+
* Workspace is active and ready to use.
|
|
251
|
+
*/
|
|
252
|
+
ACTIVE = "ACTIVE",
|
|
253
|
+
/**
|
|
254
|
+
* Workspace is being created.
|
|
255
|
+
*/
|
|
256
|
+
CREATING = "CREATING",
|
|
257
|
+
/**
|
|
258
|
+
* Workspace is being deleted.
|
|
259
|
+
*/
|
|
260
|
+
DELETING = "DELETING",
|
|
261
|
+
/**
|
|
262
|
+
* Workspace operation has failed.
|
|
263
|
+
*/
|
|
264
|
+
FAILED = "FAILED",
|
|
265
|
+
/**
|
|
266
|
+
* Workspace is being updated.
|
|
267
|
+
*/
|
|
268
|
+
UPDATING = "UPDATING",
|
|
269
|
+
/**
|
|
270
|
+
* Workspace is being upgraded.
|
|
271
|
+
*/
|
|
272
|
+
UPGRADING = "UPGRADING",
|
|
273
|
+
/**
|
|
274
|
+
* Workspace deletion has failed.
|
|
275
|
+
*/
|
|
276
|
+
DELETION_FAILED = "DELETION_FAILED",
|
|
277
|
+
/**
|
|
278
|
+
* Workspace creation has failed.
|
|
279
|
+
*/
|
|
280
|
+
CREATION_FAILED = "CREATION_FAILED",
|
|
281
|
+
/**
|
|
282
|
+
* Workspace update has failed.
|
|
283
|
+
*/
|
|
284
|
+
UPDATE_FAILED = "UPDATE_FAILED",
|
|
285
|
+
/**
|
|
286
|
+
* Workspace upgrade has failed.
|
|
287
|
+
*/
|
|
288
|
+
UPGRADE_FAILED = "UPGRADE_FAILED",
|
|
289
|
+
/**
|
|
290
|
+
* License removal has failed.
|
|
291
|
+
*/
|
|
292
|
+
LICENSE_REMOVAL_FAILED = "LICENSE_REMOVAL_FAILED"
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Represents an Amazon Managed Service for Grafana workspace
|
|
296
|
+
*/
|
|
297
|
+
export interface IWorkspace extends IResource {
|
|
298
|
+
/**
|
|
299
|
+
* Specifies whether the workspace can access AWS resources in this AWS account only, or whether
|
|
300
|
+
* it can also access AWS resources in other accounts in the same organization. If this is
|
|
301
|
+
* ORGANIZATION, the OrganizationalUnits parameter specifies which organizational units the
|
|
302
|
+
* workspace can access.
|
|
303
|
+
* @attribute
|
|
304
|
+
*/
|
|
305
|
+
readonly accountAccessType: AccountAccessType;
|
|
306
|
+
/**
|
|
307
|
+
* Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center, or both to
|
|
308
|
+
* authenticate users for using the Grafana console within a workspace.
|
|
309
|
+
* @attribute
|
|
310
|
+
*/
|
|
311
|
+
readonly authenticationProviders: AuthenticationProviders[];
|
|
312
|
+
/**
|
|
313
|
+
* A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
|
314
|
+
* @attribute
|
|
315
|
+
*/
|
|
316
|
+
readonly clientToken?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Specifies the AWS data sources that have been configured to have IAM roles and permissions
|
|
319
|
+
* created to allow Amazon Managed Grafana to read data from these sources.
|
|
320
|
+
*
|
|
321
|
+
* This list is only used when the workspace was created through the AWS console, and the
|
|
322
|
+
* permissionType is SERVICE_MANAGED.
|
|
323
|
+
* @attribute
|
|
324
|
+
*/
|
|
325
|
+
readonly dataSources?: string[];
|
|
326
|
+
/**
|
|
327
|
+
* The user-defined description of the workspace.
|
|
328
|
+
* @attribute
|
|
329
|
+
*/
|
|
330
|
+
readonly description?: string;
|
|
331
|
+
/**
|
|
332
|
+
* The name of the workspace.
|
|
333
|
+
* @attribute
|
|
334
|
+
*/
|
|
335
|
+
readonly name?: string;
|
|
336
|
+
/**
|
|
337
|
+
* The configuration settings for network access to your workspace.
|
|
338
|
+
* @attribute
|
|
339
|
+
*/
|
|
340
|
+
readonly networkAccessControl?: NetworkAccessControl;
|
|
341
|
+
/**
|
|
342
|
+
* The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles
|
|
343
|
+
* and permissions for, to allow Amazon Managed Grafana to use these channels.
|
|
344
|
+
* @attribute
|
|
345
|
+
*/
|
|
346
|
+
readonly notificationDestinations?: NotificationDestinations[];
|
|
347
|
+
/**
|
|
348
|
+
* Specifies the organizational units that this workspace is allowed to use data sources from, if
|
|
349
|
+
* this workspace is in an account that is part of an organization.
|
|
350
|
+
* @attribute
|
|
351
|
+
*/
|
|
352
|
+
readonly organizationalUnits?: string[];
|
|
353
|
+
/**
|
|
354
|
+
* The name of the IAM role that is used to access resources through Organizations.
|
|
355
|
+
* @attribute
|
|
356
|
+
*/
|
|
357
|
+
readonly organizationRoleName?: string;
|
|
358
|
+
/**
|
|
359
|
+
* If this is SERVICE_MANAGED, and the workplace was created through the Amazon Managed Grafana
|
|
360
|
+
* console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the
|
|
361
|
+
* permissions that the workspace needs to use AWS data sources and notification channels.
|
|
362
|
+
*
|
|
363
|
+
* If this is CUSTOMER_MANAGED, you must manage those roles and permissions yourself.
|
|
364
|
+
*
|
|
365
|
+
* If you are working with a workspace in a member account of an organization and that account is
|
|
366
|
+
* not a delegated administrator account, and you want the workspace to access data sources in
|
|
367
|
+
* other AWS accounts in the organization, this parameter must be set to CUSTOMER_MANAGED.
|
|
368
|
+
* @attribute
|
|
369
|
+
*/
|
|
370
|
+
readonly permissionType: PermissionTypes;
|
|
371
|
+
/**
|
|
372
|
+
* Whether plugin administration is enabled in the workspace. Setting to true allows workspace
|
|
373
|
+
* admins to install, uninstall, and update plugins from within the Grafana workspace.
|
|
374
|
+
*
|
|
375
|
+
* This option is only valid for workspaces that support Grafana version 9 or newer.
|
|
376
|
+
* @attribute
|
|
377
|
+
*/
|
|
378
|
+
readonly pluginAdminEnabled?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* The IAM role that grants permissions to the AWS resources that the workspace will view data
|
|
381
|
+
* from.
|
|
382
|
+
* @attribute
|
|
383
|
+
*/
|
|
384
|
+
readonly role?: IRole;
|
|
385
|
+
/**
|
|
386
|
+
* If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace
|
|
387
|
+
* user information and define which groups in the assertion attribute are to have the Admin and
|
|
388
|
+
* Editor roles in the workspace.
|
|
389
|
+
* @attribute
|
|
390
|
+
*/
|
|
391
|
+
readonly samlConfiguration?: SamlConfiguration;
|
|
392
|
+
/**
|
|
393
|
+
* The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for
|
|
394
|
+
* this workspace.
|
|
395
|
+
* @attribute
|
|
396
|
+
*/
|
|
397
|
+
readonly stackSetName?: string;
|
|
398
|
+
/**
|
|
399
|
+
* The configuration settings for an Amazon VPC that contains data sources for your Grafana
|
|
400
|
+
* workspace to connect to.
|
|
401
|
+
* @attribute
|
|
402
|
+
*/
|
|
403
|
+
readonly vpcConfiguration?: VpcConfiguration;
|
|
404
|
+
/**
|
|
405
|
+
* The unique ID of this workspace.
|
|
406
|
+
* @attribute
|
|
407
|
+
*/
|
|
408
|
+
readonly workspaceId: string;
|
|
409
|
+
/**
|
|
410
|
+
* The ARN of this workspace
|
|
411
|
+
* @attribute
|
|
412
|
+
*/
|
|
413
|
+
readonly workspaceArn: string;
|
|
414
|
+
}
|
|
415
|
+
export declare abstract class WorkspaceBase extends Resource implements IWorkspace {
|
|
416
|
+
/**
|
|
417
|
+
* The account access type for the workspace.
|
|
418
|
+
*/
|
|
419
|
+
abstract readonly accountAccessType: AccountAccessType;
|
|
420
|
+
/**
|
|
421
|
+
* The authentication providers for the workspace.
|
|
422
|
+
*/
|
|
423
|
+
abstract readonly authenticationProviders: AuthenticationProviders[];
|
|
424
|
+
/**
|
|
425
|
+
* The client token for the workspace.
|
|
426
|
+
*/
|
|
427
|
+
abstract readonly clientToken?: string;
|
|
428
|
+
/**
|
|
429
|
+
* The data sources of this workspace
|
|
430
|
+
*/
|
|
431
|
+
abstract readonly dataSources?: string[];
|
|
432
|
+
/**
|
|
433
|
+
* The description of this workspace
|
|
434
|
+
*/
|
|
435
|
+
abstract readonly description?: string;
|
|
436
|
+
/**
|
|
437
|
+
* The name of this workspace
|
|
438
|
+
*/
|
|
439
|
+
abstract readonly name?: string;
|
|
440
|
+
/**
|
|
441
|
+
* The configuration settings for network access to your workspace.
|
|
442
|
+
*/
|
|
443
|
+
abstract readonly networkAccessControl?: NetworkAccessControl;
|
|
444
|
+
/**
|
|
445
|
+
* The notification destinations for the workspace.
|
|
446
|
+
*/
|
|
447
|
+
abstract readonly notificationDestinations?: NotificationDestinations[];
|
|
448
|
+
/**
|
|
449
|
+
* Specifies the organizational units that this workspace is allowed to use data sources from, if
|
|
450
|
+
* this workspace is in an account that is part of an organization.
|
|
451
|
+
*/
|
|
452
|
+
abstract readonly organizationalUnits?: string[];
|
|
453
|
+
/**
|
|
454
|
+
* The name of the IAM role that is used to access resources through Organizations.
|
|
455
|
+
*/
|
|
456
|
+
abstract readonly organizationRoleName?: string;
|
|
457
|
+
/**
|
|
458
|
+
* The permission type for the workspace.
|
|
459
|
+
*/
|
|
460
|
+
abstract readonly permissionType: PermissionTypes;
|
|
461
|
+
/**
|
|
462
|
+
* Whether plugin administration is enabled in the workspace. Setting to true allows workspace
|
|
463
|
+
* admins to install, uninstall, and update plugins from within the Grafana workspace.
|
|
464
|
+
*
|
|
465
|
+
* This option is only valid for workspaces that support Grafana version 9 or newer.
|
|
466
|
+
*/
|
|
467
|
+
abstract readonly pluginAdminEnabled?: boolean;
|
|
468
|
+
/**
|
|
469
|
+
* The IAM role that grants permissions to the AWS resources that the workspace will view data
|
|
470
|
+
* from.
|
|
471
|
+
*/
|
|
472
|
+
abstract readonly role?: IRole;
|
|
473
|
+
/**
|
|
474
|
+
* If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace
|
|
475
|
+
* user information and define which groups in the assertion attribute are to have the Admin and
|
|
476
|
+
* Editor roles in the workspace.
|
|
477
|
+
*/
|
|
478
|
+
abstract readonly samlConfiguration?: SamlConfiguration;
|
|
479
|
+
/**
|
|
480
|
+
* The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for
|
|
481
|
+
* this workspace.
|
|
482
|
+
*/
|
|
483
|
+
abstract readonly stackSetName?: string;
|
|
484
|
+
/**
|
|
485
|
+
* The configuration settings for an Amazon VPC that contains data sources for your Grafana
|
|
486
|
+
* workspace to connect to.
|
|
487
|
+
*/
|
|
488
|
+
abstract readonly vpcConfiguration?: VpcConfiguration;
|
|
489
|
+
/**
|
|
490
|
+
* The unique ID of this workspace.
|
|
491
|
+
*/
|
|
492
|
+
abstract readonly workspaceId: string;
|
|
493
|
+
/**
|
|
494
|
+
* The ARN of this workspace
|
|
495
|
+
*/
|
|
496
|
+
abstract readonly workspaceArn: string;
|
|
497
|
+
protected getWorkspaceArn(workspaceId: string): string;
|
|
498
|
+
protected getWorkspaceId(workspaceArn: string): string;
|
|
499
|
+
}
|