@Stability(value=Stable)
public static interface CfnDomain.VPCOptionsProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Launching your Amazon OpenSearch Service domains using a VPC in the Amazon OpenSearch Service Developer Guide .
The
AWS::Elasticsearch::Domainresource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticsearch.*;
VPCOptionsProperty vPCOptionsProperty = VPCOptionsProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDomain.VPCOptionsProperty.Builder
A builder for
CfnDomain.VPCOptionsProperty |
static class |
CfnDomain.VPCOptionsProperty.Jsii$Proxy
An implementation for
CfnDomain.VPCOptionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDomain.VPCOptionsProperty.Builder |
builder() |
default List<String> |
getSecurityGroupIds()
The list of security group IDs that are associated with the VPC endpoints for the domain.
|
default List<String> |
getSubnetIds()
Provide one subnet ID for each Availability Zone that your domain uses.
|
@Stability(value=Stable) @Nullable default List<String> getSecurityGroupIds()
If you don't provide a security group ID, OpenSearch Service uses the default security group for the VPC. To learn more, see Security groups for your VPC in the Amazon VPC User Guide .
@Stability(value=Stable) @Nullable default List<String> getSubnetIds()
For example, you must specify three subnet IDs for a three Availability Zone domain. To learn more, see VPCs and subnets in the Amazon VPC User Guide .
Required if you're creating your domain inside a VPC.
@Stability(value=Stable) static CfnDomain.VPCOptionsProperty.Builder builder()
Copyright © 2022. All rights reserved.