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

The parameters for using a Lambda function as a target.

See * Also:

AWS * API Reference

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

Choose from the following options.

  • * RequestResponse (default) - Invoke the function synchronously. Keep * the connection open until the function returns a response or times out. The API * response includes the function response and additional data.

  • * Event - Invoke the function asynchronously. Send events that fail * multiple times to the function's dead-letter queue (if it's configured). The API * response only includes a status code.

  • DryRun - * Validate parameter values and verify that the user or role has permission to * invoke the function.

*/ inline const PipeTargetInvocationType& GetInvocationType() const{ return m_invocationType; } /** *

Choose from the following options.

  • * RequestResponse (default) - Invoke the function synchronously. Keep * the connection open until the function returns a response or times out. The API * response includes the function response and additional data.

  • * Event - Invoke the function asynchronously. Send events that fail * multiple times to the function's dead-letter queue (if it's configured). The API * response only includes a status code.

  • DryRun - * Validate parameter values and verify that the user or role has permission to * invoke the function.

*/ inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; } /** *

Choose from the following options.

  • * RequestResponse (default) - Invoke the function synchronously. Keep * the connection open until the function returns a response or times out. The API * response includes the function response and additional data.

  • * Event - Invoke the function asynchronously. Send events that fail * multiple times to the function's dead-letter queue (if it's configured). The API * response only includes a status code.

  • DryRun - * Validate parameter values and verify that the user or role has permission to * invoke the function.

*/ inline void SetInvocationType(const PipeTargetInvocationType& value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; } /** *

Choose from the following options.

  • * RequestResponse (default) - Invoke the function synchronously. Keep * the connection open until the function returns a response or times out. The API * response includes the function response and additional data.

  • * Event - Invoke the function asynchronously. Send events that fail * multiple times to the function's dead-letter queue (if it's configured). The API * response only includes a status code.

  • DryRun - * Validate parameter values and verify that the user or role has permission to * invoke the function.

*/ inline void SetInvocationType(PipeTargetInvocationType&& value) { m_invocationTypeHasBeenSet = true; m_invocationType = std::move(value); } /** *

Choose from the following options.

  • * RequestResponse (default) - Invoke the function synchronously. Keep * the connection open until the function returns a response or times out. The API * response includes the function response and additional data.

  • * Event - Invoke the function asynchronously. Send events that fail * multiple times to the function's dead-letter queue (if it's configured). The API * response only includes a status code.

  • DryRun - * Validate parameter values and verify that the user or role has permission to * invoke the function.

*/ inline PipeTargetLambdaFunctionParameters& WithInvocationType(const PipeTargetInvocationType& value) { SetInvocationType(value); return *this;} /** *

Choose from the following options.

  • * RequestResponse (default) - Invoke the function synchronously. Keep * the connection open until the function returns a response or times out. The API * response includes the function response and additional data.

  • * Event - Invoke the function asynchronously. Send events that fail * multiple times to the function's dead-letter queue (if it's configured). The API * response only includes a status code.

  • DryRun - * Validate parameter values and verify that the user or role has permission to * invoke the function.

*/ inline PipeTargetLambdaFunctionParameters& WithInvocationType(PipeTargetInvocationType&& value) { SetInvocationType(std::move(value)); return *this;} private: PipeTargetInvocationType m_invocationType; bool m_invocationTypeHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws