Class: AWSCDK::EC2::CfnIPAMScopeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnIPAMScopeProps
- Defined in:
- ec2/cfn_ipam_scope_props.rb
Overview
Properties for defining a CfnIPAMScope.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the scope.
-
#external_authority_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The configuration that links an Amazon VPC IPAM scope to an external authority system.
-
#ipam_id ⇒ String
readonly
The ID of the IPAM for which you're creating this scope.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The key/value combination of a tag assigned to the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipam_id:, description: nil, external_authority_configuration: nil, tags: nil) ⇒ CfnIPAMScopeProps
constructor
A new instance of CfnIPAMScopeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipam_id:, description: nil, external_authority_configuration: nil, tags: nil) ⇒ CfnIPAMScopeProps
Returns a new instance of CfnIPAMScopeProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_ipam_scope_props.rb', line 13 def initialize(ipam_id:, description: nil, external_authority_configuration: nil, tags: nil) @ipam_id = ipam_id Jsii::Type.check_type(@ipam_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @external_authority_configuration = .is_a?(Hash) ? ::AWSCDK::EC2::CfnIPAMScope::IpamScopeExternalAuthorityConfigurationProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@external_authority_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuSVBBTVNjb3BlLklwYW1TY29wZUV4dGVybmFsQXV0aG9yaXR5Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "externalAuthorityConfiguration") unless @external_authority_configuration.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 description of the scope.
33 34 35 |
# File 'ec2/cfn_ipam_scope_props.rb', line 33 def description @description end |
#external_authority_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration that links an Amazon VPC IPAM scope to an external authority system.
It specifies the type of external system and the external resource identifier that identifies your account or instance in that system.
For more information, see Integrate VPC IPAM with Infoblox infrastructure in the Amazon VPC IPAM User Guide .
42 43 44 |
# File 'ec2/cfn_ipam_scope_props.rb', line 42 def @external_authority_configuration end |
#ipam_id ⇒ String (readonly)
The ID of the IPAM for which you're creating this scope.
28 29 30 |
# File 'ec2/cfn_ipam_scope_props.rb', line 28 def ipam_id @ipam_id end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The key/value combination of a tag assigned to the resource.
Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA , specify tag:Owner for the filter name and TeamA for the filter value.
49 50 51 |
# File 'ec2/cfn_ipam_scope_props.rb', line 49 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'ec2/cfn_ipam_scope_props.rb', line 51 def self.jsii_properties { :ipam_id => "ipamId", :description => "description", :external_authority_configuration => "externalAuthorityConfiguration", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'ec2/cfn_ipam_scope_props.rb', line 60 def to_jsii result = {} result.merge!({ "ipamId" => @ipam_id, "description" => @description, "externalAuthorityConfiguration" => @external_authority_configuration, "tags" => @tags, }) result.compact end |