Class: AWSCDK::ResilienceHub::CfnApp::PhysicalResourceIdProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ResilienceHub::CfnApp::PhysicalResourceIdProperty
- Defined in:
- resilience_hub/cfn_app.rb
Overview
Defines a physical resource identifier.
Instance Attribute Summary collapse
-
#aws_account_id ⇒ String?
readonly
The AWS account that owns the physical resource.
-
#aws_region ⇒ String?
readonly
The AWS Region that the physical resource is located in.
-
#identifier ⇒ String
readonly
Identifier of the physical resource.
-
#type ⇒ String
readonly
Specifies the type of physical resource identifier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(identifier:, type:, aws_account_id: nil, aws_region: nil) ⇒ PhysicalResourceIdProperty
constructor
A new instance of PhysicalResourceIdProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(identifier:, type:, aws_account_id: nil, aws_region: nil) ⇒ PhysicalResourceIdProperty
Returns a new instance of PhysicalResourceIdProperty.
760 761 762 763 764 765 766 767 768 769 |
# File 'resilience_hub/cfn_app.rb', line 760 def initialize(identifier:, type:, aws_account_id: nil, aws_region: nil) @identifier = identifier Jsii::Type.check_type(@identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identifier") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @aws_account_id = aws_account_id Jsii::Type.check_type(@aws_account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsAccountId") unless @aws_account_id.nil? @aws_region = aws_region Jsii::Type.check_type(@aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsRegion") unless @aws_region.nil? end |
Instance Attribute Details
#aws_account_id ⇒ String? (readonly)
The AWS account that owns the physical resource.
812 813 814 |
# File 'resilience_hub/cfn_app.rb', line 812 def aws_account_id @aws_account_id end |
#aws_region ⇒ String? (readonly)
The AWS Region that the physical resource is located in.
817 818 819 |
# File 'resilience_hub/cfn_app.rb', line 817 def aws_region @aws_region end |
#identifier ⇒ String (readonly)
Identifier of the physical resource.
775 776 777 |
# File 'resilience_hub/cfn_app.rb', line 775 def identifier @identifier end |
#type ⇒ String (readonly)
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::ServiceAWS::EFS::FileSystemAWS::ElasticLoadBalancingV2::LoadBalancerAWS::Lambda::FunctionAWS::SNS::Topic- Native - The resource identifier is an AWS Resilience Hub -native identifier and it can identify the following list of resources:
AWS::ApiGateway::RestApiAWS::ApiGatewayV2::ApiAWS::AutoScaling::AutoScalingGroupAWS::DocDB::DBClusterAWS::DocDB::DBGlobalClusterAWS::DocDB::DBInstanceAWS::DynamoDB::GlobalTableAWS::DynamoDB::TableAWS::EC2::EC2FleetAWS::EC2::InstanceAWS::EC2::NatGatewayAWS::EC2::VolumeAWS::ElasticLoadBalancing::LoadBalancerAWS::RDS::DBClusterAWS::RDS::DBInstanceAWS::RDS::GlobalClusterAWS::Route53::RecordSetAWS::S3::BucketAWS::SQS::Queue
807 808 809 |
# File 'resilience_hub/cfn_app.rb', line 807 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
819 820 821 822 823 824 825 826 |
# File 'resilience_hub/cfn_app.rb', line 819 def self.jsii_properties { :identifier => "identifier", :type => "type", :aws_account_id => "awsAccountId", :aws_region => "awsRegion", } end |
Instance Method Details
#to_jsii ⇒ Object
828 829 830 831 832 833 834 835 836 837 |
# File 'resilience_hub/cfn_app.rb', line 828 def to_jsii result = {} result.merge!({ "identifier" => @identifier, "type" => @type, "awsAccountId" => @aws_account_id, "awsRegion" => @aws_region, }) result.compact end |