#[non_exhaustive]pub struct ResolverEndpointBuilder { /* private fields */ }
Expand description
A builder for ResolverEndpoint
.
Implementations§
source§impl ResolverEndpointBuilder
impl ResolverEndpointBuilder
sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
pub fn creator_request_id(self, input: impl Into<String>) -> Self
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId
allows failed requests to be retried without the risk of running the operation twice.
sourcepub fn set_creator_request_id(self, input: Option<String>) -> Self
pub fn set_creator_request_id(self, input: Option<String>) -> Self
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId
allows failed requests to be retried without the risk of running the operation twice.
sourcepub fn get_creator_request_id(&self) -> &Option<String>
pub fn get_creator_request_id(&self) -> &Option<String>
A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId
allows failed requests to be retried without the risk of running the operation twice.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) for the Resolver endpoint.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) for the Resolver endpoint.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN (Amazon Resource Name) for the Resolver endpoint.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
The ID of one or more security groups that control access to this VPC. 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.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
The ID of one or more security groups that control access to this VPC. 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.
sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
The ID of one or more security groups that control access to this VPC. 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.
sourcepub fn direction(self, input: ResolverEndpointDirection) -> Self
pub fn direction(self, input: ResolverEndpointDirection) -> Self
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND
: allows DNS queries to your VPC from your network -
OUTBOUND
: allows DNS queries from your VPC to your network
sourcepub fn set_direction(self, input: Option<ResolverEndpointDirection>) -> Self
pub fn set_direction(self, input: Option<ResolverEndpointDirection>) -> Self
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND
: allows DNS queries to your VPC from your network -
OUTBOUND
: allows DNS queries from your VPC to your network
sourcepub fn get_direction(&self) -> &Option<ResolverEndpointDirection>
pub fn get_direction(&self) -> &Option<ResolverEndpointDirection>
Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
-
INBOUND
: allows DNS queries to your VPC from your network -
OUTBOUND
: allows DNS queries from your VPC to your network
sourcepub fn ip_address_count(self, input: i32) -> Self
pub fn ip_address_count(self, input: i32) -> Self
The number of IP addresses that the Resolver endpoint can use for DNS queries.
sourcepub fn set_ip_address_count(self, input: Option<i32>) -> Self
pub fn set_ip_address_count(self, input: Option<i32>) -> Self
The number of IP addresses that the Resolver endpoint can use for DNS queries.
sourcepub fn get_ip_address_count(&self) -> &Option<i32>
pub fn get_ip_address_count(&self) -> &Option<i32>
The number of IP addresses that the Resolver endpoint can use for DNS queries.
sourcepub fn host_vpc_id(self, input: impl Into<String>) -> Self
pub fn host_vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC that you want to create the Resolver endpoint in.
sourcepub fn set_host_vpc_id(self, input: Option<String>) -> Self
pub fn set_host_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC that you want to create the Resolver endpoint in.
sourcepub fn get_host_vpc_id(&self) -> &Option<String>
pub fn get_host_vpc_id(&self) -> &Option<String>
The ID of the VPC that you want to create the Resolver endpoint in.
sourcepub fn status(self, input: ResolverEndpointStatus) -> Self
pub fn status(self, input: ResolverEndpointStatus) -> Self
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
-
CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING
: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDED
can have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
sourcepub fn set_status(self, input: Option<ResolverEndpointStatus>) -> Self
pub fn set_status(self, input: Option<ResolverEndpointStatus>) -> Self
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
-
CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING
: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDED
can have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
sourcepub fn get_status(&self) -> &Option<ResolverEndpointStatus>
pub fn get_status(&self) -> &Option<ResolverEndpointStatus>
A code that specifies the current status of the Resolver endpoint. Valid values include the following:
-
CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint. -
OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver. -
UPDATING
: Resolver is associating or disassociating one or more network interfaces with this endpoint. -
AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver. -
ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status ofACTION_NEEDED
can have a variety of causes. Here are two common causes:-
One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
-
The network interface couldn't be created for some reason that's outside the control of Resolver.
-
-
DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A detailed description of the status of the Resolver endpoint.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A detailed description of the status of the Resolver endpoint.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
A detailed description of the status of the Resolver endpoint.
sourcepub fn creation_time(self, input: impl Into<String>) -> Self
pub fn creation_time(self, input: impl Into<String>) -> Self
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn set_creation_time(self, input: Option<String>) -> Self
pub fn set_creation_time(self, input: Option<String>) -> Self
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn get_creation_time(&self) -> &Option<String>
pub fn get_creation_time(&self) -> &Option<String>
The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn modification_time(self, input: impl Into<String>) -> Self
pub fn modification_time(self, input: impl Into<String>) -> Self
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn set_modification_time(self, input: Option<String>) -> Self
pub fn set_modification_time(self, input: Option<String>) -> Self
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn get_modification_time(&self) -> &Option<String>
pub fn get_modification_time(&self) -> &Option<String>
The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
sourcepub fn resolver_endpoint_type(self, input: ResolverEndpointType) -> Self
pub fn resolver_endpoint_type(self, input: ResolverEndpointType) -> Self
The Resolver endpoint IP address type.
sourcepub fn set_resolver_endpoint_type(
self,
input: Option<ResolverEndpointType>
) -> Self
pub fn set_resolver_endpoint_type( self, input: Option<ResolverEndpointType> ) -> Self
The Resolver endpoint IP address type.
sourcepub fn get_resolver_endpoint_type(&self) -> &Option<ResolverEndpointType>
pub fn get_resolver_endpoint_type(&self) -> &Option<ResolverEndpointType>
The Resolver endpoint IP address type.
sourcepub fn outpost_arn(self, input: impl Into<String>) -> Self
pub fn outpost_arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) for the Outpost.
sourcepub fn set_outpost_arn(self, input: Option<String>) -> Self
pub fn set_outpost_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) for the Outpost.
sourcepub fn get_outpost_arn(&self) -> &Option<String>
pub fn get_outpost_arn(&self) -> &Option<String>
The ARN (Amazon Resource Name) for the Outpost.
sourcepub fn preferred_instance_type(self, input: impl Into<String>) -> Self
pub fn preferred_instance_type(self, input: impl Into<String>) -> Self
The Amazon EC2 instance type.
sourcepub fn set_preferred_instance_type(self, input: Option<String>) -> Self
pub fn set_preferred_instance_type(self, input: Option<String>) -> Self
The Amazon EC2 instance type.
sourcepub fn get_preferred_instance_type(&self) -> &Option<String>
pub fn get_preferred_instance_type(&self) -> &Option<String>
The Amazon EC2 instance type.
sourcepub fn build(self) -> ResolverEndpoint
pub fn build(self) -> ResolverEndpoint
Consumes the builder and constructs a ResolverEndpoint
.
Trait Implementations§
source§impl Clone for ResolverEndpointBuilder
impl Clone for ResolverEndpointBuilder
source§fn clone(&self) -> ResolverEndpointBuilder
fn clone(&self) -> ResolverEndpointBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResolverEndpointBuilder
impl Debug for ResolverEndpointBuilder
source§impl Default for ResolverEndpointBuilder
impl Default for ResolverEndpointBuilder
source§fn default() -> ResolverEndpointBuilder
fn default() -> ResolverEndpointBuilder
source§impl PartialEq for ResolverEndpointBuilder
impl PartialEq for ResolverEndpointBuilder
source§fn eq(&self, other: &ResolverEndpointBuilder) -> bool
fn eq(&self, other: &ResolverEndpointBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.