Struct aws_sdk_resiliencehub::types::PhysicalResource
source · #[non_exhaustive]pub struct PhysicalResource {
pub resource_name: Option<String>,
pub logical_resource_id: Option<LogicalResourceId>,
pub physical_resource_id: Option<PhysicalResourceId>,
pub resource_type: String,
pub app_components: Option<Vec<AppComponent>>,
pub additional_info: Option<HashMap<String, Vec<String>>>,
pub excluded: Option<bool>,
pub source_type: Option<ResourceSourceType>,
pub parent_resource_name: Option<String>,
}
Expand description
Defines a physical resource. A physical resource is a resource that exists in your account. It can be identified using an Amazon Resource Name (ARN) or an Resilience Hub-native identifier.
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.resource_name: Option<String>
The name of the resource.
logical_resource_id: Option<LogicalResourceId>
Logical identifier of the resource.
physical_resource_id: Option<PhysicalResourceId>
Identifier of the physical resource.
resource_type: String
The type of resource.
app_components: Option<Vec<AppComponent>>
The application components that belong to this resource.
additional_info: Option<HashMap<String, Vec<String>>>
Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
excluded: Option<bool>
Indicates if a resource is included or excluded from the assessment.
source_type: Option<ResourceSourceType>
Type of input source.
parent_resource_name: Option<String>
Name of the parent resource.
Implementations§
source§impl PhysicalResource
impl PhysicalResource
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
The name of the resource.
sourcepub fn logical_resource_id(&self) -> Option<&LogicalResourceId>
pub fn logical_resource_id(&self) -> Option<&LogicalResourceId>
Logical identifier of the resource.
sourcepub fn physical_resource_id(&self) -> Option<&PhysicalResourceId>
pub fn physical_resource_id(&self) -> Option<&PhysicalResourceId>
Identifier of the physical resource.
sourcepub fn resource_type(&self) -> &str
pub fn resource_type(&self) -> &str
The type of resource.
sourcepub fn app_components(&self) -> &[AppComponent]
pub fn app_components(&self) -> &[AppComponent]
The application components that belong to this resource.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .app_components.is_none()
.
sourcepub fn additional_info(&self) -> Option<&HashMap<String, Vec<String>>>
pub fn additional_info(&self) -> Option<&HashMap<String, Vec<String>>>
Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
sourcepub fn excluded(&self) -> Option<bool>
pub fn excluded(&self) -> Option<bool>
Indicates if a resource is included or excluded from the assessment.
sourcepub fn source_type(&self) -> Option<&ResourceSourceType>
pub fn source_type(&self) -> Option<&ResourceSourceType>
Type of input source.
sourcepub fn parent_resource_name(&self) -> Option<&str>
pub fn parent_resource_name(&self) -> Option<&str>
Name of the parent resource.
source§impl PhysicalResource
impl PhysicalResource
sourcepub fn builder() -> PhysicalResourceBuilder
pub fn builder() -> PhysicalResourceBuilder
Creates a new builder-style object to manufacture PhysicalResource
.
Trait Implementations§
source§impl Clone for PhysicalResource
impl Clone for PhysicalResource
source§fn clone(&self) -> PhysicalResource
fn clone(&self) -> PhysicalResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PhysicalResource
impl Debug for PhysicalResource
source§impl PartialEq for PhysicalResource
impl PartialEq for PhysicalResource
source§fn eq(&self, other: &PhysicalResource) -> bool
fn eq(&self, other: &PhysicalResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhysicalResource
Auto Trait Implementations§
impl Freeze for PhysicalResource
impl RefUnwindSafe for PhysicalResource
impl Send for PhysicalResource
impl Sync for PhysicalResource
impl Unpin for PhysicalResource
impl UnwindSafe for PhysicalResource
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> 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 more