Interface DomainProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DomainProps.Jsii$Proxy
Example:
Domain domain = Domain.Builder.create(this, "Domain") .version(EngineVersion.OPENSEARCH_1_0) .ebs(EbsOptions.builder() .volumeSize(100) .volumeType(EbsDeviceVolumeType.GENERAL_PURPOSE_SSD) .build()) .nodeToNodeEncryption(true) .encryptionAtRest(EncryptionAtRestOptions.builder() .enabled(true) .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forDomainProps
static final class
An implementation forDomainProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic DomainProps.Builder
builder()
default List<PolicyStatement>
Domain access policies.Additional options to specify for the Amazon OpenSearch Service domain.default Number
The hour in UTC during which the service takes an automated daily snapshot of the indices in the Amazon OpenSearch Service domain.default CapacityConfig
The cluster capacity configuration for the Amazon OpenSearch Service domain.default CognitoOptions
Configures Amazon OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.default CustomEndpointOptions
To configure a custom domain configure these options.default String
Enforces a particular physical domain name.default EbsOptions
getEbs()
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon OpenSearch Service domain.default Boolean
To upgrade an Amazon OpenSearch Service domain to a new version, rather than replacing the entire domain resource, use the EnableVersionUpgrade update policy.default EncryptionAtRestOptions
Encryption at rest options for the cluster.default Boolean
True to require that all traffic to the domain arrive over HTTPS.default AdvancedSecurityOptions
Specifies options for fine-grained access control.default LoggingOptions
Configuration log publishing configuration options.default Boolean
Specify true to enable node to node encryption.default RemovalPolicy
Policy to apply when the domain is removed from the stack.default List<ISecurityGroup>
The list of security groups that are associated with the VPC endpoints for the domain.default TLSSecurityPolicy
The minimum TLS version required for traffic to the domain.default Boolean
Configures the domain so that unsigned basic auth is enabled.The Elasticsearch/OpenSearch version that your domain will leverage.default IVpc
getVpc()
Place the domain inside this VPC.default List<SubnetSelection>
The specific vpc subnets the domain will be placed in.default ZoneAwarenessConfig
The cluster zone awareness configuration for the Amazon OpenSearch Service domain.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVersion
The Elasticsearch/OpenSearch version that your domain will leverage. -
getAccessPolicies
Domain access policies.Default: - No access policies.
-
getAdvancedOptions
Additional options to specify for the Amazon OpenSearch Service domain.Default: - no advanced options are specified
-
getAutomatedSnapshotStartHour
The hour in UTC during which the service takes an automated daily snapshot of the indices in the Amazon OpenSearch Service domain.Only applies for Elasticsearch versions below 5.3.
Default: - Hourly automated snapshots not used
-
getCapacity
The cluster capacity configuration for the Amazon OpenSearch Service domain.Default: - 1 r5.large.search data node; no dedicated master nodes.
-
getCognitoDashboardsAuth
Configures Amazon OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.Default: - Cognito not used for authentication to OpenSearch Dashboards.
-
getCustomEndpoint
To configure a custom domain configure these options.If you specify a Route53 hosted zone it will create a CNAME record and use DNS validation for the certificate
Default: - no custom domain endpoint will be configured
-
getDomainName
Enforces a particular physical domain name.Default: - A name will be auto-generated.
-
getEbs
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon OpenSearch Service domain.Default: - 10 GiB General Purpose (SSD) volumes per node.
-
getEnableVersionUpgrade
To upgrade an Amazon OpenSearch Service domain to a new version, rather than replacing the entire domain resource, use the EnableVersionUpgrade update policy.Default: - false
-
getEncryptionAtRest
Encryption at rest options for the cluster.Default: - No encryption at rest
-
getEnforceHttps
True to require that all traffic to the domain arrive over HTTPS.Default: - false
-
getFineGrainedAccessControl
Specifies options for fine-grained access control.Requires Elasticsearch version 6.7 or later or OpenSearch version 1.0 or later. Enabling fine-grained access control also requires encryption of data at rest and node-to-node encryption, along with enforced HTTPS.
Default: - fine-grained access control is disabled
-
getLogging
Configuration log publishing configuration options.Default: - No logs are published
-
getNodeToNodeEncryption
Specify true to enable node to node encryption.Requires Elasticsearch version 6.0 or later or OpenSearch version 1.0 or later.
Default: - Node to node encryption is not enabled.
-
getRemovalPolicy
Policy to apply when the domain is removed from the stack.Default: RemovalPolicy.RETAIN
-
getSecurityGroups
The list of security groups that are associated with the VPC endpoints for the domain.Only used if
vpc
is specified.Default: - One new security group is created.
-
getTlsSecurityPolicy
The minimum TLS version required for traffic to the domain.Default: - TLSSecurityPolicy.TLS_1_0
-
getUseUnsignedBasicAuth
Configures the domain so that unsigned basic auth is enabled.If no master user is provided a default master user with username
admin
and a dynamically generated password stored in KMS is created. The password can be retrieved by gettingmasterUserPassword
from the domain instance.Setting this to true will also add an access policy that allows unsigned access, enable node to node encryption, encryption at rest. If conflicting settings are encountered (like disabling encryption at rest) enabling this setting will cause a failure.
Default: - false
-
getVpc
Place the domain inside this VPC.Default: - Domain is not placed in a VPC.
-
getVpcSubnets
The specific vpc subnets the domain will be placed in.You must provide one subnet for each Availability Zone that your domain uses. For example, you must specify three subnet IDs for a three Availability Zone domain.
Only used if
vpc
is specified.Default: - All private subnets.
-
getZoneAwareness
The cluster zone awareness configuration for the Amazon OpenSearch Service domain.Default: - no zone awareness (1 AZ)
-
builder
- Returns:
- a
DomainProps.Builder
ofDomainProps
-