Class: AWSCDK::Interfaces::AWSRoute53Profiles::ProfileAssociationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_route53_profiles/profile_association_reference.rb

Overview

A reference to a ProfileAssociation resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile_association_id:, resource_id:) ⇒ ProfileAssociationReference

Returns a new instance of ProfileAssociationReference.

Parameters:

  • profile_association_id (String)

    The Id of the ProfileAssociation resource.

  • resource_id (String)

    The ResourceId of the ProfileAssociation resource.



9
10
11
12
13
14
# File 'interfaces/aws_route53_profiles/profile_association_reference.rb', line 9

def initialize(profile_association_id:, resource_id:)
  @profile_association_id = profile_association_id
  Jsii::Type.check_type(@profile_association_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profileAssociationId")
  @resource_id = resource_id
  Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId")
end

Instance Attribute Details

#profile_association_idString (readonly)

The Id of the ProfileAssociation resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_route53_profiles/profile_association_reference.rb', line 19

def profile_association_id
  @profile_association_id
end

#resource_idString (readonly)

The ResourceId of the ProfileAssociation resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_route53_profiles/profile_association_reference.rb', line 23

def resource_id
  @resource_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_route53_profiles/profile_association_reference.rb', line 25

def self.jsii_properties
  {
    :profile_association_id => "profileAssociationId",
    :resource_id => "resourceId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_route53_profiles/profile_association_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "profileAssociationId" => @profile_association_id,
    "resourceId" => @resource_id,
  })
  result.compact
end