Class: AWSCDK::APIGateway::CfnDomainNameAccessAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gateway/cfn_domain_name_access_association_props.rb

Overview

Properties for defining a CfnDomainNameAccessAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_association_source:, access_association_source_type:, domain_name_arn:, tags: nil) ⇒ CfnDomainNameAccessAssociationProps

Returns a new instance of CfnDomainNameAccessAssociationProps.

Parameters:

  • access_association_source (String)

    The identifier of the domain name access association source.

  • access_association_source_type (String)

    The type of the domain name access association source.

  • domain_name_arn (String)

    The ARN of the domain name.

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

    The collection of tags.



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

def initialize(access_association_source:, access_association_source_type:, domain_name_arn:, tags: nil)
  @access_association_source = access_association_source
  Jsii::Type.check_type(@access_association_source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessAssociationSource")
  @access_association_source_type = access_association_source_type
  Jsii::Type.check_type(@access_association_source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessAssociationSourceType")
  @domain_name_arn = domain_name_arn
  Jsii::Type.check_type(@domain_name_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainNameArn")
  @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

#access_association_sourceString (readonly)

The identifier of the domain name access association source.

For a VPCE , the value is the VPC endpoint ID.



30
31
32
# File 'api_gateway/cfn_domain_name_access_association_props.rb', line 30

def access_association_source
  @access_association_source
end

#access_association_source_typeString (readonly)

The type of the domain name access association source.

Only VPCE is currently supported.



37
38
39
# File 'api_gateway/cfn_domain_name_access_association_props.rb', line 37

def access_association_source_type
  @access_association_source_type
end

#domain_name_arnString (readonly)

The ARN of the domain name.



42
43
44
# File 'api_gateway/cfn_domain_name_access_association_props.rb', line 42

def domain_name_arn
  @domain_name_arn
end

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

The collection of tags.

Each tag element is associated with a given resource.



49
50
51
# File 'api_gateway/cfn_domain_name_access_association_props.rb', line 49

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



51
52
53
54
55
56
57
58
# File 'api_gateway/cfn_domain_name_access_association_props.rb', line 51

def self.jsii_properties
  {
    :access_association_source => "accessAssociationSource",
    :access_association_source_type => "accessAssociationSourceType",
    :domain_name_arn => "domainNameArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



60
61
62
63
64
65
66
67
68
69
# File 'api_gateway/cfn_domain_name_access_association_props.rb', line 60

def to_jsii
  result = {}
  result.merge!({
    "accessAssociationSource" => @access_association_source,
    "accessAssociationSourceType" => @access_association_source_type,
    "domainNameArn" => @domain_name_arn,
    "tags" => @tags,
  })
  result.compact
end