Class: AWSCDK::EC2::CfnIPAMResourceDiscoveryAssociationProps

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

Overview

Properties for defining a CfnIPAMResourceDiscoveryAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ipam_id:, ipam_resource_discovery_id:, tags: nil) ⇒ CfnIPAMResourceDiscoveryAssociationProps

Returns a new instance of CfnIPAMResourceDiscoveryAssociationProps.

Parameters:

  • ipam_id (String)

    The IPAM ID.

  • ipam_resource_discovery_id (String)

    The resource discovery ID.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A tag is a label that you assign to an AWS resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#ipam_idString (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_idString (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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