Class: AWSCDK::EC2::CfnIPAMPrefixListResolverTargetProps

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

Overview

Properties for defining a CfnIPAMPrefixListResolverTarget.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • ipam_prefix_list_resolver_id (String)

    The Id of the IPAM Prefix List Resolver associated with this Target.

  • prefix_list_id (String)

    The Id of the Managed Prefix List.

  • prefix_list_region (String)

    The region that the Managed Prefix List is located in.

  • track_latest_version (Boolean, AWSCDK::IResolvable)

    Indicates whether this Target automatically tracks the latest version of the Prefix List Resolver.

  • desired_version (Numeric, nil) (defaults to: nil)

    The desired version of the Prefix List Resolver that this Target should synchronize with.

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

    An array of key-value pairs to apply to this resource.



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 = 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

#desired_versionNumeric? (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_idString (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_idString (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_regionString (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

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

#track_latest_versionBoolean, 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_propertiesObject



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_jsiiObject



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