Struct aws_sdk_resiliencehub::types::ResourceMapping
source · #[non_exhaustive]pub struct ResourceMapping {
pub resource_name: Option<String>,
pub logical_stack_name: Option<String>,
pub app_registry_app_name: Option<String>,
pub resource_group_name: Option<String>,
pub mapping_type: ResourceMappingType,
pub physical_resource_id: Option<PhysicalResourceId>,
pub terraform_source_name: Option<String>,
pub eks_source_name: Option<String>,
}Expand description
Defines a resource mapping.
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>Name of the resource that the resource is mapped to.
logical_stack_name: Option<String>The name of the CloudFormation stack this resource is mapped to.
app_registry_app_name: Option<String>The name of the application this resource is mapped to.
resource_group_name: Option<String>Name of the resource group that the resource is mapped to.
mapping_type: ResourceMappingTypeSpecifies the type of resource mapping.
- AppRegistryApp
-
The resource is mapped to another application. The name of the application is contained in the
appRegistryAppNameproperty. - CfnStack
-
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the
logicalStackNameproperty. - Resource
-
The resource is mapped to another resource. The name of the resource is contained in the
resourceNameproperty. - ResourceGroup
-
The resource is mapped to Resource Groups. The name of the resource group is contained in the
resourceGroupNameproperty.
physical_resource_id: Option<PhysicalResourceId>Identifier of the physical resource.
terraform_source_name: Option<String>The short name of the Terraform source.
eks_source_name: Option<String>Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
Implementations§
source§impl ResourceMapping
impl ResourceMapping
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
Name of the resource that the resource is mapped to.
sourcepub fn logical_stack_name(&self) -> Option<&str>
pub fn logical_stack_name(&self) -> Option<&str>
The name of the CloudFormation stack this resource is mapped to.
sourcepub fn app_registry_app_name(&self) -> Option<&str>
pub fn app_registry_app_name(&self) -> Option<&str>
The name of the application this resource is mapped to.
sourcepub fn resource_group_name(&self) -> Option<&str>
pub fn resource_group_name(&self) -> Option<&str>
Name of the resource group that the resource is mapped to.
sourcepub fn mapping_type(&self) -> &ResourceMappingType
pub fn mapping_type(&self) -> &ResourceMappingType
Specifies the type of resource mapping.
- AppRegistryApp
-
The resource is mapped to another application. The name of the application is contained in the
appRegistryAppNameproperty. - CfnStack
-
The resource is mapped to a CloudFormation stack. The name of the CloudFormation stack is contained in the
logicalStackNameproperty. - Resource
-
The resource is mapped to another resource. The name of the resource is contained in the
resourceNameproperty. - ResourceGroup
-
The resource is mapped to Resource Groups. The name of the resource group is contained in the
resourceGroupNameproperty.
sourcepub fn physical_resource_id(&self) -> Option<&PhysicalResourceId>
pub fn physical_resource_id(&self) -> Option<&PhysicalResourceId>
Identifier of the physical resource.
sourcepub fn terraform_source_name(&self) -> Option<&str>
pub fn terraform_source_name(&self) -> Option<&str>
The short name of the Terraform source.
sourcepub fn eks_source_name(&self) -> Option<&str>
pub fn eks_source_name(&self) -> Option<&str>
Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.
This parameter accepts values in "eks-cluster/namespace" format.
source§impl ResourceMapping
impl ResourceMapping
sourcepub fn builder() -> ResourceMappingBuilder
pub fn builder() -> ResourceMappingBuilder
Creates a new builder-style object to manufacture ResourceMapping.
Trait Implementations§
source§impl Clone for ResourceMapping
impl Clone for ResourceMapping
source§fn clone(&self) -> ResourceMapping
fn clone(&self) -> ResourceMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourceMapping
impl Debug for ResourceMapping
source§impl PartialEq for ResourceMapping
impl PartialEq for ResourceMapping
source§fn eq(&self, other: &ResourceMapping) -> bool
fn eq(&self, other: &ResourceMapping) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResourceMapping
Auto Trait Implementations§
impl Freeze for ResourceMapping
impl RefUnwindSafe for ResourceMapping
impl Send for ResourceMapping
impl Sync for ResourceMapping
impl Unpin for ResourceMapping
impl UnwindSafe for ResourceMapping
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