Class CfnWorkspaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspaceMixinProps>
- Enclosing interface:
CfnWorkspaceMixinProps
CfnWorkspaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountAccessType(String accountAccessType) Sets the value ofCfnWorkspaceMixinProps.getAccountAccessType()authenticationProviders(List<String> authenticationProviders) Sets the value ofCfnWorkspaceMixinProps.getAuthenticationProviders()build()Builds the configured instance.clientToken(String clientToken) Sets the value ofCfnWorkspaceMixinProps.getClientToken()dataSources(List<String> dataSources) Sets the value ofCfnWorkspaceMixinProps.getDataSources()description(String description) Sets the value ofCfnWorkspaceMixinProps.getDescription()grafanaVersion(String grafanaVersion) Sets the value ofCfnWorkspaceMixinProps.getGrafanaVersion()Sets the value ofCfnWorkspaceMixinProps.getName()networkAccessControl(CfnWorkspacePropsMixin.NetworkAccessControlProperty networkAccessControl) Sets the value ofCfnWorkspaceMixinProps.getNetworkAccessControl()networkAccessControl(IResolvable networkAccessControl) Sets the value ofCfnWorkspaceMixinProps.getNetworkAccessControl()notificationDestinations(List<String> notificationDestinations) Sets the value ofCfnWorkspaceMixinProps.getNotificationDestinations()organizationalUnits(List<String> organizationalUnits) Sets the value ofCfnWorkspaceMixinProps.getOrganizationalUnits()organizationRoleName(String organizationRoleName) Sets the value ofCfnWorkspaceMixinProps.getOrganizationRoleName()permissionType(String permissionType) Sets the value ofCfnWorkspaceMixinProps.getPermissionType()pluginAdminEnabled(Boolean pluginAdminEnabled) Sets the value ofCfnWorkspaceMixinProps.getPluginAdminEnabled()pluginAdminEnabled(IResolvable pluginAdminEnabled) Sets the value ofCfnWorkspaceMixinProps.getPluginAdminEnabled()Sets the value ofCfnWorkspaceMixinProps.getRoleArn()Sets the value ofCfnWorkspaceMixinProps.getRoleArn()samlConfiguration(CfnWorkspacePropsMixin.SamlConfigurationProperty samlConfiguration) Sets the value ofCfnWorkspaceMixinProps.getSamlConfiguration()samlConfiguration(IResolvable samlConfiguration) Sets the value ofCfnWorkspaceMixinProps.getSamlConfiguration()stackSetName(String stackSetName) Sets the value ofCfnWorkspaceMixinProps.getStackSetName()vpcConfiguration(CfnWorkspacePropsMixin.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnWorkspaceMixinProps.getVpcConfiguration()vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnWorkspaceMixinProps.getVpcConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountAccessType
@Stability(Stable) public CfnWorkspaceMixinProps.Builder accountAccessType(String accountAccessType) Sets the value ofCfnWorkspaceMixinProps.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. If this isORGANIZATION, theOrganizationalUnitsparameter specifies which organizational units the workspace can access.- Returns:
this
-
authenticationProviders
@Stability(Stable) public CfnWorkspaceMixinProps.Builder authenticationProviders(List<String> authenticationProviders) Sets the value ofCfnWorkspaceMixinProps.getAuthenticationProviders()- Parameters:
authenticationProviders- Specifies whether this workspace uses SAML 2.0, SSOlong , or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana . Allowed Values :AWS_SSO | SAML- Returns:
this
-
clientToken
Sets the value ofCfnWorkspaceMixinProps.getClientToken()- Parameters:
clientToken- A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.- Returns:
this
-
dataSources
Sets the value ofCfnWorkspaceMixinProps.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 thepermissionTypeisSERVICE_MANAGED.- Returns:
this
-
description
Sets the value ofCfnWorkspaceMixinProps.getDescription()- Parameters:
description- The user-defined description of the workspace.- Returns:
this
-
grafanaVersion
Sets the value ofCfnWorkspaceMixinProps.getGrafanaVersion()- Parameters:
grafanaVersion- Specifies the version of Grafana to support in the workspace. Defaults to the latest version on create (for example, 9.4), or the current version of the workspace on update.Can only be used to upgrade (for example, from 8.4 to 9.4), not downgrade (for example, from 9.4 to 8.4).
To know what versions are available to upgrade to for a specific workspace, see the ListVersions operation.
- Returns:
this
-
name
Sets the value ofCfnWorkspaceMixinProps.getName()- Parameters:
name- The name of the workspace.- Returns:
this
-
networkAccessControl
@Stability(Stable) public CfnWorkspaceMixinProps.Builder networkAccessControl(IResolvable networkAccessControl) Sets the value ofCfnWorkspaceMixinProps.getNetworkAccessControl()- Parameters:
networkAccessControl- The configuration settings for network access to your workspace.- Returns:
this
-
networkAccessControl
@Stability(Stable) public CfnWorkspaceMixinProps.Builder networkAccessControl(CfnWorkspacePropsMixin.NetworkAccessControlProperty networkAccessControl) Sets the value ofCfnWorkspaceMixinProps.getNetworkAccessControl()- Parameters:
networkAccessControl- The configuration settings for network access to your workspace.- Returns:
this
-
notificationDestinations
@Stability(Stable) public CfnWorkspaceMixinProps.Builder notificationDestinations(List<String> notificationDestinations) Sets the value ofCfnWorkspaceMixinProps.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. AllowedValues :SNS- Returns:
this
-
organizationalUnits
@Stability(Stable) public CfnWorkspaceMixinProps.Builder organizationalUnits(List<String> organizationalUnits) Sets the value ofCfnWorkspaceMixinProps.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 CfnWorkspaceMixinProps.Builder organizationRoleName(String organizationRoleName) Sets the value ofCfnWorkspaceMixinProps.getOrganizationRoleName()- Parameters:
organizationRoleName- The name of the IAM role that is used to access resources through Organizations.- Returns:
this
-
permissionType
Sets the value ofCfnWorkspaceMixinProps.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. 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
-
pluginAdminEnabled
@Stability(Stable) public CfnWorkspaceMixinProps.Builder pluginAdminEnabled(Boolean pluginAdminEnabled) Sets the value ofCfnWorkspaceMixinProps.getPluginAdminEnabled()- Parameters:
pluginAdminEnabled- Whether plugin administration is enabled in the workspace. Setting totrueallows workspace admins to install, uninstall, and update plugins from within the Grafana workspace.This option is only valid for workspaces that support Grafana version 9 or newer.
- Returns:
this
-
pluginAdminEnabled
@Stability(Stable) public CfnWorkspaceMixinProps.Builder pluginAdminEnabled(IResolvable pluginAdminEnabled) Sets the value ofCfnWorkspaceMixinProps.getPluginAdminEnabled()- Parameters:
pluginAdminEnabled- Whether plugin administration is enabled in the workspace. Setting totrueallows workspace admins to install, uninstall, and update plugins from within the Grafana workspace.This option is only valid for workspaces that support Grafana version 9 or newer.
- Returns:
this
-
roleArn
Sets the value ofCfnWorkspaceMixinProps.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
-
roleArn
Sets the value ofCfnWorkspaceMixinProps.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 CfnWorkspaceMixinProps.Builder samlConfiguration(IResolvable samlConfiguration) Sets the value ofCfnWorkspaceMixinProps.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 theAdminandEditorroles in the workspace.- Returns:
this
-
samlConfiguration
@Stability(Stable) public CfnWorkspaceMixinProps.Builder samlConfiguration(CfnWorkspacePropsMixin.SamlConfigurationProperty samlConfiguration) Sets the value ofCfnWorkspaceMixinProps.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 theAdminandEditorroles in the workspace.- Returns:
this
-
stackSetName
Sets the value ofCfnWorkspaceMixinProps.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
@Stability(Stable) public CfnWorkspaceMixinProps.Builder vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnWorkspaceMixinProps.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 CfnWorkspaceMixinProps.Builder vpcConfiguration(CfnWorkspacePropsMixin.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnWorkspaceMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspaceMixinProps>- Returns:
- a new instance of
CfnWorkspaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-