Class: AWSCDK::EC2::CfnIPAMResourceDiscoveryAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnIPAMResourceDiscoveryAssociationProps
- Defined in:
- ec2/cfn_ipam_resource_discovery_association_props.rb
Overview
Properties for defining a CfnIPAMResourceDiscoveryAssociation.
Instance Attribute Summary collapse
-
#ipam_id ⇒ String
readonly
The IPAM ID.
-
#ipam_resource_discovery_id ⇒ String
readonly
The resource discovery ID.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A tag is a label that you assign to an AWS resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipam_id:, ipam_resource_discovery_id:, tags: nil) ⇒ CfnIPAMResourceDiscoveryAssociationProps
constructor
A new instance of CfnIPAMResourceDiscoveryAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipam_id:, ipam_resource_discovery_id:, tags: nil) ⇒ CfnIPAMResourceDiscoveryAssociationProps
Returns a new instance of CfnIPAMResourceDiscoveryAssociationProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_ipam_resource_discovery_association_props.rb', line 12 def initialize(ipam_id:, ipam_resource_discovery_id:, tags: nil) @ipam_id = ipam_id Jsii::Type.check_type(@ipam_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamId") @ipam_resource_discovery_id = ipam_resource_discovery_id Jsii::Type.check_type(@ipam_resource_discovery_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamResourceDiscoveryId") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#ipam_id ⇒ String (readonly)
The IPAM ID.
25 26 27 |
# File 'ec2/cfn_ipam_resource_discovery_association_props.rb', line 25 def ipam_id @ipam_id end |
#ipam_resource_discovery_id ⇒ String (readonly)
The resource discovery ID.
30 31 32 |
# File 'ec2/cfn_ipam_resource_discovery_association_props.rb', line 30 def ipam_resource_discovery_id @ipam_resource_discovery_id end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A tag is a label that you assign to an AWS resource.
Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your AWS costs.
37 38 39 |
# File 'ec2/cfn_ipam_resource_discovery_association_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'ec2/cfn_ipam_resource_discovery_association_props.rb', line 39 def self.jsii_properties { :ipam_id => "ipamId", :ipam_resource_discovery_id => "ipamResourceDiscoveryId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'ec2/cfn_ipam_resource_discovery_association_props.rb', line 47 def to_jsii result = {} result.merge!({ "ipamId" => @ipam_id, "ipamResourceDiscoveryId" => @ipam_resource_discovery_id, "tags" => @tags, }) result.compact end |