Class CfnWorkspaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceProps>
- Enclosing interface:
- CfnWorkspaceProps
CfnWorkspaceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccountAccessType
(String accountAccessType) Sets the value ofCfnWorkspaceProps.getAccountAccessType()
authenticationProviders
(List<String> authenticationProviders) Sets the value ofCfnWorkspaceProps.getAuthenticationProviders()
build()
Builds the configured instance.clientToken
(String clientToken) Sets the value ofCfnWorkspaceProps.getClientToken()
dataSources
(List<String> dataSources) Sets the value ofCfnWorkspaceProps.getDataSources()
description
(String description) Sets the value ofCfnWorkspaceProps.getDescription()
grafanaVersion
(String grafanaVersion) Sets the value ofCfnWorkspaceProps.getGrafanaVersion()
Sets the value ofCfnWorkspaceProps.getName()
networkAccessControl
(IResolvable networkAccessControl) Sets the value ofCfnWorkspaceProps.getNetworkAccessControl()
networkAccessControl
(CfnWorkspace.NetworkAccessControlProperty networkAccessControl) Sets the value ofCfnWorkspaceProps.getNetworkAccessControl()
notificationDestinations
(List<String> notificationDestinations) Sets the value ofCfnWorkspaceProps.getNotificationDestinations()
organizationalUnits
(List<String> organizationalUnits) Sets the value ofCfnWorkspaceProps.getOrganizationalUnits()
organizationRoleName
(String organizationRoleName) Sets the value ofCfnWorkspaceProps.getOrganizationRoleName()
permissionType
(String permissionType) Sets the value ofCfnWorkspaceProps.getPermissionType()
Sets the value ofCfnWorkspaceProps.getRoleArn()
samlConfiguration
(IResolvable samlConfiguration) Sets the value ofCfnWorkspaceProps.getSamlConfiguration()
samlConfiguration
(CfnWorkspace.SamlConfigurationProperty samlConfiguration) Sets the value ofCfnWorkspaceProps.getSamlConfiguration()
stackSetName
(String stackSetName) Sets the value ofCfnWorkspaceProps.getStackSetName()
vpcConfiguration
(IResolvable vpcConfiguration) Sets the value ofCfnWorkspaceProps.getVpcConfiguration()
vpcConfiguration
(CfnWorkspace.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnWorkspaceProps.getVpcConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountAccessType
Sets the value ofCfnWorkspaceProps.getAccountAccessType()
- Parameters:
accountAccessType
- 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. This parameter is required. If this isORGANIZATION
, theOrganizationalUnits
parameter specifies which organizational units the workspace can access.- Returns:
this
-
authenticationProviders
@Stability(Stable) public CfnWorkspaceProps.Builder authenticationProviders(List<String> authenticationProviders) Sets the value ofCfnWorkspaceProps.getAuthenticationProviders()
- Parameters:
authenticationProviders
- Specifies whether this workspace uses SAML 2.0, AWS IAM Identity Center (successor to AWS Single Sign-On) , or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana . This parameter is required.- Returns:
this
-
permissionType
Sets the value ofCfnWorkspaceProps.getPermissionType()
- Parameters:
permissionType
- 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. This parameter is required. If this isCUSTOMER_MANAGED
, you must manage those roles and permissions yourself.If you are working with a workspace in a member account of an organization and that account is not a delegated administrator account, and you want the workspace to access data sources in other AWS accounts in the organization, this parameter must be set to
CUSTOMER_MANAGED
.For more information about converting between customer and service managed, see Managing permissions for data sources and notification channels . For more information about the roles and permissions that must be managed for customer managed workspaces, see Amazon Managed Grafana permissions and policies for AWS data sources and notification channels
- Returns:
this
-
clientToken
Sets the value ofCfnWorkspaceProps.getClientToken()
- Parameters:
clientToken
- A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.- Returns:
this
-
dataSources
Sets the value ofCfnWorkspaceProps.getDataSources()
- Parameters:
dataSources
- 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. This list is only used when the workspace was created through the AWS console, and thepermissionType
isSERVICE_MANAGED
.- Returns:
this
-
description
Sets the value ofCfnWorkspaceProps.getDescription()
- Parameters:
description
- The user-defined description of the workspace.- Returns:
this
-
grafanaVersion
Sets the value ofCfnWorkspaceProps.getGrafanaVersion()
- Parameters:
grafanaVersion
- Specifies the version of Grafana to support in the new workspace. Supported values are8.4
and9.4
.- Returns:
this
-
name
Sets the value ofCfnWorkspaceProps.getName()
- Parameters:
name
- The name of the workspace.- Returns:
this
-
networkAccessControl
@Stability(Stable) public CfnWorkspaceProps.Builder networkAccessControl(CfnWorkspace.NetworkAccessControlProperty networkAccessControl) Sets the value ofCfnWorkspaceProps.getNetworkAccessControl()
- Parameters:
networkAccessControl
- The configuration settings for network access to your workspace.- Returns:
this
-
networkAccessControl
@Stability(Stable) public CfnWorkspaceProps.Builder networkAccessControl(IResolvable networkAccessControl) Sets the value ofCfnWorkspaceProps.getNetworkAccessControl()
- Parameters:
networkAccessControl
- The configuration settings for network access to your workspace.- Returns:
this
-
notificationDestinations
@Stability(Stable) public CfnWorkspaceProps.Builder notificationDestinations(List<String> notificationDestinations) Sets the value ofCfnWorkspaceProps.getNotificationDestinations()
- Parameters:
notificationDestinations
- 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.- Returns:
this
-
organizationalUnits
@Stability(Stable) public CfnWorkspaceProps.Builder organizationalUnits(List<String> organizationalUnits) Sets the value ofCfnWorkspaceProps.getOrganizationalUnits()
- Parameters:
organizationalUnits
- 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.- Returns:
this
-
organizationRoleName
@Stability(Stable) public CfnWorkspaceProps.Builder organizationRoleName(String organizationRoleName) Sets the value ofCfnWorkspaceProps.getOrganizationRoleName()
- Parameters:
organizationRoleName
- The name of the IAM role that is used to access resources through Organizations .- Returns:
this
-
roleArn
Sets the value ofCfnWorkspaceProps.getRoleArn()
- Parameters:
roleArn
- The IAM role that grants permissions to the AWS resources that the workspace will view data from. This role must already exist.- Returns:
this
-
samlConfiguration
@Stability(Stable) public CfnWorkspaceProps.Builder samlConfiguration(IResolvable samlConfiguration) Sets the value ofCfnWorkspaceProps.getSamlConfiguration()
- Parameters:
samlConfiguration
- 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.- Returns:
this
-
samlConfiguration
@Stability(Stable) public CfnWorkspaceProps.Builder samlConfiguration(CfnWorkspace.SamlConfigurationProperty samlConfiguration) Sets the value ofCfnWorkspaceProps.getSamlConfiguration()
- Parameters:
samlConfiguration
- 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.- Returns:
this
-
stackSetName
Sets the value ofCfnWorkspaceProps.getStackSetName()
- Parameters:
stackSetName
- The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.- Returns:
this
-
vpcConfiguration
Sets the value ofCfnWorkspaceProps.getVpcConfiguration()
- Parameters:
vpcConfiguration
- The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).
- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnWorkspaceProps.Builder vpcConfiguration(CfnWorkspace.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnWorkspaceProps.getVpcConfiguration()
- Parameters:
vpcConfiguration
- The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkspaceProps>
- Returns:
- a new instance of
CfnWorkspaceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-