Class: AWSCDK::EC2::CfnIPAMPool::SourceResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_ipam_pool.rb

Overview

The resource used to provision CIDRs to a resource planning pool.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_id:, resource_owner:, resource_region:, resource_type:) ⇒ SourceResourceProperty

Returns a new instance of SourceResourceProperty.

Parameters:

  • resource_id (String)

    The source resource ID.

  • resource_owner (String)

    The source resource owner.

  • resource_region (String)

    The source resource Region.

  • resource_type (String)

    The source resource type.



841
842
843
844
845
846
847
848
849
850
# File 'ec2/cfn_ipam_pool.rb', line 841

def initialize(resource_id:, resource_owner:, resource_region:, resource_type:)
  @resource_id = resource_id
  Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId")
  @resource_owner = resource_owner
  Jsii::Type.check_type(@resource_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceOwner")
  @resource_region = resource_region
  Jsii::Type.check_type(@resource_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceRegion")
  @resource_type = resource_type
  Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType")
end

Instance Attribute Details

#resource_idString (readonly)

The source resource ID.



856
857
858
# File 'ec2/cfn_ipam_pool.rb', line 856

def resource_id
  @resource_id
end

#resource_ownerString (readonly)

The source resource owner.



861
862
863
# File 'ec2/cfn_ipam_pool.rb', line 861

def resource_owner
  @resource_owner
end

#resource_regionString (readonly)

The source resource Region.



866
867
868
# File 'ec2/cfn_ipam_pool.rb', line 866

def resource_region
  @resource_region
end

#resource_typeString (readonly)

The source resource type.



871
872
873
# File 'ec2/cfn_ipam_pool.rb', line 871

def resource_type
  @resource_type
end

Class Method Details

.jsii_propertiesObject



873
874
875
876
877
878
879
880
# File 'ec2/cfn_ipam_pool.rb', line 873

def self.jsii_properties
  {
    :resource_id => "resourceId",
    :resource_owner => "resourceOwner",
    :resource_region => "resourceRegion",
    :resource_type => "resourceType",
  }
end

Instance Method Details

#to_jsiiObject



882
883
884
885
886
887
888
889
890
891
# File 'ec2/cfn_ipam_pool.rb', line 882

def to_jsii
  result = {}
  result.merge!({
    "resourceId" => @resource_id,
    "resourceOwner" => @resource_owner,
    "resourceRegion" => @resource_region,
    "resourceType" => @resource_type,
  })
  result.compact
end