Class: AWSCDK::EC2::CfnIPAMPrefixListResolverTargetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnIPAMPrefixListResolverTargetProps
- Defined in:
- ec2/cfn_ipam_prefix_list_resolver_target_props.rb
Overview
Properties for defining a CfnIPAMPrefixListResolverTarget.
Instance Attribute Summary collapse
-
#desired_version ⇒ Numeric?
readonly
The desired version of the Prefix List Resolver that this Target should synchronize with.
-
#ipam_prefix_list_resolver_id ⇒ String
readonly
The Id of the IPAM Prefix List Resolver associated with this Target.
-
#prefix_list_id ⇒ String
readonly
The Id of the Managed Prefix List.
-
#prefix_list_region ⇒ String
readonly
The region that the Managed Prefix List is located in.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#track_latest_version ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether this Target automatically tracks the latest version of the Prefix List Resolver.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipam_prefix_list_resolver_id:, prefix_list_id:, prefix_list_region:, track_latest_version:, desired_version: nil, tags: nil) ⇒ CfnIPAMPrefixListResolverTargetProps
constructor
A new instance of CfnIPAMPrefixListResolverTargetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipam_prefix_list_resolver_id:, prefix_list_id:, prefix_list_region:, track_latest_version:, desired_version: nil, tags: nil) ⇒ CfnIPAMPrefixListResolverTargetProps
Returns a new instance of CfnIPAMPrefixListResolverTargetProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 15 def initialize(ipam_prefix_list_resolver_id:, prefix_list_id:, prefix_list_region:, track_latest_version:, desired_version: nil, tags: nil) @ipam_prefix_list_resolver_id = ipam_prefix_list_resolver_id Jsii::Type.check_type(@ipam_prefix_list_resolver_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamPrefixListResolverId") @prefix_list_id = prefix_list_id Jsii::Type.check_type(@prefix_list_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixListId") @prefix_list_region = prefix_list_region Jsii::Type.check_type(@prefix_list_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefixListRegion") @track_latest_version = track_latest_version Jsii::Type.check_type(@track_latest_version, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "trackLatestVersion") @desired_version = desired_version Jsii::Type.check_type(@desired_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "desiredVersion") unless @desired_version.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
#desired_version ⇒ Numeric? (readonly)
The desired version of the Prefix List Resolver that this Target should synchronize with.
54 55 56 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 54 def desired_version @desired_version end |
#ipam_prefix_list_resolver_id ⇒ String (readonly)
The Id of the IPAM Prefix List Resolver associated with this Target.
34 35 36 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 34 def ipam_prefix_list_resolver_id @ipam_prefix_list_resolver_id end |
#prefix_list_id ⇒ String (readonly)
The Id of the Managed Prefix List.
39 40 41 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 39 def prefix_list_id @prefix_list_id end |
#prefix_list_region ⇒ String (readonly)
The region that the Managed Prefix List is located in.
44 45 46 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 44 def prefix_list_region @prefix_list_region end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
59 60 61 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 59 def @tags end |
#track_latest_version ⇒ Boolean, AWSCDK::IResolvable (readonly)
Indicates whether this Target automatically tracks the latest version of the Prefix List Resolver.
49 50 51 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 49 def track_latest_version @track_latest_version end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 61 def self.jsii_properties { :ipam_prefix_list_resolver_id => "ipamPrefixListResolverId", :prefix_list_id => "prefixListId", :prefix_list_region => "prefixListRegion", :track_latest_version => "trackLatestVersion", :desired_version => "desiredVersion", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'ec2/cfn_ipam_prefix_list_resolver_target_props.rb', line 72 def to_jsii result = {} result.merge!({ "ipamPrefixListResolverId" => @ipam_prefix_list_resolver_id, "prefixListId" => @prefix_list_id, "prefixListRegion" => @prefix_list_region, "trackLatestVersion" => @track_latest_version, "desiredVersion" => @desired_version, "tags" => @tags, }) result.compact end |