Class: AWSCDK::APIGateway::CfnDomainName::EndpointConfigurationProperty

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

Overview

The EndpointConfiguration property type specifies the endpoint types and IP address types of an Amazon API Gateway domain name.

EndpointConfiguration is a property of the AWS::ApiGateway::DomainName resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_address_type: nil, types: nil) ⇒ EndpointConfigurationProperty

Returns a new instance of EndpointConfigurationProperty.

Parameters:

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

    The IP address types that can invoke this DomainName.

  • types (Array<String>, nil) (defaults to: nil)

    A list of endpoint types of an API (RestApi) or its custom domain name (DomainName).



709
710
711
712
713
714
# File 'api_gateway/cfn_domain_name.rb', line 709

def initialize(ip_address_type: nil, types: nil)
  @ip_address_type = ip_address_type
  Jsii::Type.check_type(@ip_address_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddressType") unless @ip_address_type.nil?
  @types = types
  Jsii::Type.check_type(@types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "types") unless @types.nil?
end

Instance Attribute Details

#ip_address_typeString? (readonly)

The IP address types that can invoke this DomainName.

Use ipv4 to allow only IPv4 addresses to invoke this DomainName, or use dualstack to allow both IPv4 and IPv6 addresses to invoke this DomainName. For the PRIVATE endpoint type, only dualstack is supported.



722
723
724
# File 'api_gateway/cfn_domain_name.rb', line 722

def ip_address_type
  @ip_address_type
end

#typesArray<String>? (readonly)

A list of endpoint types of an API (RestApi) or its custom domain name (DomainName).

For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .



729
730
731
# File 'api_gateway/cfn_domain_name.rb', line 729

def types
  @types
end

Class Method Details

.jsii_propertiesObject



731
732
733
734
735
736
# File 'api_gateway/cfn_domain_name.rb', line 731

def self.jsii_properties
  {
    :ip_address_type => "ipAddressType",
    :types => "types",
  }
end

Instance Method Details

#to_jsiiObject



738
739
740
741
742
743
744
745
# File 'api_gateway/cfn_domain_name.rb', line 738

def to_jsii
  result = {}
  result.merge!({
    "ipAddressType" => @ip_address_type,
    "types" => @types,
  })
  result.compact
end