Class CfnDomainProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.CfnDomainProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainProps>
- Enclosing interface:
- CfnDomainProps
@Stability(Stable)
public static final class CfnDomainProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainProps>
A builder for
CfnDomainProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessPolicies
(Object accessPolicies) Sets the value ofCfnDomainProps.getAccessPolicies()
advancedOptions
(Map<String, String> advancedOptions) Sets the value ofCfnDomainProps.getAdvancedOptions()
advancedOptions
(IResolvable advancedOptions) Sets the value ofCfnDomainProps.getAdvancedOptions()
advancedSecurityOptions
(IResolvable advancedSecurityOptions) Sets the value ofCfnDomainProps.getAdvancedSecurityOptions()
advancedSecurityOptions
(CfnDomain.AdvancedSecurityOptionsInputProperty advancedSecurityOptions) Sets the value ofCfnDomainProps.getAdvancedSecurityOptions()
build()
Builds the configured instance.cognitoOptions
(IResolvable cognitoOptions) Sets the value ofCfnDomainProps.getCognitoOptions()
cognitoOptions
(CfnDomain.CognitoOptionsProperty cognitoOptions) Sets the value ofCfnDomainProps.getCognitoOptions()
domainEndpointOptions
(IResolvable domainEndpointOptions) Sets the value ofCfnDomainProps.getDomainEndpointOptions()
domainEndpointOptions
(CfnDomain.DomainEndpointOptionsProperty domainEndpointOptions) Sets the value ofCfnDomainProps.getDomainEndpointOptions()
domainName
(String domainName) Sets the value ofCfnDomainProps.getDomainName()
ebsOptions
(IResolvable ebsOptions) Sets the value ofCfnDomainProps.getEbsOptions()
ebsOptions
(CfnDomain.EBSOptionsProperty ebsOptions) Sets the value ofCfnDomainProps.getEbsOptions()
elasticsearchClusterConfig
(IResolvable elasticsearchClusterConfig) Sets the value ofCfnDomainProps.getElasticsearchClusterConfig()
elasticsearchClusterConfig
(CfnDomain.ElasticsearchClusterConfigProperty elasticsearchClusterConfig) Sets the value ofCfnDomainProps.getElasticsearchClusterConfig()
elasticsearchVersion
(String elasticsearchVersion) Sets the value ofCfnDomainProps.getElasticsearchVersion()
encryptionAtRestOptions
(IResolvable encryptionAtRestOptions) Sets the value ofCfnDomainProps.getEncryptionAtRestOptions()
encryptionAtRestOptions
(CfnDomain.EncryptionAtRestOptionsProperty encryptionAtRestOptions) Sets the value ofCfnDomainProps.getEncryptionAtRestOptions()
logPublishingOptions
(Map<String, ? extends Object> logPublishingOptions) Sets the value ofCfnDomainProps.getLogPublishingOptions()
logPublishingOptions
(IResolvable logPublishingOptions) Sets the value ofCfnDomainProps.getLogPublishingOptions()
nodeToNodeEncryptionOptions
(IResolvable nodeToNodeEncryptionOptions) Sets the value ofCfnDomainProps.getNodeToNodeEncryptionOptions()
nodeToNodeEncryptionOptions
(CfnDomain.NodeToNodeEncryptionOptionsProperty nodeToNodeEncryptionOptions) Sets the value ofCfnDomainProps.getNodeToNodeEncryptionOptions()
snapshotOptions
(IResolvable snapshotOptions) Sets the value ofCfnDomainProps.getSnapshotOptions()
snapshotOptions
(CfnDomain.SnapshotOptionsProperty snapshotOptions) Sets the value ofCfnDomainProps.getSnapshotOptions()
Sets the value ofCfnDomainProps.getTags()
vpcOptions
(IResolvable vpcOptions) Sets the value ofCfnDomainProps.getVpcOptions()
vpcOptions
(CfnDomain.VPCOptionsProperty vpcOptions) Sets the value ofCfnDomainProps.getVpcOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPolicies
Sets the value ofCfnDomainProps.getAccessPolicies()
- Parameters:
accessPolicies
- An AWS Identity and Access Management ( IAM ) policy document that specifies who can access the OpenSearch Service domain and their permissions. For more information, see Configuring access policies in the Amazon OpenSearch Service Developer Guid e.- Returns:
this
-
advancedOptions
Sets the value ofCfnDomainProps.getAdvancedOptions()
- Parameters:
advancedOptions
- Additional options to specify for the OpenSearch Service domain. For more information, see Advanced cluster parameters in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
advancedOptions
@Stability(Stable) public CfnDomainProps.Builder advancedOptions(Map<String, String> advancedOptions) Sets the value ofCfnDomainProps.getAdvancedOptions()
- Parameters:
advancedOptions
- Additional options to specify for the OpenSearch Service domain. For more information, see Advanced cluster parameters in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
advancedSecurityOptions
@Stability(Stable) public CfnDomainProps.Builder advancedSecurityOptions(IResolvable advancedSecurityOptions) Sets the value ofCfnDomainProps.getAdvancedSecurityOptions()
- Parameters:
advancedSecurityOptions
- Specifies options for fine-grained access control.- Returns:
this
-
advancedSecurityOptions
@Stability(Stable) public CfnDomainProps.Builder advancedSecurityOptions(CfnDomain.AdvancedSecurityOptionsInputProperty advancedSecurityOptions) Sets the value ofCfnDomainProps.getAdvancedSecurityOptions()
- Parameters:
advancedSecurityOptions
- Specifies options for fine-grained access control.- Returns:
this
-
cognitoOptions
Sets the value ofCfnDomainProps.getCognitoOptions()
- Parameters:
cognitoOptions
- Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.- Returns:
this
-
cognitoOptions
@Stability(Stable) public CfnDomainProps.Builder cognitoOptions(CfnDomain.CognitoOptionsProperty cognitoOptions) Sets the value ofCfnDomainProps.getCognitoOptions()
- Parameters:
cognitoOptions
- Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.- Returns:
this
-
domainEndpointOptions
@Stability(Stable) public CfnDomainProps.Builder domainEndpointOptions(IResolvable domainEndpointOptions) Sets the value ofCfnDomainProps.getDomainEndpointOptions()
- Parameters:
domainEndpointOptions
- Specifies additional options for the domain endpoint, such as whether to require HTTPS for all traffic or whether to use a custom endpoint rather than the default endpoint.- Returns:
this
-
domainEndpointOptions
@Stability(Stable) public CfnDomainProps.Builder domainEndpointOptions(CfnDomain.DomainEndpointOptionsProperty domainEndpointOptions) Sets the value ofCfnDomainProps.getDomainEndpointOptions()
- Parameters:
domainEndpointOptions
- Specifies additional options for the domain endpoint, such as whether to require HTTPS for all traffic or whether to use a custom endpoint rather than the default endpoint.- Returns:
this
-
domainName
Sets the value ofCfnDomainProps.getDomainName()
- Parameters:
domainName
- A name for the OpenSearch Service domain. For valid values, see the DomainName data type in the Amazon OpenSearch Service Developer Guide . If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the domain name. For more information, see Name Type .If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Returns:
this
-
ebsOptions
Sets the value ofCfnDomainProps.getEbsOptions()
- Parameters:
ebsOptions
- The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain. For more information, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
ebsOptions
@Stability(Stable) public CfnDomainProps.Builder ebsOptions(CfnDomain.EBSOptionsProperty ebsOptions) Sets the value ofCfnDomainProps.getEbsOptions()
- Parameters:
ebsOptions
- The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain. For more information, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
elasticsearchClusterConfig
@Stability(Stable) public CfnDomainProps.Builder elasticsearchClusterConfig(IResolvable elasticsearchClusterConfig) Sets the value ofCfnDomainProps.getElasticsearchClusterConfig()
- Parameters:
elasticsearchClusterConfig
- ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain.- Returns:
this
-
elasticsearchClusterConfig
@Stability(Stable) public CfnDomainProps.Builder elasticsearchClusterConfig(CfnDomain.ElasticsearchClusterConfigProperty elasticsearchClusterConfig) Sets the value ofCfnDomainProps.getElasticsearchClusterConfig()
- Parameters:
elasticsearchClusterConfig
- ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain.- Returns:
this
-
elasticsearchVersion
Sets the value ofCfnDomainProps.getElasticsearchVersion()
- Parameters:
elasticsearchVersion
- The version of Elasticsearch to use, such as 2.3. If not specified, 1.5 is used as the default. For information about the versions that OpenSearch Service supports, see Supported versions of OpenSearch and Elasticsearch in the Amazon OpenSearch Service Developer Guide . If you set the EnableVersionUpgrade update policy totrue
, you can updateElasticsearchVersion
without interruption. WhenEnableVersionUpgrade
is set tofalse
, or is not specified, updatingElasticsearchVersion
results in replacement .- Returns:
this
-
encryptionAtRestOptions
@Stability(Stable) public CfnDomainProps.Builder encryptionAtRestOptions(IResolvable encryptionAtRestOptions) Sets the value ofCfnDomainProps.getEncryptionAtRestOptions()
- Parameters:
encryptionAtRestOptions
- Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use. See Encryption of data at rest for Amazon OpenSearch Service .- Returns:
this
-
encryptionAtRestOptions
@Stability(Stable) public CfnDomainProps.Builder encryptionAtRestOptions(CfnDomain.EncryptionAtRestOptionsProperty encryptionAtRestOptions) Sets the value ofCfnDomainProps.getEncryptionAtRestOptions()
- Parameters:
encryptionAtRestOptions
- Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use. See Encryption of data at rest for Amazon OpenSearch Service .- Returns:
this
-
logPublishingOptions
@Stability(Stable) public CfnDomainProps.Builder logPublishingOptions(IResolvable logPublishingOptions) Sets the value ofCfnDomainProps.getLogPublishingOptions()
- Parameters:
logPublishingOptions
- An object with one or more of the following keys:SEARCH_SLOW_LOGS
,ES_APPLICATION_LOGS
,INDEX_SLOW_LOGS
,AUDIT_LOGS
, depending on the types of logs you want to publish. Each key needs a validLogPublishingOption
value.- Returns:
this
-
logPublishingOptions
@Stability(Stable) public CfnDomainProps.Builder logPublishingOptions(Map<String, ? extends Object> logPublishingOptions) Sets the value ofCfnDomainProps.getLogPublishingOptions()
- Parameters:
logPublishingOptions
- An object with one or more of the following keys:SEARCH_SLOW_LOGS
,ES_APPLICATION_LOGS
,INDEX_SLOW_LOGS
,AUDIT_LOGS
, depending on the types of logs you want to publish. Each key needs a validLogPublishingOption
value.- Returns:
this
-
nodeToNodeEncryptionOptions
@Stability(Stable) public CfnDomainProps.Builder nodeToNodeEncryptionOptions(IResolvable nodeToNodeEncryptionOptions) Sets the value ofCfnDomainProps.getNodeToNodeEncryptionOptions()
- Parameters:
nodeToNodeEncryptionOptions
- Specifies whether node-to-node encryption is enabled. See Node-to-node encryption for Amazon OpenSearch Service .- Returns:
this
-
nodeToNodeEncryptionOptions
@Stability(Stable) public CfnDomainProps.Builder nodeToNodeEncryptionOptions(CfnDomain.NodeToNodeEncryptionOptionsProperty nodeToNodeEncryptionOptions) Sets the value ofCfnDomainProps.getNodeToNodeEncryptionOptions()
- Parameters:
nodeToNodeEncryptionOptions
- Specifies whether node-to-node encryption is enabled. See Node-to-node encryption for Amazon OpenSearch Service .- Returns:
this
-
snapshotOptions
Sets the value ofCfnDomainProps.getSnapshotOptions()
- Parameters:
snapshotOptions
- DEPRECATED . The automated snapshot configuration for the OpenSearch Service domain indices.- Returns:
this
-
snapshotOptions
@Stability(Stable) public CfnDomainProps.Builder snapshotOptions(CfnDomain.SnapshotOptionsProperty snapshotOptions) Sets the value ofCfnDomainProps.getSnapshotOptions()
- Parameters:
snapshotOptions
- DEPRECATED . The automated snapshot configuration for the OpenSearch Service domain indices.- Returns:
this
-
tags
Sets the value ofCfnDomainProps.getTags()
- Parameters:
tags
- An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain.- Returns:
this
-
vpcOptions
Sets the value ofCfnDomainProps.getVpcOptions()
- Parameters:
vpcOptions
- The virtual private cloud (VPC) configuration for the OpenSearch Service domain. For more information, see Launching your Amazon OpenSearch Service domains within a VPC in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
vpcOptions
@Stability(Stable) public CfnDomainProps.Builder vpcOptions(CfnDomain.VPCOptionsProperty vpcOptions) Sets the value ofCfnDomainProps.getVpcOptions()
- Parameters:
vpcOptions
- The virtual private cloud (VPC) configuration for the OpenSearch Service domain. For more information, see Launching your Amazon OpenSearch Service domains within a VPC in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomainProps>
- Returns:
- a new instance of
CfnDomainProps
- Throws:
NullPointerException
- if any required attribute was not provided
-