Class CfnDomainPropsMixin.MasterUserOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opensearchservice.CfnDomainPropsMixin.MasterUserOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainPropsMixin.MasterUserOptionsProperty>
- Enclosing interface:
CfnDomainPropsMixin.MasterUserOptionsProperty
@Stability(Stable)
public static final class CfnDomainPropsMixin.MasterUserOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainPropsMixin.MasterUserOptionsProperty>
A builder for
CfnDomainPropsMixin.MasterUserOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.masterUserArn(String masterUserArn) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserArn()masterUserArn(IRoleRef masterUserArn) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserArn()masterUserName(String masterUserName) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserName()masterUserPassword(String masterUserPassword) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserPassword()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterUserArn
@Stability(Stable) public CfnDomainPropsMixin.MasterUserOptionsProperty.Builder masterUserArn(String masterUserArn) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserArn()- Parameters:
masterUserArn- Amazon Resource Name (ARN) for the master user. The ARN can point to an IAM user or role. This property is required for Amazon Cognito to work, and it must match the role configured for Cognito. Only specify ifInternalUserDatabaseEnabledis false in AdvancedSecurityOptionsInput .- Returns:
this
-
masterUserArn
@Stability(Stable) public CfnDomainPropsMixin.MasterUserOptionsProperty.Builder masterUserArn(IRoleRef masterUserArn) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserArn()- Parameters:
masterUserArn- Amazon Resource Name (ARN) for the master user. The ARN can point to an IAM user or role. This property is required for Amazon Cognito to work, and it must match the role configured for Cognito. Only specify ifInternalUserDatabaseEnabledis false in AdvancedSecurityOptionsInput .- Returns:
this
-
masterUserName
@Stability(Stable) public CfnDomainPropsMixin.MasterUserOptionsProperty.Builder masterUserName(String masterUserName) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserName()- Parameters:
masterUserName- Username for the master user. Only specify ifInternalUserDatabaseEnabledis true in AdvancedSecurityOptionsInput . If you don't want to specify this value directly within the template, you can use a dynamic reference instead.- Returns:
this
-
masterUserPassword
@Stability(Stable) public CfnDomainPropsMixin.MasterUserOptionsProperty.Builder masterUserPassword(String masterUserPassword) Sets the value ofCfnDomainPropsMixin.MasterUserOptionsProperty.getMasterUserPassword()- Parameters:
masterUserPassword- Password for the master user. Only specify ifInternalUserDatabaseEnabledis true in AdvancedSecurityOptionsInput . If you don't want to specify this value directly within the template, you can use a dynamic reference instead.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainPropsMixin.MasterUserOptionsProperty>- Returns:
- a new instance of
CfnDomainPropsMixin.MasterUserOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-