Class: AWSCDK::APIGatewayv2::CfnDomainName::MutualTLSAuthenticationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnDomainName::MutualTLSAuthenticationProperty
- 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
-
#truststore_uri ⇒ String?
readonly
An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example,
s3:// bucket-name / key-name. -
#truststore_version ⇒ String?
readonly
The version of the S3 object that contains your truststore.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(truststore_uri: nil, truststore_version: nil) ⇒ MutualTLSAuthenticationProperty
constructor
A new instance of MutualTLSAuthenticationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(truststore_uri: nil, truststore_version: nil) ⇒ MutualTLSAuthenticationProperty
Returns a new instance of MutualTLSAuthenticationProperty.
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_uri ⇒ String? (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_version ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |