Class SAMLOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.SAMLOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SAMLOptionsProperty>
- Enclosing interface:
SAMLOptionsProperty
@Stability(Stable)
public static final class SAMLOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<SAMLOptionsProperty>
A builder for
SAMLOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.idpEntityId
(String idpEntityId) Sets the value ofSAMLOptionsProperty.getIdpEntityId()
idpMetadataContent
(String idpMetadataContent) Sets the value ofSAMLOptionsProperty.getIdpMetadataContent()
masterBackendRole
(String masterBackendRole) Sets the value ofSAMLOptionsProperty.getMasterBackendRole()
masterUserName
(String masterUserName) Sets the value ofSAMLOptionsProperty.getMasterUserName()
Sets the value ofSAMLOptionsProperty.getRolesKey()
sessionTimeoutMinutes
(Number sessionTimeoutMinutes) Sets the value ofSAMLOptionsProperty.getSessionTimeoutMinutes()
subjectKey
(String subjectKey) Sets the value ofSAMLOptionsProperty.getSubjectKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idpEntityId
Sets the value ofSAMLOptionsProperty.getIdpEntityId()
- Parameters:
idpEntityId
- The unique entity ID of the application in the SAML identity provider. This parameter is required.- Returns:
this
-
idpMetadataContent
Sets the value ofSAMLOptionsProperty.getIdpMetadataContent()
- Parameters:
idpMetadataContent
- The metadata of the SAML application, in XML format. This parameter is required.- Returns:
this
-
masterBackendRole
Sets the value ofSAMLOptionsProperty.getMasterBackendRole()
- Parameters:
masterBackendRole
- The backend role that the SAML master user is mapped to. Any users with this backend role receives full permission in OpenSearch Dashboards/Kibana. To use a SAML master backend role, configure therolesKey
property.- Returns:
this
-
masterUserName
Sets the value ofSAMLOptionsProperty.getMasterUserName()
- Parameters:
masterUserName
- The SAML master username, which is stored in the domain's internal user database. This SAML user receives full permission in OpenSearch Dashboards/Kibana. Creating a new master username does not delete any existing master usernames.- Returns:
this
-
rolesKey
Sets the value ofSAMLOptionsProperty.getRolesKey()
- Parameters:
rolesKey
- Element of the SAML assertion to use for backend roles.- Returns:
this
-
sessionTimeoutMinutes
@Stability(Stable) public SAMLOptionsProperty.Builder sessionTimeoutMinutes(Number sessionTimeoutMinutes) Sets the value ofSAMLOptionsProperty.getSessionTimeoutMinutes()
- Parameters:
sessionTimeoutMinutes
- The duration, in minutes, after which a user session becomes inactive.- Returns:
this
-
subjectKey
Sets the value ofSAMLOptionsProperty.getSubjectKey()
- Parameters:
subjectKey
- Element of the SAML assertion to use for the user name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SAMLOptionsProperty>
- Returns:
- a new instance of
SAMLOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-