#[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 -
INBOUND_DELEGATION
: Resolver delegates queries to Route 53 private hosted zones from 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 -
INBOUND_DELEGATION
: Resolver delegates queries to Route 53 private hosted zones from 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 -
INBOUND_DELEGATION
: Resolver delegates queries to Route 53 private hosted zones from 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 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 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 protocols(self, input: Protocol) -> Self
pub fn protocols(self, input: Protocol) -> Self
Appends an item to protocols
.
To override the contents of this collection use set_protocols
.
Protocols used for the endpoint. DoH-FIPS is applicable for a default inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For a delegation inbound endpoint you can use Do53 only.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
Sourcepub fn set_protocols(self, input: Option<Vec<Protocol>>) -> Self
pub fn set_protocols(self, input: Option<Vec<Protocol>>) -> Self
Protocols used for the endpoint. DoH-FIPS is applicable for a default inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For a delegation inbound endpoint you can use Do53 only.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
Sourcepub fn get_protocols(&self) -> &Option<Vec<Protocol>>
pub fn get_protocols(&self) -> &Option<Vec<Protocol>>
Protocols used for the endpoint. DoH-FIPS is applicable for a default inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For a delegation inbound endpoint you can use Do53 only.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
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§const fn clone_from(&mut self, source: &Self)
const 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 ==
.impl StructuralPartialEq for ResolverEndpointBuilder
Auto Trait Implementations§
impl Freeze for ResolverEndpointBuilder
impl RefUnwindSafe for ResolverEndpointBuilder
impl Send for ResolverEndpointBuilder
impl Sync for ResolverEndpointBuilder
impl Unpin for ResolverEndpointBuilder
impl UnwindSafe for ResolverEndpointBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);