/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Lambda { namespace Model { /** */ class PutRuntimeManagementConfigRequest : public LambdaRequest { public: AWS_LAMBDA_API PutRuntimeManagementConfigRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutRuntimeManagementConfig"; } AWS_LAMBDA_API Aws::String SerializePayload() const override; AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline const Aws::String& GetFunctionName() const{ return m_functionName; } /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; } /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; } /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); } /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); } /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline PutRuntimeManagementConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;} /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline PutRuntimeManagementConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;} /** *

The name of the Lambda function.

Name formats *

  • Function namemy-function.

  • *
  • Function ARN – * arn:aws:lambda:us-west-2:123456789012:function:my-function.

    *
  • Partial ARN – * 123456789012:function:my-function.

The length * constraint applies only to the full ARN. If you specify only the function name, * it is limited to 64 characters in length.

*/ inline PutRuntimeManagementConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;} /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline const Aws::String& GetQualifier() const{ return m_qualifier; } /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; } /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; } /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); } /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); } /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline PutRuntimeManagementConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;} /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline PutRuntimeManagementConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;} /** *

Specify a version of the function. This can be $LATEST or a * published version number. If no value is specified, the configuration for the * $LATEST version is returned.

*/ inline PutRuntimeManagementConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;} /** *

Specify the runtime update mode.

  • Auto (default) - * Automatically update to the most recent and secure runtime version using a Two-phase * runtime version rollout. This is the best choice for most customers to * ensure they always benefit from runtime updates.

  • Function * update - Lambda updates the runtime of your function to the most recent and * secure runtime version when you update your function. This approach synchronizes * runtime updates with function deployments, giving you control over when runtime * updates are applied and allowing you to detect and mitigate rare runtime update * incompatibilities early. When using this setting, you need to regularly update * your functions to keep their runtime up-to-date.

  • * Manual - You specify a runtime version in your function configuration. * The function will use this runtime version indefinitely. In the rare case where * a new runtime version is incompatible with an existing function, this allows you * to roll back your function to an earlier runtime version. For more information, * see Roll * back a runtime version.

*/ inline const UpdateRuntimeOn& GetUpdateRuntimeOn() const{ return m_updateRuntimeOn; } /** *

Specify the runtime update mode.

  • Auto (default) - * Automatically update to the most recent and secure runtime version using a Two-phase * runtime version rollout. This is the best choice for most customers to * ensure they always benefit from runtime updates.

  • Function * update - Lambda updates the runtime of your function to the most recent and * secure runtime version when you update your function. This approach synchronizes * runtime updates with function deployments, giving you control over when runtime * updates are applied and allowing you to detect and mitigate rare runtime update * incompatibilities early. When using this setting, you need to regularly update * your functions to keep their runtime up-to-date.

  • * Manual - You specify a runtime version in your function configuration. * The function will use this runtime version indefinitely. In the rare case where * a new runtime version is incompatible with an existing function, this allows you * to roll back your function to an earlier runtime version. For more information, * see Roll * back a runtime version.

*/ inline bool UpdateRuntimeOnHasBeenSet() const { return m_updateRuntimeOnHasBeenSet; } /** *

Specify the runtime update mode.

  • Auto (default) - * Automatically update to the most recent and secure runtime version using a Two-phase * runtime version rollout. This is the best choice for most customers to * ensure they always benefit from runtime updates.

  • Function * update - Lambda updates the runtime of your function to the most recent and * secure runtime version when you update your function. This approach synchronizes * runtime updates with function deployments, giving you control over when runtime * updates are applied and allowing you to detect and mitigate rare runtime update * incompatibilities early. When using this setting, you need to regularly update * your functions to keep their runtime up-to-date.

  • * Manual - You specify a runtime version in your function configuration. * The function will use this runtime version indefinitely. In the rare case where * a new runtime version is incompatible with an existing function, this allows you * to roll back your function to an earlier runtime version. For more information, * see Roll * back a runtime version.

*/ inline void SetUpdateRuntimeOn(const UpdateRuntimeOn& value) { m_updateRuntimeOnHasBeenSet = true; m_updateRuntimeOn = value; } /** *

Specify the runtime update mode.

  • Auto (default) - * Automatically update to the most recent and secure runtime version using a Two-phase * runtime version rollout. This is the best choice for most customers to * ensure they always benefit from runtime updates.

  • Function * update - Lambda updates the runtime of your function to the most recent and * secure runtime version when you update your function. This approach synchronizes * runtime updates with function deployments, giving you control over when runtime * updates are applied and allowing you to detect and mitigate rare runtime update * incompatibilities early. When using this setting, you need to regularly update * your functions to keep their runtime up-to-date.

  • * Manual - You specify a runtime version in your function configuration. * The function will use this runtime version indefinitely. In the rare case where * a new runtime version is incompatible with an existing function, this allows you * to roll back your function to an earlier runtime version. For more information, * see Roll * back a runtime version.

*/ inline void SetUpdateRuntimeOn(UpdateRuntimeOn&& value) { m_updateRuntimeOnHasBeenSet = true; m_updateRuntimeOn = std::move(value); } /** *

Specify the runtime update mode.

  • Auto (default) - * Automatically update to the most recent and secure runtime version using a Two-phase * runtime version rollout. This is the best choice for most customers to * ensure they always benefit from runtime updates.

  • Function * update - Lambda updates the runtime of your function to the most recent and * secure runtime version when you update your function. This approach synchronizes * runtime updates with function deployments, giving you control over when runtime * updates are applied and allowing you to detect and mitigate rare runtime update * incompatibilities early. When using this setting, you need to regularly update * your functions to keep their runtime up-to-date.

  • * Manual - You specify a runtime version in your function configuration. * The function will use this runtime version indefinitely. In the rare case where * a new runtime version is incompatible with an existing function, this allows you * to roll back your function to an earlier runtime version. For more information, * see Roll * back a runtime version.

*/ inline PutRuntimeManagementConfigRequest& WithUpdateRuntimeOn(const UpdateRuntimeOn& value) { SetUpdateRuntimeOn(value); return *this;} /** *

Specify the runtime update mode.

  • Auto (default) - * Automatically update to the most recent and secure runtime version using a Two-phase * runtime version rollout. This is the best choice for most customers to * ensure they always benefit from runtime updates.

  • Function * update - Lambda updates the runtime of your function to the most recent and * secure runtime version when you update your function. This approach synchronizes * runtime updates with function deployments, giving you control over when runtime * updates are applied and allowing you to detect and mitigate rare runtime update * incompatibilities early. When using this setting, you need to regularly update * your functions to keep their runtime up-to-date.

  • * Manual - You specify a runtime version in your function configuration. * The function will use this runtime version indefinitely. In the rare case where * a new runtime version is incompatible with an existing function, this allows you * to roll back your function to an earlier runtime version. For more information, * see Roll * back a runtime version.

*/ inline PutRuntimeManagementConfigRequest& WithUpdateRuntimeOn(UpdateRuntimeOn&& value) { SetUpdateRuntimeOn(std::move(value)); return *this;} /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline const Aws::String& GetRuntimeVersionArn() const{ return m_runtimeVersionArn; } /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline bool RuntimeVersionArnHasBeenSet() const { return m_runtimeVersionArnHasBeenSet; } /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline void SetRuntimeVersionArn(const Aws::String& value) { m_runtimeVersionArnHasBeenSet = true; m_runtimeVersionArn = value; } /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline void SetRuntimeVersionArn(Aws::String&& value) { m_runtimeVersionArnHasBeenSet = true; m_runtimeVersionArn = std::move(value); } /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline void SetRuntimeVersionArn(const char* value) { m_runtimeVersionArnHasBeenSet = true; m_runtimeVersionArn.assign(value); } /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline PutRuntimeManagementConfigRequest& WithRuntimeVersionArn(const Aws::String& value) { SetRuntimeVersionArn(value); return *this;} /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline PutRuntimeManagementConfigRequest& WithRuntimeVersionArn(Aws::String&& value) { SetRuntimeVersionArn(std::move(value)); return *this;} /** *

The ARN of the runtime version you want the function to use.

*

This is only required if you're using the Manual runtime update * mode.

*/ inline PutRuntimeManagementConfigRequest& WithRuntimeVersionArn(const char* value) { SetRuntimeVersionArn(value); return *this;} private: Aws::String m_functionName; bool m_functionNameHasBeenSet = false; Aws::String m_qualifier; bool m_qualifierHasBeenSet = false; UpdateRuntimeOn m_updateRuntimeOn; bool m_updateRuntimeOnHasBeenSet = false; Aws::String m_runtimeVersionArn; bool m_runtimeVersionArnHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws