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

Details about a Lambda function URL.

See Also:

AWS * API Reference

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

The HTTP URL endpoint for your function.

*/ inline const Aws::String& GetFunctionUrl() const{ return m_functionUrl; } /** *

The HTTP URL endpoint for your function.

*/ inline bool FunctionUrlHasBeenSet() const { return m_functionUrlHasBeenSet; } /** *

The HTTP URL endpoint for your function.

*/ inline void SetFunctionUrl(const Aws::String& value) { m_functionUrlHasBeenSet = true; m_functionUrl = value; } /** *

The HTTP URL endpoint for your function.

*/ inline void SetFunctionUrl(Aws::String&& value) { m_functionUrlHasBeenSet = true; m_functionUrl = std::move(value); } /** *

The HTTP URL endpoint for your function.

*/ inline void SetFunctionUrl(const char* value) { m_functionUrlHasBeenSet = true; m_functionUrl.assign(value); } /** *

The HTTP URL endpoint for your function.

*/ inline FunctionUrlConfig& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;} /** *

The HTTP URL endpoint for your function.

*/ inline FunctionUrlConfig& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;} /** *

The HTTP URL endpoint for your function.

*/ inline FunctionUrlConfig& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;} /** *

The Amazon Resource Name (ARN) of your function.

*/ inline const Aws::String& GetFunctionArn() const{ return m_functionArn; } /** *

The Amazon Resource Name (ARN) of your function.

*/ inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of your function.

*/ inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; } /** *

The Amazon Resource Name (ARN) of your function.

*/ inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of your function.

*/ inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of your function.

*/ inline FunctionUrlConfig& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of your function.

*/ inline FunctionUrlConfig& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of your function.

*/ inline FunctionUrlConfig& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline FunctionUrlConfig& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline FunctionUrlConfig& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline FunctionUrlConfig& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline const Aws::String& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetLastModifiedTime(const Aws::String& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetLastModifiedTime(Aws::String&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetLastModifiedTime(const char* value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime.assign(value); } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline FunctionUrlConfig& WithLastModifiedTime(const Aws::String& value) { SetLastModifiedTime(value); return *this;} /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline FunctionUrlConfig& WithLastModifiedTime(Aws::String&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline FunctionUrlConfig& WithLastModifiedTime(const char* value) { SetLastModifiedTime(value); return *this;} /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline const Cors& GetCors() const{ return m_cors; } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline void SetCors(const Cors& value) { m_corsHasBeenSet = true; m_cors = value; } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline void SetCors(Cors&& value) { m_corsHasBeenSet = true; m_cors = std::move(value); } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline FunctionUrlConfig& WithCors(const Cors& value) { SetCors(value); return *this;} /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline FunctionUrlConfig& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;} /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline void SetAuthType(const FunctionUrlAuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline void SetAuthType(FunctionUrlAuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline FunctionUrlConfig& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;} /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline FunctionUrlConfig& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline void SetInvokeMode(const InvokeMode& value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline void SetInvokeMode(InvokeMode&& value) { m_invokeModeHasBeenSet = true; m_invokeMode = std::move(value); } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline FunctionUrlConfig& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;} /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline FunctionUrlConfig& WithInvokeMode(InvokeMode&& value) { SetInvokeMode(std::move(value)); return *this;} private: Aws::String m_functionUrl; bool m_functionUrlHasBeenSet = false; Aws::String m_functionArn; bool m_functionArnHasBeenSet = false; Aws::String m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; Cors m_cors; bool m_corsHasBeenSet = false; FunctionUrlAuthType m_authType; bool m_authTypeHasBeenSet = false; InvokeMode m_invokeMode; bool m_invokeModeHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws