Class CfnWorkspace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.grafana.CfnWorkspace
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:44.159Z")
@Stability(Stable)
public class CfnWorkspace
extends CfnResource
implements IInspectable
Specifies a workspace .
In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.grafana.*; CfnWorkspace cfnWorkspace = CfnWorkspace.Builder.create(this, "MyCfnWorkspace") .accountAccessType("accountAccessType") .authenticationProviders(List.of("authenticationProviders")) .permissionType("permissionType") // the properties below are optional .clientToken("clientToken") .dataSources(List.of("dataSources")) .description("description") .grafanaVersion("grafanaVersion") .name("name") .networkAccessControl(NetworkAccessControlProperty.builder() .prefixListIds(List.of("prefixListIds")) .vpceIds(List.of("vpceIds")) .build()) .notificationDestinations(List.of("notificationDestinations")) .organizationalUnits(List.of("organizationalUnits")) .organizationRoleName("organizationRoleName") .pluginAdminEnabled(false) .roleArn("roleArn") .samlConfiguration(SamlConfigurationProperty.builder() .idpMetadata(IdpMetadataProperty.builder() .url("url") .xml("xml") .build()) // the properties below are optional .allowedOrganizations(List.of("allowedOrganizations")) .assertionAttributes(AssertionAttributesProperty.builder() .email("email") .groups("groups") .login("login") .name("name") .org("org") .role("role") .build()) .loginValidityDuration(123) .roleValues(RoleValuesProperty.builder() .admin(List.of("admin")) .editor(List.of("editor")) .build()) .build()) .stackSetName("stackSetName") .vpcConfiguration(VpcConfigurationProperty.builder() .securityGroupIds(List.of("securityGroupIds")) .subnetIds(List.of("subnetIds")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A structure that defines which attributes in the IdP assertion are to be used to define information about the users authenticated by the IdP to use the workspace.static final class
A fluent builder forCfnWorkspace
.static interface
A structure containing the identity provider (IdP) metadata used to integrate the identity provider with this workspace.static interface
The configuration settings for in-bound network access to your workspace.static interface
This structure defines which groups defined in the SAML assertion attribute are to be mapped to the GrafanaAdmin
andEditor
roles in the workspace.static interface
A structure containing information about how this workspace works with SAML.static interface
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnWorkspace
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnWorkspace
(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkspace
(software.constructs.Construct scope, String id, CfnWorkspaceProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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.The date that the workspace was created.The URL that users can use to access the Grafana console in the workspace.Specifies the version of Grafana supported by this workspace.The unique ID of this workspace.The most recent date that the workspace was modified.Specifies whether the workspace's SAML configuration is complete.The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana .The current status of the workspace.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.A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.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.The user-defined description of the workspace.Specifies the version of Grafana to support in the workspace.getName()
The name of the workspace.The configuration settings for network access to your workspace.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.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.The name of the IAM role that is used to access resources through Organizations.If this isSERVICE_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.Whether plugin administration is enabled in the workspace.The IAM role that grants permissions to the AWS resources that the workspace will view data from.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 theAdmin
andEditor
roles in the workspace.The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccountAccessType
(String value) 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.void
setAuthenticationProviders
(List<String> value) 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.void
setClientToken
(String value) A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.void
setDataSources
(List<String> value) 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.void
setDescription
(String value) The user-defined description of the workspace.void
setGrafanaVersion
(String value) Specifies the version of Grafana to support in the workspace.void
The name of the workspace.void
The configuration settings for network access to your workspace.void
The configuration settings for network access to your workspace.void
setNotificationDestinations
(List<String> value) 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.void
setOrganizationalUnits
(List<String> value) 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.void
setOrganizationRoleName
(String value) The name of the IAM role that is used to access resources through Organizations.void
setPermissionType
(String value) If this isSERVICE_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.void
setPluginAdminEnabled
(Boolean value) Whether plugin administration is enabled in the workspace.void
setPluginAdminEnabled
(IResolvable value) Whether plugin administration is enabled in the workspace.void
setRoleArn
(String value) The IAM role that grants permissions to the AWS resources that the workspace will view data from.void
setSamlConfiguration
(IResolvable value) 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 theAdmin
andEditor
roles in the workspace.void
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 theAdmin
andEditor
roles in the workspace.void
setStackSetName
(String value) The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.void
setVpcConfiguration
(IResolvable value) The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.void
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorkspace
protected CfnWorkspace(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkspace
protected CfnWorkspace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkspace
@Stability(Stable) public CfnWorkspace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkspaceProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreationTimestamp
The date that the workspace was created.Type: Timestamp
-
getAttrEndpoint
The URL that users can use to access the Grafana console in the workspace.Type: String
-
getAttrGrafanaVersion
Specifies the version of Grafana supported by this workspace.Type: String
-
getAttrId
The unique ID of this workspace.Type: String
-
getAttrModificationTimestamp
The most recent date that the workspace was modified.Type: Timestamp
-
getAttrSamlConfigurationStatus
Specifies whether the workspace's SAML configuration is complete.Valid values:
CONFIGURED | NOT_CONFIGURED
Type: String
-
getAttrSsoClientId
The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana .Type: String
-
getAttrStatus
The current status of the workspace.Valid values:
ACTIVE | CREATING | DELETING | FAILED | UPDATING | UPGRADING | DELETION_FAILED | CREATION_FAILED | UPDATE_FAILED | UPGRADE_FAILED | LICENSE_REMOVAL_FAILED
Type: String
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAccountAccessType
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. -
setAccountAccessType
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. -
getAuthenticationProviders
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. For more information, see User authentication in Amazon Managed Grafana . -
setAuthenticationProviders
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. For more information, see User authentication in Amazon Managed Grafana . -
getPermissionType
If this isSERVICE_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. -
setPermissionType
If this isSERVICE_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. -
getClientToken
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. -
setClientToken
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. -
getDataSources
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. -
setDataSources
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. -
getDescription
The user-defined description of the workspace. -
setDescription
The user-defined description of the workspace. -
getGrafanaVersion
Specifies the version of Grafana to support in the workspace. -
setGrafanaVersion
Specifies the version of Grafana to support in the workspace. -
getName
The name of the workspace. -
setName
The name of the workspace. -
getNetworkAccessControl
The configuration settings for network access to your workspace. -
setNetworkAccessControl
The configuration settings for network access to your workspace. -
setNetworkAccessControl
@Stability(Stable) public void setNetworkAccessControl(@Nullable CfnWorkspace.NetworkAccessControlProperty value) The configuration settings for network access to your workspace. -
getNotificationDestinations
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. -
setNotificationDestinations
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. -
getOrganizationalUnits
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. -
setOrganizationalUnits
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. -
getOrganizationRoleName
The name of the IAM role that is used to access resources through Organizations. -
setOrganizationRoleName
The name of the IAM role that is used to access resources through Organizations. -
getPluginAdminEnabled
Whether plugin administration is enabled in the workspace. -
setPluginAdminEnabled
Whether plugin administration is enabled in the workspace. -
setPluginAdminEnabled
Whether plugin administration is enabled in the workspace. -
getRoleArn
The IAM role that grants permissions to the AWS resources that the workspace will view data from. -
setRoleArn
The IAM role that grants permissions to the AWS resources that the workspace will view data from. -
getSamlConfiguration
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 theAdmin
andEditor
roles in the workspace. -
setSamlConfiguration
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 theAdmin
andEditor
roles in the workspace. -
setSamlConfiguration
@Stability(Stable) public void setSamlConfiguration(@Nullable CfnWorkspace.SamlConfigurationProperty value) 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 theAdmin
andEditor
roles in the workspace. -
getStackSetName
The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace. -
setStackSetName
The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace. -
getVpcConfiguration
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. -
setVpcConfiguration
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. -
setVpcConfiguration
@Stability(Stable) public void setVpcConfiguration(@Nullable CfnWorkspace.VpcConfigurationProperty value) The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
-