#[non_exhaustive]pub struct GetEnvironmentOutput {Show 23 fields
pub name: String,
pub description: Option<String>,
pub environment_arn: String,
pub environment_id: String,
pub instance_type: String,
pub status: EnvironmentLifecycle,
pub engine_type: EngineType,
pub engine_version: String,
pub vpc_id: String,
pub subnet_ids: Vec<String>,
pub security_group_ids: Vec<String>,
pub creation_time: DateTime,
pub storage_configurations: Option<Vec<StorageConfiguration>>,
pub tags: Option<HashMap<String, String>>,
pub high_availability_config: Option<HighAvailabilityConfig>,
pub publicly_accessible: bool,
pub actual_capacity: Option<i32>,
pub load_balancer_arn: Option<String>,
pub status_reason: Option<String>,
pub preferred_maintenance_window: Option<String>,
pub pending_maintenance: Option<PendingMaintenance>,
pub kms_key_id: Option<String>,
pub network_type: Option<NetworkType>,
/* private fields */
}
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.name: String
The name of the runtime environment. Must be unique within the account.
description: Option<String>
The description of the runtime environment.
environment_arn: String
The Amazon Resource Name (ARN) of the runtime environment.
environment_id: String
The unique identifier of the runtime environment.
instance_type: String
The type of instance underlying the runtime environment.
status: EnvironmentLifecycle
The status of the runtime environment. If the Amazon Web Services Mainframe Modernization environment is missing a connection to the customer owned dependent resource, the status will be Unhealthy
.
engine_type: EngineType
The target platform for the runtime environment.
engine_version: String
The version of the runtime engine.
vpc_id: String
The unique identifier for the VPC used with this runtime environment.
subnet_ids: Vec<String>
The unique identifiers of the subnets assigned to this runtime environment.
security_group_ids: Vec<String>
The unique identifiers of the security groups assigned to this runtime environment.
creation_time: DateTime
The timestamp when the runtime environment was created.
storage_configurations: Option<Vec<StorageConfiguration>>
The storage configurations defined for the runtime environment.
The tags defined for this runtime environment.
high_availability_config: Option<HighAvailabilityConfig>
The desired capacity of the high availability configuration for the runtime environment.
publicly_accessible: bool
Whether applications running in this runtime environment are publicly accessible.
actual_capacity: Option<i32>
The number of instances included in the runtime environment. A standalone runtime environment has a maximum of one instance. Currently, a high availability runtime environment has a maximum of two instances.
load_balancer_arn: Option<String>
The Amazon Resource Name (ARN) for the load balancer used with the runtime environment.
status_reason: Option<String>
The reason for the reported status.
preferred_maintenance_window: Option<String>
The maintenance window for the runtime environment. If you don't provide a value for the maintenance window, the service assigns a random value.
pending_maintenance: Option<PendingMaintenance>
Indicates the pending maintenance scheduled on this environment.
kms_key_id: Option<String>
The identifier of a customer managed key.
network_type: Option<NetworkType>
The network type supported by the runtime environment.
Implementations§
Source§impl GetEnvironmentOutput
impl GetEnvironmentOutput
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the runtime environment. Must be unique within the account.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the runtime environment.
Sourcepub fn environment_arn(&self) -> &str
pub fn environment_arn(&self) -> &str
The Amazon Resource Name (ARN) of the runtime environment.
Sourcepub fn environment_id(&self) -> &str
pub fn environment_id(&self) -> &str
The unique identifier of the runtime environment.
Sourcepub fn instance_type(&self) -> &str
pub fn instance_type(&self) -> &str
The type of instance underlying the runtime environment.
Sourcepub fn status(&self) -> &EnvironmentLifecycle
pub fn status(&self) -> &EnvironmentLifecycle
The status of the runtime environment. If the Amazon Web Services Mainframe Modernization environment is missing a connection to the customer owned dependent resource, the status will be Unhealthy
.
Sourcepub fn engine_type(&self) -> &EngineType
pub fn engine_type(&self) -> &EngineType
The target platform for the runtime environment.
Sourcepub fn engine_version(&self) -> &str
pub fn engine_version(&self) -> &str
The version of the runtime engine.
Sourcepub fn vpc_id(&self) -> &str
pub fn vpc_id(&self) -> &str
The unique identifier for the VPC used with this runtime environment.
Sourcepub fn subnet_ids(&self) -> &[String]
pub fn subnet_ids(&self) -> &[String]
The unique identifiers of the subnets assigned to this runtime environment.
Sourcepub fn security_group_ids(&self) -> &[String]
pub fn security_group_ids(&self) -> &[String]
The unique identifiers of the security groups assigned to this runtime environment.
Sourcepub fn creation_time(&self) -> &DateTime
pub fn creation_time(&self) -> &DateTime
The timestamp when the runtime environment was created.
Sourcepub fn storage_configurations(&self) -> &[StorageConfiguration]
pub fn storage_configurations(&self) -> &[StorageConfiguration]
The storage configurations defined for the runtime environment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .storage_configurations.is_none()
.
The tags defined for this runtime environment.
Sourcepub fn high_availability_config(&self) -> Option<&HighAvailabilityConfig>
pub fn high_availability_config(&self) -> Option<&HighAvailabilityConfig>
The desired capacity of the high availability configuration for the runtime environment.
Sourcepub fn publicly_accessible(&self) -> bool
pub fn publicly_accessible(&self) -> bool
Whether applications running in this runtime environment are publicly accessible.
Sourcepub fn actual_capacity(&self) -> Option<i32>
pub fn actual_capacity(&self) -> Option<i32>
The number of instances included in the runtime environment. A standalone runtime environment has a maximum of one instance. Currently, a high availability runtime environment has a maximum of two instances.
Sourcepub fn load_balancer_arn(&self) -> Option<&str>
pub fn load_balancer_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the load balancer used with the runtime environment.
Sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
The reason for the reported status.
Sourcepub fn preferred_maintenance_window(&self) -> Option<&str>
pub fn preferred_maintenance_window(&self) -> Option<&str>
The maintenance window for the runtime environment. If you don't provide a value for the maintenance window, the service assigns a random value.
Sourcepub fn pending_maintenance(&self) -> Option<&PendingMaintenance>
pub fn pending_maintenance(&self) -> Option<&PendingMaintenance>
Indicates the pending maintenance scheduled on this environment.
Sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The identifier of a customer managed key.
Sourcepub fn network_type(&self) -> Option<&NetworkType>
pub fn network_type(&self) -> Option<&NetworkType>
The network type supported by the runtime environment.
Source§impl GetEnvironmentOutput
impl GetEnvironmentOutput
Sourcepub fn builder() -> GetEnvironmentOutputBuilder
pub fn builder() -> GetEnvironmentOutputBuilder
Creates a new builder-style object to manufacture GetEnvironmentOutput
.
Trait Implementations§
Source§impl Clone for GetEnvironmentOutput
impl Clone for GetEnvironmentOutput
Source§fn clone(&self) -> GetEnvironmentOutput
fn clone(&self) -> GetEnvironmentOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GetEnvironmentOutput
impl Debug for GetEnvironmentOutput
Source§impl PartialEq for GetEnvironmentOutput
impl PartialEq for GetEnvironmentOutput
Source§impl RequestId for GetEnvironmentOutput
impl RequestId for GetEnvironmentOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetEnvironmentOutput
Auto Trait Implementations§
impl Freeze for GetEnvironmentOutput
impl RefUnwindSafe for GetEnvironmentOutput
impl Send for GetEnvironmentOutput
impl Sync for GetEnvironmentOutput
impl Unpin for GetEnvironmentOutput
impl UnwindSafe for GetEnvironmentOutput
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);