Class: AWSCDK::EC2::CfnIPAMPool::SourceResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnIPAMPool::SourceResourceProperty
- Defined in:
- ec2/cfn_ipam_pool.rb
Overview
The resource used to provision CIDRs to a resource planning pool.
Instance Attribute Summary collapse
-
#resource_id ⇒ String
readonly
The source resource ID.
-
#resource_owner ⇒ String
readonly
The source resource owner.
-
#resource_region ⇒ String
readonly
The source resource Region.
-
#resource_type ⇒ String
readonly
The source resource type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_id:, resource_owner:, resource_region:, resource_type:) ⇒ SourceResourceProperty
constructor
A new instance of SourceResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_id:, resource_owner:, resource_region:, resource_type:) ⇒ SourceResourceProperty
Returns a new instance of SourceResourceProperty.
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_id ⇒ String (readonly)
The source resource ID.
856 857 858 |
# File 'ec2/cfn_ipam_pool.rb', line 856 def resource_id @resource_id end |
#resource_owner ⇒ String (readonly)
The source resource owner.
861 862 863 |
# File 'ec2/cfn_ipam_pool.rb', line 861 def resource_owner @resource_owner end |
#resource_region ⇒ String (readonly)
The source resource Region.
866 867 868 |
# File 'ec2/cfn_ipam_pool.rb', line 866 def resource_region @resource_region end |
#resource_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |