#[non_exhaustive]pub struct VpcEndpoint {Show 25 fields
pub vpc_endpoint_id: Option<String>,
pub vpc_endpoint_type: Option<VpcEndpointType>,
pub vpc_id: Option<String>,
pub service_name: Option<String>,
pub state: Option<State>,
pub policy_document: Option<String>,
pub route_table_ids: Option<Vec<String>>,
pub subnet_ids: Option<Vec<String>>,
pub groups: Option<Vec<SecurityGroupIdentifier>>,
pub ip_address_type: Option<IpAddressType>,
pub dns_options: Option<DnsOptions>,
pub private_dns_enabled: Option<bool>,
pub requester_managed: Option<bool>,
pub network_interface_ids: Option<Vec<String>>,
pub dns_entries: Option<Vec<DnsEntry>>,
pub creation_timestamp: Option<DateTime>,
pub tags: Option<Vec<Tag>>,
pub owner_id: Option<String>,
pub last_error: Option<LastError>,
pub ipv4_prefixes: Option<Vec<SubnetIpPrefixes>>,
pub ipv6_prefixes: Option<Vec<SubnetIpPrefixes>>,
pub failure_reason: Option<String>,
pub service_network_arn: Option<String>,
pub resource_configuration_arn: Option<String>,
pub service_region: Option<String>,
}
Expand description
Describes a VPC endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.vpc_endpoint_id: Option<String>
The ID of the endpoint.
vpc_endpoint_type: Option<VpcEndpointType>
The type of endpoint.
vpc_id: Option<String>
The ID of the VPC to which the endpoint is associated.
service_name: Option<String>
The name of the service to which the endpoint is associated.
state: Option<State>
The state of the endpoint.
policy_document: Option<String>
The policy document associated with the endpoint, if applicable.
route_table_ids: Option<Vec<String>>
(Gateway endpoint) The IDs of the route tables associated with the endpoint.
subnet_ids: Option<Vec<String>>
(Interface endpoint) The subnets for the endpoint.
groups: Option<Vec<SecurityGroupIdentifier>>
(Interface endpoint) Information about the security groups that are associated with the network interface.
ip_address_type: Option<IpAddressType>
The IP address type for the endpoint.
dns_options: Option<DnsOptions>
The DNS options for the endpoint.
private_dns_enabled: Option<bool>
(Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
requester_managed: Option<bool>
Indicates whether the endpoint is being managed by its service.
network_interface_ids: Option<Vec<String>>
(Interface endpoint) The network interfaces for the endpoint.
dns_entries: Option<Vec<DnsEntry>>
(Interface endpoint) The DNS entries for the endpoint.
creation_timestamp: Option<DateTime>
The date and time that the endpoint was created.
The tags assigned to the endpoint.
owner_id: Option<String>
The ID of the Amazon Web Services account that owns the endpoint.
last_error: Option<LastError>
The last error that occurred for endpoint.
ipv4_prefixes: Option<Vec<SubnetIpPrefixes>>
Array of IPv4 prefixes.
ipv6_prefixes: Option<Vec<SubnetIpPrefixes>>
Array of IPv6 prefixes.
failure_reason: Option<String>
Reason for the failure.
service_network_arn: Option<String>
The Amazon Resource Name (ARN) of the service network.
resource_configuration_arn: Option<String>
The Amazon Resource Name (ARN) of the resource configuration.
service_region: Option<String>
The Region where the service is hosted.
Implementations§
Source§impl VpcEndpoint
impl VpcEndpoint
Sourcepub fn vpc_endpoint_id(&self) -> Option<&str>
pub fn vpc_endpoint_id(&self) -> Option<&str>
The ID of the endpoint.
Sourcepub fn vpc_endpoint_type(&self) -> Option<&VpcEndpointType>
pub fn vpc_endpoint_type(&self) -> Option<&VpcEndpointType>
The type of endpoint.
Sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service to which the endpoint is associated.
Sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The policy document associated with the endpoint, if applicable.
Sourcepub fn route_table_ids(&self) -> &[String]
pub fn route_table_ids(&self) -> &[String]
(Gateway endpoint) The IDs of the route tables associated with the endpoint.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .route_table_ids.is_none()
.
Sourcepub fn subnet_ids(&self) -> &[String]
pub fn subnet_ids(&self) -> &[String]
(Interface endpoint) The subnets for the endpoint.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subnet_ids.is_none()
.
Sourcepub fn groups(&self) -> &[SecurityGroupIdentifier]
pub fn groups(&self) -> &[SecurityGroupIdentifier]
(Interface endpoint) Information about the security groups that are associated with the network interface.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .groups.is_none()
.
Sourcepub fn ip_address_type(&self) -> Option<&IpAddressType>
pub fn ip_address_type(&self) -> Option<&IpAddressType>
The IP address type for the endpoint.
Sourcepub fn dns_options(&self) -> Option<&DnsOptions>
pub fn dns_options(&self) -> Option<&DnsOptions>
The DNS options for the endpoint.
Sourcepub fn private_dns_enabled(&self) -> Option<bool>
pub fn private_dns_enabled(&self) -> Option<bool>
(Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
Sourcepub fn requester_managed(&self) -> Option<bool>
pub fn requester_managed(&self) -> Option<bool>
Indicates whether the endpoint is being managed by its service.
Sourcepub fn network_interface_ids(&self) -> &[String]
pub fn network_interface_ids(&self) -> &[String]
(Interface endpoint) The network interfaces for the endpoint.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .network_interface_ids.is_none()
.
Sourcepub fn dns_entries(&self) -> &[DnsEntry]
pub fn dns_entries(&self) -> &[DnsEntry]
(Interface endpoint) The DNS entries for the endpoint.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .dns_entries.is_none()
.
Sourcepub fn creation_timestamp(&self) -> Option<&DateTime>
pub fn creation_timestamp(&self) -> Option<&DateTime>
The date and time that the endpoint was created.
The tags assigned to the endpoint.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
Sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the endpoint.
Sourcepub fn last_error(&self) -> Option<&LastError>
pub fn last_error(&self) -> Option<&LastError>
The last error that occurred for endpoint.
Sourcepub fn ipv4_prefixes(&self) -> &[SubnetIpPrefixes]
pub fn ipv4_prefixes(&self) -> &[SubnetIpPrefixes]
Array of IPv4 prefixes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ipv4_prefixes.is_none()
.
Sourcepub fn ipv6_prefixes(&self) -> &[SubnetIpPrefixes]
pub fn ipv6_prefixes(&self) -> &[SubnetIpPrefixes]
Array of IPv6 prefixes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ipv6_prefixes.is_none()
.
Sourcepub fn failure_reason(&self) -> Option<&str>
pub fn failure_reason(&self) -> Option<&str>
Reason for the failure.
Sourcepub fn service_network_arn(&self) -> Option<&str>
pub fn service_network_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the service network.
Sourcepub fn resource_configuration_arn(&self) -> Option<&str>
pub fn resource_configuration_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the resource configuration.
Sourcepub fn service_region(&self) -> Option<&str>
pub fn service_region(&self) -> Option<&str>
The Region where the service is hosted.
Source§impl VpcEndpoint
impl VpcEndpoint
Sourcepub fn builder() -> VpcEndpointBuilder
pub fn builder() -> VpcEndpointBuilder
Creates a new builder-style object to manufacture VpcEndpoint
.
Trait Implementations§
Source§impl Clone for VpcEndpoint
impl Clone for VpcEndpoint
Source§fn clone(&self) -> VpcEndpoint
fn clone(&self) -> VpcEndpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VpcEndpoint
impl Debug for VpcEndpoint
Source§impl PartialEq for VpcEndpoint
impl PartialEq for VpcEndpoint
impl StructuralPartialEq for VpcEndpoint
Auto Trait Implementations§
impl Freeze for VpcEndpoint
impl RefUnwindSafe for VpcEndpoint
impl Send for VpcEndpoint
impl Sync for VpcEndpoint
impl Unpin for VpcEndpoint
impl UnwindSafe for VpcEndpoint
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);