Class: AWSCDK::APIGateway::CfnDomainName::MutualTLSAuthenticationProperty

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

Overview

The mutual TLS authentication configuration for a custom domain name.

If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(truststore_uri: nil, truststore_version: nil) ⇒ MutualTLSAuthenticationProperty

Returns a new instance of MutualTLSAuthenticationProperty.

Parameters:

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

    An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name .

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

    The version of the S3 object that contains your truststore.



758
759
760
761
762
763
# File 'api_gateway/cfn_domain_name.rb', line 758

def initialize(truststore_uri: nil, truststore_version: nil)
  @truststore_uri = truststore_uri
  Jsii::Type.check_type(@truststore_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "truststoreUri") unless @truststore_uri.nil?
  @truststore_version = truststore_version
  Jsii::Type.check_type(@truststore_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "truststoreVersion") unless @truststore_version.nil?
end

Instance Attribute Details

#truststore_uriString? (readonly)

An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example s3://bucket-name/key-name .

The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.



771
772
773
# File 'api_gateway/cfn_domain_name.rb', line 771

def truststore_uri
  @truststore_uri
end

#truststore_versionString? (readonly)

The version of the S3 object that contains your truststore.

To specify a version, you must have versioning enabled for the S3 bucket.



778
779
780
# File 'api_gateway/cfn_domain_name.rb', line 778

def truststore_version
  @truststore_version
end

Class Method Details

.jsii_propertiesObject



780
781
782
783
784
785
# File 'api_gateway/cfn_domain_name.rb', line 780

def self.jsii_properties
  {
    :truststore_uri => "truststoreUri",
    :truststore_version => "truststoreVersion",
  }
end

Instance Method Details

#to_jsiiObject



787
788
789
790
791
792
793
794
# File 'api_gateway/cfn_domain_name.rb', line 787

def to_jsii
  result = {}
  result.merge!({
    "truststoreUri" => @truststore_uri,
    "truststoreVersion" => @truststore_version,
  })
  result.compact
end