Class: AWSCDK::Route53GlobalResolver::CfnHostedZoneAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_global_resolver/cfn_hosted_zone_association_props.rb

Overview

Properties for defining a CfnHostedZoneAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hosted_zone_id:, name:, resource_arn:) ⇒ CfnHostedZoneAssociationProps

Returns a new instance of CfnHostedZoneAssociationProps.

Parameters:

  • hosted_zone_id (String)
  • name (String)
  • resource_arn (String)


12
13
14
15
16
17
18
19
# File 'route53_global_resolver/cfn_hosted_zone_association_props.rb', line 12

def initialize(hosted_zone_id:, name:, resource_arn:)
  @hosted_zone_id = hosted_zone_id
  Jsii::Type.check_type(@hosted_zone_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostedZoneId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
end

Instance Attribute Details

#hosted_zone_idString (readonly)



23
24
25
# File 'route53_global_resolver/cfn_hosted_zone_association_props.rb', line 23

def hosted_zone_id
  @hosted_zone_id
end

#nameString (readonly)



26
27
28
# File 'route53_global_resolver/cfn_hosted_zone_association_props.rb', line 26

def name
  @name
end

#resource_arnString (readonly)



29
30
31
# File 'route53_global_resolver/cfn_hosted_zone_association_props.rb', line 29

def resource_arn
  @resource_arn
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
37
# File 'route53_global_resolver/cfn_hosted_zone_association_props.rb', line 31

def self.jsii_properties
  {
    :hosted_zone_id => "hostedZoneId",
    :name => "name",
    :resource_arn => "resourceArn",
  }
end

Instance Method Details

#to_jsiiObject



39
40
41
42
43
44
45
46
47
# File 'route53_global_resolver/cfn_hosted_zone_association_props.rb', line 39

def to_jsii
  result = {}
  result.merge!({
    "hostedZoneId" => @hosted_zone_id,
    "name" => @name,
    "resourceArn" => @resource_arn,
  })
  result.compact
end