Class: AWSCDK::Route53Profiles::CfnProfileAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_profiles/cfn_profile_association_props.rb

Overview

Properties for defining a CfnProfileAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, profile_id:, resource_id:, arn: nil, tags: nil) ⇒ CfnProfileAssociationProps

Returns a new instance of CfnProfileAssociationProps.

Parameters:

  • name (String)

    Name of the Profile association.

  • profile_id (String)

    ID of the Profile.

  • resource_id (String)

    The ID of the VPC.

  • arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the profile association to a VPC.

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

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



14
15
16
17
18
19
20
21
22
23
24
25
# File 'route53_profiles/cfn_profile_association_props.rb', line 14

def initialize(name:, profile_id:, resource_id:, arn: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @profile_id = profile_id
  Jsii::Type.check_type(@profile_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profileId")
  @resource_id = resource_id
  Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId")
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.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

#arnString? (readonly)

The Amazon Resource Name (ARN) of the profile association to a VPC.



48
49
50
# File 'route53_profiles/cfn_profile_association_props.rb', line 48

def arn
  @arn
end

#nameString (readonly)

Name of the Profile association.



31
32
33
# File 'route53_profiles/cfn_profile_association_props.rb', line 31

def name
  @name
end

#profile_idString (readonly)

ID of the Profile.

Update to this property requires update to the ResourceId property as well, because you can only associate one Profile per VPC. For more information, see Route 53 Profiles .



38
39
40
# File 'route53_profiles/cfn_profile_association_props.rb', line 38

def profile_id
  @profile_id
end

#resource_idString (readonly)

The ID of the VPC.



43
44
45
# File 'route53_profiles/cfn_profile_association_props.rb', line 43

def resource_id
  @resource_id
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

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



53
54
55
# File 'route53_profiles/cfn_profile_association_props.rb', line 53

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
63
# File 'route53_profiles/cfn_profile_association_props.rb', line 55

def self.jsii_properties
  {
    :name => "name",
    :profile_id => "profileId",
    :resource_id => "resourceId",
    :arn => "arn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



65
66
67
68
69
70
71
72
73
74
75
# File 'route53_profiles/cfn_profile_association_props.rb', line 65

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "profileId" => @profile_id,
    "resourceId" => @resource_id,
    "arn" => @arn,
    "tags" => @tags,
  })
  result.compact
end