Class: AWSCDK::APIGateway::CfnDomainName::MutualTLSAuthenticationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGateway::CfnDomainName::MutualTLSAuthenticationProperty
- 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
-
#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.
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_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.
771 772 773 |
# File 'api_gateway/cfn_domain_name.rb', line 771 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.
778 779 780 |
# File 'api_gateway/cfn_domain_name.rb', line 778 def truststore_version @truststore_version end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |