Class: AWSCDK::APIGatewayv2::CfnDomainName::MutualTLSAuthenticationProperty

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

Overview

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.



711
712
713
714
715
716
# File 'api_gatewayv2/cfn_domain_name.rb', line 711

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.



724
725
726
# File 'api_gatewayv2/cfn_domain_name.rb', line 724

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.



731
732
733
# File 'api_gatewayv2/cfn_domain_name.rb', line 731

def truststore_version
  @truststore_version
end

Class Method Details

.jsii_propertiesObject



733
734
735
736
737
738
# File 'api_gatewayv2/cfn_domain_name.rb', line 733

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

Instance Method Details

#to_jsiiObject



740
741
742
743
744
745
746
747
# File 'api_gatewayv2/cfn_domain_name.rb', line 740

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