@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.106Z") @Stability(value=Stable) public interface DomainProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DomainProps.Builder
A builder for
DomainProps |
static class |
DomainProps.Jsii$Proxy
An implementation for
DomainProps |
| Modifier and Type | Method and Description |
|---|---|
static DomainProps.Builder |
builder() |
default List<PolicyStatement> |
getAccessPolicies()
Domain access policies.
|
default Map<String,String> |
getAdvancedOptions()
Additional options to specify for the Amazon OpenSearch Service domain.
|
default Number |
getAutomatedSnapshotStartHour()
The hour in UTC during which the service takes an automated daily snapshot of the indices in the Amazon OpenSearch Service domain.
|
default CapacityConfig |
getCapacity()
The cluster capacity configuration for the Amazon OpenSearch Service domain.
|
default CognitoOptions |
getCognitoDashboardsAuth()
Configures Amazon OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.
|
default CustomEndpointOptions |
getCustomEndpoint()
To configure a custom domain configure these options.
|
default String |
getDomainName()
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 |
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 EncryptionAtRestOptions |
getEncryptionAtRest()
Encryption at rest options for the cluster.
|
default Boolean |
getEnforceHttps()
True to require that all traffic to the domain arrive over HTTPS.
|
default AdvancedSecurityOptions |
getFineGrainedAccessControl()
Specifies options for fine-grained access control.
|
default LoggingOptions |
getLogging()
Configuration log publishing configuration options.
|
default Boolean |
getNodeToNodeEncryption()
Specify true to enable node to node encryption.
|
default RemovalPolicy |
getRemovalPolicy()
Policy to apply when the domain is removed from the stack.
|
default List<ISecurityGroup> |
getSecurityGroups()
The list of security groups that are associated with the VPC endpoints for the domain.
|
default TLSSecurityPolicy |
getTlsSecurityPolicy()
The minimum TLS version required for traffic to the domain.
|
default Boolean |
getUseUnsignedBasicAuth()
Configures the domain so that unsigned basic auth is enabled.
|
EngineVersion |
getVersion()
The Elasticsearch/OpenSearch version that your domain will leverage.
|
default IVpc |
getVpc()
Place the domain inside this VPC.
|
default List<SubnetSelection> |
getVpcSubnets()
The specific vpc subnets the domain will be placed in.
|
default ZoneAwarenessConfig |
getZoneAwareness()
The cluster zone awareness configuration for the Amazon OpenSearch Service domain.
|
@Stability(value=Stable) @NotNull EngineVersion getVersion()
@Stability(value=Stable) @Nullable default List<PolicyStatement> getAccessPolicies()
Default: - No access policies.
@Stability(value=Stable) @Nullable default Map<String,String> getAdvancedOptions()
Default: - no advanced options are specified
@Stability(value=Stable) @Nullable default Number getAutomatedSnapshotStartHour()
Only applies for Elasticsearch versions below 5.3.
Default: - Hourly automated snapshots not used
@Stability(value=Stable) @Nullable default CapacityConfig getCapacity()
Default: - 1 r5.large.search data node; no dedicated master nodes.
@Stability(value=Stable) @Nullable default CognitoOptions getCognitoDashboardsAuth()
Default: - Cognito not used for authentication to OpenSearch Dashboards.
@Stability(value=Stable) @Nullable default CustomEndpointOptions getCustomEndpoint()
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
@Stability(value=Stable) @Nullable default String getDomainName()
Default: - A name will be auto-generated.
@Stability(value=Stable) @Nullable default EbsOptions getEbs()
Default: - 10 GiB General Purpose (SSD) volumes per node.
@Stability(value=Stable) @Nullable default Boolean getEnableVersionUpgrade()
Default: - false
@Stability(value=Stable) @Nullable default EncryptionAtRestOptions getEncryptionAtRest()
Default: - No encryption at rest
@Stability(value=Stable) @Nullable default Boolean getEnforceHttps()
Default: - false
@Stability(value=Stable) @Nullable default AdvancedSecurityOptions getFineGrainedAccessControl()
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
@Stability(value=Stable) @Nullable default LoggingOptions getLogging()
Default: - No logs are published
@Stability(value=Stable) @Nullable default Boolean getNodeToNodeEncryption()
Requires Elasticsearch version 6.0 or later or OpenSearch version 1.0 or later.
Default: - Node to node encryption is not enabled.
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.RETAIN
@Stability(value=Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
Only used if vpc is specified.
Default: - One new security group is created.
@Stability(value=Stable) @Nullable default TLSSecurityPolicy getTlsSecurityPolicy()
Default: - TLSSecurityPolicy.TLS_1_0
@Stability(value=Stable) @Nullable default Boolean getUseUnsignedBasicAuth()
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 getting masterUserPassword 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
@Stability(value=Stable) @Nullable default IVpc getVpc()
Default: - Domain is not placed in a VPC.
@Stability(value=Stable) @Nullable default List<SubnetSelection> getVpcSubnets()
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.
@Stability(value=Stable) @Nullable default ZoneAwarenessConfig getZoneAwareness()
Default: - no zone awareness (1 AZ)
@Stability(value=Stable) static DomainProps.Builder builder()
DomainProps.Builder of DomainPropsCopyright © 2022. All rights reserved.