Class AdvancedSecurityOptions.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.AdvancedSecurityOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AdvancedSecurityOptions>
- Enclosing interface:
AdvancedSecurityOptions
@Stability(Stable)
public static final class AdvancedSecurityOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AdvancedSecurityOptions>
A builder for
AdvancedSecurityOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.masterUserArn
(String masterUserArn) Sets the value ofAdvancedSecurityOptions.getMasterUserArn()
masterUserName
(String masterUserName) Sets the value ofAdvancedSecurityOptions.getMasterUserName()
masterUserPassword
(SecretValue masterUserPassword) Sets the value ofAdvancedSecurityOptions.getMasterUserPassword()
samlAuthenticationEnabled
(Boolean samlAuthenticationEnabled) Sets the value ofAdvancedSecurityOptions.getSamlAuthenticationEnabled()
samlAuthenticationOptions
(SAMLOptionsProperty samlAuthenticationOptions) Sets the value ofAdvancedSecurityOptions.getSamlAuthenticationOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterUserArn
Sets the value ofAdvancedSecurityOptions.getMasterUserArn()
- Parameters:
masterUserArn
- ARN for the master user. Only specify this or masterUserName, but not both.- Returns:
this
-
masterUserName
Sets the value ofAdvancedSecurityOptions.getMasterUserName()
- Parameters:
masterUserName
- Username for the master user. Only specify this or masterUserArn, but not both.- Returns:
this
-
masterUserPassword
@Stability(Stable) public AdvancedSecurityOptions.Builder masterUserPassword(SecretValue masterUserPassword) Sets the value ofAdvancedSecurityOptions.getMasterUserPassword()
- Parameters:
masterUserPassword
- Password for the master user. You can useSecretValue.unsafePlainText
to specify a password in plain text or usesecretsmanager.Secret.fromSecretAttributes
to reference a secret in Secrets Manager.- Returns:
this
-
samlAuthenticationEnabled
@Stability(Stable) public AdvancedSecurityOptions.Builder samlAuthenticationEnabled(Boolean samlAuthenticationEnabled) Sets the value ofAdvancedSecurityOptions.getSamlAuthenticationEnabled()
- Parameters:
samlAuthenticationEnabled
- True to enable SAML authentication for a domain.- Returns:
this
-
samlAuthenticationOptions
@Stability(Stable) public AdvancedSecurityOptions.Builder samlAuthenticationOptions(SAMLOptionsProperty samlAuthenticationOptions) Sets the value ofAdvancedSecurityOptions.getSamlAuthenticationOptions()
- Parameters:
samlAuthenticationOptions
- Container for information about the SAML configuration for OpenSearch Dashboards. If set,samlAuthenticationEnabled
will be enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AdvancedSecurityOptions>
- Returns:
- a new instance of
AdvancedSecurityOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-