Class: AWSCDK::EC2::CfnIPAMResourceDiscoveryProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnIPAMResourceDiscoveryProps
- Defined in:
- ec2/cfn_ipam_resource_discovery_props.rb
Overview
Properties for defining a CfnIPAMResourceDiscovery.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The resource discovery description.
-
#operating_regions ⇒ AWSCDK::IResolvable, ...
readonly
The operating Regions for the resource discovery.
-
#organizational_unit_exclusions ⇒ AWSCDK::IResolvable, ...
readonly
If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM.
-
#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(description: nil, operating_regions: nil, organizational_unit_exclusions: nil, tags: nil) ⇒ CfnIPAMResourceDiscoveryProps
constructor
A new instance of CfnIPAMResourceDiscoveryProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, operating_regions: nil, organizational_unit_exclusions: nil, tags: nil) ⇒ CfnIPAMResourceDiscoveryProps
Returns a new instance of CfnIPAMResourceDiscoveryProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 13 def initialize(description: nil, operating_regions: nil, organizational_unit_exclusions: nil, tags: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @operating_regions = Jsii::Type.check_type(@operating_regions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbklQQU1SZXNvdXJjZURpc2NvdmVyeS5JcGFtT3BlcmF0aW5nUmVnaW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "operatingRegions") unless @operating_regions.nil? @organizational_unit_exclusions = organizational_unit_exclusions Jsii::Type.check_type(@organizational_unit_exclusions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbklQQU1SZXNvdXJjZURpc2NvdmVyeS5JcGFtUmVzb3VyY2VEaXNjb3ZlcnlPcmdhbml6YXRpb25hbFVuaXRFeGNsdXNpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "organizationalUnitExclusions") unless @organizational_unit_exclusions.nil? @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
#description ⇒ String? (readonly)
The resource discovery description.
28 29 30 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 28 def description @description end |
#operating_regions ⇒ AWSCDK::IResolvable, ... (readonly)
The operating Regions for the resource discovery.
Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only discovers and monitors resources in the AWS Regions you select as operating Regions.
35 36 37 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 35 def @operating_regions end |
#organizational_unit_exclusions ⇒ AWSCDK::IResolvable, ... (readonly)
If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM. When you exclude an OU, IPAM will not manage the IP addresses in accounts in that OU. For more information, see Exclude organizational units from IPAM in the Amazon Virtual Private Cloud IP Address Manager User Guide .
40 41 42 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 40 def organizational_unit_exclusions @organizational_unit_exclusions 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.
47 48 49 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 47 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 49 def self.jsii_properties { :description => "description", :operating_regions => "operatingRegions", :organizational_unit_exclusions => "organizationalUnitExclusions", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'ec2/cfn_ipam_resource_discovery_props.rb', line 58 def to_jsii result = {} result.merge!({ "description" => @description, "operatingRegions" => @operating_regions, "organizationalUnitExclusions" => @organizational_unit_exclusions, "tags" => @tags, }) result.compact end |