Class CfnWorkspace

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:02.697Z") @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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreationTimestamp

      @Stability(Stable) @NotNull public String getAttrCreationTimestamp()
      The date that the workspace was created.

      Type: Timestamp

    • getAttrEndpoint

      @Stability(Stable) @NotNull public String getAttrEndpoint()
      The URL that users can use to access the Grafana console in the workspace.

      Type: String

    • getAttrGrafanaVersion

      @Stability(Stable) @NotNull public String getAttrGrafanaVersion()
      Specifies the version of Grafana supported by this workspace.

      Type: String

    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The unique ID of this workspace.

      Type: String

    • getAttrModificationTimestamp

      @Stability(Stable) @NotNull public String getAttrModificationTimestamp()
      The most recent date that the workspace was modified.

      Type: Timestamp

    • getAttrSamlConfigurationStatus

      @Stability(Stable) @NotNull public String getAttrSamlConfigurationStatus()
      Specifies whether the workspace's SAML configuration is complete.

      Valid values: CONFIGURED | NOT_CONFIGURED

      Type: String

    • getAttrSsoClientId

      @Stability(Stable) @NotNull public String getAttrSsoClientId()
      The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana .

      Type: String

    • getAttrStatus

      @Stability(Stable) @NotNull public 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

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getAccountAccessType

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) public void setAccountAccessType(@NotNull 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.
    • getAuthenticationProviders

      @Stability(Stable) @NotNull public List<String> 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

      @Stability(Stable) public void setAuthenticationProviders(@NotNull 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. For more information, see User authentication in Amazon Managed Grafana .
    • getPermissionType

      @Stability(Stable) @NotNull public String getPermissionType()
      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.
    • setPermissionType

      @Stability(Stable) public void setPermissionType(@NotNull String value)
      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.
    • getClientToken

      @Stability(Stable) @Nullable public String getClientToken()
      A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
    • setClientToken

      @Stability(Stable) public void setClientToken(@Nullable String value)
      A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
    • getDataSources

      @Stability(Stable) @Nullable public List<String> 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

      @Stability(Stable) public void setDataSources(@Nullable 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.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The user-defined description of the workspace.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The user-defined description of the workspace.
    • getGrafanaVersion

      @Stability(Stable) @Nullable public String getGrafanaVersion()
      Specifies the version of Grafana to support in the workspace.
    • setGrafanaVersion

      @Stability(Stable) public void setGrafanaVersion(@Nullable String value)
      Specifies the version of Grafana to support in the workspace.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the workspace.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the workspace.
    • getNetworkAccessControl

      @Stability(Stable) @Nullable public Object getNetworkAccessControl()
      The configuration settings for network access to your workspace.
    • setNetworkAccessControl

      @Stability(Stable) public void setNetworkAccessControl(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public List<String> 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

      @Stability(Stable) public void setNotificationDestinations(@Nullable 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.
    • getOrganizationalUnits

      @Stability(Stable) @Nullable public List<String> 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

      @Stability(Stable) public void setOrganizationalUnits(@Nullable 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.
    • getOrganizationRoleName

      @Stability(Stable) @Nullable public String getOrganizationRoleName()
      The name of the IAM role that is used to access resources through Organizations.
    • setOrganizationRoleName

      @Stability(Stable) public void setOrganizationRoleName(@Nullable String value)
      The name of the IAM role that is used to access resources through Organizations.
    • getPluginAdminEnabled

      @Stability(Stable) @Nullable public Object getPluginAdminEnabled()
      Whether plugin administration is enabled in the workspace.
    • setPluginAdminEnabled

      @Stability(Stable) public void setPluginAdminEnabled(@Nullable Boolean value)
      Whether plugin administration is enabled in the workspace.
    • setPluginAdminEnabled

      @Stability(Stable) public void setPluginAdminEnabled(@Nullable IResolvable value)
      Whether plugin administration is enabled in the workspace.
    • getRoleArn

      @Stability(Stable) @Nullable public String getRoleArn()
      The IAM role that grants permissions to the AWS resources that the workspace will view data from.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@Nullable String value)
      The IAM role that grants permissions to the AWS resources that the workspace will view data from.
    • getSamlConfiguration

      @Stability(Stable) @Nullable public Object 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 the Admin and Editor roles in the workspace.
    • setSamlConfiguration

      @Stability(Stable) public void setSamlConfiguration(@Nullable 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 the Admin and Editor 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 the Admin and Editor roles in the workspace.
    • getStackSetName

      @Stability(Stable) @Nullable public String getStackSetName()
      The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
    • setStackSetName

      @Stability(Stable) public void setStackSetName(@Nullable String value)
      The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
    • getVpcConfiguration

      @Stability(Stable) @Nullable public Object getVpcConfiguration()
      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 IResolvable value)
      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.