Class: AWSCDK::ResilienceHub::CfnApp::PhysicalResourceIdProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
resilience_hub/cfn_app.rb

Overview

Defines a physical resource identifier.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:, type:, aws_account_id: nil, aws_region: nil) ⇒ PhysicalResourceIdProperty

Returns a new instance of PhysicalResourceIdProperty.

Parameters:

  • identifier (String)

    Identifier of the physical resource.

  • type (String)

    Specifies the type of physical resource identifier.

  • aws_account_id (String, nil) (defaults to: nil)

    The AWS account that owns the physical resource.

  • aws_region (String, nil) (defaults to: nil)

    The AWS Region that the physical resource is located in.



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 = 
  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_idString? (readonly)

The AWS account that owns the physical resource.



812
813
814
# File 'resilience_hub/cfn_app.rb', line 812

def 
  @aws_account_id
end

#aws_regionString? (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

#identifierString (readonly)

Identifier of the physical resource.



775
776
777
# File 'resilience_hub/cfn_app.rb', line 775

def identifier
  @identifier
end

#typeString (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::Service
  • AWS::EFS::FileSystem
  • AWS::ElasticLoadBalancingV2::LoadBalancer
  • AWS::Lambda::Function
  • AWS::SNS::Topic
  • Native - The resource identifier is an AWS 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


807
808
809
# File 'resilience_hub/cfn_app.rb', line 807

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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