@robhan-cdk-lib/aws_grafana 0.0.65 → 0.0.67
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 +92 -66
- package/lib/validation/workspace-base.d.ts +121 -0
- package/lib/validation/workspace-base.js +427 -0
- package/lib/workspace-base.js +1 -1
- package/lib/workspace.d.ts +0 -121
- package/lib/workspace.js +15 -406
- package/package.json +4 -1
package/lib/workspace.d.ts
CHANGED
|
@@ -238,127 +238,6 @@ export interface WorkspaceAttributes {
|
|
|
238
238
|
*/
|
|
239
239
|
export declare class Workspace extends WorkspaceBase {
|
|
240
240
|
static fromWorkspaceAttributes(scope: Construct, id: string, attrs: WorkspaceAttributes): IWorkspace;
|
|
241
|
-
/**
|
|
242
|
-
* Validates the clientToken property.
|
|
243
|
-
*
|
|
244
|
-
* @param token - The client token to validate
|
|
245
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
246
|
-
*
|
|
247
|
-
* Validation rules:
|
|
248
|
-
* - Must be a string
|
|
249
|
-
* - Must be between 1 and 64 characters long
|
|
250
|
-
* - Must contain only printable ASCII characters
|
|
251
|
-
*/
|
|
252
|
-
private static validateClientToken;
|
|
253
|
-
/**
|
|
254
|
-
* Validates the description property.
|
|
255
|
-
*
|
|
256
|
-
* @param description - The description to validate
|
|
257
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
258
|
-
*
|
|
259
|
-
* Validation rules:
|
|
260
|
-
* - Must be a string
|
|
261
|
-
* - Maximum length of 2048 characters
|
|
262
|
-
*/
|
|
263
|
-
private static validateDescription;
|
|
264
|
-
/**
|
|
265
|
-
* Validates the grafanaVersion property.
|
|
266
|
-
*
|
|
267
|
-
* @param version - The Grafana version to validate
|
|
268
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
269
|
-
*
|
|
270
|
-
* Validation rules:
|
|
271
|
-
* - Must be a string
|
|
272
|
-
* - Must be between 1 and 255 characters long
|
|
273
|
-
*/
|
|
274
|
-
private static validateGrafanaVersion;
|
|
275
|
-
/**
|
|
276
|
-
* Validates the name property.
|
|
277
|
-
*
|
|
278
|
-
* @param name - The workspace name to validate
|
|
279
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
280
|
-
*
|
|
281
|
-
* Validation rules:
|
|
282
|
-
* - Must be a string
|
|
283
|
-
* - Must be between 1 and 255 characters long
|
|
284
|
-
* - Can only contain alphanumeric characters, hyphens, dots, underscores, and tildes
|
|
285
|
-
*/
|
|
286
|
-
private static validateName;
|
|
287
|
-
/**
|
|
288
|
-
* Validates the networkAccessControl property.
|
|
289
|
-
*
|
|
290
|
-
* @param nac - The network access control configuration to validate
|
|
291
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
292
|
-
*
|
|
293
|
-
* Validation rules:
|
|
294
|
-
* - Must be an object
|
|
295
|
-
* - prefixLists (if present) must be an array with at most 5 items
|
|
296
|
-
* - vpcEndpoints (if present) must be an array with at most 5 items
|
|
297
|
-
*/
|
|
298
|
-
private static validateNetworkAccessControl;
|
|
299
|
-
/**
|
|
300
|
-
* Validates the organizationRoleName property.
|
|
301
|
-
*
|
|
302
|
-
* @param roleName - The organization role name to validate
|
|
303
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
304
|
-
*
|
|
305
|
-
* Validation rules:
|
|
306
|
-
* - Must be a string
|
|
307
|
-
* - Must be between 1 and 2048 characters long
|
|
308
|
-
*/
|
|
309
|
-
private static validateOrganizationRoleName;
|
|
310
|
-
/**
|
|
311
|
-
* Validates the SAML assertion attributes.
|
|
312
|
-
*
|
|
313
|
-
* @param obj - The SAML assertion attributes to validate
|
|
314
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
315
|
-
*
|
|
316
|
-
* Validation rules:
|
|
317
|
-
* - Must be an object
|
|
318
|
-
* - Each attribute must be a string
|
|
319
|
-
* - Each attribute must be between 1 and 256 characters long
|
|
320
|
-
* - Valid attribute keys are: 'email', 'groups', 'login', 'name', 'org', 'role'
|
|
321
|
-
*/
|
|
322
|
-
private static validateSamlAssertionAttributes;
|
|
323
|
-
/**
|
|
324
|
-
* Validates the SAML IdP metadata.
|
|
325
|
-
*
|
|
326
|
-
* @param obj - The SAML IdP metadata to validate
|
|
327
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
328
|
-
*
|
|
329
|
-
* Validation rules:
|
|
330
|
-
* - Must be an object
|
|
331
|
-
* - url (if present) must be a string between 1 and 2048 characters long
|
|
332
|
-
* - xml (if present) must be a string
|
|
333
|
-
*/
|
|
334
|
-
private static validateSamlIdpMetadata;
|
|
335
|
-
/**
|
|
336
|
-
* Validates the SAML configuration.
|
|
337
|
-
*
|
|
338
|
-
* @param config - The SAML configuration to validate
|
|
339
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
340
|
-
*
|
|
341
|
-
* Validation rules:
|
|
342
|
-
* - Must be an object
|
|
343
|
-
* - idpMetadata is required and must be valid
|
|
344
|
-
* - assertionAtrributes (if present) must be valid
|
|
345
|
-
* - allowedOrganizations (if present) must be an array of strings with 1-256 elements
|
|
346
|
-
* - loginValidityDuration (if present) must be a positive number
|
|
347
|
-
* - roleValues (if present) must be an object with valid admin and editor arrays
|
|
348
|
-
*/
|
|
349
|
-
private static validateSamlConfiguration;
|
|
350
|
-
/**
|
|
351
|
-
* Validates the vpcConfiguration property.
|
|
352
|
-
*
|
|
353
|
-
* @param config - The VPC configuration to validate
|
|
354
|
-
* @returns An array of error messages if validation fails, or an empty array if valid
|
|
355
|
-
*
|
|
356
|
-
* Validation rules:
|
|
357
|
-
* - Must be an object
|
|
358
|
-
* - securityGroups is required and must be an array with 1-5 items
|
|
359
|
-
* - subnets is required and must be an array with 2-6 items
|
|
360
|
-
*/
|
|
361
|
-
private static validateVpcConfiguration;
|
|
362
241
|
/**
|
|
363
242
|
* Validates all workspace properties.
|
|
364
243
|
*
|