Class CfnWorkspace
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IWorkspaceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA 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 classA fluent builder forCfnWorkspace.static interfaceA structure containing the identity provider (IdP) metadata used to integrate the identity provider with this workspace.static interfaceThe configuration settings for in-bound network access to your workspace.static interfaceThis structure defines which groups defined in the SAML assertion attribute are to be mapped to the GrafanaAdminandEditorroles in the workspace.static interfaceA structure containing information about how this workspace works with SAML.static interfaceThe 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.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.grafana.IWorkspaceRef
IWorkspaceRef.Jsii$Default, IWorkspaceRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkspace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkspace(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 theAdminandEditorroles 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.A reference to a Workspace resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccountAccessType(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.voidsetAuthenticationProviders(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.voidsetClientToken(String value) A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.voidsetDataSources(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.voidsetDescription(String value) The user-defined description of the workspace.voidsetGrafanaVersion(String value) Specifies the version of Grafana to support in the workspace.voidThe name of the workspace.voidThe configuration settings for network access to your workspace.voidThe configuration settings for network access to your workspace.voidsetNotificationDestinations(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.voidsetOrganizationalUnits(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.voidsetOrganizationRoleName(String value) The name of the IAM role that is used to access resources through Organizations.voidsetPermissionType(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.voidsetPluginAdminEnabled(Boolean value) Whether plugin administration is enabled in the workspace.voidsetPluginAdminEnabled(IResolvable value) Whether plugin administration is enabled in the workspace.voidsetRoleArn(String value) The IAM role that grants permissions to the AWS resources that the workspace will view data from.voidsetSamlConfiguration(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 theAdminandEditorroles in the workspace.voidIf 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 theAdminandEditorroles in the workspace.voidsetStackSetName(String value) The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.voidsetVpcConfiguration(IResolvable value) The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.voidThe 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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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:
inspectin 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:
renderPropertiesin 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_CONFIGUREDType: 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_FAILEDType: String
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getWorkspaceRef
A reference to a Workspace resource.- Specified by:
getWorkspaceRefin interfaceIWorkspaceRef
-
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.Returns union: either
IResolvableorCfnWorkspace.NetworkAccessControlProperty -
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.Returns union: either
BooleanorIResolvable -
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 theAdminandEditorroles in the workspace.Returns union: either
IResolvableorCfnWorkspace.SamlConfigurationProperty -
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 theAdminandEditorroles 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 theAdminandEditorroles 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.Returns union: either
IResolvableorCfnWorkspace.VpcConfigurationProperty -
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.
-