Struct aws_sdk_resiliencehub::types::PhysicalResourceId
source · #[non_exhaustive]pub struct PhysicalResourceId {
pub identifier: String,
pub type: PhysicalIdentifierType,
pub aws_region: Option<String>,
pub aws_account_id: Option<String>,
}Expand description
Defines a physical resource 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.identifier: StringIdentifier of the physical resource.
type: PhysicalIdentifierTypeSpecifies the type of physical resource identifier.
- Arn
-
The resource identifier is an Amazon Resource Name (ARN) and it can identify the following list of resources:
-
AWS::ECS::Service -
AWS::EFS::FileSystem -
AWS::ElasticLoadBalancingV2::LoadBalancer -
AWS::Lambda::Function -
AWS::SNS::Topic
-
- Native
-
The resource identifier is an Resilience Hub-native identifier and it can identify the following list of resources:
-
AWS::ApiGateway::RestApi -
AWS::ApiGatewayV2::Api -
AWS::AutoScaling::AutoScalingGroup -
AWS::DocDB::DBCluster -
AWS::DocDB::DBGlobalCluster -
AWS::DocDB::DBInstance -
AWS::DynamoDB::GlobalTable -
AWS::DynamoDB::Table -
AWS::EC2::EC2Fleet -
AWS::EC2::Instance -
AWS::EC2::NatGateway -
AWS::EC2::Volume -
AWS::ElasticLoadBalancing::LoadBalancer -
AWS::RDS::DBCluster -
AWS::RDS::DBInstance -
AWS::RDS::GlobalCluster -
AWS::Route53::RecordSet -
AWS::S3::Bucket -
AWS::SQS::Queue
-
aws_region: Option<String>The Amazon Web Services Region that the physical resource is located in.
aws_account_id: Option<String>The Amazon Web Services account that owns the physical resource.
Implementations§
source§impl PhysicalResourceId
impl PhysicalResourceId
sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Identifier of the physical resource.
sourcepub fn type(&self) -> &PhysicalIdentifierType
pub fn type(&self) -> &PhysicalIdentifierType
Specifies the type of physical resource identifier.
- Arn
-
The resource identifier is an Amazon Resource Name (ARN) and it can identify the following list of resources:
-
AWS::ECS::Service -
AWS::EFS::FileSystem -
AWS::ElasticLoadBalancingV2::LoadBalancer -
AWS::Lambda::Function -
AWS::SNS::Topic
-
- Native
-
The resource identifier is an Resilience Hub-native identifier and it can identify the following list of resources:
-
AWS::ApiGateway::RestApi -
AWS::ApiGatewayV2::Api -
AWS::AutoScaling::AutoScalingGroup -
AWS::DocDB::DBCluster -
AWS::DocDB::DBGlobalCluster -
AWS::DocDB::DBInstance -
AWS::DynamoDB::GlobalTable -
AWS::DynamoDB::Table -
AWS::EC2::EC2Fleet -
AWS::EC2::Instance -
AWS::EC2::NatGateway -
AWS::EC2::Volume -
AWS::ElasticLoadBalancing::LoadBalancer -
AWS::RDS::DBCluster -
AWS::RDS::DBInstance -
AWS::RDS::GlobalCluster -
AWS::Route53::RecordSet -
AWS::S3::Bucket -
AWS::SQS::Queue
-
sourcepub fn aws_region(&self) -> Option<&str>
pub fn aws_region(&self) -> Option<&str>
The Amazon Web Services Region that the physical resource is located in.
sourcepub fn aws_account_id(&self) -> Option<&str>
pub fn aws_account_id(&self) -> Option<&str>
The Amazon Web Services account that owns the physical resource.
source§impl PhysicalResourceId
impl PhysicalResourceId
sourcepub fn builder() -> PhysicalResourceIdBuilder
pub fn builder() -> PhysicalResourceIdBuilder
Creates a new builder-style object to manufacture PhysicalResourceId.
Trait Implementations§
source§impl Clone for PhysicalResourceId
impl Clone for PhysicalResourceId
source§fn clone(&self) -> PhysicalResourceId
fn clone(&self) -> PhysicalResourceId
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PhysicalResourceId
impl Debug for PhysicalResourceId
source§impl PartialEq for PhysicalResourceId
impl PartialEq for PhysicalResourceId
source§fn eq(&self, other: &PhysicalResourceId) -> bool
fn eq(&self, other: &PhysicalResourceId) -> bool
self and other values to be equal, and is used
by ==.