/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace APIGateway { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class MutualTlsAuthentication { public: AWS_APIGATEWAY_API MutualTlsAuthentication(); AWS_APIGATEWAY_API MutualTlsAuthentication(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAY_API MutualTlsAuthentication& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetTruststoreUri() const{ return m_truststoreUri; } /** *

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.

*/ inline bool TruststoreUriHasBeenSet() const { return m_truststoreUriHasBeenSet; } /** *

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.

*/ inline void SetTruststoreUri(const Aws::String& value) { m_truststoreUriHasBeenSet = true; m_truststoreUri = value; } /** *

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.

*/ inline void SetTruststoreUri(Aws::String&& value) { m_truststoreUriHasBeenSet = true; m_truststoreUri = std::move(value); } /** *

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.

*/ inline void SetTruststoreUri(const char* value) { m_truststoreUriHasBeenSet = true; m_truststoreUri.assign(value); } /** *

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.

*/ inline MutualTlsAuthentication& WithTruststoreUri(const Aws::String& value) { SetTruststoreUri(value); return *this;} /** *

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.

*/ inline MutualTlsAuthentication& WithTruststoreUri(Aws::String&& value) { SetTruststoreUri(std::move(value)); return *this;} /** *

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.

*/ inline MutualTlsAuthentication& WithTruststoreUri(const char* value) { SetTruststoreUri(value); return *this;} /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline const Aws::String& GetTruststoreVersion() const{ return m_truststoreVersion; } /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline bool TruststoreVersionHasBeenSet() const { return m_truststoreVersionHasBeenSet; } /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline void SetTruststoreVersion(const Aws::String& value) { m_truststoreVersionHasBeenSet = true; m_truststoreVersion = value; } /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline void SetTruststoreVersion(Aws::String&& value) { m_truststoreVersionHasBeenSet = true; m_truststoreVersion = std::move(value); } /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline void SetTruststoreVersion(const char* value) { m_truststoreVersionHasBeenSet = true; m_truststoreVersion.assign(value); } /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline MutualTlsAuthentication& WithTruststoreVersion(const Aws::String& value) { SetTruststoreVersion(value); return *this;} /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline MutualTlsAuthentication& WithTruststoreVersion(Aws::String&& value) { SetTruststoreVersion(std::move(value)); return *this;} /** *

The version of the S3 object that contains your truststore. To specify a * version, you must have versioning enabled for the S3 bucket.

*/ inline MutualTlsAuthentication& WithTruststoreVersion(const char* value) { SetTruststoreVersion(value); return *this;} /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline const Aws::Vector& GetTruststoreWarnings() const{ return m_truststoreWarnings; } /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline bool TruststoreWarningsHasBeenSet() const { return m_truststoreWarningsHasBeenSet; } /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline void SetTruststoreWarnings(const Aws::Vector& value) { m_truststoreWarningsHasBeenSet = true; m_truststoreWarnings = value; } /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline void SetTruststoreWarnings(Aws::Vector&& value) { m_truststoreWarningsHasBeenSet = true; m_truststoreWarnings = std::move(value); } /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline MutualTlsAuthentication& WithTruststoreWarnings(const Aws::Vector& value) { SetTruststoreWarnings(value); return *this;} /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline MutualTlsAuthentication& WithTruststoreWarnings(Aws::Vector&& value) { SetTruststoreWarnings(std::move(value)); return *this;} /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline MutualTlsAuthentication& AddTruststoreWarnings(const Aws::String& value) { m_truststoreWarningsHasBeenSet = true; m_truststoreWarnings.push_back(value); return *this; } /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline MutualTlsAuthentication& AddTruststoreWarnings(Aws::String&& value) { m_truststoreWarningsHasBeenSet = true; m_truststoreWarnings.push_back(std::move(value)); return *this; } /** *

A list of warnings that API Gateway returns while processing your truststore. * Invalid certificates produce warnings. Mutual TLS is still enabled, but some * clients might not be able to access your API. To resolve warnings, upload a new * truststore to S3, and then update you domain name to use the new version.

*/ inline MutualTlsAuthentication& AddTruststoreWarnings(const char* value) { m_truststoreWarningsHasBeenSet = true; m_truststoreWarnings.push_back(value); return *this; } private: Aws::String m_truststoreUri; bool m_truststoreUriHasBeenSet = false; Aws::String m_truststoreVersion; bool m_truststoreVersionHasBeenSet = false; Aws::Vector m_truststoreWarnings; bool m_truststoreWarningsHasBeenSet = false; }; } // namespace Model } // namespace APIGateway } // namespace Aws