Class: AWSCDK::Route53Profiles::CfnProfileResourceAssociationProps

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

Overview

Properties for defining a CfnProfileResourceAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, profile_id:, resource_arn:, resource_properties: nil) ⇒ CfnProfileResourceAssociationProps

Returns a new instance of CfnProfileResourceAssociationProps.

Parameters:

  • name (String)

    Name of the Profile resource association.

  • profile_id (String)

    Profile ID of the Profile that the resources are associated with.

  • resource_arn (String)

    The Amazon Resource Name (ARN) of the resource association.

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

    If the DNS resource is a DNS Firewall rule group, this indicates the priority.



13
14
15
16
17
18
19
20
21
22
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 13

def initialize(name:, profile_id:, resource_arn:, resource_properties: 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_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
  @resource_properties = resource_properties
  Jsii::Type.check_type(@resource_properties, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceProperties") unless @resource_properties.nil?
end

Instance Attribute Details

#nameString (readonly)

Name of the Profile resource association.



28
29
30
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 28

def name
  @name
end

#profile_idString (readonly)

Profile ID of the Profile that the resources are associated with.



33
34
35
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 33

def profile_id
  @profile_id
end

#resource_arnString (readonly)

The Amazon Resource Name (ARN) of the resource association.



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

def resource_arn
  @resource_arn
end

#resource_propertiesString? (readonly)

If the DNS resource is a DNS Firewall rule group, this indicates the priority.



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

def resource_properties
  @resource_properties
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :profile_id => "profileId",
    :resource_arn => "resourceArn",
    :resource_properties => "resourceProperties",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "profileId" => @profile_id,
    "resourceArn" => @resource_arn,
    "resourceProperties" => @resource_properties,
  })
  result.compact
end