Class: AWSCDK::Route53Profiles::CfnProfileAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Profiles::CfnProfileAssociationProps
- Defined in:
- route53_profiles/cfn_profile_association_props.rb
Overview
Properties for defining a CfnProfileAssociation.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the profile association to a VPC.
-
#name ⇒ String
readonly
Name of the Profile association.
-
#profile_id ⇒ String
readonly
ID of the Profile.
-
#resource_id ⇒ String
readonly
The ID of the VPC.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, profile_id:, resource_id:, arn: nil, tags: nil) ⇒ CfnProfileAssociationProps
constructor
A new instance of CfnProfileAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, profile_id:, resource_id:, arn: nil, tags: nil) ⇒ CfnProfileAssociationProps
Returns a new instance of CfnProfileAssociationProps.
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 = .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
#arn ⇒ String? (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 |
#name ⇒ String (readonly)
Name of the Profile association.
31 32 33 |
# File 'route53_profiles/cfn_profile_association_props.rb', line 31 def name @name end |
#profile_id ⇒ String (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_id ⇒ String (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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |