@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.863Z") public class CfnResolverEndpoint extends CfnResource implements IInspectable
Creates a Resolver endpoint. There are two types of Resolver endpoints, inbound and outbound:
- You cannot update
ResolverEndpointType
andIpAddresses
in the same request.- When you update a dual-stack IP address, you must update both IP addresses. You can’t update only an IPv4 or IPv6 and keep an existing IP address.
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.route53resolver.*; CfnResolverEndpoint cfnResolverEndpoint = CfnResolverEndpoint.Builder.create(this, "MyCfnResolverEndpoint") .direction("direction") .ipAddresses(List.of(IpAddressRequestProperty.builder() .subnetId("subnetId") // the properties below are optional .ip("ip") .ipv6("ipv6") .build())) .securityGroupIds(List.of("securityGroupIds")) // the properties below are optional .name("name") .outpostArn("outpostArn") .preferredInstanceType("preferredInstanceType") .resolverEndpointType("resolverEndpointType") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnResolverEndpoint.Builder
A fluent builder for
CfnResolverEndpoint . |
static interface |
CfnResolverEndpoint.IpAddressRequestProperty
In a [CreateResolverEndpoint](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_CreateResolverEndpoint.html) request, the IP address that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnResolverEndpoint(Construct scope,
java.lang.String id,
CfnResolverEndpointProps props)
Create a new `AWS::Route53Resolver::ResolverEndpoint`.
|
protected |
CfnResolverEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResolverEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the resolver endpoint, such as `arn:aws:route53resolver:us-east-1:123456789012:resolver-endpoint/resolver-endpoint-a1bzhi` .
|
java.lang.String |
getAttrDirection()
Indicates whether the resolver endpoint allows inbound or outbound DNS queries.
|
java.lang.String |
getAttrHostVpcId()
The ID of the VPC that you want to create the resolver endpoint in.
|
java.lang.String |
getAttrIpAddressCount()
The number of IP addresses that the resolver endpoint can use for DNS queries.
|
java.lang.String |
getAttrName()
The name that you assigned to the resolver endpoint when you created the endpoint.
|
java.lang.String |
getAttrOutpostArn() |
java.lang.String |
getAttrPreferredInstanceType() |
java.lang.String |
getAttrResolverEndpointId()
The ID of the resolver endpoint.
|
java.lang.String |
getAttrResolverEndpointType()
For the endpoint type you can choose either IPv4, IPv6.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDirection()
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.
|
java.lang.Object |
getIpAddresses()
The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
|
java.lang.String |
getName()
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.
|
java.lang.String |
getOutpostArn()
`AWS::Route53Resolver::ResolverEndpoint.OutpostArn`.
|
java.lang.String |
getPreferredInstanceType()
`AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType`.
|
java.lang.String |
getResolverEndpointType()
The Resolver endpoint IP address type.
|
java.util.List<java.lang.String> |
getSecurityGroupIds()
The ID of one or more security groups that control access to this VPC.
|
TagManager |
getTags()
Route 53 Resolver doesn't support updating tags through CloudFormation.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDirection(java.lang.String value)
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:.
|
void |
setIpAddresses(IResolvable value)
The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
|
void |
setIpAddresses(java.util.List<java.lang.Object> value)
The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).
|
void |
setName(java.lang.String value)
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.
|
void |
setOutpostArn(java.lang.String value)
`AWS::Route53Resolver::ResolverEndpoint.OutpostArn`.
|
void |
setPreferredInstanceType(java.lang.String value)
`AWS::Route53Resolver::ResolverEndpoint.PreferredInstanceType`.
|
void |
setResolverEndpointType(java.lang.String value)
The Resolver endpoint IP address type.
|
void |
setSecurityGroupIds(java.util.List<java.lang.String> value)
The ID of one or more security groups that control access to this VPC.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnResolverEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResolverEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnResolverEndpoint(Construct scope, java.lang.String id, CfnResolverEndpointProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
public java.lang.String getAttrDirection()
public java.lang.String getAttrHostVpcId()
public java.lang.String getAttrIpAddressCount()
public java.lang.String getAttrName()
public java.lang.String getAttrOutpostArn()
public java.lang.String getAttrPreferredInstanceType()
public java.lang.String getAttrResolverEndpointId()
public java.lang.String getAttrResolverEndpointType()
or dual-stack. A dual-stack endpoint means that it will resolve via both IPv4 and IPv6. If you choose either IPv4 or IPv6, this endpoint type is applied to all IP addresses.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getDirection()
INBOUND
: allows DNS queries to your VPC from your networkOUTBOUND
: allows DNS queries from your VPC to your networkpublic void setDirection(java.lang.String value)
INBOUND
: allows DNS queries to your VPC from your networkOUTBOUND
: allows DNS queries from your VPC to your networkpublic java.lang.Object getIpAddresses()
The subnet ID uniquely identifies a VPC.
public void setIpAddresses(IResolvable value)
The subnet ID uniquely identifies a VPC.
public void setIpAddresses(java.util.List<java.lang.Object> value)
The subnet ID uniquely identifies a VPC.
public java.util.List<java.lang.String> getSecurityGroupIds()
The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
public void setSecurityGroupIds(java.util.List<java.lang.String> value)
The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getOutpostArn()
public void setOutpostArn(java.lang.String value)
public java.lang.String getPreferredInstanceType()
public void setPreferredInstanceType(java.lang.String value)
public java.lang.String getResolverEndpointType()
public void setResolverEndpointType(java.lang.String value)