Class CfnDomainProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainProps>
- Enclosing interface:
CfnDomainProps
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.clusterConfig
(IResolvable clusterConfig) Sets the value ofCfnDomainProps.getClusterConfig()
clusterConfig
(CfnDomain.ClusterConfigProperty clusterConfig) Sets the value ofCfnDomainProps.getClusterConfig()
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()
encryptionAtRestOptions
(IResolvable encryptionAtRestOptions) Sets the value ofCfnDomainProps.getEncryptionAtRestOptions()
encryptionAtRestOptions
(CfnDomain.EncryptionAtRestOptionsProperty encryptionAtRestOptions) Sets the value ofCfnDomainProps.getEncryptionAtRestOptions()
engineVersion
(String engineVersion) Sets the value ofCfnDomainProps.getEngineVersion()
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()
offPeakWindowOptions
(IResolvable offPeakWindowOptions) Sets the value ofCfnDomainProps.getOffPeakWindowOptions()
offPeakWindowOptions
(CfnDomain.OffPeakWindowOptionsProperty offPeakWindowOptions) Sets the value ofCfnDomainProps.getOffPeakWindowOptions()
snapshotOptions
(IResolvable snapshotOptions) Sets the value ofCfnDomainProps.getSnapshotOptions()
snapshotOptions
(CfnDomain.SnapshotOptionsProperty snapshotOptions) Sets the value ofCfnDomainProps.getSnapshotOptions()
softwareUpdateOptions
(IResolvable softwareUpdateOptions) Sets the value ofCfnDomainProps.getSoftwareUpdateOptions()
softwareUpdateOptions
(CfnDomain.SoftwareUpdateOptionsProperty softwareUpdateOptions) Sets the value ofCfnDomainProps.getSoftwareUpdateOptions()
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 Guide .- Returns:
this
-
advancedOptions
Sets the value ofCfnDomainProps.getAdvancedOptions()
- Parameters:
advancedOptions
- Additional options to specify for the OpenSearch Service domain. For more information, see AdvancedOptions in the OpenSearch Service API reference.- 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 AdvancedOptions in the OpenSearch Service API reference.- 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 and SAML authentication. If you specify advanced security options, you must also enable node-to-node encryption ( NodeToNodeEncryptionOptions ) and encryption at rest ( EncryptionAtRestOptions ). You must also enableEnforceHTTPS
within DomainEndpointOptions , which requires HTTPS for all traffic to the domain.- 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 and SAML authentication. If you specify advanced security options, you must also enable node-to-node encryption ( NodeToNodeEncryptionOptions ) and encryption at rest ( EncryptionAtRestOptions ). You must also enableEnforceHTTPS
within DomainEndpointOptions , which requires HTTPS for all traffic to the domain.- Returns:
this
-
clusterConfig
Sets the value ofCfnDomainProps.getClusterConfig()
- Parameters:
clusterConfig
- Container for the cluster configuration of a domain.- Returns:
this
-
clusterConfig
@Stability(Stable) public CfnDomainProps.Builder clusterConfig(CfnDomain.ClusterConfigProperty clusterConfig) Sets the value ofCfnDomainProps.getClusterConfig()
- Parameters:
clusterConfig
- Container for the cluster configuration of a domain.- 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. The name must have a minimum length of 3 and a maximum length of 28. 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 .Required when creating a new domain.
If you specify a name, you can't 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
-
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 KMS 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 KMS key to use. See Encryption of data at rest for Amazon OpenSearch Service .- Returns:
this
-
engineVersion
Sets the value ofCfnDomainProps.getEngineVersion()
- Parameters:
engineVersion
- The version of OpenSearch to use. The value must be in the formatOpenSearch_X.Y
orElasticsearch_X.Y
. If not specified, the latest version of OpenSearch is used. 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 to
true
, you can updateEngineVersion
without interruption. WhenEnableVersionUpgrade
is set tofalse
, or is not specified, updatingEngineVersion
results in replacement .- 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. For the full syntax, see the examples .- 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. For the full syntax, see the examples .- 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
-
offPeakWindowOptions
@Stability(Stable) public CfnDomainProps.Builder offPeakWindowOptions(IResolvable offPeakWindowOptions) Sets the value ofCfnDomainProps.getOffPeakWindowOptions()
- Parameters:
offPeakWindowOptions
- Options for a domain's off-peak window, during which OpenSearch Service can perform mandatory configuration changes on the domain.- Returns:
this
-
offPeakWindowOptions
@Stability(Stable) public CfnDomainProps.Builder offPeakWindowOptions(CfnDomain.OffPeakWindowOptionsProperty offPeakWindowOptions) Sets the value ofCfnDomainProps.getOffPeakWindowOptions()
- Parameters:
offPeakWindowOptions
- Options for a domain's off-peak window, during which OpenSearch Service can perform mandatory configuration changes on the domain.- Returns:
this
-
snapshotOptions
Sets the value ofCfnDomainProps.getSnapshotOptions()
- Parameters:
snapshotOptions
- DEPRECATED . The automated snapshot configuration for the OpenSearch Service domain indexes.- 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 indexes.- Returns:
this
-
softwareUpdateOptions
@Stability(Stable) public CfnDomainProps.Builder softwareUpdateOptions(IResolvable softwareUpdateOptions) Sets the value ofCfnDomainProps.getSoftwareUpdateOptions()
- Parameters:
softwareUpdateOptions
- Options for configuring service software updates for a domain.- Returns:
this
-
softwareUpdateOptions
@Stability(Stable) public CfnDomainProps.Builder softwareUpdateOptions(CfnDomain.SoftwareUpdateOptionsProperty softwareUpdateOptions) Sets the value ofCfnDomainProps.getSoftwareUpdateOptions()
- Parameters:
softwareUpdateOptions
- Options for configuring service software updates for a domain.- 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 .If you remove this entity altogether, along with its associated properties, it causes a replacement. You might encounter this scenario if you're updating your security configuration from a VPC to a public endpoint.
- 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 .If you remove this entity altogether, along with its associated properties, it causes a replacement. You might encounter this scenario if you're updating your security configuration from a VPC to a public endpoint.
- 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
-