Class CfnDomain.SAMLOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnDomain.SAMLOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.SAMLOptionsProperty>
- Enclosing interface:
- CfnDomain.SAMLOptionsProperty
@Stability(Stable)
public static final class CfnDomain.SAMLOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.SAMLOptionsProperty>
A builder for
CfnDomain.SAMLOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDomain.SAMLOptionsProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDomain.SAMLOptionsProperty.getEnabled()
idp
(IResolvable idp) Sets the value ofCfnDomain.SAMLOptionsProperty.getIdp()
idp
(CfnDomain.IdpProperty idp) Sets the value ofCfnDomain.SAMLOptionsProperty.getIdp()
masterBackendRole
(String masterBackendRole) Sets the value ofCfnDomain.SAMLOptionsProperty.getMasterBackendRole()
masterUserName
(String masterUserName) Sets the value ofCfnDomain.SAMLOptionsProperty.getMasterUserName()
Sets the value ofCfnDomain.SAMLOptionsProperty.getRolesKey()
sessionTimeoutMinutes
(Number sessionTimeoutMinutes) Sets the value ofCfnDomain.SAMLOptionsProperty.getSessionTimeoutMinutes()
subjectKey
(String subjectKey) Sets the value ofCfnDomain.SAMLOptionsProperty.getSubjectKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnDomain.SAMLOptionsProperty.getEnabled()
- Parameters:
enabled
- True to enable SAML authentication for a domain.- Returns:
this
-
enabled
Sets the value ofCfnDomain.SAMLOptionsProperty.getEnabled()
- Parameters:
enabled
- True to enable SAML authentication for a domain.- Returns:
this
-
idp
Sets the value ofCfnDomain.SAMLOptionsProperty.getIdp()
- Parameters:
idp
- The SAML Identity Provider's information.- Returns:
this
-
idp
Sets the value ofCfnDomain.SAMLOptionsProperty.getIdp()
- Parameters:
idp
- The SAML Identity Provider's information.- Returns:
this
-
masterBackendRole
@Stability(Stable) public CfnDomain.SAMLOptionsProperty.Builder masterBackendRole(String masterBackendRole) Sets the value ofCfnDomain.SAMLOptionsProperty.getMasterBackendRole()
- Parameters:
masterBackendRole
- The backend role that the SAML master user is mapped to.- Returns:
this
-
masterUserName
@Stability(Stable) public CfnDomain.SAMLOptionsProperty.Builder masterUserName(String masterUserName) Sets the value ofCfnDomain.SAMLOptionsProperty.getMasterUserName()
- Parameters:
masterUserName
- The SAML master user name, which is stored in the domain's internal user database.- Returns:
this
-
rolesKey
Sets the value ofCfnDomain.SAMLOptionsProperty.getRolesKey()
- Parameters:
rolesKey
- Element of the SAML assertion to use for backend roles. Default isroles
.- Returns:
this
-
sessionTimeoutMinutes
@Stability(Stable) public CfnDomain.SAMLOptionsProperty.Builder sessionTimeoutMinutes(Number sessionTimeoutMinutes) Sets the value ofCfnDomain.SAMLOptionsProperty.getSessionTimeoutMinutes()
- Parameters:
sessionTimeoutMinutes
- The duration, in minutes, after which a user session becomes inactive. Acceptable values are between 1 and 1440, and the default value is 60.- Returns:
this
-
subjectKey
Sets the value ofCfnDomain.SAMLOptionsProperty.getSubjectKey()
- Parameters:
subjectKey
- Element of the SAML assertion to use for the user name. Default isNameID
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.SAMLOptionsProperty>
- Returns:
- a new instance of
CfnDomain.SAMLOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-