Class CfnWorkspace.SamlConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.grafana.CfnWorkspace.SamlConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspace.SamlConfigurationProperty>
- Enclosing interface:
- CfnWorkspace.SamlConfigurationProperty
@Stability(Stable)
public static final class CfnWorkspace.SamlConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspace.SamlConfigurationProperty>
A builder for
CfnWorkspace.SamlConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedOrganizations(List<String> allowedOrganizations) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getAllowedOrganizations()assertionAttributes(IResolvable assertionAttributes) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getAssertionAttributes()assertionAttributes(CfnWorkspace.AssertionAttributesProperty assertionAttributes) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getAssertionAttributes()build()Builds the configured instance.idpMetadata(IResolvable idpMetadata) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getIdpMetadata()idpMetadata(CfnWorkspace.IdpMetadataProperty idpMetadata) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getIdpMetadata()loginValidityDuration(Number loginValidityDuration) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getLoginValidityDuration()roleValues(IResolvable roleValues) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getRoleValues()roleValues(CfnWorkspace.RoleValuesProperty roleValues) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getRoleValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idpMetadata
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder idpMetadata(IResolvable idpMetadata) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getIdpMetadata()- Parameters:
idpMetadata- A structure containing the identity provider (IdP) metadata used to integrate the identity provider with this workspace. This parameter is required.- Returns:
this
-
idpMetadata
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder idpMetadata(CfnWorkspace.IdpMetadataProperty idpMetadata) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getIdpMetadata()- Parameters:
idpMetadata- A structure containing the identity provider (IdP) metadata used to integrate the identity provider with this workspace. This parameter is required.- Returns:
this
-
allowedOrganizations
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder allowedOrganizations(List<String> allowedOrganizations) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getAllowedOrganizations()- Parameters:
allowedOrganizations- Lists which organizations defined in the SAML assertion are allowed to use the Amazon Managed Grafana workspace. If this is empty, all organizations in the assertion attribute have access.- Returns:
this
-
assertionAttributes
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder assertionAttributes(IResolvable assertionAttributes) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getAssertionAttributes()- Parameters:
assertionAttributes- A structure that defines which attributes in the SAML assertion are to be used to define information about the users authenticated by that IdP to use the workspace.- Returns:
this
-
assertionAttributes
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder assertionAttributes(CfnWorkspace.AssertionAttributesProperty assertionAttributes) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getAssertionAttributes()- Parameters:
assertionAttributes- A structure that defines which attributes in the SAML assertion are to be used to define information about the users authenticated by that IdP to use the workspace.- Returns:
this
-
loginValidityDuration
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder loginValidityDuration(Number loginValidityDuration) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getLoginValidityDuration()- Parameters:
loginValidityDuration- How long a sign-on session by a SAML user is valid, before the user has to sign on again.- Returns:
this
-
roleValues
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder roleValues(IResolvable roleValues) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getRoleValues()- Parameters:
roleValues- A structure containing arrays that map group names in the SAML assertion to the GrafanaAdminandEditorroles in the workspace.- Returns:
this
-
roleValues
@Stability(Stable) public CfnWorkspace.SamlConfigurationProperty.Builder roleValues(CfnWorkspace.RoleValuesProperty roleValues) Sets the value ofCfnWorkspace.SamlConfigurationProperty.getRoleValues()- Parameters:
roleValues- A structure containing arrays that map group names in the SAML assertion to the GrafanaAdminandEditorroles in the workspace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspace.SamlConfigurationProperty>- Returns:
- a new instance of
CfnWorkspace.SamlConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-