Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Limits that are related to concurrency and storage. All file and storage
|
||||
* sizes are in bytes.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountLimit">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AccountLimit
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AccountLimit();
|
||||
AWS_LAMBDA_API AccountLimit(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API AccountLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of storage space that you can use for all deployment packages and
|
||||
* layer archives.</p>
|
||||
*/
|
||||
inline long long GetTotalCodeSize() const{ return m_totalCodeSize; }
|
||||
inline bool TotalCodeSizeHasBeenSet() const { return m_totalCodeSizeHasBeenSet; }
|
||||
inline void SetTotalCodeSize(long long value) { m_totalCodeSizeHasBeenSet = true; m_totalCodeSize = value; }
|
||||
inline AccountLimit& WithTotalCodeSize(long long value) { SetTotalCodeSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum size of a function's deployment package and layers when they're
|
||||
* extracted.</p>
|
||||
*/
|
||||
inline long long GetCodeSizeUnzipped() const{ return m_codeSizeUnzipped; }
|
||||
inline bool CodeSizeUnzippedHasBeenSet() const { return m_codeSizeUnzippedHasBeenSet; }
|
||||
inline void SetCodeSizeUnzipped(long long value) { m_codeSizeUnzippedHasBeenSet = true; m_codeSizeUnzipped = value; }
|
||||
inline AccountLimit& WithCodeSizeUnzipped(long long value) { SetCodeSizeUnzipped(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum size of a deployment package when it's uploaded directly to
|
||||
* Lambda. Use Amazon S3 for larger files.</p>
|
||||
*/
|
||||
inline long long GetCodeSizeZipped() const{ return m_codeSizeZipped; }
|
||||
inline bool CodeSizeZippedHasBeenSet() const { return m_codeSizeZippedHasBeenSet; }
|
||||
inline void SetCodeSizeZipped(long long value) { m_codeSizeZippedHasBeenSet = true; m_codeSizeZipped = value; }
|
||||
inline AccountLimit& WithCodeSizeZipped(long long value) { SetCodeSizeZipped(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of simultaneous function executions.</p>
|
||||
*/
|
||||
inline int GetConcurrentExecutions() const{ return m_concurrentExecutions; }
|
||||
inline bool ConcurrentExecutionsHasBeenSet() const { return m_concurrentExecutionsHasBeenSet; }
|
||||
inline void SetConcurrentExecutions(int value) { m_concurrentExecutionsHasBeenSet = true; m_concurrentExecutions = value; }
|
||||
inline AccountLimit& WithConcurrentExecutions(int value) { SetConcurrentExecutions(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of simultaneous function executions, minus the capacity
|
||||
* that's reserved for individual functions with <a>PutFunctionConcurrency</a>.</p>
|
||||
*/
|
||||
inline int GetUnreservedConcurrentExecutions() const{ return m_unreservedConcurrentExecutions; }
|
||||
inline bool UnreservedConcurrentExecutionsHasBeenSet() const { return m_unreservedConcurrentExecutionsHasBeenSet; }
|
||||
inline void SetUnreservedConcurrentExecutions(int value) { m_unreservedConcurrentExecutionsHasBeenSet = true; m_unreservedConcurrentExecutions = value; }
|
||||
inline AccountLimit& WithUnreservedConcurrentExecutions(int value) { SetUnreservedConcurrentExecutions(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
long long m_totalCodeSize;
|
||||
bool m_totalCodeSizeHasBeenSet = false;
|
||||
|
||||
long long m_codeSizeUnzipped;
|
||||
bool m_codeSizeUnzippedHasBeenSet = false;
|
||||
|
||||
long long m_codeSizeZipped;
|
||||
bool m_codeSizeZippedHasBeenSet = false;
|
||||
|
||||
int m_concurrentExecutions;
|
||||
bool m_concurrentExecutionsHasBeenSet = false;
|
||||
|
||||
int m_unreservedConcurrentExecutions;
|
||||
bool m_unreservedConcurrentExecutionsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The number of functions and amount of storage in use.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountUsage">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AccountUsage
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AccountUsage();
|
||||
AWS_LAMBDA_API AccountUsage(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API AccountUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of storage space, in bytes, that's being used by deployment
|
||||
* packages and layer archives.</p>
|
||||
*/
|
||||
inline long long GetTotalCodeSize() const{ return m_totalCodeSize; }
|
||||
inline bool TotalCodeSizeHasBeenSet() const { return m_totalCodeSizeHasBeenSet; }
|
||||
inline void SetTotalCodeSize(long long value) { m_totalCodeSizeHasBeenSet = true; m_totalCodeSize = value; }
|
||||
inline AccountUsage& WithTotalCodeSize(long long value) { SetTotalCodeSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The number of Lambda functions.</p>
|
||||
*/
|
||||
inline long long GetFunctionCount() const{ return m_functionCount; }
|
||||
inline bool FunctionCountHasBeenSet() const { return m_functionCountHasBeenSet; }
|
||||
inline void SetFunctionCount(long long value) { m_functionCountHasBeenSet = true; m_functionCount = value; }
|
||||
inline AccountUsage& WithFunctionCount(long long value) { SetFunctionCount(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
long long m_totalCodeSize;
|
||||
bool m_totalCodeSizeHasBeenSet = false;
|
||||
|
||||
long long m_functionCount;
|
||||
bool m_functionCountHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,168 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class AddLayerVersionPermissionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AddLayerVersionPermissionRequest();
|
||||
|
||||
// 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 "AddLayerVersionPermission"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or Amazon Resource Name (ARN) of the layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerName() const{ return m_layerName; }
|
||||
inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
|
||||
inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
|
||||
inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
|
||||
inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
|
||||
inline AddLayerVersionPermissionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version number.</p>
|
||||
*/
|
||||
inline long long GetVersionNumber() const{ return m_versionNumber; }
|
||||
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
|
||||
inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
|
||||
inline AddLayerVersionPermissionRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An identifier that distinguishes the policy from others on the same layer
|
||||
* version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStatementId() const{ return m_statementId; }
|
||||
inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
|
||||
inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
|
||||
inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
|
||||
inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
|
||||
inline AddLayerVersionPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The API action that grants access to the layer. For example,
|
||||
* <code>lambda:GetLayerVersion</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAction() const{ return m_action; }
|
||||
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
|
||||
inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
|
||||
inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
|
||||
inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
|
||||
inline AddLayerVersionPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An account ID, or <code>*</code> to grant layer usage permission to all
|
||||
* accounts in an organization, or all Amazon Web Services accounts (if
|
||||
* <code>organizationId</code> is not specified). For the last case, make sure that
|
||||
* you really do want all Amazon Web Services accounts to have usage permission to
|
||||
* this layer. </p>
|
||||
*/
|
||||
inline const Aws::String& GetPrincipal() const{ return m_principal; }
|
||||
inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
|
||||
inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
|
||||
inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
|
||||
inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
|
||||
inline AddLayerVersionPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>With the principal set to <code>*</code>, grant permission to all accounts in
|
||||
* the specified organization.</p>
|
||||
*/
|
||||
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
|
||||
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
|
||||
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
|
||||
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
|
||||
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
|
||||
inline AddLayerVersionPermissionRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Only update the policy if the revision ID matches the ID specified. Use this
|
||||
* option to avoid modifying a policy that has changed since you last read it.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
|
||||
inline AddLayerVersionPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_layerName;
|
||||
bool m_layerNameHasBeenSet = false;
|
||||
|
||||
long long m_versionNumber;
|
||||
bool m_versionNumberHasBeenSet = false;
|
||||
|
||||
Aws::String m_statementId;
|
||||
bool m_statementIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_action;
|
||||
bool m_actionHasBeenSet = false;
|
||||
|
||||
Aws::String m_principal;
|
||||
bool m_principalHasBeenSet = false;
|
||||
|
||||
Aws::String m_organizationId;
|
||||
bool m_organizationIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
bool m_revisionIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class AddLayerVersionPermissionResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AddLayerVersionPermissionResult();
|
||||
AWS_LAMBDA_API AddLayerVersionPermissionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API AddLayerVersionPermissionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The permission statement.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStatement() const{ return m_statement; }
|
||||
inline void SetStatement(const Aws::String& value) { m_statement = value; }
|
||||
inline void SetStatement(Aws::String&& value) { m_statement = std::move(value); }
|
||||
inline void SetStatement(const char* value) { m_statement.assign(value); }
|
||||
inline AddLayerVersionPermissionResult& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
|
||||
inline AddLayerVersionPermissionResult& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionResult& WithStatement(const char* value) { SetStatement(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A unique identifier for the current revision of the policy.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
||||
inline AddLayerVersionPermissionResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline AddLayerVersionPermissionResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline AddLayerVersionPermissionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline AddLayerVersionPermissionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline AddLayerVersionPermissionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_statement;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,260 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/FunctionUrlAuthType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class AddPermissionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AddPermissionRequest();
|
||||
|
||||
// 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 "AddPermission"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function, version, or alias.</p> <p
|
||||
* class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code> (name-only), <code>my-function:v1</code> (with
|
||||
* alias).</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can
|
||||
* append a version number or alias to any of the formats. The length constraint
|
||||
* applies only to the full ARN. If you specify only the function name, it is
|
||||
* limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline AddPermissionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline AddPermissionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A statement identifier that differentiates the statement from others in the
|
||||
* same policy.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStatementId() const{ return m_statementId; }
|
||||
inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
|
||||
inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
|
||||
inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
|
||||
inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
|
||||
inline AddPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
|
||||
inline AddPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The action that the principal can use on the function. For example,
|
||||
* <code>lambda:InvokeFunction</code> or <code>lambda:GetFunction</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAction() const{ return m_action; }
|
||||
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
|
||||
inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
|
||||
inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
|
||||
inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
|
||||
inline AddPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
|
||||
inline AddPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services service, Amazon Web Services account, IAM user, or
|
||||
* IAM role that invokes the function. If you specify a service, use
|
||||
* <code>SourceArn</code> or <code>SourceAccount</code> to limit who can invoke the
|
||||
* function through that service.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPrincipal() const{ return m_principal; }
|
||||
inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
|
||||
inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
|
||||
inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
|
||||
inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
|
||||
inline AddPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
|
||||
inline AddPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For Amazon Web Services services, the ARN of the Amazon Web Services resource
|
||||
* that invokes the function. For example, an Amazon S3 bucket or Amazon SNS
|
||||
* topic.</p> <p>Note that Lambda configures the comparison using the
|
||||
* <code>StringLike</code> operator.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
|
||||
inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
|
||||
inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
|
||||
inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
|
||||
inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
|
||||
inline AddPermissionRequest& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
|
||||
inline AddPermissionRequest& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For Amazon Web Services service, the ID of the Amazon Web Services account
|
||||
* that owns the resource. Use this together with <code>SourceArn</code> to ensure
|
||||
* that the specified account owns the resource. It is possible for an Amazon S3
|
||||
* bucket to be deleted by its owner and recreated by another account.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSourceAccount() const{ return m_sourceAccount; }
|
||||
inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; }
|
||||
inline void SetSourceAccount(const Aws::String& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = value; }
|
||||
inline void SetSourceAccount(Aws::String&& value) { m_sourceAccountHasBeenSet = true; m_sourceAccount = std::move(value); }
|
||||
inline void SetSourceAccount(const char* value) { m_sourceAccountHasBeenSet = true; m_sourceAccount.assign(value); }
|
||||
inline AddPermissionRequest& WithSourceAccount(const Aws::String& value) { SetSourceAccount(value); return *this;}
|
||||
inline AddPermissionRequest& WithSourceAccount(Aws::String&& value) { SetSourceAccount(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithSourceAccount(const char* value) { SetSourceAccount(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For Alexa Smart Home functions, a token that the invoker must supply.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceToken() const{ return m_eventSourceToken; }
|
||||
inline bool EventSourceTokenHasBeenSet() const { return m_eventSourceTokenHasBeenSet; }
|
||||
inline void SetEventSourceToken(const Aws::String& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = value; }
|
||||
inline void SetEventSourceToken(Aws::String&& value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken = std::move(value); }
|
||||
inline void SetEventSourceToken(const char* value) { m_eventSourceTokenHasBeenSet = true; m_eventSourceToken.assign(value); }
|
||||
inline AddPermissionRequest& WithEventSourceToken(const Aws::String& value) { SetEventSourceToken(value); return *this;}
|
||||
inline AddPermissionRequest& WithEventSourceToken(Aws::String&& value) { SetEventSourceToken(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithEventSourceToken(const char* value) { SetEventSourceToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specify a version or alias to add permissions to a published version of the
|
||||
* function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline AddPermissionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline AddPermissionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Update the policy only if the revision ID matches the ID that's specified.
|
||||
* Use this option to avoid modifying a policy that has changed since you last read
|
||||
* it.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
|
||||
inline AddPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline AddPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier for your organization in Organizations. Use this to grant
|
||||
* permissions to all the Amazon Web Services accounts under this organization.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPrincipalOrgID() const{ return m_principalOrgID; }
|
||||
inline bool PrincipalOrgIDHasBeenSet() const { return m_principalOrgIDHasBeenSet; }
|
||||
inline void SetPrincipalOrgID(const Aws::String& value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID = value; }
|
||||
inline void SetPrincipalOrgID(Aws::String&& value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID = std::move(value); }
|
||||
inline void SetPrincipalOrgID(const char* value) { m_principalOrgIDHasBeenSet = true; m_principalOrgID.assign(value); }
|
||||
inline AddPermissionRequest& WithPrincipalOrgID(const Aws::String& value) { SetPrincipalOrgID(value); return *this;}
|
||||
inline AddPermissionRequest& WithPrincipalOrgID(Aws::String&& value) { SetPrincipalOrgID(std::move(value)); return *this;}
|
||||
inline AddPermissionRequest& WithPrincipalOrgID(const char* value) { SetPrincipalOrgID(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of authentication that your function URL uses. Set to
|
||||
* <code>AWS_IAM</code> if you want to restrict access to authenticated users only.
|
||||
* Set to <code>NONE</code> if you want to bypass IAM authentication to create a
|
||||
* public endpoint. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and
|
||||
* auth model for Lambda function URLs</a>.</p>
|
||||
*/
|
||||
inline const FunctionUrlAuthType& GetFunctionUrlAuthType() const{ return m_functionUrlAuthType; }
|
||||
inline bool FunctionUrlAuthTypeHasBeenSet() const { return m_functionUrlAuthTypeHasBeenSet; }
|
||||
inline void SetFunctionUrlAuthType(const FunctionUrlAuthType& value) { m_functionUrlAuthTypeHasBeenSet = true; m_functionUrlAuthType = value; }
|
||||
inline void SetFunctionUrlAuthType(FunctionUrlAuthType&& value) { m_functionUrlAuthTypeHasBeenSet = true; m_functionUrlAuthType = std::move(value); }
|
||||
inline AddPermissionRequest& WithFunctionUrlAuthType(const FunctionUrlAuthType& value) { SetFunctionUrlAuthType(value); return *this;}
|
||||
inline AddPermissionRequest& WithFunctionUrlAuthType(FunctionUrlAuthType&& value) { SetFunctionUrlAuthType(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_statementId;
|
||||
bool m_statementIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_action;
|
||||
bool m_actionHasBeenSet = false;
|
||||
|
||||
Aws::String m_principal;
|
||||
bool m_principalHasBeenSet = false;
|
||||
|
||||
Aws::String m_sourceArn;
|
||||
bool m_sourceArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_sourceAccount;
|
||||
bool m_sourceAccountHasBeenSet = false;
|
||||
|
||||
Aws::String m_eventSourceToken;
|
||||
bool m_eventSourceTokenHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
bool m_revisionIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_principalOrgID;
|
||||
bool m_principalOrgIDHasBeenSet = false;
|
||||
|
||||
FunctionUrlAuthType m_functionUrlAuthType;
|
||||
bool m_functionUrlAuthTypeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class AddPermissionResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AddPermissionResult();
|
||||
AWS_LAMBDA_API AddPermissionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API AddPermissionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The permission statement that's added to the function policy.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStatement() const{ return m_statement; }
|
||||
inline void SetStatement(const Aws::String& value) { m_statement = value; }
|
||||
inline void SetStatement(Aws::String&& value) { m_statement = std::move(value); }
|
||||
inline void SetStatement(const char* value) { m_statement.assign(value); }
|
||||
inline AddPermissionResult& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
|
||||
inline AddPermissionResult& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
|
||||
inline AddPermissionResult& WithStatement(const char* value) { SetStatement(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline AddPermissionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline AddPermissionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline AddPermissionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_statement;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,164 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/AliasRoutingConfiguration.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Provides configuration information about a Lambda function <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AliasConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AliasConfiguration();
|
||||
AWS_LAMBDA_API AliasConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API AliasConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
|
||||
inline bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
|
||||
inline void SetAliasArn(const Aws::String& value) { m_aliasArnHasBeenSet = true; m_aliasArn = value; }
|
||||
inline void SetAliasArn(Aws::String&& value) { m_aliasArnHasBeenSet = true; m_aliasArn = std::move(value); }
|
||||
inline void SetAliasArn(const char* value) { m_aliasArnHasBeenSet = true; m_aliasArn.assign(value); }
|
||||
inline AliasConfiguration& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
|
||||
inline AliasConfiguration& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
|
||||
inline AliasConfiguration& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
||||
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
||||
inline AliasConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline AliasConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline AliasConfiguration& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function version that the alias invokes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
|
||||
inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
|
||||
inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
|
||||
inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
|
||||
inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
|
||||
inline AliasConfiguration& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
|
||||
inline AliasConfiguration& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
|
||||
inline AliasConfiguration& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A description of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline AliasConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline AliasConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline AliasConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
||||
* configuration</a> of the alias.</p>
|
||||
*/
|
||||
inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
|
||||
inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
|
||||
inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
|
||||
inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
|
||||
inline AliasConfiguration& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
|
||||
inline AliasConfiguration& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A unique identifier that changes when you update the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
|
||||
inline AliasConfiguration& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline AliasConfiguration& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline AliasConfiguration& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
|
||||
inline AliasConfiguration& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline AliasConfiguration& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline AliasConfiguration& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_aliasArn;
|
||||
bool m_aliasArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
|
||||
Aws::String m_functionVersion;
|
||||
bool m_functionVersionHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
AliasRoutingConfiguration m_routingConfig;
|
||||
bool m_routingConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
bool m_revisionIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_requestId;
|
||||
bool m_requestIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">traffic-shifting</a>
|
||||
* configuration of a Lambda function alias.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasRoutingConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AliasRoutingConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AliasRoutingConfiguration();
|
||||
AWS_LAMBDA_API AliasRoutingConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API AliasRoutingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The second version, and the percentage of traffic that's routed to it.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, double>& GetAdditionalVersionWeights() const{ return m_additionalVersionWeights; }
|
||||
inline bool AdditionalVersionWeightsHasBeenSet() const { return m_additionalVersionWeightsHasBeenSet; }
|
||||
inline void SetAdditionalVersionWeights(const Aws::Map<Aws::String, double>& value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights = value; }
|
||||
inline void SetAdditionalVersionWeights(Aws::Map<Aws::String, double>&& value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights = std::move(value); }
|
||||
inline AliasRoutingConfiguration& WithAdditionalVersionWeights(const Aws::Map<Aws::String, double>& value) { SetAdditionalVersionWeights(value); return *this;}
|
||||
inline AliasRoutingConfiguration& WithAdditionalVersionWeights(Aws::Map<Aws::String, double>&& value) { SetAdditionalVersionWeights(std::move(value)); return *this;}
|
||||
inline AliasRoutingConfiguration& AddAdditionalVersionWeights(const Aws::String& key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(key, value); return *this; }
|
||||
inline AliasRoutingConfiguration& AddAdditionalVersionWeights(Aws::String&& key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(std::move(key), value); return *this; }
|
||||
inline AliasRoutingConfiguration& AddAdditionalVersionWeights(const char* key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(key, value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Map<Aws::String, double> m_additionalVersionWeights;
|
||||
bool m_additionalVersionWeightsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>List of signing profiles that can sign a code package. </p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AllowedPublishers">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AllowedPublishers
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AllowedPublishers();
|
||||
AWS_LAMBDA_API AllowedPublishers(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API AllowedPublishers& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) for each of the signing profiles. A signing
|
||||
* profile defines a trusted user who can sign a code package. </p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetSigningProfileVersionArns() const{ return m_signingProfileVersionArns; }
|
||||
inline bool SigningProfileVersionArnsHasBeenSet() const { return m_signingProfileVersionArnsHasBeenSet; }
|
||||
inline void SetSigningProfileVersionArns(const Aws::Vector<Aws::String>& value) { m_signingProfileVersionArnsHasBeenSet = true; m_signingProfileVersionArns = value; }
|
||||
inline void SetSigningProfileVersionArns(Aws::Vector<Aws::String>&& value) { m_signingProfileVersionArnsHasBeenSet = true; m_signingProfileVersionArns = std::move(value); }
|
||||
inline AllowedPublishers& WithSigningProfileVersionArns(const Aws::Vector<Aws::String>& value) { SetSigningProfileVersionArns(value); return *this;}
|
||||
inline AllowedPublishers& WithSigningProfileVersionArns(Aws::Vector<Aws::String>&& value) { SetSigningProfileVersionArns(std::move(value)); return *this;}
|
||||
inline AllowedPublishers& AddSigningProfileVersionArns(const Aws::String& value) { m_signingProfileVersionArnsHasBeenSet = true; m_signingProfileVersionArns.push_back(value); return *this; }
|
||||
inline AllowedPublishers& AddSigningProfileVersionArns(Aws::String&& value) { m_signingProfileVersionArnsHasBeenSet = true; m_signingProfileVersionArns.push_back(std::move(value)); return *this; }
|
||||
inline AllowedPublishers& AddSigningProfileVersionArns(const char* value) { m_signingProfileVersionArnsHasBeenSet = true; m_signingProfileVersionArns.push_back(value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Aws::String> m_signingProfileVersionArns;
|
||||
bool m_signingProfileVersionArnsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Specific configuration settings for an Amazon Managed Streaming for Apache
|
||||
* Kafka (Amazon MSK) event source.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AmazonManagedKafkaEventSourceConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AmazonManagedKafkaEventSourceConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API AmazonManagedKafkaEventSourceConfig();
|
||||
AWS_LAMBDA_API AmazonManagedKafkaEventSourceConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API AmazonManagedKafkaEventSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier for the Kafka consumer group to join. The consumer group ID
|
||||
* must be unique among all your Kafka event sources. After creating a Kafka event
|
||||
* source mapping with the consumer group ID specified, you cannot update this
|
||||
* value. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id">Customizable
|
||||
* consumer group ID</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetConsumerGroupId() const{ return m_consumerGroupId; }
|
||||
inline bool ConsumerGroupIdHasBeenSet() const { return m_consumerGroupIdHasBeenSet; }
|
||||
inline void SetConsumerGroupId(const Aws::String& value) { m_consumerGroupIdHasBeenSet = true; m_consumerGroupId = value; }
|
||||
inline void SetConsumerGroupId(Aws::String&& value) { m_consumerGroupIdHasBeenSet = true; m_consumerGroupId = std::move(value); }
|
||||
inline void SetConsumerGroupId(const char* value) { m_consumerGroupIdHasBeenSet = true; m_consumerGroupId.assign(value); }
|
||||
inline AmazonManagedKafkaEventSourceConfig& WithConsumerGroupId(const Aws::String& value) { SetConsumerGroupId(value); return *this;}
|
||||
inline AmazonManagedKafkaEventSourceConfig& WithConsumerGroupId(Aws::String&& value) { SetConsumerGroupId(std::move(value)); return *this;}
|
||||
inline AmazonManagedKafkaEventSourceConfig& WithConsumerGroupId(const char* value) { SetConsumerGroupId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_consumerGroupId;
|
||||
bool m_consumerGroupIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class ApplicationLogLevel
|
||||
{
|
||||
NOT_SET,
|
||||
TRACE,
|
||||
DEBUG_,
|
||||
INFO,
|
||||
WARN,
|
||||
ERROR_,
|
||||
FATAL
|
||||
};
|
||||
|
||||
namespace ApplicationLogLevelMapper
|
||||
{
|
||||
AWS_LAMBDA_API ApplicationLogLevel GetApplicationLogLevelForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForApplicationLogLevel(ApplicationLogLevel value);
|
||||
} // namespace ApplicationLogLevelMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class Architecture
|
||||
{
|
||||
NOT_SET,
|
||||
x86_64,
|
||||
arm64
|
||||
};
|
||||
|
||||
namespace ArchitectureMapper
|
||||
{
|
||||
AWS_LAMBDA_API Architecture GetArchitectureForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForArchitecture(Architecture value);
|
||||
} // namespace ArchitectureMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,148 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/AllowedPublishers.h>
|
||||
#include <aws/lambda/model/CodeSigningPolicies.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Details about a <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">Code
|
||||
* signing configuration</a>. </p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CodeSigningConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CodeSigningConfig();
|
||||
AWS_LAMBDA_API CodeSigningConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API CodeSigningConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Unique identifer for the Code signing configuration.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSigningConfigId() const{ return m_codeSigningConfigId; }
|
||||
inline bool CodeSigningConfigIdHasBeenSet() const { return m_codeSigningConfigIdHasBeenSet; }
|
||||
inline void SetCodeSigningConfigId(const Aws::String& value) { m_codeSigningConfigIdHasBeenSet = true; m_codeSigningConfigId = value; }
|
||||
inline void SetCodeSigningConfigId(Aws::String&& value) { m_codeSigningConfigIdHasBeenSet = true; m_codeSigningConfigId = std::move(value); }
|
||||
inline void SetCodeSigningConfigId(const char* value) { m_codeSigningConfigIdHasBeenSet = true; m_codeSigningConfigId.assign(value); }
|
||||
inline CodeSigningConfig& WithCodeSigningConfigId(const Aws::String& value) { SetCodeSigningConfigId(value); return *this;}
|
||||
inline CodeSigningConfig& WithCodeSigningConfigId(Aws::String&& value) { SetCodeSigningConfigId(std::move(value)); return *this;}
|
||||
inline CodeSigningConfig& WithCodeSigningConfigId(const char* value) { SetCodeSigningConfigId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the Code signing configuration.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSigningConfigArn() const{ return m_codeSigningConfigArn; }
|
||||
inline bool CodeSigningConfigArnHasBeenSet() const { return m_codeSigningConfigArnHasBeenSet; }
|
||||
inline void SetCodeSigningConfigArn(const Aws::String& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = value; }
|
||||
inline void SetCodeSigningConfigArn(Aws::String&& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = std::move(value); }
|
||||
inline void SetCodeSigningConfigArn(const char* value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn.assign(value); }
|
||||
inline CodeSigningConfig& WithCodeSigningConfigArn(const Aws::String& value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
inline CodeSigningConfig& WithCodeSigningConfigArn(Aws::String&& value) { SetCodeSigningConfigArn(std::move(value)); return *this;}
|
||||
inline CodeSigningConfig& WithCodeSigningConfigArn(const char* value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Code signing configuration description.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline CodeSigningConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CodeSigningConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CodeSigningConfig& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>List of allowed publishers.</p>
|
||||
*/
|
||||
inline const AllowedPublishers& GetAllowedPublishers() const{ return m_allowedPublishers; }
|
||||
inline bool AllowedPublishersHasBeenSet() const { return m_allowedPublishersHasBeenSet; }
|
||||
inline void SetAllowedPublishers(const AllowedPublishers& value) { m_allowedPublishersHasBeenSet = true; m_allowedPublishers = value; }
|
||||
inline void SetAllowedPublishers(AllowedPublishers&& value) { m_allowedPublishersHasBeenSet = true; m_allowedPublishers = std::move(value); }
|
||||
inline CodeSigningConfig& WithAllowedPublishers(const AllowedPublishers& value) { SetAllowedPublishers(value); return *this;}
|
||||
inline CodeSigningConfig& WithAllowedPublishers(AllowedPublishers&& value) { SetAllowedPublishers(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The code signing policy controls the validation failure action for signature
|
||||
* mismatch or expiry.</p>
|
||||
*/
|
||||
inline const CodeSigningPolicies& GetCodeSigningPolicies() const{ return m_codeSigningPolicies; }
|
||||
inline bool CodeSigningPoliciesHasBeenSet() const { return m_codeSigningPoliciesHasBeenSet; }
|
||||
inline void SetCodeSigningPolicies(const CodeSigningPolicies& value) { m_codeSigningPoliciesHasBeenSet = true; m_codeSigningPolicies = value; }
|
||||
inline void SetCodeSigningPolicies(CodeSigningPolicies&& value) { m_codeSigningPoliciesHasBeenSet = true; m_codeSigningPolicies = std::move(value); }
|
||||
inline CodeSigningConfig& WithCodeSigningPolicies(const CodeSigningPolicies& value) { SetCodeSigningPolicies(value); return *this;}
|
||||
inline CodeSigningConfig& WithCodeSigningPolicies(CodeSigningPolicies&& value) { SetCodeSigningPolicies(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the Code signing configuration was last modified, in
|
||||
* ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). </p>
|
||||
*/
|
||||
inline const Aws::String& GetLastModified() const{ return m_lastModified; }
|
||||
inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
|
||||
inline void SetLastModified(const Aws::String& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::String&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
|
||||
inline void SetLastModified(const char* value) { m_lastModifiedHasBeenSet = true; m_lastModified.assign(value); }
|
||||
inline CodeSigningConfig& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
|
||||
inline CodeSigningConfig& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
inline CodeSigningConfig& WithLastModified(const char* value) { SetLastModified(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_codeSigningConfigId;
|
||||
bool m_codeSigningConfigIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_codeSigningConfigArn;
|
||||
bool m_codeSigningConfigArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
AllowedPublishers m_allowedPublishers;
|
||||
bool m_allowedPublishersHasBeenSet = false;
|
||||
|
||||
CodeSigningPolicies m_codeSigningPolicies;
|
||||
bool m_codeSigningPoliciesHasBeenSet = false;
|
||||
|
||||
Aws::String m_lastModified;
|
||||
bool m_lastModifiedHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The specified code signing configuration does not exist.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningConfigNotFoundException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CodeSigningConfigNotFoundException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CodeSigningConfigNotFoundException();
|
||||
AWS_LAMBDA_API CodeSigningConfigNotFoundException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API CodeSigningConfigNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline CodeSigningConfigNotFoundException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline CodeSigningConfigNotFoundException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline CodeSigningConfigNotFoundException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline CodeSigningConfigNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline CodeSigningConfigNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline CodeSigningConfigNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/CodeSigningPolicy.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Code signing configuration <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies">policies</a>
|
||||
* specify the validation failure action for signature mismatch or
|
||||
* expiry.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningPolicies">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CodeSigningPolicies
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CodeSigningPolicies();
|
||||
AWS_LAMBDA_API CodeSigningPolicies(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API CodeSigningPolicies& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Code signing configuration policy for deployment validation failure. If you
|
||||
* set the policy to <code>Enforce</code>, Lambda blocks the deployment request if
|
||||
* signature validation checks fail. If you set the policy to <code>Warn</code>,
|
||||
* Lambda allows the deployment and creates a CloudWatch log. </p> <p>Default
|
||||
* value: <code>Warn</code> </p>
|
||||
*/
|
||||
inline const CodeSigningPolicy& GetUntrustedArtifactOnDeployment() const{ return m_untrustedArtifactOnDeployment; }
|
||||
inline bool UntrustedArtifactOnDeploymentHasBeenSet() const { return m_untrustedArtifactOnDeploymentHasBeenSet; }
|
||||
inline void SetUntrustedArtifactOnDeployment(const CodeSigningPolicy& value) { m_untrustedArtifactOnDeploymentHasBeenSet = true; m_untrustedArtifactOnDeployment = value; }
|
||||
inline void SetUntrustedArtifactOnDeployment(CodeSigningPolicy&& value) { m_untrustedArtifactOnDeploymentHasBeenSet = true; m_untrustedArtifactOnDeployment = std::move(value); }
|
||||
inline CodeSigningPolicies& WithUntrustedArtifactOnDeployment(const CodeSigningPolicy& value) { SetUntrustedArtifactOnDeployment(value); return *this;}
|
||||
inline CodeSigningPolicies& WithUntrustedArtifactOnDeployment(CodeSigningPolicy&& value) { SetUntrustedArtifactOnDeployment(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
CodeSigningPolicy m_untrustedArtifactOnDeployment;
|
||||
bool m_untrustedArtifactOnDeploymentHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class CodeSigningPolicy
|
||||
{
|
||||
NOT_SET,
|
||||
Warn,
|
||||
Enforce
|
||||
};
|
||||
|
||||
namespace CodeSigningPolicyMapper
|
||||
{
|
||||
AWS_LAMBDA_API CodeSigningPolicy GetCodeSigningPolicyForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForCodeSigningPolicy(CodeSigningPolicy value);
|
||||
} // namespace CodeSigningPolicyMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Your Amazon Web Services account has exceeded its maximum total code size.
|
||||
* For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda
|
||||
* quotas</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeStorageExceededException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CodeStorageExceededException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CodeStorageExceededException();
|
||||
AWS_LAMBDA_API CodeStorageExceededException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API CodeStorageExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The exception type.</p>
|
||||
*/
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline CodeStorageExceededException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline CodeStorageExceededException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline CodeStorageExceededException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline CodeStorageExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline CodeStorageExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline CodeStorageExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The code signature failed one or more of the validation checks for signature
|
||||
* mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks
|
||||
* the deployment.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeVerificationFailedException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CodeVerificationFailedException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CodeVerificationFailedException();
|
||||
AWS_LAMBDA_API CodeVerificationFailedException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API CodeVerificationFailedException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline CodeVerificationFailedException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline CodeVerificationFailedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline CodeVerificationFailedException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline CodeVerificationFailedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline CodeVerificationFailedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline CodeVerificationFailedException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
class Concurrency
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API Concurrency();
|
||||
AWS_LAMBDA_API Concurrency(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Concurrency& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The number of concurrent executions that are reserved for this function. For
|
||||
* more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing
|
||||
* Lambda reserved concurrency</a>.</p>
|
||||
*/
|
||||
inline int GetReservedConcurrentExecutions() const{ return m_reservedConcurrentExecutions; }
|
||||
inline bool ReservedConcurrentExecutionsHasBeenSet() const { return m_reservedConcurrentExecutionsHasBeenSet; }
|
||||
inline void SetReservedConcurrentExecutions(int value) { m_reservedConcurrentExecutionsHasBeenSet = true; m_reservedConcurrentExecutions = value; }
|
||||
inline Concurrency& WithReservedConcurrentExecutions(int value) { SetReservedConcurrentExecutions(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
|
||||
inline Concurrency& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline Concurrency& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline Concurrency& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
int m_reservedConcurrentExecutions;
|
||||
bool m_reservedConcurrentExecutionsHasBeenSet = false;
|
||||
|
||||
Aws::String m_requestId;
|
||||
bool m_requestIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,161 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin
|
||||
* resource sharing (CORS)</a> settings for your Lambda function URL. Use CORS to
|
||||
* grant access to your function URL from any origin. You can also use CORS to
|
||||
* control access for specific HTTP headers and methods in requests to your
|
||||
* function URL.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Cors">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class Cors
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API Cors();
|
||||
AWS_LAMBDA_API Cors(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Cors& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Whether to allow cookies or other credentials in requests to your function
|
||||
* URL. The default is <code>false</code>.</p>
|
||||
*/
|
||||
inline bool GetAllowCredentials() const{ return m_allowCredentials; }
|
||||
inline bool AllowCredentialsHasBeenSet() const { return m_allowCredentialsHasBeenSet; }
|
||||
inline void SetAllowCredentials(bool value) { m_allowCredentialsHasBeenSet = true; m_allowCredentials = value; }
|
||||
inline Cors& WithAllowCredentials(bool value) { SetAllowCredentials(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The HTTP headers that origins can include in requests to your function URL.
|
||||
* For example: <code>Date</code>, <code>Keep-Alive</code>,
|
||||
* <code>X-Custom-Header</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetAllowHeaders() const{ return m_allowHeaders; }
|
||||
inline bool AllowHeadersHasBeenSet() const { return m_allowHeadersHasBeenSet; }
|
||||
inline void SetAllowHeaders(const Aws::Vector<Aws::String>& value) { m_allowHeadersHasBeenSet = true; m_allowHeaders = value; }
|
||||
inline void SetAllowHeaders(Aws::Vector<Aws::String>&& value) { m_allowHeadersHasBeenSet = true; m_allowHeaders = std::move(value); }
|
||||
inline Cors& WithAllowHeaders(const Aws::Vector<Aws::String>& value) { SetAllowHeaders(value); return *this;}
|
||||
inline Cors& WithAllowHeaders(Aws::Vector<Aws::String>&& value) { SetAllowHeaders(std::move(value)); return *this;}
|
||||
inline Cors& AddAllowHeaders(const Aws::String& value) { m_allowHeadersHasBeenSet = true; m_allowHeaders.push_back(value); return *this; }
|
||||
inline Cors& AddAllowHeaders(Aws::String&& value) { m_allowHeadersHasBeenSet = true; m_allowHeaders.push_back(std::move(value)); return *this; }
|
||||
inline Cors& AddAllowHeaders(const char* value) { m_allowHeadersHasBeenSet = true; m_allowHeaders.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The HTTP methods that are allowed when calling your function URL. For
|
||||
* example: <code>GET</code>, <code>POST</code>, <code>DELETE</code>, or the
|
||||
* wildcard character (<code>*</code>).</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetAllowMethods() const{ return m_allowMethods; }
|
||||
inline bool AllowMethodsHasBeenSet() const { return m_allowMethodsHasBeenSet; }
|
||||
inline void SetAllowMethods(const Aws::Vector<Aws::String>& value) { m_allowMethodsHasBeenSet = true; m_allowMethods = value; }
|
||||
inline void SetAllowMethods(Aws::Vector<Aws::String>&& value) { m_allowMethodsHasBeenSet = true; m_allowMethods = std::move(value); }
|
||||
inline Cors& WithAllowMethods(const Aws::Vector<Aws::String>& value) { SetAllowMethods(value); return *this;}
|
||||
inline Cors& WithAllowMethods(Aws::Vector<Aws::String>&& value) { SetAllowMethods(std::move(value)); return *this;}
|
||||
inline Cors& AddAllowMethods(const Aws::String& value) { m_allowMethodsHasBeenSet = true; m_allowMethods.push_back(value); return *this; }
|
||||
inline Cors& AddAllowMethods(Aws::String&& value) { m_allowMethodsHasBeenSet = true; m_allowMethods.push_back(std::move(value)); return *this; }
|
||||
inline Cors& AddAllowMethods(const char* value) { m_allowMethodsHasBeenSet = true; m_allowMethods.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The origins that can access your function URL. You can list any number of
|
||||
* specific origins, separated by a comma. For example:
|
||||
* <code>https://www.example.com</code>, <code>http://localhost:60905</code>.</p>
|
||||
* <p>Alternatively, you can grant access to all origins using the wildcard
|
||||
* character (<code>*</code>).</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetAllowOrigins() const{ return m_allowOrigins; }
|
||||
inline bool AllowOriginsHasBeenSet() const { return m_allowOriginsHasBeenSet; }
|
||||
inline void SetAllowOrigins(const Aws::Vector<Aws::String>& value) { m_allowOriginsHasBeenSet = true; m_allowOrigins = value; }
|
||||
inline void SetAllowOrigins(Aws::Vector<Aws::String>&& value) { m_allowOriginsHasBeenSet = true; m_allowOrigins = std::move(value); }
|
||||
inline Cors& WithAllowOrigins(const Aws::Vector<Aws::String>& value) { SetAllowOrigins(value); return *this;}
|
||||
inline Cors& WithAllowOrigins(Aws::Vector<Aws::String>&& value) { SetAllowOrigins(std::move(value)); return *this;}
|
||||
inline Cors& AddAllowOrigins(const Aws::String& value) { m_allowOriginsHasBeenSet = true; m_allowOrigins.push_back(value); return *this; }
|
||||
inline Cors& AddAllowOrigins(Aws::String&& value) { m_allowOriginsHasBeenSet = true; m_allowOrigins.push_back(std::move(value)); return *this; }
|
||||
inline Cors& AddAllowOrigins(const char* value) { m_allowOriginsHasBeenSet = true; m_allowOrigins.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The HTTP headers in your function response that you want to expose to origins
|
||||
* that call your function URL. For example: <code>Date</code>,
|
||||
* <code>Keep-Alive</code>, <code>X-Custom-Header</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetExposeHeaders() const{ return m_exposeHeaders; }
|
||||
inline bool ExposeHeadersHasBeenSet() const { return m_exposeHeadersHasBeenSet; }
|
||||
inline void SetExposeHeaders(const Aws::Vector<Aws::String>& value) { m_exposeHeadersHasBeenSet = true; m_exposeHeaders = value; }
|
||||
inline void SetExposeHeaders(Aws::Vector<Aws::String>&& value) { m_exposeHeadersHasBeenSet = true; m_exposeHeaders = std::move(value); }
|
||||
inline Cors& WithExposeHeaders(const Aws::Vector<Aws::String>& value) { SetExposeHeaders(value); return *this;}
|
||||
inline Cors& WithExposeHeaders(Aws::Vector<Aws::String>&& value) { SetExposeHeaders(std::move(value)); return *this;}
|
||||
inline Cors& AddExposeHeaders(const Aws::String& value) { m_exposeHeadersHasBeenSet = true; m_exposeHeaders.push_back(value); return *this; }
|
||||
inline Cors& AddExposeHeaders(Aws::String&& value) { m_exposeHeadersHasBeenSet = true; m_exposeHeaders.push_back(std::move(value)); return *this; }
|
||||
inline Cors& AddExposeHeaders(const char* value) { m_exposeHeadersHasBeenSet = true; m_exposeHeaders.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum amount of time, in seconds, that web browsers can cache results
|
||||
* of a preflight request. By default, this is set to <code>0</code>, which means
|
||||
* that the browser doesn't cache results.</p>
|
||||
*/
|
||||
inline int GetMaxAge() const{ return m_maxAge; }
|
||||
inline bool MaxAgeHasBeenSet() const { return m_maxAgeHasBeenSet; }
|
||||
inline void SetMaxAge(int value) { m_maxAgeHasBeenSet = true; m_maxAge = value; }
|
||||
inline Cors& WithMaxAge(int value) { SetMaxAge(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
bool m_allowCredentials;
|
||||
bool m_allowCredentialsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_allowHeaders;
|
||||
bool m_allowHeadersHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_allowMethods;
|
||||
bool m_allowMethodsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_allowOrigins;
|
||||
bool m_allowOriginsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_exposeHeaders;
|
||||
bool m_exposeHeadersHasBeenSet = false;
|
||||
|
||||
int m_maxAge;
|
||||
bool m_maxAgeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/AliasRoutingConfiguration.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateAliasRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateAliasRequest();
|
||||
|
||||
// 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 "CreateAlias"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline CreateAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline CreateAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline CreateAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
||||
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
||||
inline CreateAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline CreateAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline CreateAliasRequest& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function version that the alias invokes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
|
||||
inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
|
||||
inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
|
||||
inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
|
||||
inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
|
||||
inline CreateAliasRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
|
||||
inline CreateAliasRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
|
||||
inline CreateAliasRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A description of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline CreateAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CreateAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CreateAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing">routing
|
||||
* configuration</a> of the alias.</p>
|
||||
*/
|
||||
inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
|
||||
inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
|
||||
inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
|
||||
inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
|
||||
inline CreateAliasRequest& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
|
||||
inline CreateAliasRequest& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
|
||||
Aws::String m_functionVersion;
|
||||
bool m_functionVersionHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
AliasRoutingConfiguration m_routingConfig;
|
||||
bool m_routingConfigHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/AliasRoutingConfiguration.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>Provides configuration information about a Lambda function <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CreateAliasResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateAliasResult();
|
||||
AWS_LAMBDA_API CreateAliasResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API CreateAliasResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
|
||||
inline void SetAliasArn(const Aws::String& value) { m_aliasArn = value; }
|
||||
inline void SetAliasArn(Aws::String&& value) { m_aliasArn = std::move(value); }
|
||||
inline void SetAliasArn(const char* value) { m_aliasArn.assign(value); }
|
||||
inline CreateAliasResult& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
|
||||
inline CreateAliasResult& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
|
||||
inline CreateAliasResult& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline void SetName(const Aws::String& value) { m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_name.assign(value); }
|
||||
inline CreateAliasResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline CreateAliasResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline CreateAliasResult& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function version that the alias invokes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
|
||||
inline void SetFunctionVersion(const Aws::String& value) { m_functionVersion = value; }
|
||||
inline void SetFunctionVersion(Aws::String&& value) { m_functionVersion = std::move(value); }
|
||||
inline void SetFunctionVersion(const char* value) { m_functionVersion.assign(value); }
|
||||
inline CreateAliasResult& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
|
||||
inline CreateAliasResult& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
|
||||
inline CreateAliasResult& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A description of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_description.assign(value); }
|
||||
inline CreateAliasResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CreateAliasResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CreateAliasResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
||||
* configuration</a> of the alias.</p>
|
||||
*/
|
||||
inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
|
||||
inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfig = value; }
|
||||
inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfig = std::move(value); }
|
||||
inline CreateAliasResult& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
|
||||
inline CreateAliasResult& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A unique identifier that changes when you update the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
||||
inline CreateAliasResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline CreateAliasResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline CreateAliasResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateAliasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateAliasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateAliasResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_aliasArn;
|
||||
|
||||
Aws::String m_name;
|
||||
|
||||
Aws::String m_functionVersion;
|
||||
|
||||
Aws::String m_description;
|
||||
|
||||
AliasRoutingConfiguration m_routingConfig;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,112 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/AllowedPublishers.h>
|
||||
#include <aws/lambda/model/CodeSigningPolicies.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateCodeSigningConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateCodeSigningConfigRequest();
|
||||
|
||||
// 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 "CreateCodeSigningConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Descriptive name for this code signing configuration.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline CreateCodeSigningConfigRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CreateCodeSigningConfigRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CreateCodeSigningConfigRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Signing profiles for this code signing configuration.</p>
|
||||
*/
|
||||
inline const AllowedPublishers& GetAllowedPublishers() const{ return m_allowedPublishers; }
|
||||
inline bool AllowedPublishersHasBeenSet() const { return m_allowedPublishersHasBeenSet; }
|
||||
inline void SetAllowedPublishers(const AllowedPublishers& value) { m_allowedPublishersHasBeenSet = true; m_allowedPublishers = value; }
|
||||
inline void SetAllowedPublishers(AllowedPublishers&& value) { m_allowedPublishersHasBeenSet = true; m_allowedPublishers = std::move(value); }
|
||||
inline CreateCodeSigningConfigRequest& WithAllowedPublishers(const AllowedPublishers& value) { SetAllowedPublishers(value); return *this;}
|
||||
inline CreateCodeSigningConfigRequest& WithAllowedPublishers(AllowedPublishers&& value) { SetAllowedPublishers(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The code signing policies define the actions to take if the validation checks
|
||||
* fail. </p>
|
||||
*/
|
||||
inline const CodeSigningPolicies& GetCodeSigningPolicies() const{ return m_codeSigningPolicies; }
|
||||
inline bool CodeSigningPoliciesHasBeenSet() const { return m_codeSigningPoliciesHasBeenSet; }
|
||||
inline void SetCodeSigningPolicies(const CodeSigningPolicies& value) { m_codeSigningPoliciesHasBeenSet = true; m_codeSigningPolicies = value; }
|
||||
inline void SetCodeSigningPolicies(CodeSigningPolicies&& value) { m_codeSigningPoliciesHasBeenSet = true; m_codeSigningPolicies = std::move(value); }
|
||||
inline CreateCodeSigningConfigRequest& WithCodeSigningPolicies(const CodeSigningPolicies& value) { SetCodeSigningPolicies(value); return *this;}
|
||||
inline CreateCodeSigningConfigRequest& WithCodeSigningPolicies(CodeSigningPolicies&& value) { SetCodeSigningPolicies(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of tags to add to the code signing configuration.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
||||
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
||||
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
||||
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
||||
inline CreateCodeSigningConfigRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
||||
inline CreateCodeSigningConfigRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
||||
inline CreateCodeSigningConfigRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
||||
inline CreateCodeSigningConfigRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline CreateCodeSigningConfigRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline CreateCodeSigningConfigRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline CreateCodeSigningConfigRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline CreateCodeSigningConfigRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline CreateCodeSigningConfigRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
AllowedPublishers m_allowedPublishers;
|
||||
bool m_allowedPublishersHasBeenSet = false;
|
||||
|
||||
CodeSigningPolicies m_codeSigningPolicies;
|
||||
bool m_codeSigningPoliciesHasBeenSet = false;
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_tags;
|
||||
bool m_tagsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/CodeSigningConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class CreateCodeSigningConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateCodeSigningConfigResult();
|
||||
AWS_LAMBDA_API CreateCodeSigningConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API CreateCodeSigningConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The code signing configuration.</p>
|
||||
*/
|
||||
inline const CodeSigningConfig& GetCodeSigningConfig() const{ return m_codeSigningConfig; }
|
||||
inline void SetCodeSigningConfig(const CodeSigningConfig& value) { m_codeSigningConfig = value; }
|
||||
inline void SetCodeSigningConfig(CodeSigningConfig&& value) { m_codeSigningConfig = std::move(value); }
|
||||
inline CreateCodeSigningConfigResult& WithCodeSigningConfig(const CodeSigningConfig& value) { SetCodeSigningConfig(value); return *this;}
|
||||
inline CreateCodeSigningConfigResult& WithCodeSigningConfig(CodeSigningConfig&& value) { SetCodeSigningConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateCodeSigningConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateCodeSigningConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateCodeSigningConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
CodeSigningConfig m_codeSigningConfig;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,504 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/FilterCriteria.h>
|
||||
#include <aws/lambda/model/EventSourcePosition.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/SelfManagedEventSource.h>
|
||||
#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/ScalingConfig.h>
|
||||
#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
|
||||
#include <aws/lambda/model/SourceAccessConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionResponseType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateEventSourceMappingRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateEventSourceMappingRequest();
|
||||
|
||||
// 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 "CreateEventSourceMapping"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source.</p> <ul> <li> <p>
|
||||
* <b>Amazon Kinesis</b> – The ARN of the data stream or a stream consumer.</p>
|
||||
* </li> <li> <p> <b>Amazon DynamoDB Streams</b> – The ARN of the stream.</p> </li>
|
||||
* <li> <p> <b>Amazon Simple Queue Service</b> – The ARN of the queue.</p> </li>
|
||||
* <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – The ARN of the
|
||||
* cluster or the ARN of the VPC connection (for <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc">cross-account
|
||||
* event source mappings</a>).</p> </li> <li> <p> <b>Amazon MQ</b> – The ARN of the
|
||||
* broker.</p> </li> <li> <p> <b>Amazon DocumentDB</b> – The ARN of the DocumentDB
|
||||
* change stream.</p> </li> </ul>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
|
||||
inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
|
||||
inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
|
||||
inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
|
||||
inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
|
||||
inline CreateEventSourceMappingRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Version or Alias ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it's limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline CreateEventSourceMappingRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>When true, the event source mapping is active. When false, Lambda pauses
|
||||
* polling and invocation.</p> <p>Default: True</p>
|
||||
*/
|
||||
inline bool GetEnabled() const{ return m_enabled; }
|
||||
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
|
||||
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
|
||||
inline CreateEventSourceMappingRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of records in each batch that Lambda pulls from your
|
||||
* stream or queue and sends to your function. Lambda passes all of the records in
|
||||
* the batch to the function in a single call, up to the payload limit for
|
||||
* synchronous invocation (6 MB).</p> <ul> <li> <p> <b>Amazon Kinesis</b> – Default
|
||||
* 100. Max 10,000.</p> </li> <li> <p> <b>Amazon DynamoDB Streams</b> – Default
|
||||
* 100. Max 10,000.</p> </li> <li> <p> <b>Amazon Simple Queue Service</b> – Default
|
||||
* 10. For standard queues the max is 10,000. For FIFO queues the max is 10.</p>
|
||||
* </li> <li> <p> <b>Amazon Managed Streaming for Apache Kafka</b> – Default 100.
|
||||
* Max 10,000.</p> </li> <li> <p> <b>Self-managed Apache Kafka</b> – Default 100.
|
||||
* Max 10,000.</p> </li> <li> <p> <b>Amazon MQ (ActiveMQ and RabbitMQ)</b> –
|
||||
* Default 100. Max 10,000.</p> </li> <li> <p> <b>DocumentDB</b> – Default 100. Max
|
||||
* 10,000.</p> </li> </ul>
|
||||
*/
|
||||
inline int GetBatchSize() const{ return m_batchSize; }
|
||||
inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
|
||||
inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
|
||||
inline CreateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that defines the filter criteria that determine whether Lambda
|
||||
* should process an event. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda
|
||||
* event filtering</a>.</p>
|
||||
*/
|
||||
inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
|
||||
inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
|
||||
inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = value; }
|
||||
inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records
|
||||
* before invoking the function. You can configure
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300
|
||||
* seconds in increments of seconds.</p> <p>For Kinesis, DynamoDB, and Amazon SQS
|
||||
* event sources, the default batching window is 0 seconds. For Amazon MSK,
|
||||
* Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default
|
||||
* batching window is 500 ms. Note that because you can only change
|
||||
* <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot
|
||||
* revert back to the 500 ms default batching window after you have changed it. To
|
||||
* restore the default batching window, you must create a new event source
|
||||
* mapping.</p> <p>Related setting: For Kinesis, DynamoDB, and Amazon SQS event
|
||||
* sources, when you set <code>BatchSize</code> to a value greater than 10, you
|
||||
* must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
|
||||
inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
|
||||
inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
|
||||
inline CreateEventSourceMappingRequest& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The number of batches to process from
|
||||
* each shard concurrently.</p>
|
||||
*/
|
||||
inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
|
||||
inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
|
||||
inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
|
||||
inline CreateEventSourceMappingRequest& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The position in a stream from which to start reading. Required for Amazon
|
||||
* Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is
|
||||
* supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and
|
||||
* self-managed Apache Kafka.</p>
|
||||
*/
|
||||
inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
|
||||
inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
|
||||
inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
|
||||
inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time
|
||||
* from which to start reading. <code>StartingPositionTimestamp</code> cannot be in
|
||||
* the future.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
|
||||
inline bool StartingPositionTimestampHasBeenSet() const { return m_startingPositionTimestampHasBeenSet; }
|
||||
inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = value; }
|
||||
inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithStartingPositionTimestamp(const Aws::Utils::DateTime& value) { SetStartingPositionTimestamp(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithStartingPositionTimestamp(Aws::Utils::DateTime&& value) { SetStartingPositionTimestamp(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Kafka only) A
|
||||
* configuration object that specifies the destination of an event after Lambda
|
||||
* processes it.</p>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records older than the specified
|
||||
* age. The default value is infinite (-1).</p>
|
||||
*/
|
||||
inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
|
||||
inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
|
||||
inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
|
||||
inline CreateEventSourceMappingRequest& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split
|
||||
* the batch in two and retry.</p>
|
||||
*/
|
||||
inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
|
||||
inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
|
||||
inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionErrorHasBeenSet = true; m_bisectBatchOnFunctionError = value; }
|
||||
inline CreateEventSourceMappingRequest& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records after the specified
|
||||
* number of retries. The default value is infinite (-1). When set to infinite
|
||||
* (-1), failed records are retried until the record expires.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
|
||||
inline CreateEventSourceMappingRequest& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of tags to apply to the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
||||
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
||||
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
||||
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing
|
||||
* window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds
|
||||
* indicates no tumbling window.</p>
|
||||
*/
|
||||
inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; }
|
||||
inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
|
||||
inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSecondsHasBeenSet = true; m_tumblingWindowInSeconds = value; }
|
||||
inline CreateEventSourceMappingRequest& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the Kafka topic.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
|
||||
inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
|
||||
inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topicsHasBeenSet = true; m_topics = value; }
|
||||
inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& AddTopics(const Aws::String& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTopics(Aws::String&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddTopics(const char* value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> (MQ) The name of the Amazon MQ broker destination queue to consume. </p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetQueues() const{ return m_queues; }
|
||||
inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
|
||||
inline void SetQueues(const Aws::Vector<Aws::String>& value) { m_queuesHasBeenSet = true; m_queues = value; }
|
||||
inline void SetQueues(Aws::Vector<Aws::String>&& value) { m_queuesHasBeenSet = true; m_queues = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithQueues(const Aws::Vector<Aws::String>& value) { SetQueues(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithQueues(Aws::Vector<Aws::String>&& value) { SetQueues(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& AddQueues(const Aws::String& value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddQueues(Aws::String&& value) { m_queuesHasBeenSet = true; m_queues.push_back(std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddQueues(const char* value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An array of authentication protocols or VPC components required to secure
|
||||
* your event source.</p>
|
||||
*/
|
||||
inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; }
|
||||
inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
|
||||
inline void SetSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = value; }
|
||||
inline void SetSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { SetSourceAccessConfigurations(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The self-managed Apache Kafka cluster to receive records from.</p>
|
||||
*/
|
||||
inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; }
|
||||
inline bool SelfManagedEventSourceHasBeenSet() const { return m_selfManagedEventSourceHasBeenSet; }
|
||||
inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = value; }
|
||||
inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type
|
||||
* enums applied to the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const{ return m_functionResponseTypes; }
|
||||
inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
|
||||
inline void SetFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = value; }
|
||||
inline void SetFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { SetFunctionResponseTypes(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { SetFunctionResponseTypes(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingRequest& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for an Amazon Managed Streaming for Apache
|
||||
* Kafka (Amazon MSK) event source.</p>
|
||||
*/
|
||||
inline const AmazonManagedKafkaEventSourceConfig& GetAmazonManagedKafkaEventSourceConfig() const{ return m_amazonManagedKafkaEventSourceConfig; }
|
||||
inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { m_amazonManagedKafkaEventSourceConfigHasBeenSet = true; m_amazonManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { m_amazonManagedKafkaEventSourceConfigHasBeenSet = true; m_amazonManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { SetAmazonManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { SetAmazonManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a self-managed Apache Kafka event
|
||||
* source.</p>
|
||||
*/
|
||||
inline const SelfManagedKafkaEventSourceConfig& GetSelfManagedKafkaEventSourceConfig() const{ return m_selfManagedKafkaEventSourceConfig; }
|
||||
inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { m_selfManagedKafkaEventSourceConfigHasBeenSet = true; m_selfManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { m_selfManagedKafkaEventSourceConfigHasBeenSet = true; m_selfManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { SetSelfManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { SetSelfManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Amazon SQS only) The scaling configuration for the event source. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring
|
||||
* maximum concurrency for Amazon SQS event sources</a>.</p>
|
||||
*/
|
||||
inline const ScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
|
||||
inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
|
||||
inline void SetScalingConfig(const ScalingConfig& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = value; }
|
||||
inline void SetScalingConfig(ScalingConfig&& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithScalingConfig(const ScalingConfig& value) { SetScalingConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithScalingConfig(ScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
||||
*/
|
||||
inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const{ return m_documentDBEventSourceConfig; }
|
||||
inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
|
||||
inline void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = value; }
|
||||
inline void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingRequest& WithDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { SetDocumentDBEventSourceConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { SetDocumentDBEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
||||
* uses to encrypt your function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter
|
||||
* criteria</a>. By default, Lambda does not encrypt your filter criteria object.
|
||||
* Specify this property to encrypt data using your own customer managed key. </p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
|
||||
inline CreateEventSourceMappingRequest& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingRequest& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_eventSourceArn;
|
||||
bool m_eventSourceArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
bool m_enabled;
|
||||
bool m_enabledHasBeenSet = false;
|
||||
|
||||
int m_batchSize;
|
||||
bool m_batchSizeHasBeenSet = false;
|
||||
|
||||
FilterCriteria m_filterCriteria;
|
||||
bool m_filterCriteriaHasBeenSet = false;
|
||||
|
||||
int m_maximumBatchingWindowInSeconds;
|
||||
bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
|
||||
|
||||
int m_parallelizationFactor;
|
||||
bool m_parallelizationFactorHasBeenSet = false;
|
||||
|
||||
EventSourcePosition m_startingPosition;
|
||||
bool m_startingPositionHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_startingPositionTimestamp;
|
||||
bool m_startingPositionTimestampHasBeenSet = false;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
bool m_destinationConfigHasBeenSet = false;
|
||||
|
||||
int m_maximumRecordAgeInSeconds;
|
||||
bool m_maximumRecordAgeInSecondsHasBeenSet = false;
|
||||
|
||||
bool m_bisectBatchOnFunctionError;
|
||||
bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
bool m_maximumRetryAttemptsHasBeenSet = false;
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_tags;
|
||||
bool m_tagsHasBeenSet = false;
|
||||
|
||||
int m_tumblingWindowInSeconds;
|
||||
bool m_tumblingWindowInSecondsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_topics;
|
||||
bool m_topicsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_queues;
|
||||
bool m_queuesHasBeenSet = false;
|
||||
|
||||
Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
|
||||
bool m_sourceAccessConfigurationsHasBeenSet = false;
|
||||
|
||||
SelfManagedEventSource m_selfManagedEventSource;
|
||||
bool m_selfManagedEventSourceHasBeenSet = false;
|
||||
|
||||
Aws::Vector<FunctionResponseType> m_functionResponseTypes;
|
||||
bool m_functionResponseTypesHasBeenSet = false;
|
||||
|
||||
AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
|
||||
bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
|
||||
|
||||
SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
|
||||
bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
|
||||
|
||||
ScalingConfig m_scalingConfig;
|
||||
bool m_scalingConfigHasBeenSet = false;
|
||||
|
||||
DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
|
||||
bool m_documentDBEventSourceConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
bool m_kMSKeyArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,534 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/EventSourcePosition.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/lambda/model/FilterCriteria.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/SelfManagedEventSource.h>
|
||||
#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/ScalingConfig.h>
|
||||
#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
|
||||
#include <aws/lambda/model/FilterCriteriaError.h>
|
||||
#include <aws/lambda/model/SourceAccessConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionResponseType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For
|
||||
* details, see <a>CreateEventSourceMapping</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CreateEventSourceMappingResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateEventSourceMappingResult();
|
||||
AWS_LAMBDA_API CreateEventSourceMappingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API CreateEventSourceMappingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUUID() const{ return m_uUID; }
|
||||
inline void SetUUID(const Aws::String& value) { m_uUID = value; }
|
||||
inline void SetUUID(Aws::String&& value) { m_uUID = std::move(value); }
|
||||
inline void SetUUID(const char* value) { m_uUID.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithUUID(const char* value) { SetUUID(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The position in a stream from which to start reading. Required for Amazon
|
||||
* Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is
|
||||
* supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and
|
||||
* self-managed Apache Kafka.</p>
|
||||
*/
|
||||
inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
|
||||
inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPosition = value; }
|
||||
inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPosition = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time
|
||||
* from which to start reading. <code>StartingPositionTimestamp</code> cannot be in
|
||||
* the future.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
|
||||
inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestamp = value; }
|
||||
inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestamp = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithStartingPositionTimestamp(const Aws::Utils::DateTime& value) { SetStartingPositionTimestamp(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithStartingPositionTimestamp(Aws::Utils::DateTime&& value) { SetStartingPositionTimestamp(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of records in each batch that Lambda pulls from your
|
||||
* stream or queue and sends to your function. Lambda passes all of the records in
|
||||
* the batch to the function in a single call, up to the payload limit for
|
||||
* synchronous invocation (6 MB).</p> <p>Default value: Varies by service. For
|
||||
* Amazon SQS, the default is 10. For all other services, the default is 100.</p>
|
||||
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than
|
||||
* 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetBatchSize() const{ return m_batchSize; }
|
||||
inline void SetBatchSize(int value) { m_batchSize = value; }
|
||||
inline CreateEventSourceMappingResult& WithBatchSize(int value) { SetBatchSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records
|
||||
* before invoking the function. You can configure
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300
|
||||
* seconds in increments of seconds.</p> <p>For streams and Amazon SQS event
|
||||
* sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed
|
||||
* Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
||||
* window is 500 ms. Note that because you can only change
|
||||
* <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot
|
||||
* revert back to the 500 ms default batching window after you have changed it. To
|
||||
* restore the default batching window, you must create a new event source
|
||||
* mapping.</p> <p>Related setting: For streams and Amazon SQS event sources, when
|
||||
* you set <code>BatchSize</code> to a value greater than 10, you must set
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
|
||||
inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; }
|
||||
inline CreateEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The number of batches to process
|
||||
* concurrently from each shard. The default value is 1.</p>
|
||||
*/
|
||||
inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
|
||||
inline void SetParallelizationFactor(int value) { m_parallelizationFactor = value; }
|
||||
inline CreateEventSourceMappingResult& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
|
||||
inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArn = value; }
|
||||
inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArn = std::move(value); }
|
||||
inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that defines the filter criteria that determine whether Lambda
|
||||
* should process an event. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda
|
||||
* event filtering</a>.</p> <p>If filter criteria is encrypted, this field shows up
|
||||
* as <code>null</code> in the response of ListEventSourceMapping API calls. You
|
||||
* can view this field in plaintext in the response of GetEventSourceMapping and
|
||||
* DeleteEventSourceMapping calls if you have <code>kms:Decrypt</code> permissions
|
||||
* for the correct KMS key.</p>
|
||||
*/
|
||||
inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
|
||||
inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteria = value; }
|
||||
inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteria = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date that the event source mapping was last updated or that its state
|
||||
* changed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
|
||||
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The result of the last Lambda invocation of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastProcessingResult() const{ return m_lastProcessingResult; }
|
||||
inline void SetLastProcessingResult(const Aws::String& value) { m_lastProcessingResult = value; }
|
||||
inline void SetLastProcessingResult(Aws::String&& value) { m_lastProcessingResult = std::move(value); }
|
||||
inline void SetLastProcessingResult(const char* value) { m_lastProcessingResult.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithLastProcessingResult(const Aws::String& value) { SetLastProcessingResult(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithLastProcessingResult(Aws::String&& value) { SetLastProcessingResult(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithLastProcessingResult(const char* value) { SetLastProcessingResult(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The state of the event source mapping. It can be one of the following:
|
||||
* <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>,
|
||||
* <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or
|
||||
* <code>Deleting</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetState() const{ return m_state; }
|
||||
inline void SetState(const Aws::String& value) { m_state = value; }
|
||||
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
|
||||
inline void SetState(const char* value) { m_state.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithState(const Aws::String& value) { SetState(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithState(const char* value) { SetState(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Indicates whether a user or Lambda made the last change to the event source
|
||||
* mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
|
||||
inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReason = value; }
|
||||
inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReason = std::move(value); }
|
||||
inline void SetStateTransitionReason(const char* value) { m_stateTransitionReason.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event
|
||||
* sources only) A configuration object that specifies the destination of an event
|
||||
* after Lambda processes it.</p>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the Kafka topic.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
|
||||
inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topics = value; }
|
||||
inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topics = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to
|
||||
* consume.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetQueues() const{ return m_queues; }
|
||||
inline void SetQueues(const Aws::Vector<Aws::String>& value) { m_queues = value; }
|
||||
inline void SetQueues(Aws::Vector<Aws::String>&& value) { m_queues = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithQueues(const Aws::Vector<Aws::String>& value) { SetQueues(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithQueues(Aws::Vector<Aws::String>&& value) { SetQueues(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& AddQueues(const Aws::String& value) { m_queues.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingResult& AddQueues(Aws::String&& value) { m_queues.push_back(std::move(value)); return *this; }
|
||||
inline CreateEventSourceMappingResult& AddQueues(const char* value) { m_queues.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An array of the authentication protocol, VPC components, or virtual host to
|
||||
* secure and define your event source.</p>
|
||||
*/
|
||||
inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; }
|
||||
inline void SetSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { m_sourceAccessConfigurations = value; }
|
||||
inline void SetSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { m_sourceAccessConfigurations = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { SetSourceAccessConfigurations(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The self-managed Apache Kafka cluster for your event source.</p>
|
||||
*/
|
||||
inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; }
|
||||
inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; }
|
||||
inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records older than the specified
|
||||
* age. The default value is -1, which sets the maximum age to infinite. When the
|
||||
* value is set to infinite, Lambda never discards old records.</p> <p>The
|
||||
* minimum valid value for maximum record age is 60s. Although values less than 60
|
||||
* and greater than -1 fall within the parameter's absolute range, they are not
|
||||
* allowed</p>
|
||||
*/
|
||||
inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
|
||||
inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSeconds = value; }
|
||||
inline CreateEventSourceMappingResult& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split
|
||||
* the batch in two and retry. The default value is false.</p>
|
||||
*/
|
||||
inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
|
||||
inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionError = value; }
|
||||
inline CreateEventSourceMappingResult& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records after the specified
|
||||
* number of retries. The default value is -1, which sets the maximum number of
|
||||
* retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries
|
||||
* failed records until the record expires in the event source.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttempts = value; }
|
||||
inline CreateEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing
|
||||
* window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds
|
||||
* indicates no tumbling window.</p>
|
||||
*/
|
||||
inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; }
|
||||
inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; }
|
||||
inline CreateEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type
|
||||
* enums applied to the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const{ return m_functionResponseTypes; }
|
||||
inline void SetFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { m_functionResponseTypes = value; }
|
||||
inline void SetFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { m_functionResponseTypes = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { SetFunctionResponseTypes(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { SetFunctionResponseTypes(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; }
|
||||
inline CreateEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for an Amazon Managed Streaming for Apache
|
||||
* Kafka (Amazon MSK) event source.</p>
|
||||
*/
|
||||
inline const AmazonManagedKafkaEventSourceConfig& GetAmazonManagedKafkaEventSourceConfig() const{ return m_amazonManagedKafkaEventSourceConfig; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { m_amazonManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { m_amazonManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { SetAmazonManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { SetAmazonManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a self-managed Apache Kafka event
|
||||
* source.</p>
|
||||
*/
|
||||
inline const SelfManagedKafkaEventSourceConfig& GetSelfManagedKafkaEventSourceConfig() const{ return m_selfManagedKafkaEventSourceConfig; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { m_selfManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { m_selfManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { SetSelfManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { SetSelfManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Amazon SQS only) The scaling configuration for the event source. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring
|
||||
* maximum concurrency for Amazon SQS event sources</a>.</p>
|
||||
*/
|
||||
inline const ScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
|
||||
inline void SetScalingConfig(const ScalingConfig& value) { m_scalingConfig = value; }
|
||||
inline void SetScalingConfig(ScalingConfig&& value) { m_scalingConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithScalingConfig(const ScalingConfig& value) { SetScalingConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithScalingConfig(ScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
||||
*/
|
||||
inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const{ return m_documentDBEventSourceConfig; }
|
||||
inline void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { m_documentDBEventSourceConfig = value; }
|
||||
inline void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { m_documentDBEventSourceConfig = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { SetDocumentDBEventSourceConfig(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { SetDocumentDBEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
||||
* uses to encrypt your function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter
|
||||
* criteria</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about an error related to filter criteria
|
||||
* encryption.</p>
|
||||
*/
|
||||
inline const FilterCriteriaError& GetFilterCriteriaError() const{ return m_filterCriteriaError; }
|
||||
inline void SetFilterCriteriaError(const FilterCriteriaError& value) { m_filterCriteriaError = value; }
|
||||
inline void SetFilterCriteriaError(FilterCriteriaError&& value) { m_filterCriteriaError = std::move(value); }
|
||||
inline CreateEventSourceMappingResult& WithFilterCriteriaError(const FilterCriteriaError& value) { SetFilterCriteriaError(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; }
|
||||
inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; }
|
||||
inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); }
|
||||
inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateEventSourceMappingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateEventSourceMappingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uUID;
|
||||
|
||||
EventSourcePosition m_startingPosition;
|
||||
|
||||
Aws::Utils::DateTime m_startingPositionTimestamp;
|
||||
|
||||
int m_batchSize;
|
||||
|
||||
int m_maximumBatchingWindowInSeconds;
|
||||
|
||||
int m_parallelizationFactor;
|
||||
|
||||
Aws::String m_eventSourceArn;
|
||||
|
||||
FilterCriteria m_filterCriteria;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
Aws::Utils::DateTime m_lastModified;
|
||||
|
||||
Aws::String m_lastProcessingResult;
|
||||
|
||||
Aws::String m_state;
|
||||
|
||||
Aws::String m_stateTransitionReason;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
|
||||
Aws::Vector<Aws::String> m_topics;
|
||||
|
||||
Aws::Vector<Aws::String> m_queues;
|
||||
|
||||
Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
|
||||
|
||||
SelfManagedEventSource m_selfManagedEventSource;
|
||||
|
||||
int m_maximumRecordAgeInSeconds;
|
||||
|
||||
bool m_bisectBatchOnFunctionError;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
|
||||
int m_tumblingWindowInSeconds;
|
||||
|
||||
Aws::Vector<FunctionResponseType> m_functionResponseTypes;
|
||||
|
||||
AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
|
||||
|
||||
SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
|
||||
|
||||
ScalingConfig m_scalingConfig;
|
||||
|
||||
DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
|
||||
FilterCriteriaError m_filterCriteriaError;
|
||||
|
||||
Aws::String m_eventSourceMappingArn;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,515 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/Runtime.h>
|
||||
#include <aws/lambda/model/FunctionCode.h>
|
||||
#include <aws/lambda/model/VpcConfig.h>
|
||||
#include <aws/lambda/model/PackageType.h>
|
||||
#include <aws/lambda/model/DeadLetterConfig.h>
|
||||
#include <aws/lambda/model/Environment.h>
|
||||
#include <aws/lambda/model/TracingConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/ImageConfig.h>
|
||||
#include <aws/lambda/model/EphemeralStorage.h>
|
||||
#include <aws/lambda/model/SnapStart.h>
|
||||
#include <aws/lambda/model/LoggingConfig.h>
|
||||
#include <aws/lambda/model/FileSystemConfig.h>
|
||||
#include <aws/lambda/model/Architecture.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateFunctionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateFunctionRequest();
|
||||
|
||||
// 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 "CreateFunction"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline CreateFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline CreateFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">
|
||||
* runtime</a>. Runtime is required if the deployment package is a .zip file
|
||||
* archive. Specifying a runtime results in an error if you're deploying a function
|
||||
* using a container image.</p> <p>The following list includes deprecated runtimes.
|
||||
* Lambda blocks creating new functions and updating existing functions shortly
|
||||
* after each runtime is deprecated. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime
|
||||
* use after deprecation</a>.</p> <p>For a list of all currently supported
|
||||
* runtimes, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported
|
||||
* runtimes</a>.</p>
|
||||
*/
|
||||
inline const Runtime& GetRuntime() const{ return m_runtime; }
|
||||
inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
|
||||
inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
|
||||
inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
|
||||
inline CreateFunctionRequest& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
|
||||
inline CreateFunctionRequest& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the function's execution role.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRole() const{ return m_role; }
|
||||
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
|
||||
inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
|
||||
inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
|
||||
inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
|
||||
inline CreateFunctionRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
|
||||
inline CreateFunctionRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& WithRole(const char* value) { SetRole(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the method within your code that Lambda calls to run your
|
||||
* function. Handler is required if the deployment package is a .zip file archive.
|
||||
* The format includes the file name. It can also include namespaces and other
|
||||
* qualifiers, depending on the runtime. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html">Lambda
|
||||
* programming model</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetHandler() const{ return m_handler; }
|
||||
inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
|
||||
inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
|
||||
inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = std::move(value); }
|
||||
inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
|
||||
inline CreateFunctionRequest& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
|
||||
inline CreateFunctionRequest& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& WithHandler(const char* value) { SetHandler(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The code for the function.</p>
|
||||
*/
|
||||
inline const FunctionCode& GetCode() const{ return m_code; }
|
||||
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
|
||||
inline void SetCode(const FunctionCode& value) { m_codeHasBeenSet = true; m_code = value; }
|
||||
inline void SetCode(FunctionCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
|
||||
inline CreateFunctionRequest& WithCode(const FunctionCode& value) { SetCode(value); return *this;}
|
||||
inline CreateFunctionRequest& WithCode(FunctionCode&& value) { SetCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A description of the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline CreateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CreateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of time (in seconds) that Lambda allows a function to run before
|
||||
* stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.
|
||||
* For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html">Lambda
|
||||
* execution environment</a>.</p>
|
||||
*/
|
||||
inline int GetTimeout() const{ return m_timeout; }
|
||||
inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
|
||||
inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
|
||||
inline CreateFunctionRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console">memory
|
||||
* available to the function</a> at runtime. Increasing the function memory also
|
||||
* increases its CPU allocation. The default value is 128 MB. The value can be any
|
||||
* multiple of 1 MB.</p>
|
||||
*/
|
||||
inline int GetMemorySize() const{ return m_memorySize; }
|
||||
inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
|
||||
inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
|
||||
inline CreateFunctionRequest& WithMemorySize(int value) { SetMemorySize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Set to true to publish the first version of the function during creation.</p>
|
||||
*/
|
||||
inline bool GetPublish() const{ return m_publish; }
|
||||
inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
|
||||
inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
|
||||
inline CreateFunctionRequest& WithPublish(bool value) { SetPublish(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For network connectivity to Amazon Web Services resources in a VPC, specify a
|
||||
* list of security groups and subnets in the VPC. When you connect a function to a
|
||||
* VPC, it can access resources and the internet only through that VPC. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html">Configuring
|
||||
* a Lambda function to access resources in a VPC</a>.</p>
|
||||
*/
|
||||
inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
|
||||
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
|
||||
inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
|
||||
inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
|
||||
inline CreateFunctionRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
|
||||
inline CreateFunctionRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of deployment package. Set to <code>Image</code> for container image
|
||||
* and set to <code>Zip</code> for .zip file archive.</p>
|
||||
*/
|
||||
inline const PackageType& GetPackageType() const{ return m_packageType; }
|
||||
inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
|
||||
inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
|
||||
inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
|
||||
inline CreateFunctionRequest& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
|
||||
inline CreateFunctionRequest& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A dead-letter queue configuration that specifies the queue or topic where
|
||||
* Lambda sends asynchronous events when they fail processing. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq">Dead-letter
|
||||
* queues</a>.</p>
|
||||
*/
|
||||
inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
|
||||
inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
|
||||
inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
|
||||
inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
|
||||
inline CreateFunctionRequest& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
|
||||
inline CreateFunctionRequest& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Environment variables that are accessible from function code during
|
||||
* execution.</p>
|
||||
*/
|
||||
inline const Environment& GetEnvironment() const{ return m_environment; }
|
||||
inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
|
||||
inline void SetEnvironment(const Environment& value) { m_environmentHasBeenSet = true; m_environment = value; }
|
||||
inline void SetEnvironment(Environment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
|
||||
inline CreateFunctionRequest& WithEnvironment(const Environment& value) { SetEnvironment(value); return *this;}
|
||||
inline CreateFunctionRequest& WithEnvironment(Environment&& value) { SetEnvironment(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used
|
||||
* to encrypt the following resources:</p> <ul> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment
|
||||
* variables</a>.</p> </li> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda
|
||||
* SnapStart</a> snapshots.</p> </li> <li> <p>When used with
|
||||
* <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment
|
||||
* package that's used for function invocations. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
|
||||
* Specifying a customer managed key for Lambda</a>.</p> </li> <li> <p>The
|
||||
* optimized version of the container image that's used for function invocations.
|
||||
* Note that this is not the same key that's used to protect your container image
|
||||
* in the Amazon Elastic Container Registry (Amazon ECR). For more information, see
|
||||
* <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function
|
||||
* lifecycle</a>.</p> </li> </ul> <p>If you don't provide a customer managed key,
|
||||
* Lambda uses an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
|
||||
* Web Services owned key</a> or an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
|
||||
* Web Services managed key</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
|
||||
inline CreateFunctionRequest& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline CreateFunctionRequest& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Set <code>Mode</code> to <code>Active</code> to sample and trace a subset of
|
||||
* incoming requests with <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html">X-Ray</a>.</p>
|
||||
*/
|
||||
inline const TracingConfig& GetTracingConfig() const{ return m_tracingConfig; }
|
||||
inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
|
||||
inline void SetTracingConfig(const TracingConfig& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = value; }
|
||||
inline void SetTracingConfig(TracingConfig&& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = std::move(value); }
|
||||
inline CreateFunctionRequest& WithTracingConfig(const TracingConfig& value) { SetTracingConfig(value); return *this;}
|
||||
inline CreateFunctionRequest& WithTracingConfig(TracingConfig&& value) { SetTracingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to
|
||||
* apply to the function.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
||||
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
||||
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
||||
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
||||
inline CreateFunctionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
||||
inline CreateFunctionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
||||
inline CreateFunctionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline CreateFunctionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline CreateFunctionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline CreateFunctionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline CreateFunctionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline CreateFunctionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">function
|
||||
* layers</a> to add to the function's execution environment. Specify each layer by
|
||||
* its ARN, including the version.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetLayers() const{ return m_layers; }
|
||||
inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
|
||||
inline void SetLayers(const Aws::Vector<Aws::String>& value) { m_layersHasBeenSet = true; m_layers = value; }
|
||||
inline void SetLayers(Aws::Vector<Aws::String>&& value) { m_layersHasBeenSet = true; m_layers = std::move(value); }
|
||||
inline CreateFunctionRequest& WithLayers(const Aws::Vector<Aws::String>& value) { SetLayers(value); return *this;}
|
||||
inline CreateFunctionRequest& WithLayers(Aws::Vector<Aws::String>&& value) { SetLayers(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& AddLayers(const Aws::String& value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
|
||||
inline CreateFunctionRequest& AddLayers(Aws::String&& value) { m_layersHasBeenSet = true; m_layers.push_back(std::move(value)); return *this; }
|
||||
inline CreateFunctionRequest& AddLayers(const char* value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Connection settings for an Amazon EFS file system.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const{ return m_fileSystemConfigs; }
|
||||
inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
|
||||
inline void SetFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = value; }
|
||||
inline void SetFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = std::move(value); }
|
||||
inline CreateFunctionRequest& WithFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { SetFileSystemConfigs(value); return *this;}
|
||||
inline CreateFunctionRequest& WithFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { SetFileSystemConfigs(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(value); return *this; }
|
||||
inline CreateFunctionRequest& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Container image <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms">configuration
|
||||
* values</a> that override the values in the container image Dockerfile.</p>
|
||||
*/
|
||||
inline const ImageConfig& GetImageConfig() const{ return m_imageConfig; }
|
||||
inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
|
||||
inline void SetImageConfig(const ImageConfig& value) { m_imageConfigHasBeenSet = true; m_imageConfig = value; }
|
||||
inline void SetImageConfig(ImageConfig&& value) { m_imageConfigHasBeenSet = true; m_imageConfig = std::move(value); }
|
||||
inline CreateFunctionRequest& WithImageConfig(const ImageConfig& value) { SetImageConfig(value); return *this;}
|
||||
inline CreateFunctionRequest& WithImageConfig(ImageConfig&& value) { SetImageConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>To enable code signing for this function, specify the ARN of a code-signing
|
||||
* configuration. A code-signing configuration includes a set of signing profiles,
|
||||
* which define the trusted publishers for this function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSigningConfigArn() const{ return m_codeSigningConfigArn; }
|
||||
inline bool CodeSigningConfigArnHasBeenSet() const { return m_codeSigningConfigArnHasBeenSet; }
|
||||
inline void SetCodeSigningConfigArn(const Aws::String& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = value; }
|
||||
inline void SetCodeSigningConfigArn(Aws::String&& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = std::move(value); }
|
||||
inline void SetCodeSigningConfigArn(const char* value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn.assign(value); }
|
||||
inline CreateFunctionRequest& WithCodeSigningConfigArn(const Aws::String& value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
inline CreateFunctionRequest& WithCodeSigningConfigArn(Aws::String&& value) { SetCodeSigningConfigArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& WithCodeSigningConfigArn(const char* value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The instruction set architecture that the function supports. Enter a string
|
||||
* array with one of the valid values (arm64 or x86_64). The default value is
|
||||
* <code>x86_64</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Architecture>& GetArchitectures() const{ return m_architectures; }
|
||||
inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
|
||||
inline void SetArchitectures(const Aws::Vector<Architecture>& value) { m_architecturesHasBeenSet = true; m_architectures = value; }
|
||||
inline void SetArchitectures(Aws::Vector<Architecture>&& value) { m_architecturesHasBeenSet = true; m_architectures = std::move(value); }
|
||||
inline CreateFunctionRequest& WithArchitectures(const Aws::Vector<Architecture>& value) { SetArchitectures(value); return *this;}
|
||||
inline CreateFunctionRequest& WithArchitectures(Aws::Vector<Architecture>&& value) { SetArchitectures(std::move(value)); return *this;}
|
||||
inline CreateFunctionRequest& AddArchitectures(const Architecture& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
|
||||
inline CreateFunctionRequest& AddArchitectures(Architecture&& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's <code>/tmp</code> directory in MB. The default
|
||||
* value is 512, but can be any whole number between 512 and 10,240 MB. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring
|
||||
* ephemeral storage (console)</a>.</p>
|
||||
*/
|
||||
inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
|
||||
inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
|
||||
inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
|
||||
inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
|
||||
inline CreateFunctionRequest& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
|
||||
inline CreateFunctionRequest& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">SnapStart</a>
|
||||
* setting.</p>
|
||||
*/
|
||||
inline const SnapStart& GetSnapStart() const{ return m_snapStart; }
|
||||
inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
|
||||
inline void SetSnapStart(const SnapStart& value) { m_snapStartHasBeenSet = true; m_snapStart = value; }
|
||||
inline void SetSnapStart(SnapStart&& value) { m_snapStartHasBeenSet = true; m_snapStart = std::move(value); }
|
||||
inline CreateFunctionRequest& WithSnapStart(const SnapStart& value) { SetSnapStart(value); return *this;}
|
||||
inline CreateFunctionRequest& WithSnapStart(SnapStart&& value) { SetSnapStart(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
||||
*/
|
||||
inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
|
||||
inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
|
||||
inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; }
|
||||
inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); }
|
||||
inline CreateFunctionRequest& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;}
|
||||
inline CreateFunctionRequest& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Runtime m_runtime;
|
||||
bool m_runtimeHasBeenSet = false;
|
||||
|
||||
Aws::String m_role;
|
||||
bool m_roleHasBeenSet = false;
|
||||
|
||||
Aws::String m_handler;
|
||||
bool m_handlerHasBeenSet = false;
|
||||
|
||||
FunctionCode m_code;
|
||||
bool m_codeHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
int m_timeout;
|
||||
bool m_timeoutHasBeenSet = false;
|
||||
|
||||
int m_memorySize;
|
||||
bool m_memorySizeHasBeenSet = false;
|
||||
|
||||
bool m_publish;
|
||||
bool m_publishHasBeenSet = false;
|
||||
|
||||
VpcConfig m_vpcConfig;
|
||||
bool m_vpcConfigHasBeenSet = false;
|
||||
|
||||
PackageType m_packageType;
|
||||
bool m_packageTypeHasBeenSet = false;
|
||||
|
||||
DeadLetterConfig m_deadLetterConfig;
|
||||
bool m_deadLetterConfigHasBeenSet = false;
|
||||
|
||||
Environment m_environment;
|
||||
bool m_environmentHasBeenSet = false;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
bool m_kMSKeyArnHasBeenSet = false;
|
||||
|
||||
TracingConfig m_tracingConfig;
|
||||
bool m_tracingConfigHasBeenSet = false;
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_tags;
|
||||
bool m_tagsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_layers;
|
||||
bool m_layersHasBeenSet = false;
|
||||
|
||||
Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
|
||||
bool m_fileSystemConfigsHasBeenSet = false;
|
||||
|
||||
ImageConfig m_imageConfig;
|
||||
bool m_imageConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_codeSigningConfigArn;
|
||||
bool m_codeSigningConfigArnHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Architecture> m_architectures;
|
||||
bool m_architecturesHasBeenSet = false;
|
||||
|
||||
EphemeralStorage m_ephemeralStorage;
|
||||
bool m_ephemeralStorageHasBeenSet = false;
|
||||
|
||||
SnapStart m_snapStart;
|
||||
bool m_snapStartHasBeenSet = false;
|
||||
|
||||
LoggingConfig m_loggingConfig;
|
||||
bool m_loggingConfigHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,627 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/Runtime.h>
|
||||
#include <aws/lambda/model/VpcConfigResponse.h>
|
||||
#include <aws/lambda/model/DeadLetterConfig.h>
|
||||
#include <aws/lambda/model/EnvironmentResponse.h>
|
||||
#include <aws/lambda/model/TracingConfigResponse.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/State.h>
|
||||
#include <aws/lambda/model/StateReasonCode.h>
|
||||
#include <aws/lambda/model/LastUpdateStatus.h>
|
||||
#include <aws/lambda/model/LastUpdateStatusReasonCode.h>
|
||||
#include <aws/lambda/model/PackageType.h>
|
||||
#include <aws/lambda/model/ImageConfigResponse.h>
|
||||
#include <aws/lambda/model/EphemeralStorage.h>
|
||||
#include <aws/lambda/model/SnapStartResponse.h>
|
||||
#include <aws/lambda/model/RuntimeVersionConfig.h>
|
||||
#include <aws/lambda/model/LoggingConfig.h>
|
||||
#include <aws/lambda/model/Layer.h>
|
||||
#include <aws/lambda/model/FileSystemConfig.h>
|
||||
#include <aws/lambda/model/Architecture.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>Details about a function's configuration.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CreateFunctionResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateFunctionResult();
|
||||
AWS_LAMBDA_API CreateFunctionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API CreateFunctionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionName.assign(value); }
|
||||
inline CreateFunctionResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline CreateFunctionResult& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon Resource Name (ARN).</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline CreateFunctionResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline CreateFunctionResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">
|
||||
* runtime</a>. Runtime is required if the deployment package is a .zip file
|
||||
* archive. Specifying a runtime results in an error if you're deploying a function
|
||||
* using a container image.</p> <p>The following list includes deprecated runtimes.
|
||||
* Lambda blocks creating new functions and updating existing functions shortly
|
||||
* after each runtime is deprecated. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime
|
||||
* use after deprecation</a>.</p> <p>For a list of all currently supported
|
||||
* runtimes, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported
|
||||
* runtimes</a>.</p>
|
||||
*/
|
||||
inline const Runtime& GetRuntime() const{ return m_runtime; }
|
||||
inline void SetRuntime(const Runtime& value) { m_runtime = value; }
|
||||
inline void SetRuntime(Runtime&& value) { m_runtime = std::move(value); }
|
||||
inline CreateFunctionResult& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
|
||||
inline CreateFunctionResult& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's execution role.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRole() const{ return m_role; }
|
||||
inline void SetRole(const Aws::String& value) { m_role = value; }
|
||||
inline void SetRole(Aws::String&& value) { m_role = std::move(value); }
|
||||
inline void SetRole(const char* value) { m_role.assign(value); }
|
||||
inline CreateFunctionResult& WithRole(const Aws::String& value) { SetRole(value); return *this;}
|
||||
inline CreateFunctionResult& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithRole(const char* value) { SetRole(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function that Lambda calls to begin running your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetHandler() const{ return m_handler; }
|
||||
inline void SetHandler(const Aws::String& value) { m_handler = value; }
|
||||
inline void SetHandler(Aws::String&& value) { m_handler = std::move(value); }
|
||||
inline void SetHandler(const char* value) { m_handler.assign(value); }
|
||||
inline CreateFunctionResult& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
|
||||
inline CreateFunctionResult& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithHandler(const char* value) { SetHandler(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's deployment package, in bytes.</p>
|
||||
*/
|
||||
inline long long GetCodeSize() const{ return m_codeSize; }
|
||||
inline void SetCodeSize(long long value) { m_codeSize = value; }
|
||||
inline CreateFunctionResult& WithCodeSize(long long value) { SetCodeSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's description.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_description.assign(value); }
|
||||
inline CreateFunctionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CreateFunctionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of time in seconds that Lambda allows a function to run before
|
||||
* stopping it.</p>
|
||||
*/
|
||||
inline int GetTimeout() const{ return m_timeout; }
|
||||
inline void SetTimeout(int value) { m_timeout = value; }
|
||||
inline CreateFunctionResult& WithTimeout(int value) { SetTimeout(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of memory available to the function at runtime.</p>
|
||||
*/
|
||||
inline int GetMemorySize() const{ return m_memorySize; }
|
||||
inline void SetMemorySize(int value) { m_memorySize = value; }
|
||||
inline CreateFunctionResult& WithMemorySize(int value) { SetMemorySize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the function was last updated, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastModified() const{ return m_lastModified; }
|
||||
inline void SetLastModified(const Aws::String& value) { m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::String&& value) { m_lastModified = std::move(value); }
|
||||
inline void SetLastModified(const char* value) { m_lastModified.assign(value); }
|
||||
inline CreateFunctionResult& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
|
||||
inline CreateFunctionResult& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithLastModified(const char* value) { SetLastModified(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The SHA256 hash of the function's deployment package.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
|
||||
inline void SetCodeSha256(const Aws::String& value) { m_codeSha256 = value; }
|
||||
inline void SetCodeSha256(Aws::String&& value) { m_codeSha256 = std::move(value); }
|
||||
inline void SetCodeSha256(const char* value) { m_codeSha256.assign(value); }
|
||||
inline CreateFunctionResult& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
|
||||
inline CreateFunctionResult& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetVersion() const{ return m_version; }
|
||||
inline void SetVersion(const Aws::String& value) { m_version = value; }
|
||||
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
|
||||
inline void SetVersion(const char* value) { m_version.assign(value); }
|
||||
inline CreateFunctionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
|
||||
inline CreateFunctionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's networking configuration.</p>
|
||||
*/
|
||||
inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; }
|
||||
inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfig = value; }
|
||||
inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfig = std::move(value); }
|
||||
inline CreateFunctionResult& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
|
||||
inline CreateFunctionResult& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's dead letter queue.</p>
|
||||
*/
|
||||
inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
|
||||
inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfig = value; }
|
||||
inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfig = std::move(value); }
|
||||
inline CreateFunctionResult& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
|
||||
inline CreateFunctionResult& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">environment
|
||||
* variables</a>. Omitted from CloudTrail logs.</p>
|
||||
*/
|
||||
inline const EnvironmentResponse& GetEnvironment() const{ return m_environment; }
|
||||
inline void SetEnvironment(const EnvironmentResponse& value) { m_environment = value; }
|
||||
inline void SetEnvironment(EnvironmentResponse&& value) { m_environment = std::move(value); }
|
||||
inline CreateFunctionResult& WithEnvironment(const EnvironmentResponse& value) { SetEnvironment(value); return *this;}
|
||||
inline CreateFunctionResult& WithEnvironment(EnvironmentResponse&& value) { SetEnvironment(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used
|
||||
* to encrypt the following resources:</p> <ul> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment
|
||||
* variables</a>.</p> </li> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda
|
||||
* SnapStart</a> snapshots.</p> </li> <li> <p>When used with
|
||||
* <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment
|
||||
* package that's used for function invocations. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
|
||||
* Specifying a customer managed key for Lambda</a>.</p> </li> <li> <p>The
|
||||
* optimized version of the container image that's used for function invocations.
|
||||
* Note that this is not the same key that's used to protect your container image
|
||||
* in the Amazon Elastic Container Registry (Amazon ECR). For more information, see
|
||||
* <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function
|
||||
* lifecycle</a>.</p> </li> </ul> <p>If you don't provide a customer managed key,
|
||||
* Lambda uses an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
|
||||
* Web Services owned key</a> or an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
|
||||
* Web Services managed key</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); }
|
||||
inline CreateFunctionResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline CreateFunctionResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's X-Ray tracing configuration.</p>
|
||||
*/
|
||||
inline const TracingConfigResponse& GetTracingConfig() const{ return m_tracingConfig; }
|
||||
inline void SetTracingConfig(const TracingConfigResponse& value) { m_tracingConfig = value; }
|
||||
inline void SetTracingConfig(TracingConfigResponse&& value) { m_tracingConfig = std::move(value); }
|
||||
inline CreateFunctionResult& WithTracingConfig(const TracingConfigResponse& value) { SetTracingConfig(value); return *this;}
|
||||
inline CreateFunctionResult& WithTracingConfig(TracingConfigResponse&& value) { SetTracingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For Lambda@Edge functions, the ARN of the main function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMasterArn() const{ return m_masterArn; }
|
||||
inline void SetMasterArn(const Aws::String& value) { m_masterArn = value; }
|
||||
inline void SetMasterArn(Aws::String&& value) { m_masterArn = std::move(value); }
|
||||
inline void SetMasterArn(const char* value) { m_masterArn.assign(value); }
|
||||
inline CreateFunctionResult& WithMasterArn(const Aws::String& value) { SetMasterArn(value); return *this;}
|
||||
inline CreateFunctionResult& WithMasterArn(Aws::String&& value) { SetMasterArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithMasterArn(const char* value) { SetMasterArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The latest updated revision of the function or alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
||||
inline CreateFunctionResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline CreateFunctionResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">layers</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Layer>& GetLayers() const{ return m_layers; }
|
||||
inline void SetLayers(const Aws::Vector<Layer>& value) { m_layers = value; }
|
||||
inline void SetLayers(Aws::Vector<Layer>&& value) { m_layers = std::move(value); }
|
||||
inline CreateFunctionResult& WithLayers(const Aws::Vector<Layer>& value) { SetLayers(value); return *this;}
|
||||
inline CreateFunctionResult& WithLayers(Aws::Vector<Layer>&& value) { SetLayers(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; }
|
||||
inline CreateFunctionResult& AddLayers(Layer&& value) { m_layers.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The current state of the function. When the state is <code>Inactive</code>,
|
||||
* you can reactivate the function by invoking it.</p>
|
||||
*/
|
||||
inline const State& GetState() const{ return m_state; }
|
||||
inline void SetState(const State& value) { m_state = value; }
|
||||
inline void SetState(State&& value) { m_state = std::move(value); }
|
||||
inline CreateFunctionResult& WithState(const State& value) { SetState(value); return *this;}
|
||||
inline CreateFunctionResult& WithState(State&& value) { SetState(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the function's current state.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateReason() const{ return m_stateReason; }
|
||||
inline void SetStateReason(const Aws::String& value) { m_stateReason = value; }
|
||||
inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); }
|
||||
inline void SetStateReason(const char* value) { m_stateReason.assign(value); }
|
||||
inline CreateFunctionResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
|
||||
inline CreateFunctionResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithStateReason(const char* value) { SetStateReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason code for the function's current state. When the code is
|
||||
* <code>Creating</code>, you can't invoke or modify the function.</p>
|
||||
*/
|
||||
inline const StateReasonCode& GetStateReasonCode() const{ return m_stateReasonCode; }
|
||||
inline void SetStateReasonCode(const StateReasonCode& value) { m_stateReasonCode = value; }
|
||||
inline void SetStateReasonCode(StateReasonCode&& value) { m_stateReasonCode = std::move(value); }
|
||||
inline CreateFunctionResult& WithStateReasonCode(const StateReasonCode& value) { SetStateReasonCode(value); return *this;}
|
||||
inline CreateFunctionResult& WithStateReasonCode(StateReasonCode&& value) { SetStateReasonCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The status of the last update that was performed on the function. This is
|
||||
* first set to <code>Successful</code> after function creation completes.</p>
|
||||
*/
|
||||
inline const LastUpdateStatus& GetLastUpdateStatus() const{ return m_lastUpdateStatus; }
|
||||
inline void SetLastUpdateStatus(const LastUpdateStatus& value) { m_lastUpdateStatus = value; }
|
||||
inline void SetLastUpdateStatus(LastUpdateStatus&& value) { m_lastUpdateStatus = std::move(value); }
|
||||
inline CreateFunctionResult& WithLastUpdateStatus(const LastUpdateStatus& value) { SetLastUpdateStatus(value); return *this;}
|
||||
inline CreateFunctionResult& WithLastUpdateStatus(LastUpdateStatus&& value) { SetLastUpdateStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the last update that was performed on the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastUpdateStatusReason() const{ return m_lastUpdateStatusReason; }
|
||||
inline void SetLastUpdateStatusReason(const Aws::String& value) { m_lastUpdateStatusReason = value; }
|
||||
inline void SetLastUpdateStatusReason(Aws::String&& value) { m_lastUpdateStatusReason = std::move(value); }
|
||||
inline void SetLastUpdateStatusReason(const char* value) { m_lastUpdateStatusReason.assign(value); }
|
||||
inline CreateFunctionResult& WithLastUpdateStatusReason(const Aws::String& value) { SetLastUpdateStatusReason(value); return *this;}
|
||||
inline CreateFunctionResult& WithLastUpdateStatusReason(Aws::String&& value) { SetLastUpdateStatusReason(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithLastUpdateStatusReason(const char* value) { SetLastUpdateStatusReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason code for the last update that was performed on the function.</p>
|
||||
*/
|
||||
inline const LastUpdateStatusReasonCode& GetLastUpdateStatusReasonCode() const{ return m_lastUpdateStatusReasonCode; }
|
||||
inline void SetLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { m_lastUpdateStatusReasonCode = value; }
|
||||
inline void SetLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { m_lastUpdateStatusReasonCode = std::move(value); }
|
||||
inline CreateFunctionResult& WithLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { SetLastUpdateStatusReasonCode(value); return *this;}
|
||||
inline CreateFunctionResult& WithLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { SetLastUpdateStatusReasonCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Connection settings for an <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon
|
||||
* EFS file system</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const{ return m_fileSystemConfigs; }
|
||||
inline void SetFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { m_fileSystemConfigs = value; }
|
||||
inline void SetFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { m_fileSystemConfigs = std::move(value); }
|
||||
inline CreateFunctionResult& WithFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { SetFileSystemConfigs(value); return *this;}
|
||||
inline CreateFunctionResult& WithFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { SetFileSystemConfigs(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigs.push_back(value); return *this; }
|
||||
inline CreateFunctionResult& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigs.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of deployment package. Set to <code>Image</code> for container image
|
||||
* and set <code>Zip</code> for .zip file archive.</p>
|
||||
*/
|
||||
inline const PackageType& GetPackageType() const{ return m_packageType; }
|
||||
inline void SetPackageType(const PackageType& value) { m_packageType = value; }
|
||||
inline void SetPackageType(PackageType&& value) { m_packageType = std::move(value); }
|
||||
inline CreateFunctionResult& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
|
||||
inline CreateFunctionResult& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's image configuration values.</p>
|
||||
*/
|
||||
inline const ImageConfigResponse& GetImageConfigResponse() const{ return m_imageConfigResponse; }
|
||||
inline void SetImageConfigResponse(const ImageConfigResponse& value) { m_imageConfigResponse = value; }
|
||||
inline void SetImageConfigResponse(ImageConfigResponse&& value) { m_imageConfigResponse = std::move(value); }
|
||||
inline CreateFunctionResult& WithImageConfigResponse(const ImageConfigResponse& value) { SetImageConfigResponse(value); return *this;}
|
||||
inline CreateFunctionResult& WithImageConfigResponse(ImageConfigResponse&& value) { SetImageConfigResponse(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the signing profile version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSigningProfileVersionArn() const{ return m_signingProfileVersionArn; }
|
||||
inline void SetSigningProfileVersionArn(const Aws::String& value) { m_signingProfileVersionArn = value; }
|
||||
inline void SetSigningProfileVersionArn(Aws::String&& value) { m_signingProfileVersionArn = std::move(value); }
|
||||
inline void SetSigningProfileVersionArn(const char* value) { m_signingProfileVersionArn.assign(value); }
|
||||
inline CreateFunctionResult& WithSigningProfileVersionArn(const Aws::String& value) { SetSigningProfileVersionArn(value); return *this;}
|
||||
inline CreateFunctionResult& WithSigningProfileVersionArn(Aws::String&& value) { SetSigningProfileVersionArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithSigningProfileVersionArn(const char* value) { SetSigningProfileVersionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the signing job.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSigningJobArn() const{ return m_signingJobArn; }
|
||||
inline void SetSigningJobArn(const Aws::String& value) { m_signingJobArn = value; }
|
||||
inline void SetSigningJobArn(Aws::String&& value) { m_signingJobArn = std::move(value); }
|
||||
inline void SetSigningJobArn(const char* value) { m_signingJobArn.assign(value); }
|
||||
inline CreateFunctionResult& WithSigningJobArn(const Aws::String& value) { SetSigningJobArn(value); return *this;}
|
||||
inline CreateFunctionResult& WithSigningJobArn(Aws::String&& value) { SetSigningJobArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithSigningJobArn(const char* value) { SetSigningJobArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The instruction set architecture that the function supports. Architecture is
|
||||
* a string array with one of the valid values. The default architecture value is
|
||||
* <code>x86_64</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Architecture>& GetArchitectures() const{ return m_architectures; }
|
||||
inline void SetArchitectures(const Aws::Vector<Architecture>& value) { m_architectures = value; }
|
||||
inline void SetArchitectures(Aws::Vector<Architecture>&& value) { m_architectures = std::move(value); }
|
||||
inline CreateFunctionResult& WithArchitectures(const Aws::Vector<Architecture>& value) { SetArchitectures(value); return *this;}
|
||||
inline CreateFunctionResult& WithArchitectures(Aws::Vector<Architecture>&& value) { SetArchitectures(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& AddArchitectures(const Architecture& value) { m_architectures.push_back(value); return *this; }
|
||||
inline CreateFunctionResult& AddArchitectures(Architecture&& value) { m_architectures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's <code>/tmp</code> directory in MB. The default
|
||||
* value is 512, but can be any whole number between 512 and 10,240 MB. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring
|
||||
* ephemeral storage (console)</a>.</p>
|
||||
*/
|
||||
inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
|
||||
inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorage = value; }
|
||||
inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorage = std::move(value); }
|
||||
inline CreateFunctionResult& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
|
||||
inline CreateFunctionResult& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a
|
||||
* snapshot of the initialized execution environment when you publish a function
|
||||
* version. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Improving
|
||||
* startup performance with Lambda SnapStart</a>.</p>
|
||||
*/
|
||||
inline const SnapStartResponse& GetSnapStart() const{ return m_snapStart; }
|
||||
inline void SetSnapStart(const SnapStartResponse& value) { m_snapStart = value; }
|
||||
inline void SetSnapStart(SnapStartResponse&& value) { m_snapStart = std::move(value); }
|
||||
inline CreateFunctionResult& WithSnapStart(const SnapStartResponse& value) { SetSnapStart(value); return *this;}
|
||||
inline CreateFunctionResult& WithSnapStart(SnapStartResponse&& value) { SetSnapStart(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the runtime and any errors that occured.</p>
|
||||
*/
|
||||
inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const{ return m_runtimeVersionConfig; }
|
||||
inline void SetRuntimeVersionConfig(const RuntimeVersionConfig& value) { m_runtimeVersionConfig = value; }
|
||||
inline void SetRuntimeVersionConfig(RuntimeVersionConfig&& value) { m_runtimeVersionConfig = std::move(value); }
|
||||
inline CreateFunctionResult& WithRuntimeVersionConfig(const RuntimeVersionConfig& value) { SetRuntimeVersionConfig(value); return *this;}
|
||||
inline CreateFunctionResult& WithRuntimeVersionConfig(RuntimeVersionConfig&& value) { SetRuntimeVersionConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
||||
*/
|
||||
inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
|
||||
inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfig = value; }
|
||||
inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfig = std::move(value); }
|
||||
inline CreateFunctionResult& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;}
|
||||
inline CreateFunctionResult& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateFunctionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateFunctionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateFunctionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
Runtime m_runtime;
|
||||
|
||||
Aws::String m_role;
|
||||
|
||||
Aws::String m_handler;
|
||||
|
||||
long long m_codeSize;
|
||||
|
||||
Aws::String m_description;
|
||||
|
||||
int m_timeout;
|
||||
|
||||
int m_memorySize;
|
||||
|
||||
Aws::String m_lastModified;
|
||||
|
||||
Aws::String m_codeSha256;
|
||||
|
||||
Aws::String m_version;
|
||||
|
||||
VpcConfigResponse m_vpcConfig;
|
||||
|
||||
DeadLetterConfig m_deadLetterConfig;
|
||||
|
||||
EnvironmentResponse m_environment;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
|
||||
TracingConfigResponse m_tracingConfig;
|
||||
|
||||
Aws::String m_masterArn;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
|
||||
Aws::Vector<Layer> m_layers;
|
||||
|
||||
State m_state;
|
||||
|
||||
Aws::String m_stateReason;
|
||||
|
||||
StateReasonCode m_stateReasonCode;
|
||||
|
||||
LastUpdateStatus m_lastUpdateStatus;
|
||||
|
||||
Aws::String m_lastUpdateStatusReason;
|
||||
|
||||
LastUpdateStatusReasonCode m_lastUpdateStatusReasonCode;
|
||||
|
||||
Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
|
||||
|
||||
PackageType m_packageType;
|
||||
|
||||
ImageConfigResponse m_imageConfigResponse;
|
||||
|
||||
Aws::String m_signingProfileVersionArn;
|
||||
|
||||
Aws::String m_signingJobArn;
|
||||
|
||||
Aws::Vector<Architecture> m_architectures;
|
||||
|
||||
EphemeralStorage m_ephemeralStorage;
|
||||
|
||||
SnapStartResponse m_snapStart;
|
||||
|
||||
RuntimeVersionConfig m_runtimeVersionConfig;
|
||||
|
||||
LoggingConfig m_loggingConfig;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/FunctionUrlAuthType.h>
|
||||
#include <aws/lambda/model/Cors.h>
|
||||
#include <aws/lambda/model/InvokeMode.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateFunctionUrlConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateFunctionUrlConfigRequest();
|
||||
|
||||
// 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 "CreateFunctionUrlConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline CreateFunctionUrlConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The alias name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline CreateFunctionUrlConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of authentication that your function URL uses. Set to
|
||||
* <code>AWS_IAM</code> if you want to restrict access to authenticated users only.
|
||||
* Set to <code>NONE</code> if you want to bypass IAM authentication to create a
|
||||
* public endpoint. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and
|
||||
* auth model for Lambda function URLs</a>.</p>
|
||||
*/
|
||||
inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; }
|
||||
inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
|
||||
inline void SetAuthType(const FunctionUrlAuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
|
||||
inline void SetAuthType(FunctionUrlAuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
|
||||
inline CreateFunctionUrlConfigRequest& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin
|
||||
* resource sharing (CORS)</a> settings for your function URL.</p>
|
||||
*/
|
||||
inline const Cors& GetCors() const{ return m_cors; }
|
||||
inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
|
||||
inline void SetCors(const Cors& value) { m_corsHasBeenSet = true; m_cors = value; }
|
||||
inline void SetCors(Cors&& value) { m_corsHasBeenSet = true; m_cors = std::move(value); }
|
||||
inline CreateFunctionUrlConfigRequest& WithCors(const Cors& value) { SetCors(value); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> –
|
||||
* This is the default option. Lambda invokes your function using the
|
||||
* <code>Invoke</code> API operation. Invocation results are available when the
|
||||
* payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p>
|
||||
* <code>RESPONSE_STREAM</code> – Your function streams payload results as they
|
||||
* become available. Lambda invokes your function using the
|
||||
* <code>InvokeWithResponseStream</code> API operation. The maximum response
|
||||
* payload size is 20 MB, however, you can <a
|
||||
* href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request
|
||||
* a quota increase</a>.</p> </li> </ul>
|
||||
*/
|
||||
inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; }
|
||||
inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
|
||||
inline void SetInvokeMode(const InvokeMode& value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; }
|
||||
inline void SetInvokeMode(InvokeMode&& value) { m_invokeModeHasBeenSet = true; m_invokeMode = std::move(value); }
|
||||
inline CreateFunctionUrlConfigRequest& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;}
|
||||
inline CreateFunctionUrlConfigRequest& WithInvokeMode(InvokeMode&& value) { SetInvokeMode(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
|
||||
FunctionUrlAuthType m_authType;
|
||||
bool m_authTypeHasBeenSet = false;
|
||||
|
||||
Cors m_cors;
|
||||
bool m_corsHasBeenSet = false;
|
||||
|
||||
InvokeMode m_invokeMode;
|
||||
bool m_invokeModeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/FunctionUrlAuthType.h>
|
||||
#include <aws/lambda/model/Cors.h>
|
||||
#include <aws/lambda/model/InvokeMode.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class CreateFunctionUrlConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API CreateFunctionUrlConfigResult();
|
||||
AWS_LAMBDA_API CreateFunctionUrlConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API CreateFunctionUrlConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The HTTP URL endpoint for your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionUrl() const{ return m_functionUrl; }
|
||||
inline void SetFunctionUrl(const Aws::String& value) { m_functionUrl = value; }
|
||||
inline void SetFunctionUrl(Aws::String&& value) { m_functionUrl = std::move(value); }
|
||||
inline void SetFunctionUrl(const char* value) { m_functionUrl.assign(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of authentication that your function URL uses. Set to
|
||||
* <code>AWS_IAM</code> if you want to restrict access to authenticated users only.
|
||||
* Set to <code>NONE</code> if you want to bypass IAM authentication to create a
|
||||
* public endpoint. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and
|
||||
* auth model for Lambda function URLs</a>.</p>
|
||||
*/
|
||||
inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; }
|
||||
inline void SetAuthType(const FunctionUrlAuthType& value) { m_authType = value; }
|
||||
inline void SetAuthType(FunctionUrlAuthType&& value) { m_authType = std::move(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin
|
||||
* resource sharing (CORS)</a> settings for your function URL.</p>
|
||||
*/
|
||||
inline const Cors& GetCors() const{ return m_cors; }
|
||||
inline void SetCors(const Cors& value) { m_cors = value; }
|
||||
inline void SetCors(Cors&& value) { m_cors = std::move(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithCors(const Cors& value) { SetCors(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>When the function URL was created, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
|
||||
inline void SetCreationTime(const Aws::String& value) { m_creationTime = value; }
|
||||
inline void SetCreationTime(Aws::String&& value) { m_creationTime = std::move(value); }
|
||||
inline void SetCreationTime(const char* value) { m_creationTime.assign(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> –
|
||||
* This is the default option. Lambda invokes your function using the
|
||||
* <code>Invoke</code> API operation. Invocation results are available when the
|
||||
* payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p>
|
||||
* <code>RESPONSE_STREAM</code> – Your function streams payload results as they
|
||||
* become available. Lambda invokes your function using the
|
||||
* <code>InvokeWithResponseStream</code> API operation. The maximum response
|
||||
* payload size is 20 MB, however, you can <a
|
||||
* href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request
|
||||
* a quota increase</a>.</p> </li> </ul>
|
||||
*/
|
||||
inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; }
|
||||
inline void SetInvokeMode(const InvokeMode& value) { m_invokeMode = value; }
|
||||
inline void SetInvokeMode(InvokeMode&& value) { m_invokeMode = std::move(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithInvokeMode(InvokeMode&& value) { SetInvokeMode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateFunctionUrlConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateFunctionUrlConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionUrl;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
FunctionUrlAuthType m_authType;
|
||||
|
||||
Cors m_cors;
|
||||
|
||||
Aws::String m_creationTime;
|
||||
|
||||
InvokeMode m_invokeMode;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq">dead-letter
|
||||
* queue</a> for failed asynchronous invocations.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeadLetterConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class DeadLetterConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeadLetterConfig();
|
||||
AWS_LAMBDA_API DeadLetterConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API DeadLetterConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS
|
||||
* topic.</p>
|
||||
*/
|
||||
inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
|
||||
inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
|
||||
inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
|
||||
inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
|
||||
inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
|
||||
inline DeadLetterConfig& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
|
||||
inline DeadLetterConfig& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
|
||||
inline DeadLetterConfig& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_targetArn;
|
||||
bool m_targetArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteAliasRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteAliasRequest();
|
||||
|
||||
// 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 "DeleteAlias"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
||||
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
||||
inline DeleteAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline DeleteAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline DeleteAliasRequest& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteCodeSigningConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteCodeSigningConfigRequest();
|
||||
|
||||
// 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 "DeleteCodeSigningConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSigningConfigArn() const{ return m_codeSigningConfigArn; }
|
||||
inline bool CodeSigningConfigArnHasBeenSet() const { return m_codeSigningConfigArnHasBeenSet; }
|
||||
inline void SetCodeSigningConfigArn(const Aws::String& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = value; }
|
||||
inline void SetCodeSigningConfigArn(Aws::String&& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = std::move(value); }
|
||||
inline void SetCodeSigningConfigArn(const char* value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn.assign(value); }
|
||||
inline DeleteCodeSigningConfigRequest& WithCodeSigningConfigArn(const Aws::String& value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
inline DeleteCodeSigningConfigRequest& WithCodeSigningConfigArn(Aws::String&& value) { SetCodeSigningConfigArn(std::move(value)); return *this;}
|
||||
inline DeleteCodeSigningConfigRequest& WithCodeSigningConfigArn(const char* value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_codeSigningConfigArn;
|
||||
bool m_codeSigningConfigArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeleteCodeSigningConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteCodeSigningConfigResult();
|
||||
AWS_LAMBDA_API DeleteCodeSigningConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API DeleteCodeSigningConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteCodeSigningConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteCodeSigningConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteCodeSigningConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteEventSourceMappingRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteEventSourceMappingRequest();
|
||||
|
||||
// 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 "DeleteEventSourceMapping"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUUID() const{ return m_uUID; }
|
||||
inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
|
||||
inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
|
||||
inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); }
|
||||
inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
|
||||
inline DeleteEventSourceMappingRequest& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
|
||||
inline DeleteEventSourceMappingRequest& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingRequest& WithUUID(const char* value) { SetUUID(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uUID;
|
||||
bool m_uUIDHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,534 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/EventSourcePosition.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/lambda/model/FilterCriteria.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/SelfManagedEventSource.h>
|
||||
#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/ScalingConfig.h>
|
||||
#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
|
||||
#include <aws/lambda/model/FilterCriteriaError.h>
|
||||
#include <aws/lambda/model/SourceAccessConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionResponseType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For
|
||||
* details, see <a>CreateEventSourceMapping</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class DeleteEventSourceMappingResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteEventSourceMappingResult();
|
||||
AWS_LAMBDA_API DeleteEventSourceMappingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API DeleteEventSourceMappingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUUID() const{ return m_uUID; }
|
||||
inline void SetUUID(const Aws::String& value) { m_uUID = value; }
|
||||
inline void SetUUID(Aws::String&& value) { m_uUID = std::move(value); }
|
||||
inline void SetUUID(const char* value) { m_uUID.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithUUID(const char* value) { SetUUID(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The position in a stream from which to start reading. Required for Amazon
|
||||
* Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is
|
||||
* supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and
|
||||
* self-managed Apache Kafka.</p>
|
||||
*/
|
||||
inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
|
||||
inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPosition = value; }
|
||||
inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPosition = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time
|
||||
* from which to start reading. <code>StartingPositionTimestamp</code> cannot be in
|
||||
* the future.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
|
||||
inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestamp = value; }
|
||||
inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestamp = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithStartingPositionTimestamp(const Aws::Utils::DateTime& value) { SetStartingPositionTimestamp(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithStartingPositionTimestamp(Aws::Utils::DateTime&& value) { SetStartingPositionTimestamp(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of records in each batch that Lambda pulls from your
|
||||
* stream or queue and sends to your function. Lambda passes all of the records in
|
||||
* the batch to the function in a single call, up to the payload limit for
|
||||
* synchronous invocation (6 MB).</p> <p>Default value: Varies by service. For
|
||||
* Amazon SQS, the default is 10. For all other services, the default is 100.</p>
|
||||
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than
|
||||
* 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetBatchSize() const{ return m_batchSize; }
|
||||
inline void SetBatchSize(int value) { m_batchSize = value; }
|
||||
inline DeleteEventSourceMappingResult& WithBatchSize(int value) { SetBatchSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records
|
||||
* before invoking the function. You can configure
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300
|
||||
* seconds in increments of seconds.</p> <p>For streams and Amazon SQS event
|
||||
* sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed
|
||||
* Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
||||
* window is 500 ms. Note that because you can only change
|
||||
* <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot
|
||||
* revert back to the 500 ms default batching window after you have changed it. To
|
||||
* restore the default batching window, you must create a new event source
|
||||
* mapping.</p> <p>Related setting: For streams and Amazon SQS event sources, when
|
||||
* you set <code>BatchSize</code> to a value greater than 10, you must set
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
|
||||
inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; }
|
||||
inline DeleteEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The number of batches to process
|
||||
* concurrently from each shard. The default value is 1.</p>
|
||||
*/
|
||||
inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
|
||||
inline void SetParallelizationFactor(int value) { m_parallelizationFactor = value; }
|
||||
inline DeleteEventSourceMappingResult& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
|
||||
inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArn = value; }
|
||||
inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArn = std::move(value); }
|
||||
inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that defines the filter criteria that determine whether Lambda
|
||||
* should process an event. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda
|
||||
* event filtering</a>.</p> <p>If filter criteria is encrypted, this field shows up
|
||||
* as <code>null</code> in the response of ListEventSourceMapping API calls. You
|
||||
* can view this field in plaintext in the response of GetEventSourceMapping and
|
||||
* DeleteEventSourceMapping calls if you have <code>kms:Decrypt</code> permissions
|
||||
* for the correct KMS key.</p>
|
||||
*/
|
||||
inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
|
||||
inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteria = value; }
|
||||
inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteria = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date that the event source mapping was last updated or that its state
|
||||
* changed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
|
||||
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The result of the last Lambda invocation of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastProcessingResult() const{ return m_lastProcessingResult; }
|
||||
inline void SetLastProcessingResult(const Aws::String& value) { m_lastProcessingResult = value; }
|
||||
inline void SetLastProcessingResult(Aws::String&& value) { m_lastProcessingResult = std::move(value); }
|
||||
inline void SetLastProcessingResult(const char* value) { m_lastProcessingResult.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithLastProcessingResult(const Aws::String& value) { SetLastProcessingResult(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithLastProcessingResult(Aws::String&& value) { SetLastProcessingResult(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithLastProcessingResult(const char* value) { SetLastProcessingResult(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The state of the event source mapping. It can be one of the following:
|
||||
* <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>,
|
||||
* <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or
|
||||
* <code>Deleting</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetState() const{ return m_state; }
|
||||
inline void SetState(const Aws::String& value) { m_state = value; }
|
||||
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
|
||||
inline void SetState(const char* value) { m_state.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithState(const Aws::String& value) { SetState(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithState(const char* value) { SetState(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Indicates whether a user or Lambda made the last change to the event source
|
||||
* mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
|
||||
inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReason = value; }
|
||||
inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReason = std::move(value); }
|
||||
inline void SetStateTransitionReason(const char* value) { m_stateTransitionReason.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event
|
||||
* sources only) A configuration object that specifies the destination of an event
|
||||
* after Lambda processes it.</p>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfig = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the Kafka topic.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
|
||||
inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topics = value; }
|
||||
inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topics = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; }
|
||||
inline DeleteEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; }
|
||||
inline DeleteEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to
|
||||
* consume.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetQueues() const{ return m_queues; }
|
||||
inline void SetQueues(const Aws::Vector<Aws::String>& value) { m_queues = value; }
|
||||
inline void SetQueues(Aws::Vector<Aws::String>&& value) { m_queues = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithQueues(const Aws::Vector<Aws::String>& value) { SetQueues(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithQueues(Aws::Vector<Aws::String>&& value) { SetQueues(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& AddQueues(const Aws::String& value) { m_queues.push_back(value); return *this; }
|
||||
inline DeleteEventSourceMappingResult& AddQueues(Aws::String&& value) { m_queues.push_back(std::move(value)); return *this; }
|
||||
inline DeleteEventSourceMappingResult& AddQueues(const char* value) { m_queues.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An array of the authentication protocol, VPC components, or virtual host to
|
||||
* secure and define your event source.</p>
|
||||
*/
|
||||
inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; }
|
||||
inline void SetSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { m_sourceAccessConfigurations = value; }
|
||||
inline void SetSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { m_sourceAccessConfigurations = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { SetSourceAccessConfigurations(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; }
|
||||
inline DeleteEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The self-managed Apache Kafka cluster for your event source.</p>
|
||||
*/
|
||||
inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; }
|
||||
inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; }
|
||||
inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records older than the specified
|
||||
* age. The default value is -1, which sets the maximum age to infinite. When the
|
||||
* value is set to infinite, Lambda never discards old records.</p> <p>The
|
||||
* minimum valid value for maximum record age is 60s. Although values less than 60
|
||||
* and greater than -1 fall within the parameter's absolute range, they are not
|
||||
* allowed</p>
|
||||
*/
|
||||
inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
|
||||
inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSeconds = value; }
|
||||
inline DeleteEventSourceMappingResult& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split
|
||||
* the batch in two and retry. The default value is false.</p>
|
||||
*/
|
||||
inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
|
||||
inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionError = value; }
|
||||
inline DeleteEventSourceMappingResult& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records after the specified
|
||||
* number of retries. The default value is -1, which sets the maximum number of
|
||||
* retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries
|
||||
* failed records until the record expires in the event source.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttempts = value; }
|
||||
inline DeleteEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing
|
||||
* window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds
|
||||
* indicates no tumbling window.</p>
|
||||
*/
|
||||
inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; }
|
||||
inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; }
|
||||
inline DeleteEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type
|
||||
* enums applied to the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const{ return m_functionResponseTypes; }
|
||||
inline void SetFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { m_functionResponseTypes = value; }
|
||||
inline void SetFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { m_functionResponseTypes = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { SetFunctionResponseTypes(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { SetFunctionResponseTypes(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; }
|
||||
inline DeleteEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for an Amazon Managed Streaming for Apache
|
||||
* Kafka (Amazon MSK) event source.</p>
|
||||
*/
|
||||
inline const AmazonManagedKafkaEventSourceConfig& GetAmazonManagedKafkaEventSourceConfig() const{ return m_amazonManagedKafkaEventSourceConfig; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { m_amazonManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { m_amazonManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { SetAmazonManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { SetAmazonManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a self-managed Apache Kafka event
|
||||
* source.</p>
|
||||
*/
|
||||
inline const SelfManagedKafkaEventSourceConfig& GetSelfManagedKafkaEventSourceConfig() const{ return m_selfManagedKafkaEventSourceConfig; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { m_selfManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { m_selfManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { SetSelfManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { SetSelfManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Amazon SQS only) The scaling configuration for the event source. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring
|
||||
* maximum concurrency for Amazon SQS event sources</a>.</p>
|
||||
*/
|
||||
inline const ScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
|
||||
inline void SetScalingConfig(const ScalingConfig& value) { m_scalingConfig = value; }
|
||||
inline void SetScalingConfig(ScalingConfig&& value) { m_scalingConfig = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithScalingConfig(const ScalingConfig& value) { SetScalingConfig(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithScalingConfig(ScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
||||
*/
|
||||
inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const{ return m_documentDBEventSourceConfig; }
|
||||
inline void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { m_documentDBEventSourceConfig = value; }
|
||||
inline void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { m_documentDBEventSourceConfig = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { SetDocumentDBEventSourceConfig(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { SetDocumentDBEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
||||
* uses to encrypt your function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter
|
||||
* criteria</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about an error related to filter criteria
|
||||
* encryption.</p>
|
||||
*/
|
||||
inline const FilterCriteriaError& GetFilterCriteriaError() const{ return m_filterCriteriaError; }
|
||||
inline void SetFilterCriteriaError(const FilterCriteriaError& value) { m_filterCriteriaError = value; }
|
||||
inline void SetFilterCriteriaError(FilterCriteriaError&& value) { m_filterCriteriaError = std::move(value); }
|
||||
inline DeleteEventSourceMappingResult& WithFilterCriteriaError(const FilterCriteriaError& value) { SetFilterCriteriaError(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; }
|
||||
inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; }
|
||||
inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); }
|
||||
inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteEventSourceMappingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteEventSourceMappingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uUID;
|
||||
|
||||
EventSourcePosition m_startingPosition;
|
||||
|
||||
Aws::Utils::DateTime m_startingPositionTimestamp;
|
||||
|
||||
int m_batchSize;
|
||||
|
||||
int m_maximumBatchingWindowInSeconds;
|
||||
|
||||
int m_parallelizationFactor;
|
||||
|
||||
Aws::String m_eventSourceArn;
|
||||
|
||||
FilterCriteria m_filterCriteria;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
Aws::Utils::DateTime m_lastModified;
|
||||
|
||||
Aws::String m_lastProcessingResult;
|
||||
|
||||
Aws::String m_state;
|
||||
|
||||
Aws::String m_stateTransitionReason;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
|
||||
Aws::Vector<Aws::String> m_topics;
|
||||
|
||||
Aws::Vector<Aws::String> m_queues;
|
||||
|
||||
Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
|
||||
|
||||
SelfManagedEventSource m_selfManagedEventSource;
|
||||
|
||||
int m_maximumRecordAgeInSeconds;
|
||||
|
||||
bool m_bisectBatchOnFunctionError;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
|
||||
int m_tumblingWindowInSeconds;
|
||||
|
||||
Aws::Vector<FunctionResponseType> m_functionResponseTypes;
|
||||
|
||||
AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
|
||||
|
||||
SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
|
||||
|
||||
ScalingConfig m_scalingConfig;
|
||||
|
||||
DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
|
||||
FilterCriteriaError m_filterCriteriaError;
|
||||
|
||||
Aws::String m_eventSourceMappingArn;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteFunctionCodeSigningConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteFunctionCodeSigningConfigRequest();
|
||||
|
||||
// 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 "DeleteFunctionCodeSigningConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteFunctionCodeSigningConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteFunctionCodeSigningConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteFunctionCodeSigningConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteFunctionConcurrencyRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteFunctionConcurrencyRequest();
|
||||
|
||||
// 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 "DeleteFunctionConcurrency"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteFunctionConcurrencyRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteFunctionConcurrencyRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteFunctionConcurrencyRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteFunctionEventInvokeConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteFunctionEventInvokeConfigRequest();
|
||||
|
||||
// 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 "DeleteFunctionEventInvokeConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function, version, or alias.</p> <p
|
||||
* class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>my-function</code> (name-only), <code>my-function:v1</code> (with
|
||||
* alias).</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can
|
||||
* append a version number or alias to any of the formats. The length constraint
|
||||
* applies only to the full ARN. If you specify only the function name, it is
|
||||
* limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteFunctionEventInvokeConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteFunctionEventInvokeConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteFunctionEventInvokeConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A version number or alias name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline DeleteFunctionEventInvokeConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline DeleteFunctionEventInvokeConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline DeleteFunctionEventInvokeConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteFunctionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteFunctionRequest();
|
||||
|
||||
// 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 "DeleteFunction"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function or version.</p> <p class="title">
|
||||
* <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code> (name-only), <code>my-function:1</code> (with
|
||||
* version).</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can
|
||||
* append a version number or alias to any of the formats. The length constraint
|
||||
* applies only to the full ARN. If you specify only the function name, it is
|
||||
* limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specify a version to delete. You can't delete a version that an alias
|
||||
* references.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline DeleteFunctionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline DeleteFunctionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline DeleteFunctionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteFunctionUrlConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteFunctionUrlConfigRequest();
|
||||
|
||||
// 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 "DeleteFunctionUrlConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteFunctionUrlConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteFunctionUrlConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteFunctionUrlConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The alias name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline DeleteFunctionUrlConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline DeleteFunctionUrlConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline DeleteFunctionUrlConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteLayerVersionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteLayerVersionRequest();
|
||||
|
||||
// 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 "DeleteLayerVersion"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or Amazon Resource Name (ARN) of the layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerName() const{ return m_layerName; }
|
||||
inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
|
||||
inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
|
||||
inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
|
||||
inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
|
||||
inline DeleteLayerVersionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
|
||||
inline DeleteLayerVersionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
|
||||
inline DeleteLayerVersionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version number.</p>
|
||||
*/
|
||||
inline long long GetVersionNumber() const{ return m_versionNumber; }
|
||||
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
|
||||
inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
|
||||
inline DeleteLayerVersionRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_layerName;
|
||||
bool m_layerNameHasBeenSet = false;
|
||||
|
||||
long long m_versionNumber;
|
||||
bool m_versionNumberHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteProvisionedConcurrencyConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DeleteProvisionedConcurrencyConfigRequest();
|
||||
|
||||
// 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 "DeleteProvisionedConcurrencyConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline DeleteProvisionedConcurrencyConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline DeleteProvisionedConcurrencyConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline DeleteProvisionedConcurrencyConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version number or alias name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline DeleteProvisionedConcurrencyConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline DeleteProvisionedConcurrencyConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline DeleteProvisionedConcurrencyConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/OnSuccess.h>
|
||||
#include <aws/lambda/model/OnFailure.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>A configuration object that specifies the destination of an event after
|
||||
* Lambda processes it.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DestinationConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class DestinationConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DestinationConfig();
|
||||
AWS_LAMBDA_API DestinationConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API DestinationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The destination configuration for successful invocations.</p>
|
||||
*/
|
||||
inline const OnSuccess& GetOnSuccess() const{ return m_onSuccess; }
|
||||
inline bool OnSuccessHasBeenSet() const { return m_onSuccessHasBeenSet; }
|
||||
inline void SetOnSuccess(const OnSuccess& value) { m_onSuccessHasBeenSet = true; m_onSuccess = value; }
|
||||
inline void SetOnSuccess(OnSuccess&& value) { m_onSuccessHasBeenSet = true; m_onSuccess = std::move(value); }
|
||||
inline DestinationConfig& WithOnSuccess(const OnSuccess& value) { SetOnSuccess(value); return *this;}
|
||||
inline DestinationConfig& WithOnSuccess(OnSuccess&& value) { SetOnSuccess(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The destination configuration for failed invocations.</p>
|
||||
*/
|
||||
inline const OnFailure& GetOnFailure() const{ return m_onFailure; }
|
||||
inline bool OnFailureHasBeenSet() const { return m_onFailureHasBeenSet; }
|
||||
inline void SetOnFailure(const OnFailure& value) { m_onFailureHasBeenSet = true; m_onFailure = value; }
|
||||
inline void SetOnFailure(OnFailure&& value) { m_onFailureHasBeenSet = true; m_onFailure = std::move(value); }
|
||||
inline DestinationConfig& WithOnFailure(const OnFailure& value) { SetOnFailure(value); return *this;}
|
||||
inline DestinationConfig& WithOnFailure(OnFailure&& value) { SetOnFailure(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
OnSuccess m_onSuccess;
|
||||
bool m_onSuccessHasBeenSet = false;
|
||||
|
||||
OnFailure m_onFailure;
|
||||
bool m_onFailureHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,99 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/FullDocument.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p> Specific configuration settings for a DocumentDB event source.
|
||||
* </p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DocumentDBEventSourceConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class DocumentDBEventSourceConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API DocumentDBEventSourceConfig();
|
||||
AWS_LAMBDA_API DocumentDBEventSourceConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API DocumentDBEventSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The name of the database to consume within the DocumentDB cluster. </p>
|
||||
*/
|
||||
inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
|
||||
inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
|
||||
inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
|
||||
inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
|
||||
inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
|
||||
inline DocumentDBEventSourceConfig& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
|
||||
inline DocumentDBEventSourceConfig& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
|
||||
inline DocumentDBEventSourceConfig& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The name of the collection to consume within the database. If you do not
|
||||
* specify a collection, Lambda consumes all collections. </p>
|
||||
*/
|
||||
inline const Aws::String& GetCollectionName() const{ return m_collectionName; }
|
||||
inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
|
||||
inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; }
|
||||
inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); }
|
||||
inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); }
|
||||
inline DocumentDBEventSourceConfig& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;}
|
||||
inline DocumentDBEventSourceConfig& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;}
|
||||
inline DocumentDBEventSourceConfig& WithCollectionName(const char* value) { SetCollectionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> Determines what DocumentDB sends to your event stream during document update
|
||||
* operations. If set to UpdateLookup, DocumentDB sends a delta describing the
|
||||
* changes, along with a copy of the entire document. Otherwise, DocumentDB sends
|
||||
* only a partial document that contains the changes. </p>
|
||||
*/
|
||||
inline const FullDocument& GetFullDocument() const{ return m_fullDocument; }
|
||||
inline bool FullDocumentHasBeenSet() const { return m_fullDocumentHasBeenSet; }
|
||||
inline void SetFullDocument(const FullDocument& value) { m_fullDocumentHasBeenSet = true; m_fullDocument = value; }
|
||||
inline void SetFullDocument(FullDocument&& value) { m_fullDocumentHasBeenSet = true; m_fullDocument = std::move(value); }
|
||||
inline DocumentDBEventSourceConfig& WithFullDocument(const FullDocument& value) { SetFullDocument(value); return *this;}
|
||||
inline DocumentDBEventSourceConfig& WithFullDocument(FullDocument&& value) { SetFullDocument(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_databaseName;
|
||||
bool m_databaseNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_collectionName;
|
||||
bool m_collectionNameHasBeenSet = false;
|
||||
|
||||
FullDocument m_fullDocument;
|
||||
bool m_fullDocumentHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Need additional permissions to configure VPC settings.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EC2AccessDeniedException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EC2AccessDeniedException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EC2AccessDeniedException();
|
||||
AWS_LAMBDA_API EC2AccessDeniedException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EC2AccessDeniedException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EC2AccessDeniedException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EC2AccessDeniedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EC2AccessDeniedException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EC2AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EC2AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EC2AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Amazon EC2 throttled Lambda during Lambda function initialization using the
|
||||
* execution role provided for the function.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EC2ThrottledException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EC2ThrottledException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EC2ThrottledException();
|
||||
AWS_LAMBDA_API EC2ThrottledException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EC2ThrottledException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EC2ThrottledException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EC2ThrottledException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EC2ThrottledException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EC2ThrottledException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EC2ThrottledException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EC2ThrottledException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,90 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Lambda received an unexpected Amazon EC2 client exception while setting up
|
||||
* for the Lambda function.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EC2UnexpectedException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EC2UnexpectedException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EC2UnexpectedException();
|
||||
AWS_LAMBDA_API EC2UnexpectedException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EC2UnexpectedException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EC2UnexpectedException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EC2UnexpectedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EC2UnexpectedException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EC2UnexpectedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EC2UnexpectedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EC2UnexpectedException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetEC2ErrorCode() const{ return m_eC2ErrorCode; }
|
||||
inline bool EC2ErrorCodeHasBeenSet() const { return m_eC2ErrorCodeHasBeenSet; }
|
||||
inline void SetEC2ErrorCode(const Aws::String& value) { m_eC2ErrorCodeHasBeenSet = true; m_eC2ErrorCode = value; }
|
||||
inline void SetEC2ErrorCode(Aws::String&& value) { m_eC2ErrorCodeHasBeenSet = true; m_eC2ErrorCode = std::move(value); }
|
||||
inline void SetEC2ErrorCode(const char* value) { m_eC2ErrorCodeHasBeenSet = true; m_eC2ErrorCode.assign(value); }
|
||||
inline EC2UnexpectedException& WithEC2ErrorCode(const Aws::String& value) { SetEC2ErrorCode(value); return *this;}
|
||||
inline EC2UnexpectedException& WithEC2ErrorCode(Aws::String&& value) { SetEC2ErrorCode(std::move(value)); return *this;}
|
||||
inline EC2UnexpectedException& WithEC2ErrorCode(const char* value) { SetEC2ErrorCode(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
|
||||
Aws::String m_eC2ErrorCode;
|
||||
bool m_eC2ErrorCodeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An error occurred when reading from or writing to a connected file
|
||||
* system.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSIOException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EFSIOException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EFSIOException();
|
||||
AWS_LAMBDA_API EFSIOException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EFSIOException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EFSIOException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EFSIOException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EFSIOException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EFSIOException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EFSIOException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EFSIOException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The Lambda function couldn't make a network connection to the configured file
|
||||
* system.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSMountConnectivityException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EFSMountConnectivityException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EFSMountConnectivityException();
|
||||
AWS_LAMBDA_API EFSMountConnectivityException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EFSMountConnectivityException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EFSMountConnectivityException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EFSMountConnectivityException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EFSMountConnectivityException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EFSMountConnectivityException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EFSMountConnectivityException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EFSMountConnectivityException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The Lambda function couldn't mount the configured file system due to a
|
||||
* permission or configuration issue.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSMountFailureException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EFSMountFailureException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EFSMountFailureException();
|
||||
AWS_LAMBDA_API EFSMountFailureException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EFSMountFailureException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EFSMountFailureException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EFSMountFailureException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EFSMountFailureException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EFSMountFailureException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EFSMountFailureException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EFSMountFailureException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The Lambda function made a network connection to the configured file system,
|
||||
* but the mount operation timed out.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSMountTimeoutException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EFSMountTimeoutException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EFSMountTimeoutException();
|
||||
AWS_LAMBDA_API EFSMountTimeoutException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EFSMountTimeoutException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EFSMountTimeoutException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EFSMountTimeoutException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EFSMountTimeoutException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EFSMountTimeoutException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EFSMountTimeoutException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EFSMountTimeoutException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Lambda couldn't create an elastic network interface in the VPC, specified as
|
||||
* part of Lambda function configuration, because the limit for network interfaces
|
||||
* has been reached. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">Lambda
|
||||
* quotas</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ENILimitReachedException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ENILimitReachedException
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API ENILimitReachedException();
|
||||
AWS_LAMBDA_API ENILimitReachedException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API ENILimitReachedException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline ENILimitReachedException& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline ENILimitReachedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline ENILimitReachedException& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline ENILimitReachedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline ENILimitReachedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline ENILimitReachedException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class EndPointType
|
||||
{
|
||||
NOT_SET,
|
||||
KAFKA_BOOTSTRAP_SERVERS
|
||||
};
|
||||
|
||||
namespace EndPointTypeMapper
|
||||
{
|
||||
AWS_LAMBDA_API EndPointType GetEndPointTypeForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForEndPointType(EndPointType value);
|
||||
} // namespace EndPointTypeMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>A function's environment variable settings. You can use environment variables
|
||||
* to adjust your function's behavior without updating code. An environment
|
||||
* variable is a pair of strings that are stored in a function's version-specific
|
||||
* configuration.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Environment">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class Environment
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API Environment();
|
||||
AWS_LAMBDA_API Environment(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Environment& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Environment variable key-value pairs. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">Using
|
||||
* Lambda environment variables</a>.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
|
||||
inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
|
||||
inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
|
||||
inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
|
||||
inline Environment& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
|
||||
inline Environment& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
|
||||
inline Environment& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
|
||||
inline Environment& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
|
||||
inline Environment& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
|
||||
inline Environment& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline Environment& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
|
||||
inline Environment& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
|
||||
inline Environment& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_variables;
|
||||
bool m_variablesHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Error messages for environment variables that couldn't be
|
||||
* applied.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentError">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EnvironmentError
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EnvironmentError();
|
||||
AWS_LAMBDA_API EnvironmentError(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EnvironmentError& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The error code.</p>
|
||||
*/
|
||||
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
|
||||
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
|
||||
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
|
||||
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
|
||||
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
|
||||
inline EnvironmentError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
|
||||
inline EnvironmentError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
|
||||
inline EnvironmentError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The error message.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline EnvironmentError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline EnvironmentError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline EnvironmentError& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_errorCode;
|
||||
bool m_errorCodeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/lambda/model/EnvironmentError.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The results of an operation to update or read environment variables. If the
|
||||
* operation succeeds, the response contains the environment variables. If it
|
||||
* fails, the response contains details about the error.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentResponse">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EnvironmentResponse
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EnvironmentResponse();
|
||||
AWS_LAMBDA_API EnvironmentResponse(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EnvironmentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Environment variable key-value pairs. Omitted from CloudTrail logs.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
|
||||
inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
|
||||
inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
|
||||
inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
|
||||
inline EnvironmentResponse& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
|
||||
inline EnvironmentResponse& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
|
||||
inline EnvironmentResponse& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
|
||||
inline EnvironmentResponse& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
|
||||
inline EnvironmentResponse& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
|
||||
inline EnvironmentResponse& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline EnvironmentResponse& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
|
||||
inline EnvironmentResponse& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
|
||||
inline EnvironmentResponse& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Error messages for environment variables that couldn't be applied.</p>
|
||||
*/
|
||||
inline const EnvironmentError& GetError() const{ return m_error; }
|
||||
inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
|
||||
inline void SetError(const EnvironmentError& value) { m_errorHasBeenSet = true; m_error = value; }
|
||||
inline void SetError(EnvironmentError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
|
||||
inline EnvironmentResponse& WithError(const EnvironmentError& value) { SetError(value); return *this;}
|
||||
inline EnvironmentResponse& WithError(EnvironmentError&& value) { SetError(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_variables;
|
||||
bool m_variablesHasBeenSet = false;
|
||||
|
||||
EnvironmentError m_error;
|
||||
bool m_errorHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The size of the function's <code>/tmp</code> directory in MB. The default
|
||||
* value is 512, but can be any whole number between 512 and 10,240 MB. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring
|
||||
* ephemeral storage (console)</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EphemeralStorage">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EphemeralStorage
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EphemeralStorage();
|
||||
AWS_LAMBDA_API EphemeralStorage(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EphemeralStorage& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's <code>/tmp</code> directory.</p>
|
||||
*/
|
||||
inline int GetSize() const{ return m_size; }
|
||||
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
|
||||
inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
|
||||
inline EphemeralStorage& WithSize(int value) { SetSize(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
int m_size;
|
||||
bool m_sizeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,596 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/EventSourcePosition.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/lambda/model/FilterCriteria.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/SelfManagedEventSource.h>
|
||||
#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/ScalingConfig.h>
|
||||
#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
|
||||
#include <aws/lambda/model/FilterCriteriaError.h>
|
||||
#include <aws/lambda/model/SourceAccessConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionResponseType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For
|
||||
* details, see <a>CreateEventSourceMapping</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EventSourceMappingConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API EventSourceMappingConfiguration();
|
||||
AWS_LAMBDA_API EventSourceMappingConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API EventSourceMappingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUUID() const{ return m_uUID; }
|
||||
inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
|
||||
inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
|
||||
inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); }
|
||||
inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithUUID(const char* value) { SetUUID(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The position in a stream from which to start reading. Required for Amazon
|
||||
* Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is
|
||||
* supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and
|
||||
* self-managed Apache Kafka.</p>
|
||||
*/
|
||||
inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
|
||||
inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
|
||||
inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
|
||||
inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time
|
||||
* from which to start reading. <code>StartingPositionTimestamp</code> cannot be in
|
||||
* the future.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
|
||||
inline bool StartingPositionTimestampHasBeenSet() const { return m_startingPositionTimestampHasBeenSet; }
|
||||
inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = value; }
|
||||
inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestampHasBeenSet = true; m_startingPositionTimestamp = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithStartingPositionTimestamp(const Aws::Utils::DateTime& value) { SetStartingPositionTimestamp(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithStartingPositionTimestamp(Aws::Utils::DateTime&& value) { SetStartingPositionTimestamp(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of records in each batch that Lambda pulls from your
|
||||
* stream or queue and sends to your function. Lambda passes all of the records in
|
||||
* the batch to the function in a single call, up to the payload limit for
|
||||
* synchronous invocation (6 MB).</p> <p>Default value: Varies by service. For
|
||||
* Amazon SQS, the default is 10. For all other services, the default is 100.</p>
|
||||
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than
|
||||
* 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetBatchSize() const{ return m_batchSize; }
|
||||
inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
|
||||
inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
|
||||
inline EventSourceMappingConfiguration& WithBatchSize(int value) { SetBatchSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records
|
||||
* before invoking the function. You can configure
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300
|
||||
* seconds in increments of seconds.</p> <p>For streams and Amazon SQS event
|
||||
* sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed
|
||||
* Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
||||
* window is 500 ms. Note that because you can only change
|
||||
* <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot
|
||||
* revert back to the 500 ms default batching window after you have changed it. To
|
||||
* restore the default batching window, you must create a new event source
|
||||
* mapping.</p> <p>Related setting: For streams and Amazon SQS event sources, when
|
||||
* you set <code>BatchSize</code> to a value greater than 10, you must set
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
|
||||
inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
|
||||
inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
|
||||
inline EventSourceMappingConfiguration& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The number of batches to process
|
||||
* concurrently from each shard. The default value is 1.</p>
|
||||
*/
|
||||
inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
|
||||
inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; }
|
||||
inline void SetParallelizationFactor(int value) { m_parallelizationFactorHasBeenSet = true; m_parallelizationFactor = value; }
|
||||
inline EventSourceMappingConfiguration& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
|
||||
inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
|
||||
inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
|
||||
inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
|
||||
inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that defines the filter criteria that determine whether Lambda
|
||||
* should process an event. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda
|
||||
* event filtering</a>.</p> <p>If filter criteria is encrypted, this field shows up
|
||||
* as <code>null</code> in the response of ListEventSourceMapping API calls. You
|
||||
* can view this field in plaintext in the response of GetEventSourceMapping and
|
||||
* DeleteEventSourceMapping calls if you have <code>kms:Decrypt</code> permissions
|
||||
* for the correct KMS key.</p>
|
||||
*/
|
||||
inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
|
||||
inline bool FilterCriteriaHasBeenSet() const { return m_filterCriteriaHasBeenSet; }
|
||||
inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = value; }
|
||||
inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteriaHasBeenSet = true; m_filterCriteria = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date that the event source mapping was last updated or that its state
|
||||
* changed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
|
||||
inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
|
||||
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The result of the last Lambda invocation of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastProcessingResult() const{ return m_lastProcessingResult; }
|
||||
inline bool LastProcessingResultHasBeenSet() const { return m_lastProcessingResultHasBeenSet; }
|
||||
inline void SetLastProcessingResult(const Aws::String& value) { m_lastProcessingResultHasBeenSet = true; m_lastProcessingResult = value; }
|
||||
inline void SetLastProcessingResult(Aws::String&& value) { m_lastProcessingResultHasBeenSet = true; m_lastProcessingResult = std::move(value); }
|
||||
inline void SetLastProcessingResult(const char* value) { m_lastProcessingResultHasBeenSet = true; m_lastProcessingResult.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithLastProcessingResult(const Aws::String& value) { SetLastProcessingResult(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithLastProcessingResult(Aws::String&& value) { SetLastProcessingResult(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithLastProcessingResult(const char* value) { SetLastProcessingResult(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The state of the event source mapping. It can be one of the following:
|
||||
* <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>,
|
||||
* <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or
|
||||
* <code>Deleting</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetState() const{ return m_state; }
|
||||
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
|
||||
inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
|
||||
inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
|
||||
inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithState(const Aws::String& value) { SetState(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithState(const char* value) { SetState(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Indicates whether a user or Lambda made the last change to the event source
|
||||
* mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
|
||||
inline bool StateTransitionReasonHasBeenSet() const { return m_stateTransitionReasonHasBeenSet; }
|
||||
inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = value; }
|
||||
inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason = std::move(value); }
|
||||
inline void SetStateTransitionReason(const char* value) { m_stateTransitionReasonHasBeenSet = true; m_stateTransitionReason.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event
|
||||
* sources only) A configuration object that specifies the destination of an event
|
||||
* after Lambda processes it.</p>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the Kafka topic.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
|
||||
inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
|
||||
inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topicsHasBeenSet = true; m_topics = value; }
|
||||
inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& AddTopics(const Aws::String& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
|
||||
inline EventSourceMappingConfiguration& AddTopics(Aws::String&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
|
||||
inline EventSourceMappingConfiguration& AddTopics(const char* value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to
|
||||
* consume.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetQueues() const{ return m_queues; }
|
||||
inline bool QueuesHasBeenSet() const { return m_queuesHasBeenSet; }
|
||||
inline void SetQueues(const Aws::Vector<Aws::String>& value) { m_queuesHasBeenSet = true; m_queues = value; }
|
||||
inline void SetQueues(Aws::Vector<Aws::String>&& value) { m_queuesHasBeenSet = true; m_queues = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithQueues(const Aws::Vector<Aws::String>& value) { SetQueues(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithQueues(Aws::Vector<Aws::String>&& value) { SetQueues(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& AddQueues(const Aws::String& value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
|
||||
inline EventSourceMappingConfiguration& AddQueues(Aws::String&& value) { m_queuesHasBeenSet = true; m_queues.push_back(std::move(value)); return *this; }
|
||||
inline EventSourceMappingConfiguration& AddQueues(const char* value) { m_queuesHasBeenSet = true; m_queues.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An array of the authentication protocol, VPC components, or virtual host to
|
||||
* secure and define your event source.</p>
|
||||
*/
|
||||
inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; }
|
||||
inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; }
|
||||
inline void SetSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = value; }
|
||||
inline void SetSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { SetSourceAccessConfigurations(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(value); return *this; }
|
||||
inline EventSourceMappingConfiguration& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The self-managed Apache Kafka cluster for your event source.</p>
|
||||
*/
|
||||
inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; }
|
||||
inline bool SelfManagedEventSourceHasBeenSet() const { return m_selfManagedEventSourceHasBeenSet; }
|
||||
inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = value; }
|
||||
inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records older than the specified
|
||||
* age. The default value is -1, which sets the maximum age to infinite. When the
|
||||
* value is set to infinite, Lambda never discards old records.</p> <p>The
|
||||
* minimum valid value for maximum record age is 60s. Although values less than 60
|
||||
* and greater than -1 fall within the parameter's absolute range, they are not
|
||||
* allowed</p>
|
||||
*/
|
||||
inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
|
||||
inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; }
|
||||
inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSecondsHasBeenSet = true; m_maximumRecordAgeInSeconds = value; }
|
||||
inline EventSourceMappingConfiguration& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split
|
||||
* the batch in two and retry. The default value is false.</p>
|
||||
*/
|
||||
inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
|
||||
inline bool BisectBatchOnFunctionErrorHasBeenSet() const { return m_bisectBatchOnFunctionErrorHasBeenSet; }
|
||||
inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionErrorHasBeenSet = true; m_bisectBatchOnFunctionError = value; }
|
||||
inline EventSourceMappingConfiguration& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records after the specified
|
||||
* number of retries. The default value is -1, which sets the maximum number of
|
||||
* retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries
|
||||
* failed records until the record expires in the event source.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
|
||||
inline EventSourceMappingConfiguration& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing
|
||||
* window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds
|
||||
* indicates no tumbling window.</p>
|
||||
*/
|
||||
inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; }
|
||||
inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; }
|
||||
inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSecondsHasBeenSet = true; m_tumblingWindowInSeconds = value; }
|
||||
inline EventSourceMappingConfiguration& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type
|
||||
* enums applied to the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const{ return m_functionResponseTypes; }
|
||||
inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; }
|
||||
inline void SetFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = value; }
|
||||
inline void SetFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { SetFunctionResponseTypes(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { SetFunctionResponseTypes(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; }
|
||||
inline EventSourceMappingConfiguration& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for an Amazon Managed Streaming for Apache
|
||||
* Kafka (Amazon MSK) event source.</p>
|
||||
*/
|
||||
inline const AmazonManagedKafkaEventSourceConfig& GetAmazonManagedKafkaEventSourceConfig() const{ return m_amazonManagedKafkaEventSourceConfig; }
|
||||
inline bool AmazonManagedKafkaEventSourceConfigHasBeenSet() const { return m_amazonManagedKafkaEventSourceConfigHasBeenSet; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { m_amazonManagedKafkaEventSourceConfigHasBeenSet = true; m_amazonManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { m_amazonManagedKafkaEventSourceConfigHasBeenSet = true; m_amazonManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { SetAmazonManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { SetAmazonManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a self-managed Apache Kafka event
|
||||
* source.</p>
|
||||
*/
|
||||
inline const SelfManagedKafkaEventSourceConfig& GetSelfManagedKafkaEventSourceConfig() const{ return m_selfManagedKafkaEventSourceConfig; }
|
||||
inline bool SelfManagedKafkaEventSourceConfigHasBeenSet() const { return m_selfManagedKafkaEventSourceConfigHasBeenSet; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { m_selfManagedKafkaEventSourceConfigHasBeenSet = true; m_selfManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { m_selfManagedKafkaEventSourceConfigHasBeenSet = true; m_selfManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { SetSelfManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { SetSelfManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Amazon SQS only) The scaling configuration for the event source. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring
|
||||
* maximum concurrency for Amazon SQS event sources</a>.</p>
|
||||
*/
|
||||
inline const ScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
|
||||
inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
|
||||
inline void SetScalingConfig(const ScalingConfig& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = value; }
|
||||
inline void SetScalingConfig(ScalingConfig&& value) { m_scalingConfigHasBeenSet = true; m_scalingConfig = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithScalingConfig(const ScalingConfig& value) { SetScalingConfig(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithScalingConfig(ScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
||||
*/
|
||||
inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const{ return m_documentDBEventSourceConfig; }
|
||||
inline bool DocumentDBEventSourceConfigHasBeenSet() const { return m_documentDBEventSourceConfigHasBeenSet; }
|
||||
inline void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = value; }
|
||||
inline void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { m_documentDBEventSourceConfigHasBeenSet = true; m_documentDBEventSourceConfig = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { SetDocumentDBEventSourceConfig(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { SetDocumentDBEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
||||
* uses to encrypt your function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter
|
||||
* criteria</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about an error related to filter criteria
|
||||
* encryption.</p>
|
||||
*/
|
||||
inline const FilterCriteriaError& GetFilterCriteriaError() const{ return m_filterCriteriaError; }
|
||||
inline bool FilterCriteriaErrorHasBeenSet() const { return m_filterCriteriaErrorHasBeenSet; }
|
||||
inline void SetFilterCriteriaError(const FilterCriteriaError& value) { m_filterCriteriaErrorHasBeenSet = true; m_filterCriteriaError = value; }
|
||||
inline void SetFilterCriteriaError(FilterCriteriaError&& value) { m_filterCriteriaErrorHasBeenSet = true; m_filterCriteriaError = std::move(value); }
|
||||
inline EventSourceMappingConfiguration& WithFilterCriteriaError(const FilterCriteriaError& value) { SetFilterCriteriaError(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; }
|
||||
inline bool EventSourceMappingArnHasBeenSet() const { return m_eventSourceMappingArnHasBeenSet; }
|
||||
inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArnHasBeenSet = true; m_eventSourceMappingArn = value; }
|
||||
inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArnHasBeenSet = true; m_eventSourceMappingArn = std::move(value); }
|
||||
inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArnHasBeenSet = true; m_eventSourceMappingArn.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
|
||||
inline EventSourceMappingConfiguration& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline EventSourceMappingConfiguration& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uUID;
|
||||
bool m_uUIDHasBeenSet = false;
|
||||
|
||||
EventSourcePosition m_startingPosition;
|
||||
bool m_startingPositionHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_startingPositionTimestamp;
|
||||
bool m_startingPositionTimestampHasBeenSet = false;
|
||||
|
||||
int m_batchSize;
|
||||
bool m_batchSizeHasBeenSet = false;
|
||||
|
||||
int m_maximumBatchingWindowInSeconds;
|
||||
bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
|
||||
|
||||
int m_parallelizationFactor;
|
||||
bool m_parallelizationFactorHasBeenSet = false;
|
||||
|
||||
Aws::String m_eventSourceArn;
|
||||
bool m_eventSourceArnHasBeenSet = false;
|
||||
|
||||
FilterCriteria m_filterCriteria;
|
||||
bool m_filterCriteriaHasBeenSet = false;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
bool m_functionArnHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_lastModified;
|
||||
bool m_lastModifiedHasBeenSet = false;
|
||||
|
||||
Aws::String m_lastProcessingResult;
|
||||
bool m_lastProcessingResultHasBeenSet = false;
|
||||
|
||||
Aws::String m_state;
|
||||
bool m_stateHasBeenSet = false;
|
||||
|
||||
Aws::String m_stateTransitionReason;
|
||||
bool m_stateTransitionReasonHasBeenSet = false;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
bool m_destinationConfigHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_topics;
|
||||
bool m_topicsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_queues;
|
||||
bool m_queuesHasBeenSet = false;
|
||||
|
||||
Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
|
||||
bool m_sourceAccessConfigurationsHasBeenSet = false;
|
||||
|
||||
SelfManagedEventSource m_selfManagedEventSource;
|
||||
bool m_selfManagedEventSourceHasBeenSet = false;
|
||||
|
||||
int m_maximumRecordAgeInSeconds;
|
||||
bool m_maximumRecordAgeInSecondsHasBeenSet = false;
|
||||
|
||||
bool m_bisectBatchOnFunctionError;
|
||||
bool m_bisectBatchOnFunctionErrorHasBeenSet = false;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
bool m_maximumRetryAttemptsHasBeenSet = false;
|
||||
|
||||
int m_tumblingWindowInSeconds;
|
||||
bool m_tumblingWindowInSecondsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<FunctionResponseType> m_functionResponseTypes;
|
||||
bool m_functionResponseTypesHasBeenSet = false;
|
||||
|
||||
AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
|
||||
bool m_amazonManagedKafkaEventSourceConfigHasBeenSet = false;
|
||||
|
||||
SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
|
||||
bool m_selfManagedKafkaEventSourceConfigHasBeenSet = false;
|
||||
|
||||
ScalingConfig m_scalingConfig;
|
||||
bool m_scalingConfigHasBeenSet = false;
|
||||
|
||||
DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
|
||||
bool m_documentDBEventSourceConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
bool m_kMSKeyArnHasBeenSet = false;
|
||||
|
||||
FilterCriteriaError m_filterCriteriaError;
|
||||
bool m_filterCriteriaErrorHasBeenSet = false;
|
||||
|
||||
Aws::String m_eventSourceMappingArn;
|
||||
bool m_eventSourceMappingArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_requestId;
|
||||
bool m_requestIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class EventSourcePosition
|
||||
{
|
||||
NOT_SET,
|
||||
TRIM_HORIZON,
|
||||
LATEST,
|
||||
AT_TIMESTAMP
|
||||
};
|
||||
|
||||
namespace EventSourcePositionMapper
|
||||
{
|
||||
AWS_LAMBDA_API EventSourcePosition GetEventSourcePositionForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForEventSourcePosition(EventSourcePosition value);
|
||||
} // namespace EventSourcePositionMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Details about the connection between a Lambda function and an <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon
|
||||
* EFS file system</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FileSystemConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class FileSystemConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FileSystemConfig();
|
||||
AWS_LAMBDA_API FileSystemConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FileSystemConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the Amazon EFS access point that provides
|
||||
* access to the file system.</p>
|
||||
*/
|
||||
inline const Aws::String& GetArn() const{ return m_arn; }
|
||||
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
|
||||
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
|
||||
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
|
||||
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
|
||||
inline FileSystemConfig& WithArn(const Aws::String& value) { SetArn(value); return *this;}
|
||||
inline FileSystemConfig& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
|
||||
inline FileSystemConfig& WithArn(const char* value) { SetArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The path where the function can access the file system, starting with
|
||||
* <code>/mnt/</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLocalMountPath() const{ return m_localMountPath; }
|
||||
inline bool LocalMountPathHasBeenSet() const { return m_localMountPathHasBeenSet; }
|
||||
inline void SetLocalMountPath(const Aws::String& value) { m_localMountPathHasBeenSet = true; m_localMountPath = value; }
|
||||
inline void SetLocalMountPath(Aws::String&& value) { m_localMountPathHasBeenSet = true; m_localMountPath = std::move(value); }
|
||||
inline void SetLocalMountPath(const char* value) { m_localMountPathHasBeenSet = true; m_localMountPath.assign(value); }
|
||||
inline FileSystemConfig& WithLocalMountPath(const Aws::String& value) { SetLocalMountPath(value); return *this;}
|
||||
inline FileSystemConfig& WithLocalMountPath(Aws::String&& value) { SetLocalMountPath(std::move(value)); return *this;}
|
||||
inline FileSystemConfig& WithLocalMountPath(const char* value) { SetLocalMountPath(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_arn;
|
||||
bool m_arnHasBeenSet = false;
|
||||
|
||||
Aws::String m_localMountPath;
|
||||
bool m_localMountPathHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p> A structure within a <code>FilterCriteria</code> object that defines an
|
||||
* event filtering pattern. </p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Filter">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class Filter
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API Filter();
|
||||
AWS_LAMBDA_API Filter(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Filter& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> A filter pattern. For more information on the syntax of a filter pattern,
|
||||
* see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax">
|
||||
* Filter rule syntax</a>. </p>
|
||||
*/
|
||||
inline const Aws::String& GetPattern() const{ return m_pattern; }
|
||||
inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
|
||||
inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; }
|
||||
inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
|
||||
inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); }
|
||||
inline Filter& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
|
||||
inline Filter& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;}
|
||||
inline Filter& WithPattern(const char* value) { SetPattern(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_pattern;
|
||||
bool m_patternHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/Filter.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p> An object that contains the filters for an event source. </p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FilterCriteria">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class FilterCriteria
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FilterCriteria();
|
||||
AWS_LAMBDA_API FilterCriteria(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FilterCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> A list of filters. </p>
|
||||
*/
|
||||
inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
|
||||
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
|
||||
inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
|
||||
inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
|
||||
inline FilterCriteria& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
|
||||
inline FilterCriteria& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
|
||||
inline FilterCriteria& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
|
||||
inline FilterCriteria& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Filter> m_filters;
|
||||
bool m_filtersHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object that contains details about an error related to filter criteria
|
||||
* encryption.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FilterCriteriaError">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class FilterCriteriaError
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FilterCriteriaError();
|
||||
AWS_LAMBDA_API FilterCriteriaError(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FilterCriteriaError& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The KMS exception that resulted from filter criteria encryption or
|
||||
* decryption.</p>
|
||||
*/
|
||||
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
|
||||
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
|
||||
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
|
||||
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
|
||||
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
|
||||
inline FilterCriteriaError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
|
||||
inline FilterCriteriaError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
|
||||
inline FilterCriteriaError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The error message.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline FilterCriteriaError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline FilterCriteriaError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline FilterCriteriaError& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_errorCode;
|
||||
bool m_errorCodeHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class FullDocument
|
||||
{
|
||||
NOT_SET,
|
||||
UpdateLookup,
|
||||
Default
|
||||
};
|
||||
|
||||
namespace FullDocumentMapper
|
||||
{
|
||||
AWS_LAMBDA_API FullDocument GetFullDocumentForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForFullDocument(FullDocument value);
|
||||
} // namespace FullDocumentMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,156 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/Array.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The code for the Lambda function. You can either specify an object in Amazon
|
||||
* S3, upload a .zip file archive deployment package directly, or specify the URI
|
||||
* of a container image.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCode">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class FunctionCode
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FunctionCode();
|
||||
AWS_LAMBDA_API FunctionCode(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FunctionCode& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The base64-encoded contents of the deployment package. Amazon Web Services
|
||||
* SDK and CLI clients handle the encoding for you.</p>
|
||||
*/
|
||||
inline const Aws::Utils::CryptoBuffer& GetZipFile() const{ return m_zipFile; }
|
||||
inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
|
||||
inline void SetZipFile(const Aws::Utils::CryptoBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
|
||||
inline void SetZipFile(Aws::Utils::CryptoBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
|
||||
inline FunctionCode& WithZipFile(const Aws::Utils::CryptoBuffer& value) { SetZipFile(value); return *this;}
|
||||
inline FunctionCode& WithZipFile(Aws::Utils::CryptoBuffer&& value) { SetZipFile(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An Amazon S3 bucket in the same Amazon Web Services Region as your function.
|
||||
* The bucket can be in a different Amazon Web Services account.</p>
|
||||
*/
|
||||
inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
|
||||
inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
|
||||
inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
|
||||
inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
|
||||
inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
|
||||
inline FunctionCode& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
|
||||
inline FunctionCode& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
|
||||
inline FunctionCode& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon S3 key of the deployment package.</p>
|
||||
*/
|
||||
inline const Aws::String& GetS3Key() const{ return m_s3Key; }
|
||||
inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
|
||||
inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
|
||||
inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
|
||||
inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
|
||||
inline FunctionCode& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
|
||||
inline FunctionCode& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
|
||||
inline FunctionCode& WithS3Key(const char* value) { SetS3Key(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For versioned objects, the version of the deployment package object to
|
||||
* use.</p>
|
||||
*/
|
||||
inline const Aws::String& GetS3ObjectVersion() const{ return m_s3ObjectVersion; }
|
||||
inline bool S3ObjectVersionHasBeenSet() const { return m_s3ObjectVersionHasBeenSet; }
|
||||
inline void SetS3ObjectVersion(const Aws::String& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = value; }
|
||||
inline void SetS3ObjectVersion(Aws::String&& value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion = std::move(value); }
|
||||
inline void SetS3ObjectVersion(const char* value) { m_s3ObjectVersionHasBeenSet = true; m_s3ObjectVersion.assign(value); }
|
||||
inline FunctionCode& WithS3ObjectVersion(const Aws::String& value) { SetS3ObjectVersion(value); return *this;}
|
||||
inline FunctionCode& WithS3ObjectVersion(Aws::String&& value) { SetS3ObjectVersion(std::move(value)); return *this;}
|
||||
inline FunctionCode& WithS3ObjectVersion(const char* value) { SetS3ObjectVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>URI of a <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container
|
||||
* image</a> in the Amazon ECR registry.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageUri() const{ return m_imageUri; }
|
||||
inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
|
||||
inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; }
|
||||
inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); }
|
||||
inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); }
|
||||
inline FunctionCode& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;}
|
||||
inline FunctionCode& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;}
|
||||
inline FunctionCode& WithImageUri(const char* value) { SetImageUri(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used
|
||||
* to encrypt your function's .zip deployment package. If you don't provide a
|
||||
* customer managed key, Lambda uses an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
|
||||
* Web Services owned key</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSourceKMSKeyArn() const{ return m_sourceKMSKeyArn; }
|
||||
inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
|
||||
inline void SetSourceKMSKeyArn(const Aws::String& value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn = value; }
|
||||
inline void SetSourceKMSKeyArn(Aws::String&& value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn = std::move(value); }
|
||||
inline void SetSourceKMSKeyArn(const char* value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn.assign(value); }
|
||||
inline FunctionCode& WithSourceKMSKeyArn(const Aws::String& value) { SetSourceKMSKeyArn(value); return *this;}
|
||||
inline FunctionCode& WithSourceKMSKeyArn(Aws::String&& value) { SetSourceKMSKeyArn(std::move(value)); return *this;}
|
||||
inline FunctionCode& WithSourceKMSKeyArn(const char* value) { SetSourceKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Utils::CryptoBuffer m_zipFile;
|
||||
bool m_zipFileHasBeenSet = false;
|
||||
|
||||
Aws::String m_s3Bucket;
|
||||
bool m_s3BucketHasBeenSet = false;
|
||||
|
||||
Aws::String m_s3Key;
|
||||
bool m_s3KeyHasBeenSet = false;
|
||||
|
||||
Aws::String m_s3ObjectVersion;
|
||||
bool m_s3ObjectVersionHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageUri;
|
||||
bool m_imageUriHasBeenSet = false;
|
||||
|
||||
Aws::String m_sourceKMSKeyArn;
|
||||
bool m_sourceKMSKeyArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,133 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Details about a function's deployment package.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCodeLocation">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class FunctionCodeLocation
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FunctionCodeLocation();
|
||||
AWS_LAMBDA_API FunctionCodeLocation(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FunctionCodeLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The service that's hosting the file.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryType() const{ return m_repositoryType; }
|
||||
inline bool RepositoryTypeHasBeenSet() const { return m_repositoryTypeHasBeenSet; }
|
||||
inline void SetRepositoryType(const Aws::String& value) { m_repositoryTypeHasBeenSet = true; m_repositoryType = value; }
|
||||
inline void SetRepositoryType(Aws::String&& value) { m_repositoryTypeHasBeenSet = true; m_repositoryType = std::move(value); }
|
||||
inline void SetRepositoryType(const char* value) { m_repositoryTypeHasBeenSet = true; m_repositoryType.assign(value); }
|
||||
inline FunctionCodeLocation& WithRepositoryType(const Aws::String& value) { SetRepositoryType(value); return *this;}
|
||||
inline FunctionCodeLocation& WithRepositoryType(Aws::String&& value) { SetRepositoryType(std::move(value)); return *this;}
|
||||
inline FunctionCodeLocation& WithRepositoryType(const char* value) { SetRepositoryType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A presigned URL that you can use to download the deployment package.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLocation() const{ return m_location; }
|
||||
inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
|
||||
inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
|
||||
inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
|
||||
inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
|
||||
inline FunctionCodeLocation& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
|
||||
inline FunctionCodeLocation& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
|
||||
inline FunctionCodeLocation& WithLocation(const char* value) { SetLocation(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>URI of a container image in the Amazon ECR registry.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageUri() const{ return m_imageUri; }
|
||||
inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
|
||||
inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; }
|
||||
inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); }
|
||||
inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); }
|
||||
inline FunctionCodeLocation& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;}
|
||||
inline FunctionCodeLocation& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;}
|
||||
inline FunctionCodeLocation& WithImageUri(const char* value) { SetImageUri(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The resolved URI for the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetResolvedImageUri() const{ return m_resolvedImageUri; }
|
||||
inline bool ResolvedImageUriHasBeenSet() const { return m_resolvedImageUriHasBeenSet; }
|
||||
inline void SetResolvedImageUri(const Aws::String& value) { m_resolvedImageUriHasBeenSet = true; m_resolvedImageUri = value; }
|
||||
inline void SetResolvedImageUri(Aws::String&& value) { m_resolvedImageUriHasBeenSet = true; m_resolvedImageUri = std::move(value); }
|
||||
inline void SetResolvedImageUri(const char* value) { m_resolvedImageUriHasBeenSet = true; m_resolvedImageUri.assign(value); }
|
||||
inline FunctionCodeLocation& WithResolvedImageUri(const Aws::String& value) { SetResolvedImageUri(value); return *this;}
|
||||
inline FunctionCodeLocation& WithResolvedImageUri(Aws::String&& value) { SetResolvedImageUri(std::move(value)); return *this;}
|
||||
inline FunctionCodeLocation& WithResolvedImageUri(const char* value) { SetResolvedImageUri(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used
|
||||
* to encrypt your function's .zip deployment package. If you don't provide a
|
||||
* customer managed key, Lambda uses an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
|
||||
* Web Services owned key</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSourceKMSKeyArn() const{ return m_sourceKMSKeyArn; }
|
||||
inline bool SourceKMSKeyArnHasBeenSet() const { return m_sourceKMSKeyArnHasBeenSet; }
|
||||
inline void SetSourceKMSKeyArn(const Aws::String& value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn = value; }
|
||||
inline void SetSourceKMSKeyArn(Aws::String&& value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn = std::move(value); }
|
||||
inline void SetSourceKMSKeyArn(const char* value) { m_sourceKMSKeyArnHasBeenSet = true; m_sourceKMSKeyArn.assign(value); }
|
||||
inline FunctionCodeLocation& WithSourceKMSKeyArn(const Aws::String& value) { SetSourceKMSKeyArn(value); return *this;}
|
||||
inline FunctionCodeLocation& WithSourceKMSKeyArn(Aws::String&& value) { SetSourceKMSKeyArn(std::move(value)); return *this;}
|
||||
inline FunctionCodeLocation& WithSourceKMSKeyArn(const char* value) { SetSourceKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_repositoryType;
|
||||
bool m_repositoryTypeHasBeenSet = false;
|
||||
|
||||
Aws::String m_location;
|
||||
bool m_locationHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageUri;
|
||||
bool m_imageUriHasBeenSet = false;
|
||||
|
||||
Aws::String m_resolvedImageUri;
|
||||
bool m_resolvedImageUriHasBeenSet = false;
|
||||
|
||||
Aws::String m_sourceKMSKeyArn;
|
||||
bool m_sourceKMSKeyArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,701 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/Runtime.h>
|
||||
#include <aws/lambda/model/VpcConfigResponse.h>
|
||||
#include <aws/lambda/model/DeadLetterConfig.h>
|
||||
#include <aws/lambda/model/EnvironmentResponse.h>
|
||||
#include <aws/lambda/model/TracingConfigResponse.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/State.h>
|
||||
#include <aws/lambda/model/StateReasonCode.h>
|
||||
#include <aws/lambda/model/LastUpdateStatus.h>
|
||||
#include <aws/lambda/model/LastUpdateStatusReasonCode.h>
|
||||
#include <aws/lambda/model/PackageType.h>
|
||||
#include <aws/lambda/model/ImageConfigResponse.h>
|
||||
#include <aws/lambda/model/EphemeralStorage.h>
|
||||
#include <aws/lambda/model/SnapStartResponse.h>
|
||||
#include <aws/lambda/model/RuntimeVersionConfig.h>
|
||||
#include <aws/lambda/model/LoggingConfig.h>
|
||||
#include <aws/lambda/model/Layer.h>
|
||||
#include <aws/lambda/model/FileSystemConfig.h>
|
||||
#include <aws/lambda/model/Architecture.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Details about a function's configuration.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class FunctionConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FunctionConfiguration();
|
||||
AWS_LAMBDA_API FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FunctionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline FunctionConfiguration& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline FunctionConfiguration& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon Resource Name (ARN).</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
|
||||
inline FunctionConfiguration& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline FunctionConfiguration& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">
|
||||
* runtime</a>. Runtime is required if the deployment package is a .zip file
|
||||
* archive. Specifying a runtime results in an error if you're deploying a function
|
||||
* using a container image.</p> <p>The following list includes deprecated runtimes.
|
||||
* Lambda blocks creating new functions and updating existing functions shortly
|
||||
* after each runtime is deprecated. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime
|
||||
* use after deprecation</a>.</p> <p>For a list of all currently supported
|
||||
* runtimes, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported
|
||||
* runtimes</a>.</p>
|
||||
*/
|
||||
inline const Runtime& GetRuntime() const{ return m_runtime; }
|
||||
inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
|
||||
inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
|
||||
inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
|
||||
inline FunctionConfiguration& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
|
||||
inline FunctionConfiguration& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's execution role.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRole() const{ return m_role; }
|
||||
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
|
||||
inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
|
||||
inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
|
||||
inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
|
||||
inline FunctionConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
|
||||
inline FunctionConfiguration& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function that Lambda calls to begin running your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetHandler() const{ return m_handler; }
|
||||
inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
|
||||
inline void SetHandler(const Aws::String& value) { m_handlerHasBeenSet = true; m_handler = value; }
|
||||
inline void SetHandler(Aws::String&& value) { m_handlerHasBeenSet = true; m_handler = std::move(value); }
|
||||
inline void SetHandler(const char* value) { m_handlerHasBeenSet = true; m_handler.assign(value); }
|
||||
inline FunctionConfiguration& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
|
||||
inline FunctionConfiguration& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithHandler(const char* value) { SetHandler(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's deployment package, in bytes.</p>
|
||||
*/
|
||||
inline long long GetCodeSize() const{ return m_codeSize; }
|
||||
inline bool CodeSizeHasBeenSet() const { return m_codeSizeHasBeenSet; }
|
||||
inline void SetCodeSize(long long value) { m_codeSizeHasBeenSet = true; m_codeSize = value; }
|
||||
inline FunctionConfiguration& WithCodeSize(long long value) { SetCodeSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's description.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline FunctionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline FunctionConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of time in seconds that Lambda allows a function to run before
|
||||
* stopping it.</p>
|
||||
*/
|
||||
inline int GetTimeout() const{ return m_timeout; }
|
||||
inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
|
||||
inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
|
||||
inline FunctionConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of memory available to the function at runtime.</p>
|
||||
*/
|
||||
inline int GetMemorySize() const{ return m_memorySize; }
|
||||
inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
|
||||
inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
|
||||
inline FunctionConfiguration& WithMemorySize(int value) { SetMemorySize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the function was last updated, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastModified() const{ return m_lastModified; }
|
||||
inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
|
||||
inline void SetLastModified(const Aws::String& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::String&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
|
||||
inline void SetLastModified(const char* value) { m_lastModifiedHasBeenSet = true; m_lastModified.assign(value); }
|
||||
inline FunctionConfiguration& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
|
||||
inline FunctionConfiguration& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithLastModified(const char* value) { SetLastModified(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The SHA256 hash of the function's deployment package.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
|
||||
inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; }
|
||||
inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; }
|
||||
inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::move(value); }
|
||||
inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); }
|
||||
inline FunctionConfiguration& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
|
||||
inline FunctionConfiguration& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetVersion() const{ return m_version; }
|
||||
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
|
||||
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
|
||||
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
|
||||
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
|
||||
inline FunctionConfiguration& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
|
||||
inline FunctionConfiguration& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithVersion(const char* value) { SetVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's networking configuration.</p>
|
||||
*/
|
||||
inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; }
|
||||
inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
|
||||
inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
|
||||
inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
|
||||
inline FunctionConfiguration& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
|
||||
inline FunctionConfiguration& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's dead letter queue.</p>
|
||||
*/
|
||||
inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
|
||||
inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
|
||||
inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = value; }
|
||||
inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfigHasBeenSet = true; m_deadLetterConfig = std::move(value); }
|
||||
inline FunctionConfiguration& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
|
||||
inline FunctionConfiguration& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">environment
|
||||
* variables</a>. Omitted from CloudTrail logs.</p>
|
||||
*/
|
||||
inline const EnvironmentResponse& GetEnvironment() const{ return m_environment; }
|
||||
inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
|
||||
inline void SetEnvironment(const EnvironmentResponse& value) { m_environmentHasBeenSet = true; m_environment = value; }
|
||||
inline void SetEnvironment(EnvironmentResponse&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
|
||||
inline FunctionConfiguration& WithEnvironment(const EnvironmentResponse& value) { SetEnvironment(value); return *this;}
|
||||
inline FunctionConfiguration& WithEnvironment(EnvironmentResponse&& value) { SetEnvironment(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used
|
||||
* to encrypt the following resources:</p> <ul> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment
|
||||
* variables</a>.</p> </li> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda
|
||||
* SnapStart</a> snapshots.</p> </li> <li> <p>When used with
|
||||
* <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment
|
||||
* package that's used for function invocations. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
|
||||
* Specifying a customer managed key for Lambda</a>.</p> </li> <li> <p>The
|
||||
* optimized version of the container image that's used for function invocations.
|
||||
* Note that this is not the same key that's used to protect your container image
|
||||
* in the Amazon Elastic Container Registry (Amazon ECR). For more information, see
|
||||
* <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function
|
||||
* lifecycle</a>.</p> </li> </ul> <p>If you don't provide a customer managed key,
|
||||
* Lambda uses an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
|
||||
* Web Services owned key</a> or an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
|
||||
* Web Services managed key</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
|
||||
inline FunctionConfiguration& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline FunctionConfiguration& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's X-Ray tracing configuration.</p>
|
||||
*/
|
||||
inline const TracingConfigResponse& GetTracingConfig() const{ return m_tracingConfig; }
|
||||
inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
|
||||
inline void SetTracingConfig(const TracingConfigResponse& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = value; }
|
||||
inline void SetTracingConfig(TracingConfigResponse&& value) { m_tracingConfigHasBeenSet = true; m_tracingConfig = std::move(value); }
|
||||
inline FunctionConfiguration& WithTracingConfig(const TracingConfigResponse& value) { SetTracingConfig(value); return *this;}
|
||||
inline FunctionConfiguration& WithTracingConfig(TracingConfigResponse&& value) { SetTracingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For Lambda@Edge functions, the ARN of the main function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMasterArn() const{ return m_masterArn; }
|
||||
inline bool MasterArnHasBeenSet() const { return m_masterArnHasBeenSet; }
|
||||
inline void SetMasterArn(const Aws::String& value) { m_masterArnHasBeenSet = true; m_masterArn = value; }
|
||||
inline void SetMasterArn(Aws::String&& value) { m_masterArnHasBeenSet = true; m_masterArn = std::move(value); }
|
||||
inline void SetMasterArn(const char* value) { m_masterArnHasBeenSet = true; m_masterArn.assign(value); }
|
||||
inline FunctionConfiguration& WithMasterArn(const Aws::String& value) { SetMasterArn(value); return *this;}
|
||||
inline FunctionConfiguration& WithMasterArn(Aws::String&& value) { SetMasterArn(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithMasterArn(const char* value) { SetMasterArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The latest updated revision of the function or alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
|
||||
inline FunctionConfiguration& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline FunctionConfiguration& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">layers</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Layer>& GetLayers() const{ return m_layers; }
|
||||
inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
|
||||
inline void SetLayers(const Aws::Vector<Layer>& value) { m_layersHasBeenSet = true; m_layers = value; }
|
||||
inline void SetLayers(Aws::Vector<Layer>&& value) { m_layersHasBeenSet = true; m_layers = std::move(value); }
|
||||
inline FunctionConfiguration& WithLayers(const Aws::Vector<Layer>& value) { SetLayers(value); return *this;}
|
||||
inline FunctionConfiguration& WithLayers(Aws::Vector<Layer>&& value) { SetLayers(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& AddLayers(const Layer& value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
|
||||
inline FunctionConfiguration& AddLayers(Layer&& value) { m_layersHasBeenSet = true; m_layers.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The current state of the function. When the state is <code>Inactive</code>,
|
||||
* you can reactivate the function by invoking it.</p>
|
||||
*/
|
||||
inline const State& GetState() const{ return m_state; }
|
||||
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
|
||||
inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
|
||||
inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
|
||||
inline FunctionConfiguration& WithState(const State& value) { SetState(value); return *this;}
|
||||
inline FunctionConfiguration& WithState(State&& value) { SetState(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the function's current state.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateReason() const{ return m_stateReason; }
|
||||
inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
|
||||
inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
|
||||
inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
|
||||
inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
|
||||
inline FunctionConfiguration& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
|
||||
inline FunctionConfiguration& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithStateReason(const char* value) { SetStateReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason code for the function's current state. When the code is
|
||||
* <code>Creating</code>, you can't invoke or modify the function.</p>
|
||||
*/
|
||||
inline const StateReasonCode& GetStateReasonCode() const{ return m_stateReasonCode; }
|
||||
inline bool StateReasonCodeHasBeenSet() const { return m_stateReasonCodeHasBeenSet; }
|
||||
inline void SetStateReasonCode(const StateReasonCode& value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = value; }
|
||||
inline void SetStateReasonCode(StateReasonCode&& value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = std::move(value); }
|
||||
inline FunctionConfiguration& WithStateReasonCode(const StateReasonCode& value) { SetStateReasonCode(value); return *this;}
|
||||
inline FunctionConfiguration& WithStateReasonCode(StateReasonCode&& value) { SetStateReasonCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The status of the last update that was performed on the function. This is
|
||||
* first set to <code>Successful</code> after function creation completes.</p>
|
||||
*/
|
||||
inline const LastUpdateStatus& GetLastUpdateStatus() const{ return m_lastUpdateStatus; }
|
||||
inline bool LastUpdateStatusHasBeenSet() const { return m_lastUpdateStatusHasBeenSet; }
|
||||
inline void SetLastUpdateStatus(const LastUpdateStatus& value) { m_lastUpdateStatusHasBeenSet = true; m_lastUpdateStatus = value; }
|
||||
inline void SetLastUpdateStatus(LastUpdateStatus&& value) { m_lastUpdateStatusHasBeenSet = true; m_lastUpdateStatus = std::move(value); }
|
||||
inline FunctionConfiguration& WithLastUpdateStatus(const LastUpdateStatus& value) { SetLastUpdateStatus(value); return *this;}
|
||||
inline FunctionConfiguration& WithLastUpdateStatus(LastUpdateStatus&& value) { SetLastUpdateStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the last update that was performed on the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastUpdateStatusReason() const{ return m_lastUpdateStatusReason; }
|
||||
inline bool LastUpdateStatusReasonHasBeenSet() const { return m_lastUpdateStatusReasonHasBeenSet; }
|
||||
inline void SetLastUpdateStatusReason(const Aws::String& value) { m_lastUpdateStatusReasonHasBeenSet = true; m_lastUpdateStatusReason = value; }
|
||||
inline void SetLastUpdateStatusReason(Aws::String&& value) { m_lastUpdateStatusReasonHasBeenSet = true; m_lastUpdateStatusReason = std::move(value); }
|
||||
inline void SetLastUpdateStatusReason(const char* value) { m_lastUpdateStatusReasonHasBeenSet = true; m_lastUpdateStatusReason.assign(value); }
|
||||
inline FunctionConfiguration& WithLastUpdateStatusReason(const Aws::String& value) { SetLastUpdateStatusReason(value); return *this;}
|
||||
inline FunctionConfiguration& WithLastUpdateStatusReason(Aws::String&& value) { SetLastUpdateStatusReason(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithLastUpdateStatusReason(const char* value) { SetLastUpdateStatusReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason code for the last update that was performed on the function.</p>
|
||||
*/
|
||||
inline const LastUpdateStatusReasonCode& GetLastUpdateStatusReasonCode() const{ return m_lastUpdateStatusReasonCode; }
|
||||
inline bool LastUpdateStatusReasonCodeHasBeenSet() const { return m_lastUpdateStatusReasonCodeHasBeenSet; }
|
||||
inline void SetLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { m_lastUpdateStatusReasonCodeHasBeenSet = true; m_lastUpdateStatusReasonCode = value; }
|
||||
inline void SetLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { m_lastUpdateStatusReasonCodeHasBeenSet = true; m_lastUpdateStatusReasonCode = std::move(value); }
|
||||
inline FunctionConfiguration& WithLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { SetLastUpdateStatusReasonCode(value); return *this;}
|
||||
inline FunctionConfiguration& WithLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { SetLastUpdateStatusReasonCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Connection settings for an <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon
|
||||
* EFS file system</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const{ return m_fileSystemConfigs; }
|
||||
inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
|
||||
inline void SetFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = value; }
|
||||
inline void SetFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs = std::move(value); }
|
||||
inline FunctionConfiguration& WithFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { SetFileSystemConfigs(value); return *this;}
|
||||
inline FunctionConfiguration& WithFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { SetFileSystemConfigs(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(value); return *this; }
|
||||
inline FunctionConfiguration& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigsHasBeenSet = true; m_fileSystemConfigs.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of deployment package. Set to <code>Image</code> for container image
|
||||
* and set <code>Zip</code> for .zip file archive.</p>
|
||||
*/
|
||||
inline const PackageType& GetPackageType() const{ return m_packageType; }
|
||||
inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
|
||||
inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; }
|
||||
inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); }
|
||||
inline FunctionConfiguration& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
|
||||
inline FunctionConfiguration& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's image configuration values.</p>
|
||||
*/
|
||||
inline const ImageConfigResponse& GetImageConfigResponse() const{ return m_imageConfigResponse; }
|
||||
inline bool ImageConfigResponseHasBeenSet() const { return m_imageConfigResponseHasBeenSet; }
|
||||
inline void SetImageConfigResponse(const ImageConfigResponse& value) { m_imageConfigResponseHasBeenSet = true; m_imageConfigResponse = value; }
|
||||
inline void SetImageConfigResponse(ImageConfigResponse&& value) { m_imageConfigResponseHasBeenSet = true; m_imageConfigResponse = std::move(value); }
|
||||
inline FunctionConfiguration& WithImageConfigResponse(const ImageConfigResponse& value) { SetImageConfigResponse(value); return *this;}
|
||||
inline FunctionConfiguration& WithImageConfigResponse(ImageConfigResponse&& value) { SetImageConfigResponse(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the signing profile version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSigningProfileVersionArn() const{ return m_signingProfileVersionArn; }
|
||||
inline bool SigningProfileVersionArnHasBeenSet() const { return m_signingProfileVersionArnHasBeenSet; }
|
||||
inline void SetSigningProfileVersionArn(const Aws::String& value) { m_signingProfileVersionArnHasBeenSet = true; m_signingProfileVersionArn = value; }
|
||||
inline void SetSigningProfileVersionArn(Aws::String&& value) { m_signingProfileVersionArnHasBeenSet = true; m_signingProfileVersionArn = std::move(value); }
|
||||
inline void SetSigningProfileVersionArn(const char* value) { m_signingProfileVersionArnHasBeenSet = true; m_signingProfileVersionArn.assign(value); }
|
||||
inline FunctionConfiguration& WithSigningProfileVersionArn(const Aws::String& value) { SetSigningProfileVersionArn(value); return *this;}
|
||||
inline FunctionConfiguration& WithSigningProfileVersionArn(Aws::String&& value) { SetSigningProfileVersionArn(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithSigningProfileVersionArn(const char* value) { SetSigningProfileVersionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the signing job.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSigningJobArn() const{ return m_signingJobArn; }
|
||||
inline bool SigningJobArnHasBeenSet() const { return m_signingJobArnHasBeenSet; }
|
||||
inline void SetSigningJobArn(const Aws::String& value) { m_signingJobArnHasBeenSet = true; m_signingJobArn = value; }
|
||||
inline void SetSigningJobArn(Aws::String&& value) { m_signingJobArnHasBeenSet = true; m_signingJobArn = std::move(value); }
|
||||
inline void SetSigningJobArn(const char* value) { m_signingJobArnHasBeenSet = true; m_signingJobArn.assign(value); }
|
||||
inline FunctionConfiguration& WithSigningJobArn(const Aws::String& value) { SetSigningJobArn(value); return *this;}
|
||||
inline FunctionConfiguration& WithSigningJobArn(Aws::String&& value) { SetSigningJobArn(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithSigningJobArn(const char* value) { SetSigningJobArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The instruction set architecture that the function supports. Architecture is
|
||||
* a string array with one of the valid values. The default architecture value is
|
||||
* <code>x86_64</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Architecture>& GetArchitectures() const{ return m_architectures; }
|
||||
inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
|
||||
inline void SetArchitectures(const Aws::Vector<Architecture>& value) { m_architecturesHasBeenSet = true; m_architectures = value; }
|
||||
inline void SetArchitectures(Aws::Vector<Architecture>&& value) { m_architecturesHasBeenSet = true; m_architectures = std::move(value); }
|
||||
inline FunctionConfiguration& WithArchitectures(const Aws::Vector<Architecture>& value) { SetArchitectures(value); return *this;}
|
||||
inline FunctionConfiguration& WithArchitectures(Aws::Vector<Architecture>&& value) { SetArchitectures(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& AddArchitectures(const Architecture& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(value); return *this; }
|
||||
inline FunctionConfiguration& AddArchitectures(Architecture&& value) { m_architecturesHasBeenSet = true; m_architectures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's <code>/tmp</code> directory in MB. The default
|
||||
* value is 512, but can be any whole number between 512 and 10,240 MB. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring
|
||||
* ephemeral storage (console)</a>.</p>
|
||||
*/
|
||||
inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
|
||||
inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
|
||||
inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
|
||||
inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
|
||||
inline FunctionConfiguration& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
|
||||
inline FunctionConfiguration& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a
|
||||
* snapshot of the initialized execution environment when you publish a function
|
||||
* version. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Improving
|
||||
* startup performance with Lambda SnapStart</a>.</p>
|
||||
*/
|
||||
inline const SnapStartResponse& GetSnapStart() const{ return m_snapStart; }
|
||||
inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
|
||||
inline void SetSnapStart(const SnapStartResponse& value) { m_snapStartHasBeenSet = true; m_snapStart = value; }
|
||||
inline void SetSnapStart(SnapStartResponse&& value) { m_snapStartHasBeenSet = true; m_snapStart = std::move(value); }
|
||||
inline FunctionConfiguration& WithSnapStart(const SnapStartResponse& value) { SetSnapStart(value); return *this;}
|
||||
inline FunctionConfiguration& WithSnapStart(SnapStartResponse&& value) { SetSnapStart(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the runtime and any errors that occured.</p>
|
||||
*/
|
||||
inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const{ return m_runtimeVersionConfig; }
|
||||
inline bool RuntimeVersionConfigHasBeenSet() const { return m_runtimeVersionConfigHasBeenSet; }
|
||||
inline void SetRuntimeVersionConfig(const RuntimeVersionConfig& value) { m_runtimeVersionConfigHasBeenSet = true; m_runtimeVersionConfig = value; }
|
||||
inline void SetRuntimeVersionConfig(RuntimeVersionConfig&& value) { m_runtimeVersionConfigHasBeenSet = true; m_runtimeVersionConfig = std::move(value); }
|
||||
inline FunctionConfiguration& WithRuntimeVersionConfig(const RuntimeVersionConfig& value) { SetRuntimeVersionConfig(value); return *this;}
|
||||
inline FunctionConfiguration& WithRuntimeVersionConfig(RuntimeVersionConfig&& value) { SetRuntimeVersionConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
||||
*/
|
||||
inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
|
||||
inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
|
||||
inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; }
|
||||
inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); }
|
||||
inline FunctionConfiguration& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;}
|
||||
inline FunctionConfiguration& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
|
||||
inline FunctionConfiguration& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline FunctionConfiguration& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline FunctionConfiguration& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
bool m_functionArnHasBeenSet = false;
|
||||
|
||||
Runtime m_runtime;
|
||||
bool m_runtimeHasBeenSet = false;
|
||||
|
||||
Aws::String m_role;
|
||||
bool m_roleHasBeenSet = false;
|
||||
|
||||
Aws::String m_handler;
|
||||
bool m_handlerHasBeenSet = false;
|
||||
|
||||
long long m_codeSize;
|
||||
bool m_codeSizeHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
int m_timeout;
|
||||
bool m_timeoutHasBeenSet = false;
|
||||
|
||||
int m_memorySize;
|
||||
bool m_memorySizeHasBeenSet = false;
|
||||
|
||||
Aws::String m_lastModified;
|
||||
bool m_lastModifiedHasBeenSet = false;
|
||||
|
||||
Aws::String m_codeSha256;
|
||||
bool m_codeSha256HasBeenSet = false;
|
||||
|
||||
Aws::String m_version;
|
||||
bool m_versionHasBeenSet = false;
|
||||
|
||||
VpcConfigResponse m_vpcConfig;
|
||||
bool m_vpcConfigHasBeenSet = false;
|
||||
|
||||
DeadLetterConfig m_deadLetterConfig;
|
||||
bool m_deadLetterConfigHasBeenSet = false;
|
||||
|
||||
EnvironmentResponse m_environment;
|
||||
bool m_environmentHasBeenSet = false;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
bool m_kMSKeyArnHasBeenSet = false;
|
||||
|
||||
TracingConfigResponse m_tracingConfig;
|
||||
bool m_tracingConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_masterArn;
|
||||
bool m_masterArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
bool m_revisionIdHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Layer> m_layers;
|
||||
bool m_layersHasBeenSet = false;
|
||||
|
||||
State m_state;
|
||||
bool m_stateHasBeenSet = false;
|
||||
|
||||
Aws::String m_stateReason;
|
||||
bool m_stateReasonHasBeenSet = false;
|
||||
|
||||
StateReasonCode m_stateReasonCode;
|
||||
bool m_stateReasonCodeHasBeenSet = false;
|
||||
|
||||
LastUpdateStatus m_lastUpdateStatus;
|
||||
bool m_lastUpdateStatusHasBeenSet = false;
|
||||
|
||||
Aws::String m_lastUpdateStatusReason;
|
||||
bool m_lastUpdateStatusReasonHasBeenSet = false;
|
||||
|
||||
LastUpdateStatusReasonCode m_lastUpdateStatusReasonCode;
|
||||
bool m_lastUpdateStatusReasonCodeHasBeenSet = false;
|
||||
|
||||
Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
|
||||
bool m_fileSystemConfigsHasBeenSet = false;
|
||||
|
||||
PackageType m_packageType;
|
||||
bool m_packageTypeHasBeenSet = false;
|
||||
|
||||
ImageConfigResponse m_imageConfigResponse;
|
||||
bool m_imageConfigResponseHasBeenSet = false;
|
||||
|
||||
Aws::String m_signingProfileVersionArn;
|
||||
bool m_signingProfileVersionArnHasBeenSet = false;
|
||||
|
||||
Aws::String m_signingJobArn;
|
||||
bool m_signingJobArnHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Architecture> m_architectures;
|
||||
bool m_architecturesHasBeenSet = false;
|
||||
|
||||
EphemeralStorage m_ephemeralStorage;
|
||||
bool m_ephemeralStorageHasBeenSet = false;
|
||||
|
||||
SnapStartResponse m_snapStart;
|
||||
bool m_snapStartHasBeenSet = false;
|
||||
|
||||
RuntimeVersionConfig m_runtimeVersionConfig;
|
||||
bool m_runtimeVersionConfigHasBeenSet = false;
|
||||
|
||||
LoggingConfig m_loggingConfig;
|
||||
bool m_loggingConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_requestId;
|
||||
bool m_requestIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,135 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
class FunctionEventInvokeConfig
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API FunctionEventInvokeConfig();
|
||||
AWS_LAMBDA_API FunctionEventInvokeConfig(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API FunctionEventInvokeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the configuration was last updated.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
|
||||
inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
|
||||
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
|
||||
inline FunctionEventInvokeConfig& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
|
||||
inline FunctionEventInvokeConfig& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
|
||||
inline FunctionEventInvokeConfig& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline FunctionEventInvokeConfig& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline FunctionEventInvokeConfig& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of times to retry when the function returns an error.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; }
|
||||
inline FunctionEventInvokeConfig& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum age of a request that Lambda sends to a function for
|
||||
* processing.</p>
|
||||
*/
|
||||
inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; }
|
||||
inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; }
|
||||
inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSecondsHasBeenSet = true; m_maximumEventAgeInSeconds = value; }
|
||||
inline FunctionEventInvokeConfig& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A destination for events after they have been sent to a function for
|
||||
* processing.</p> <p class="title"> <b>Destinations</b> </p> <ul> <li> <p>
|
||||
* <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li>
|
||||
* <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p>
|
||||
* <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event
|
||||
* Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); }
|
||||
inline FunctionEventInvokeConfig& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline FunctionEventInvokeConfig& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
|
||||
inline FunctionEventInvokeConfig& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline FunctionEventInvokeConfig& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline FunctionEventInvokeConfig& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Utils::DateTime m_lastModified;
|
||||
bool m_lastModifiedHasBeenSet = false;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
bool m_functionArnHasBeenSet = false;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
bool m_maximumRetryAttemptsHasBeenSet = false;
|
||||
|
||||
int m_maximumEventAgeInSeconds;
|
||||
bool m_maximumEventAgeInSecondsHasBeenSet = false;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
bool m_destinationConfigHasBeenSet = false;
|
||||
|
||||
Aws::String m_requestId;
|
||||
bool m_requestIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class FunctionResponseType
|
||||
{
|
||||
NOT_SET,
|
||||
ReportBatchItemFailures
|
||||
};
|
||||
|
||||
namespace FunctionResponseTypeMapper
|
||||
{
|
||||
AWS_LAMBDA_API FunctionResponseType GetFunctionResponseTypeForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForFunctionResponseType(FunctionResponseType value);
|
||||
} // namespace FunctionResponseTypeMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class FunctionUrlAuthType
|
||||
{
|
||||
NOT_SET,
|
||||
NONE,
|
||||
AWS_IAM
|
||||
};
|
||||
|
||||
namespace FunctionUrlAuthTypeMapper
|
||||
{
|
||||
AWS_LAMBDA_API FunctionUrlAuthType GetFunctionUrlAuthTypeForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForFunctionUrlAuthType(FunctionUrlAuthType value);
|
||||
} // namespace FunctionUrlAuthTypeMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,180 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/Cors.h>
|
||||
#include <aws/lambda/model/FunctionUrlAuthType.h>
|
||||
#include <aws/lambda/model/InvokeMode.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Details about a Lambda function URL.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionUrlConfig">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
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;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The HTTP URL endpoint for your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionUrl() const{ return m_functionUrl; }
|
||||
inline bool FunctionUrlHasBeenSet() const { return m_functionUrlHasBeenSet; }
|
||||
inline void SetFunctionUrl(const Aws::String& value) { m_functionUrlHasBeenSet = true; m_functionUrl = value; }
|
||||
inline void SetFunctionUrl(Aws::String&& value) { m_functionUrlHasBeenSet = true; m_functionUrl = std::move(value); }
|
||||
inline void SetFunctionUrl(const char* value) { m_functionUrlHasBeenSet = true; m_functionUrl.assign(value); }
|
||||
inline FunctionUrlConfig& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;}
|
||||
inline FunctionUrlConfig& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;}
|
||||
inline FunctionUrlConfig& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
|
||||
inline FunctionUrlConfig& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline FunctionUrlConfig& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline FunctionUrlConfig& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>When the function URL was created, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
|
||||
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
|
||||
inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
|
||||
inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
|
||||
inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
|
||||
inline FunctionUrlConfig& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
|
||||
inline FunctionUrlConfig& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
|
||||
inline FunctionUrlConfig& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>When the function URL configuration was last updated, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastModifiedTime() const{ return m_lastModifiedTime; }
|
||||
inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
|
||||
inline void SetLastModifiedTime(const Aws::String& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
|
||||
inline void SetLastModifiedTime(Aws::String&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
|
||||
inline void SetLastModifiedTime(const char* value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime.assign(value); }
|
||||
inline FunctionUrlConfig& WithLastModifiedTime(const Aws::String& value) { SetLastModifiedTime(value); return *this;}
|
||||
inline FunctionUrlConfig& WithLastModifiedTime(Aws::String&& value) { SetLastModifiedTime(std::move(value)); return *this;}
|
||||
inline FunctionUrlConfig& WithLastModifiedTime(const char* value) { SetLastModifiedTime(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin
|
||||
* resource sharing (CORS)</a> settings for your function URL.</p>
|
||||
*/
|
||||
inline const Cors& GetCors() const{ return m_cors; }
|
||||
inline bool CorsHasBeenSet() const { return m_corsHasBeenSet; }
|
||||
inline void SetCors(const Cors& value) { m_corsHasBeenSet = true; m_cors = value; }
|
||||
inline void SetCors(Cors&& value) { m_corsHasBeenSet = true; m_cors = std::move(value); }
|
||||
inline FunctionUrlConfig& WithCors(const Cors& value) { SetCors(value); return *this;}
|
||||
inline FunctionUrlConfig& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of authentication that your function URL uses. Set to
|
||||
* <code>AWS_IAM</code> if you want to restrict access to authenticated users only.
|
||||
* Set to <code>NONE</code> if you want to bypass IAM authentication to create a
|
||||
* public endpoint. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and
|
||||
* auth model for Lambda function URLs</a>.</p>
|
||||
*/
|
||||
inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; }
|
||||
inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
|
||||
inline void SetAuthType(const FunctionUrlAuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
|
||||
inline void SetAuthType(FunctionUrlAuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
|
||||
inline FunctionUrlConfig& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;}
|
||||
inline FunctionUrlConfig& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> –
|
||||
* This is the default option. Lambda invokes your function using the
|
||||
* <code>Invoke</code> API operation. Invocation results are available when the
|
||||
* payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p>
|
||||
* <code>RESPONSE_STREAM</code> – Your function streams payload results as they
|
||||
* become available. Lambda invokes your function using the
|
||||
* <code>InvokeWithResponseStream</code> API operation. The maximum response
|
||||
* payload size is 20 MB, however, you can <a
|
||||
* href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request
|
||||
* a quota increase</a>.</p> </li> </ul>
|
||||
*/
|
||||
inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; }
|
||||
inline bool InvokeModeHasBeenSet() const { return m_invokeModeHasBeenSet; }
|
||||
inline void SetInvokeMode(const InvokeMode& value) { m_invokeModeHasBeenSet = true; m_invokeMode = value; }
|
||||
inline void SetInvokeMode(InvokeMode&& value) { m_invokeModeHasBeenSet = true; m_invokeMode = std::move(value); }
|
||||
inline FunctionUrlConfig& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;}
|
||||
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
|
||||
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class FunctionVersion
|
||||
{
|
||||
NOT_SET,
|
||||
ALL
|
||||
};
|
||||
|
||||
namespace FunctionVersionMapper
|
||||
{
|
||||
AWS_LAMBDA_API FunctionVersion GetFunctionVersionForName(const Aws::String& name);
|
||||
|
||||
AWS_LAMBDA_API Aws::String GetNameForFunctionVersion(FunctionVersion value);
|
||||
} // namespace FunctionVersionMapper
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetAccountSettingsRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetAccountSettingsRequest();
|
||||
|
||||
// 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 "GetAccountSettings"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/AccountLimit.h>
|
||||
#include <aws/lambda/model/AccountUsage.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetAccountSettingsResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetAccountSettingsResult();
|
||||
AWS_LAMBDA_API GetAccountSettingsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetAccountSettingsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Limits that are related to concurrency and code storage.</p>
|
||||
*/
|
||||
inline const AccountLimit& GetAccountLimit() const{ return m_accountLimit; }
|
||||
inline void SetAccountLimit(const AccountLimit& value) { m_accountLimit = value; }
|
||||
inline void SetAccountLimit(AccountLimit&& value) { m_accountLimit = std::move(value); }
|
||||
inline GetAccountSettingsResult& WithAccountLimit(const AccountLimit& value) { SetAccountLimit(value); return *this;}
|
||||
inline GetAccountSettingsResult& WithAccountLimit(AccountLimit&& value) { SetAccountLimit(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The number of functions and amount of storage in use.</p>
|
||||
*/
|
||||
inline const AccountUsage& GetAccountUsage() const{ return m_accountUsage; }
|
||||
inline void SetAccountUsage(const AccountUsage& value) { m_accountUsage = value; }
|
||||
inline void SetAccountUsage(AccountUsage&& value) { m_accountUsage = std::move(value); }
|
||||
inline GetAccountSettingsResult& WithAccountUsage(const AccountUsage& value) { SetAccountUsage(value); return *this;}
|
||||
inline GetAccountSettingsResult& WithAccountUsage(AccountUsage&& value) { SetAccountUsage(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetAccountSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetAccountSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetAccountSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
AccountLimit m_accountLimit;
|
||||
|
||||
AccountUsage m_accountUsage;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetAliasRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetAliasRequest();
|
||||
|
||||
// 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 "GetAlias"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetAliasRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetAliasRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetAliasRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
||||
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
||||
inline GetAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline GetAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline GetAliasRequest& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/AliasRoutingConfiguration.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>Provides configuration information about a Lambda function <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class GetAliasResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetAliasResult();
|
||||
AWS_LAMBDA_API GetAliasResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetAliasResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAliasArn() const{ return m_aliasArn; }
|
||||
inline void SetAliasArn(const Aws::String& value) { m_aliasArn = value; }
|
||||
inline void SetAliasArn(Aws::String&& value) { m_aliasArn = std::move(value); }
|
||||
inline void SetAliasArn(const char* value) { m_aliasArn.assign(value); }
|
||||
inline GetAliasResult& WithAliasArn(const Aws::String& value) { SetAliasArn(value); return *this;}
|
||||
inline GetAliasResult& WithAliasArn(Aws::String&& value) { SetAliasArn(std::move(value)); return *this;}
|
||||
inline GetAliasResult& WithAliasArn(const char* value) { SetAliasArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline void SetName(const Aws::String& value) { m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_name.assign(value); }
|
||||
inline GetAliasResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline GetAliasResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline GetAliasResult& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function version that the alias invokes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
|
||||
inline void SetFunctionVersion(const Aws::String& value) { m_functionVersion = value; }
|
||||
inline void SetFunctionVersion(Aws::String&& value) { m_functionVersion = std::move(value); }
|
||||
inline void SetFunctionVersion(const char* value) { m_functionVersion.assign(value); }
|
||||
inline GetAliasResult& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
|
||||
inline GetAliasResult& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
|
||||
inline GetAliasResult& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A description of the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_description.assign(value); }
|
||||
inline GetAliasResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline GetAliasResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline GetAliasResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing
|
||||
* configuration</a> of the alias.</p>
|
||||
*/
|
||||
inline const AliasRoutingConfiguration& GetRoutingConfig() const{ return m_routingConfig; }
|
||||
inline void SetRoutingConfig(const AliasRoutingConfiguration& value) { m_routingConfig = value; }
|
||||
inline void SetRoutingConfig(AliasRoutingConfiguration&& value) { m_routingConfig = std::move(value); }
|
||||
inline GetAliasResult& WithRoutingConfig(const AliasRoutingConfiguration& value) { SetRoutingConfig(value); return *this;}
|
||||
inline GetAliasResult& WithRoutingConfig(AliasRoutingConfiguration&& value) { SetRoutingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A unique identifier that changes when you update the alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
||||
inline GetAliasResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline GetAliasResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline GetAliasResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetAliasResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetAliasResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetAliasResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_aliasArn;
|
||||
|
||||
Aws::String m_name;
|
||||
|
||||
Aws::String m_functionVersion;
|
||||
|
||||
Aws::String m_description;
|
||||
|
||||
AliasRoutingConfiguration m_routingConfig;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetCodeSigningConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetCodeSigningConfigRequest();
|
||||
|
||||
// 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 "GetCodeSigningConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The The Amazon Resource Name (ARN) of the code signing configuration. </p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSigningConfigArn() const{ return m_codeSigningConfigArn; }
|
||||
inline bool CodeSigningConfigArnHasBeenSet() const { return m_codeSigningConfigArnHasBeenSet; }
|
||||
inline void SetCodeSigningConfigArn(const Aws::String& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = value; }
|
||||
inline void SetCodeSigningConfigArn(Aws::String&& value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn = std::move(value); }
|
||||
inline void SetCodeSigningConfigArn(const char* value) { m_codeSigningConfigArnHasBeenSet = true; m_codeSigningConfigArn.assign(value); }
|
||||
inline GetCodeSigningConfigRequest& WithCodeSigningConfigArn(const Aws::String& value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
inline GetCodeSigningConfigRequest& WithCodeSigningConfigArn(Aws::String&& value) { SetCodeSigningConfigArn(std::move(value)); return *this;}
|
||||
inline GetCodeSigningConfigRequest& WithCodeSigningConfigArn(const char* value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_codeSigningConfigArn;
|
||||
bool m_codeSigningConfigArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/CodeSigningConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetCodeSigningConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetCodeSigningConfigResult();
|
||||
AWS_LAMBDA_API GetCodeSigningConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetCodeSigningConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The code signing configuration</p>
|
||||
*/
|
||||
inline const CodeSigningConfig& GetCodeSigningConfig() const{ return m_codeSigningConfig; }
|
||||
inline void SetCodeSigningConfig(const CodeSigningConfig& value) { m_codeSigningConfig = value; }
|
||||
inline void SetCodeSigningConfig(CodeSigningConfig&& value) { m_codeSigningConfig = std::move(value); }
|
||||
inline GetCodeSigningConfigResult& WithCodeSigningConfig(const CodeSigningConfig& value) { SetCodeSigningConfig(value); return *this;}
|
||||
inline GetCodeSigningConfigResult& WithCodeSigningConfig(CodeSigningConfig&& value) { SetCodeSigningConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetCodeSigningConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetCodeSigningConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetCodeSigningConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
CodeSigningConfig m_codeSigningConfig;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetEventSourceMappingRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetEventSourceMappingRequest();
|
||||
|
||||
// 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 "GetEventSourceMapping"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUUID() const{ return m_uUID; }
|
||||
inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
|
||||
inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
|
||||
inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); }
|
||||
inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
|
||||
inline GetEventSourceMappingRequest& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
|
||||
inline GetEventSourceMappingRequest& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingRequest& WithUUID(const char* value) { SetUUID(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uUID;
|
||||
bool m_uUIDHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,534 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/EventSourcePosition.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/lambda/model/FilterCriteria.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/SelfManagedEventSource.h>
|
||||
#include <aws/lambda/model/AmazonManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/SelfManagedKafkaEventSourceConfig.h>
|
||||
#include <aws/lambda/model/ScalingConfig.h>
|
||||
#include <aws/lambda/model/DocumentDBEventSourceConfig.h>
|
||||
#include <aws/lambda/model/FilterCriteriaError.h>
|
||||
#include <aws/lambda/model/SourceAccessConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionResponseType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>A mapping between an Amazon Web Services resource and a Lambda function. For
|
||||
* details, see <a>CreateEventSourceMapping</a>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class GetEventSourceMappingResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetEventSourceMappingResult();
|
||||
AWS_LAMBDA_API GetEventSourceMappingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetEventSourceMappingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUUID() const{ return m_uUID; }
|
||||
inline void SetUUID(const Aws::String& value) { m_uUID = value; }
|
||||
inline void SetUUID(Aws::String&& value) { m_uUID = std::move(value); }
|
||||
inline void SetUUID(const char* value) { m_uUID.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithUUID(const char* value) { SetUUID(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The position in a stream from which to start reading. Required for Amazon
|
||||
* Kinesis and Amazon DynamoDB Stream event sources. <code>AT_TIMESTAMP</code> is
|
||||
* supported only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and
|
||||
* self-managed Apache Kafka.</p>
|
||||
*/
|
||||
inline const EventSourcePosition& GetStartingPosition() const{ return m_startingPosition; }
|
||||
inline void SetStartingPosition(const EventSourcePosition& value) { m_startingPosition = value; }
|
||||
inline void SetStartingPosition(EventSourcePosition&& value) { m_startingPosition = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithStartingPosition(const EventSourcePosition& value) { SetStartingPosition(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithStartingPosition(EventSourcePosition&& value) { SetStartingPosition(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>With <code>StartingPosition</code> set to <code>AT_TIMESTAMP</code>, the time
|
||||
* from which to start reading. <code>StartingPositionTimestamp</code> cannot be in
|
||||
* the future.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetStartingPositionTimestamp() const{ return m_startingPositionTimestamp; }
|
||||
inline void SetStartingPositionTimestamp(const Aws::Utils::DateTime& value) { m_startingPositionTimestamp = value; }
|
||||
inline void SetStartingPositionTimestamp(Aws::Utils::DateTime&& value) { m_startingPositionTimestamp = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithStartingPositionTimestamp(const Aws::Utils::DateTime& value) { SetStartingPositionTimestamp(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithStartingPositionTimestamp(Aws::Utils::DateTime&& value) { SetStartingPositionTimestamp(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of records in each batch that Lambda pulls from your
|
||||
* stream or queue and sends to your function. Lambda passes all of the records in
|
||||
* the batch to the function in a single call, up to the payload limit for
|
||||
* synchronous invocation (6 MB).</p> <p>Default value: Varies by service. For
|
||||
* Amazon SQS, the default is 10. For all other services, the default is 100.</p>
|
||||
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than
|
||||
* 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetBatchSize() const{ return m_batchSize; }
|
||||
inline void SetBatchSize(int value) { m_batchSize = value; }
|
||||
inline GetEventSourceMappingResult& WithBatchSize(int value) { SetBatchSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records
|
||||
* before invoking the function. You can configure
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300
|
||||
* seconds in increments of seconds.</p> <p>For streams and Amazon SQS event
|
||||
* sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed
|
||||
* Apache Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
||||
* window is 500 ms. Note that because you can only change
|
||||
* <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot
|
||||
* revert back to the 500 ms default batching window after you have changed it. To
|
||||
* restore the default batching window, you must create a new event source
|
||||
* mapping.</p> <p>Related setting: For streams and Amazon SQS event sources, when
|
||||
* you set <code>BatchSize</code> to a value greater than 10, you must set
|
||||
* <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
|
||||
*/
|
||||
inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
|
||||
inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; }
|
||||
inline GetEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The number of batches to process
|
||||
* concurrently from each shard. The default value is 1.</p>
|
||||
*/
|
||||
inline int GetParallelizationFactor() const{ return m_parallelizationFactor; }
|
||||
inline void SetParallelizationFactor(int value) { m_parallelizationFactor = value; }
|
||||
inline GetEventSourceMappingResult& WithParallelizationFactor(int value) { SetParallelizationFactor(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
|
||||
inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArn = value; }
|
||||
inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArn = std::move(value); }
|
||||
inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that defines the filter criteria that determine whether Lambda
|
||||
* should process an event. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html">Lambda
|
||||
* event filtering</a>.</p> <p>If filter criteria is encrypted, this field shows up
|
||||
* as <code>null</code> in the response of ListEventSourceMapping API calls. You
|
||||
* can view this field in plaintext in the response of GetEventSourceMapping and
|
||||
* DeleteEventSourceMapping calls if you have <code>kms:Decrypt</code> permissions
|
||||
* for the correct KMS key.</p>
|
||||
*/
|
||||
inline const FilterCriteria& GetFilterCriteria() const{ return m_filterCriteria; }
|
||||
inline void SetFilterCriteria(const FilterCriteria& value) { m_filterCriteria = value; }
|
||||
inline void SetFilterCriteria(FilterCriteria&& value) { m_filterCriteria = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithFilterCriteria(const FilterCriteria& value) { SetFilterCriteria(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithFilterCriteria(FilterCriteria&& value) { SetFilterCriteria(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date that the event source mapping was last updated or that its state
|
||||
* changed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
|
||||
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The result of the last Lambda invocation of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastProcessingResult() const{ return m_lastProcessingResult; }
|
||||
inline void SetLastProcessingResult(const Aws::String& value) { m_lastProcessingResult = value; }
|
||||
inline void SetLastProcessingResult(Aws::String&& value) { m_lastProcessingResult = std::move(value); }
|
||||
inline void SetLastProcessingResult(const char* value) { m_lastProcessingResult.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithLastProcessingResult(const Aws::String& value) { SetLastProcessingResult(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithLastProcessingResult(Aws::String&& value) { SetLastProcessingResult(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithLastProcessingResult(const char* value) { SetLastProcessingResult(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The state of the event source mapping. It can be one of the following:
|
||||
* <code>Creating</code>, <code>Enabling</code>, <code>Enabled</code>,
|
||||
* <code>Disabling</code>, <code>Disabled</code>, <code>Updating</code>, or
|
||||
* <code>Deleting</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetState() const{ return m_state; }
|
||||
inline void SetState(const Aws::String& value) { m_state = value; }
|
||||
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
|
||||
inline void SetState(const char* value) { m_state.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithState(const Aws::String& value) { SetState(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithState(const char* value) { SetState(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Indicates whether a user or Lambda made the last change to the event source
|
||||
* mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateTransitionReason() const{ return m_stateTransitionReason; }
|
||||
inline void SetStateTransitionReason(const Aws::String& value) { m_stateTransitionReason = value; }
|
||||
inline void SetStateTransitionReason(Aws::String&& value) { m_stateTransitionReason = std::move(value); }
|
||||
inline void SetStateTransitionReason(const char* value) { m_stateTransitionReason.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithStateTransitionReason(const Aws::String& value) { SetStateTransitionReason(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithStateTransitionReason(Aws::String&& value) { SetStateTransitionReason(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithStateTransitionReason(const char* value) { SetStateTransitionReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event
|
||||
* sources only) A configuration object that specifies the destination of an event
|
||||
* after Lambda processes it.</p>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfig = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the Kafka topic.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
|
||||
inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topics = value; }
|
||||
inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topics = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; }
|
||||
inline GetEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; }
|
||||
inline GetEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> (Amazon MQ) The name of the Amazon MQ broker destination queue to
|
||||
* consume.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetQueues() const{ return m_queues; }
|
||||
inline void SetQueues(const Aws::Vector<Aws::String>& value) { m_queues = value; }
|
||||
inline void SetQueues(Aws::Vector<Aws::String>&& value) { m_queues = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithQueues(const Aws::Vector<Aws::String>& value) { SetQueues(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithQueues(Aws::Vector<Aws::String>&& value) { SetQueues(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& AddQueues(const Aws::String& value) { m_queues.push_back(value); return *this; }
|
||||
inline GetEventSourceMappingResult& AddQueues(Aws::String&& value) { m_queues.push_back(std::move(value)); return *this; }
|
||||
inline GetEventSourceMappingResult& AddQueues(const char* value) { m_queues.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An array of the authentication protocol, VPC components, or virtual host to
|
||||
* secure and define your event source.</p>
|
||||
*/
|
||||
inline const Aws::Vector<SourceAccessConfiguration>& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; }
|
||||
inline void SetSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { m_sourceAccessConfigurations = value; }
|
||||
inline void SetSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { m_sourceAccessConfigurations = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector<SourceAccessConfiguration>& value) { SetSourceAccessConfigurations(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector<SourceAccessConfiguration>&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; }
|
||||
inline GetEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The self-managed Apache Kafka cluster for your event source.</p>
|
||||
*/
|
||||
inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; }
|
||||
inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; }
|
||||
inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records older than the specified
|
||||
* age. The default value is -1, which sets the maximum age to infinite. When the
|
||||
* value is set to infinite, Lambda never discards old records.</p> <p>The
|
||||
* minimum valid value for maximum record age is 60s. Although values less than 60
|
||||
* and greater than -1 fall within the parameter's absolute range, they are not
|
||||
* allowed</p>
|
||||
*/
|
||||
inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; }
|
||||
inline void SetMaximumRecordAgeInSeconds(int value) { m_maximumRecordAgeInSeconds = value; }
|
||||
inline GetEventSourceMappingResult& WithMaximumRecordAgeInSeconds(int value) { SetMaximumRecordAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) If the function returns an error, split
|
||||
* the batch in two and retry. The default value is false.</p>
|
||||
*/
|
||||
inline bool GetBisectBatchOnFunctionError() const{ return m_bisectBatchOnFunctionError; }
|
||||
inline void SetBisectBatchOnFunctionError(bool value) { m_bisectBatchOnFunctionError = value; }
|
||||
inline GetEventSourceMappingResult& WithBisectBatchOnFunctionError(bool value) { SetBisectBatchOnFunctionError(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) Discard records after the specified
|
||||
* number of retries. The default value is -1, which sets the maximum number of
|
||||
* retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries
|
||||
* failed records until the record expires in the event source.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttempts = value; }
|
||||
inline GetEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing
|
||||
* window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds
|
||||
* indicates no tumbling window.</p>
|
||||
*/
|
||||
inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; }
|
||||
inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; }
|
||||
inline GetEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type
|
||||
* enums applied to the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FunctionResponseType>& GetFunctionResponseTypes() const{ return m_functionResponseTypes; }
|
||||
inline void SetFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { m_functionResponseTypes = value; }
|
||||
inline void SetFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { m_functionResponseTypes = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector<FunctionResponseType>& value) { SetFunctionResponseTypes(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector<FunctionResponseType>&& value) { SetFunctionResponseTypes(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; }
|
||||
inline GetEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for an Amazon Managed Streaming for Apache
|
||||
* Kafka (Amazon MSK) event source.</p>
|
||||
*/
|
||||
inline const AmazonManagedKafkaEventSourceConfig& GetAmazonManagedKafkaEventSourceConfig() const{ return m_amazonManagedKafkaEventSourceConfig; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { m_amazonManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { m_amazonManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithAmazonManagedKafkaEventSourceConfig(const AmazonManagedKafkaEventSourceConfig& value) { SetAmazonManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithAmazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig&& value) { SetAmazonManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a self-managed Apache Kafka event
|
||||
* source.</p>
|
||||
*/
|
||||
inline const SelfManagedKafkaEventSourceConfig& GetSelfManagedKafkaEventSourceConfig() const{ return m_selfManagedKafkaEventSourceConfig; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { m_selfManagedKafkaEventSourceConfig = value; }
|
||||
inline void SetSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { m_selfManagedKafkaEventSourceConfig = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithSelfManagedKafkaEventSourceConfig(const SelfManagedKafkaEventSourceConfig& value) { SetSelfManagedKafkaEventSourceConfig(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithSelfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig&& value) { SetSelfManagedKafkaEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>(Amazon SQS only) The scaling configuration for the event source. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency">Configuring
|
||||
* maximum concurrency for Amazon SQS event sources</a>.</p>
|
||||
*/
|
||||
inline const ScalingConfig& GetScalingConfig() const{ return m_scalingConfig; }
|
||||
inline void SetScalingConfig(const ScalingConfig& value) { m_scalingConfig = value; }
|
||||
inline void SetScalingConfig(ScalingConfig&& value) { m_scalingConfig = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithScalingConfig(const ScalingConfig& value) { SetScalingConfig(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithScalingConfig(ScalingConfig&& value) { SetScalingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specific configuration settings for a DocumentDB event source.</p>
|
||||
*/
|
||||
inline const DocumentDBEventSourceConfig& GetDocumentDBEventSourceConfig() const{ return m_documentDBEventSourceConfig; }
|
||||
inline void SetDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { m_documentDBEventSourceConfig = value; }
|
||||
inline void SetDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { m_documentDBEventSourceConfig = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithDocumentDBEventSourceConfig(const DocumentDBEventSourceConfig& value) { SetDocumentDBEventSourceConfig(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithDocumentDBEventSourceConfig(DocumentDBEventSourceConfig&& value) { SetDocumentDBEventSourceConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p> The ARN of the Key Management Service (KMS) customer managed key that Lambda
|
||||
* uses to encrypt your function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics">filter
|
||||
* criteria</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about an error related to filter criteria
|
||||
* encryption.</p>
|
||||
*/
|
||||
inline const FilterCriteriaError& GetFilterCriteriaError() const{ return m_filterCriteriaError; }
|
||||
inline void SetFilterCriteriaError(const FilterCriteriaError& value) { m_filterCriteriaError = value; }
|
||||
inline void SetFilterCriteriaError(FilterCriteriaError&& value) { m_filterCriteriaError = std::move(value); }
|
||||
inline GetEventSourceMappingResult& WithFilterCriteriaError(const FilterCriteriaError& value) { SetFilterCriteriaError(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithFilterCriteriaError(FilterCriteriaError&& value) { SetFilterCriteriaError(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the event source mapping.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEventSourceMappingArn() const{ return m_eventSourceMappingArn; }
|
||||
inline void SetEventSourceMappingArn(const Aws::String& value) { m_eventSourceMappingArn = value; }
|
||||
inline void SetEventSourceMappingArn(Aws::String&& value) { m_eventSourceMappingArn = std::move(value); }
|
||||
inline void SetEventSourceMappingArn(const char* value) { m_eventSourceMappingArn.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithEventSourceMappingArn(const Aws::String& value) { SetEventSourceMappingArn(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithEventSourceMappingArn(Aws::String&& value) { SetEventSourceMappingArn(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithEventSourceMappingArn(const char* value) { SetEventSourceMappingArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetEventSourceMappingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetEventSourceMappingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetEventSourceMappingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uUID;
|
||||
|
||||
EventSourcePosition m_startingPosition;
|
||||
|
||||
Aws::Utils::DateTime m_startingPositionTimestamp;
|
||||
|
||||
int m_batchSize;
|
||||
|
||||
int m_maximumBatchingWindowInSeconds;
|
||||
|
||||
int m_parallelizationFactor;
|
||||
|
||||
Aws::String m_eventSourceArn;
|
||||
|
||||
FilterCriteria m_filterCriteria;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
Aws::Utils::DateTime m_lastModified;
|
||||
|
||||
Aws::String m_lastProcessingResult;
|
||||
|
||||
Aws::String m_state;
|
||||
|
||||
Aws::String m_stateTransitionReason;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
|
||||
Aws::Vector<Aws::String> m_topics;
|
||||
|
||||
Aws::Vector<Aws::String> m_queues;
|
||||
|
||||
Aws::Vector<SourceAccessConfiguration> m_sourceAccessConfigurations;
|
||||
|
||||
SelfManagedEventSource m_selfManagedEventSource;
|
||||
|
||||
int m_maximumRecordAgeInSeconds;
|
||||
|
||||
bool m_bisectBatchOnFunctionError;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
|
||||
int m_tumblingWindowInSeconds;
|
||||
|
||||
Aws::Vector<FunctionResponseType> m_functionResponseTypes;
|
||||
|
||||
AmazonManagedKafkaEventSourceConfig m_amazonManagedKafkaEventSourceConfig;
|
||||
|
||||
SelfManagedKafkaEventSourceConfig m_selfManagedKafkaEventSourceConfig;
|
||||
|
||||
ScalingConfig m_scalingConfig;
|
||||
|
||||
DocumentDBEventSourceConfig m_documentDBEventSourceConfig;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
|
||||
FilterCriteriaError m_filterCriteriaError;
|
||||
|
||||
Aws::String m_eventSourceMappingArn;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionCodeSigningConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionCodeSigningConfigRequest();
|
||||
|
||||
// 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 "GetFunctionCodeSigningConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionCodeSigningConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionCodeSigningConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionCodeSigningConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetFunctionCodeSigningConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionCodeSigningConfigResult();
|
||||
AWS_LAMBDA_API GetFunctionCodeSigningConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionCodeSigningConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The The Amazon Resource Name (ARN) of the code signing configuration.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSigningConfigArn() const{ return m_codeSigningConfigArn; }
|
||||
inline void SetCodeSigningConfigArn(const Aws::String& value) { m_codeSigningConfigArn = value; }
|
||||
inline void SetCodeSigningConfigArn(Aws::String&& value) { m_codeSigningConfigArn = std::move(value); }
|
||||
inline void SetCodeSigningConfigArn(const char* value) { m_codeSigningConfigArn.assign(value); }
|
||||
inline GetFunctionCodeSigningConfigResult& WithCodeSigningConfigArn(const Aws::String& value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
inline GetFunctionCodeSigningConfigResult& WithCodeSigningConfigArn(Aws::String&& value) { SetCodeSigningConfigArn(std::move(value)); return *this;}
|
||||
inline GetFunctionCodeSigningConfigResult& WithCodeSigningConfigArn(const char* value) { SetCodeSigningConfigArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionName.assign(value); }
|
||||
inline GetFunctionCodeSigningConfigResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionCodeSigningConfigResult& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionCodeSigningConfigResult& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionCodeSigningConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionCodeSigningConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionCodeSigningConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_codeSigningConfigArn;
|
||||
|
||||
Aws::String m_functionName;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionConcurrencyRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionConcurrencyRequest();
|
||||
|
||||
// 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 "GetFunctionConcurrency"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionConcurrencyRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionConcurrencyRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionConcurrencyRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetFunctionConcurrencyResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionConcurrencyResult();
|
||||
AWS_LAMBDA_API GetFunctionConcurrencyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionConcurrencyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The number of simultaneous executions that are reserved for the function.</p>
|
||||
*/
|
||||
inline int GetReservedConcurrentExecutions() const{ return m_reservedConcurrentExecutions; }
|
||||
inline void SetReservedConcurrentExecutions(int value) { m_reservedConcurrentExecutions = value; }
|
||||
inline GetFunctionConcurrencyResult& WithReservedConcurrentExecutions(int value) { SetReservedConcurrentExecutions(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionConcurrencyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionConcurrencyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionConcurrencyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
int m_reservedConcurrentExecutions;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionConfigurationRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionConfigurationRequest();
|
||||
|
||||
// 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 "GetFunctionConfiguration"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function, version, or alias.</p> <p
|
||||
* class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code> (name-only), <code>my-function:v1</code> (with
|
||||
* alias).</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can
|
||||
* append a version number or alias to any of the formats. The length constraint
|
||||
* applies only to the full ARN. If you specify only the function name, it is
|
||||
* limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionConfigurationRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionConfigurationRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specify a version or alias to get details about a published version of the
|
||||
* function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline GetFunctionConfigurationRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline GetFunctionConfigurationRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,627 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/Runtime.h>
|
||||
#include <aws/lambda/model/VpcConfigResponse.h>
|
||||
#include <aws/lambda/model/DeadLetterConfig.h>
|
||||
#include <aws/lambda/model/EnvironmentResponse.h>
|
||||
#include <aws/lambda/model/TracingConfigResponse.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/State.h>
|
||||
#include <aws/lambda/model/StateReasonCode.h>
|
||||
#include <aws/lambda/model/LastUpdateStatus.h>
|
||||
#include <aws/lambda/model/LastUpdateStatusReasonCode.h>
|
||||
#include <aws/lambda/model/PackageType.h>
|
||||
#include <aws/lambda/model/ImageConfigResponse.h>
|
||||
#include <aws/lambda/model/EphemeralStorage.h>
|
||||
#include <aws/lambda/model/SnapStartResponse.h>
|
||||
#include <aws/lambda/model/RuntimeVersionConfig.h>
|
||||
#include <aws/lambda/model/LoggingConfig.h>
|
||||
#include <aws/lambda/model/Layer.h>
|
||||
#include <aws/lambda/model/FileSystemConfig.h>
|
||||
#include <aws/lambda/model/Architecture.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
/**
|
||||
* <p>Details about a function's configuration.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class GetFunctionConfigurationResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionConfigurationResult();
|
||||
AWS_LAMBDA_API GetFunctionConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionName.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon Resource Name (ARN).</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The identifier of the function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">
|
||||
* runtime</a>. Runtime is required if the deployment package is a .zip file
|
||||
* archive. Specifying a runtime results in an error if you're deploying a function
|
||||
* using a container image.</p> <p>The following list includes deprecated runtimes.
|
||||
* Lambda blocks creating new functions and updating existing functions shortly
|
||||
* after each runtime is deprecated. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime
|
||||
* use after deprecation</a>.</p> <p>For a list of all currently supported
|
||||
* runtimes, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported
|
||||
* runtimes</a>.</p>
|
||||
*/
|
||||
inline const Runtime& GetRuntime() const{ return m_runtime; }
|
||||
inline void SetRuntime(const Runtime& value) { m_runtime = value; }
|
||||
inline void SetRuntime(Runtime&& value) { m_runtime = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's execution role.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRole() const{ return m_role; }
|
||||
inline void SetRole(const Aws::String& value) { m_role = value; }
|
||||
inline void SetRole(Aws::String&& value) { m_role = std::move(value); }
|
||||
inline void SetRole(const char* value) { m_role.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithRole(const Aws::String& value) { SetRole(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRole(const char* value) { SetRole(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function that Lambda calls to begin running your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetHandler() const{ return m_handler; }
|
||||
inline void SetHandler(const Aws::String& value) { m_handler = value; }
|
||||
inline void SetHandler(Aws::String&& value) { m_handler = std::move(value); }
|
||||
inline void SetHandler(const char* value) { m_handler.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithHandler(const Aws::String& value) { SetHandler(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithHandler(Aws::String&& value) { SetHandler(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithHandler(const char* value) { SetHandler(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's deployment package, in bytes.</p>
|
||||
*/
|
||||
inline long long GetCodeSize() const{ return m_codeSize; }
|
||||
inline void SetCodeSize(long long value) { m_codeSize = value; }
|
||||
inline GetFunctionConfigurationResult& WithCodeSize(long long value) { SetCodeSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's description.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_description.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of time in seconds that Lambda allows a function to run before
|
||||
* stopping it.</p>
|
||||
*/
|
||||
inline int GetTimeout() const{ return m_timeout; }
|
||||
inline void SetTimeout(int value) { m_timeout = value; }
|
||||
inline GetFunctionConfigurationResult& WithTimeout(int value) { SetTimeout(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The amount of memory available to the function at runtime.</p>
|
||||
*/
|
||||
inline int GetMemorySize() const{ return m_memorySize; }
|
||||
inline void SetMemorySize(int value) { m_memorySize = value; }
|
||||
inline GetFunctionConfigurationResult& WithMemorySize(int value) { SetMemorySize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the function was last updated, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastModified() const{ return m_lastModified; }
|
||||
inline void SetLastModified(const Aws::String& value) { m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::String&& value) { m_lastModified = std::move(value); }
|
||||
inline void SetLastModified(const char* value) { m_lastModified.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithLastModified(const Aws::String& value) { SetLastModified(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLastModified(Aws::String&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLastModified(const char* value) { SetLastModified(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The SHA256 hash of the function's deployment package.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; }
|
||||
inline void SetCodeSha256(const Aws::String& value) { m_codeSha256 = value; }
|
||||
inline void SetCodeSha256(Aws::String&& value) { m_codeSha256 = std::move(value); }
|
||||
inline void SetCodeSha256(const char* value) { m_codeSha256.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithCodeSha256(const char* value) { SetCodeSha256(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version of the Lambda function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetVersion() const{ return m_version; }
|
||||
inline void SetVersion(const Aws::String& value) { m_version = value; }
|
||||
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
|
||||
inline void SetVersion(const char* value) { m_version.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithVersion(const char* value) { SetVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's networking configuration.</p>
|
||||
*/
|
||||
inline const VpcConfigResponse& GetVpcConfig() const{ return m_vpcConfig; }
|
||||
inline void SetVpcConfig(const VpcConfigResponse& value) { m_vpcConfig = value; }
|
||||
inline void SetVpcConfig(VpcConfigResponse&& value) { m_vpcConfig = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithVpcConfig(const VpcConfigResponse& value) { SetVpcConfig(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithVpcConfig(VpcConfigResponse&& value) { SetVpcConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's dead letter queue.</p>
|
||||
*/
|
||||
inline const DeadLetterConfig& GetDeadLetterConfig() const{ return m_deadLetterConfig; }
|
||||
inline void SetDeadLetterConfig(const DeadLetterConfig& value) { m_deadLetterConfig = value; }
|
||||
inline void SetDeadLetterConfig(DeadLetterConfig&& value) { m_deadLetterConfig = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithDeadLetterConfig(const DeadLetterConfig& value) { SetDeadLetterConfig(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithDeadLetterConfig(DeadLetterConfig&& value) { SetDeadLetterConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">environment
|
||||
* variables</a>. Omitted from CloudTrail logs.</p>
|
||||
*/
|
||||
inline const EnvironmentResponse& GetEnvironment() const{ return m_environment; }
|
||||
inline void SetEnvironment(const EnvironmentResponse& value) { m_environment = value; }
|
||||
inline void SetEnvironment(EnvironmentResponse&& value) { m_environment = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithEnvironment(const EnvironmentResponse& value) { SetEnvironment(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithEnvironment(EnvironmentResponse&& value) { SetEnvironment(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the Key Management Service (KMS) customer managed key that's used
|
||||
* to encrypt the following resources:</p> <ul> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption">environment
|
||||
* variables</a>.</p> </li> <li> <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html">Lambda
|
||||
* SnapStart</a> snapshots.</p> </li> <li> <p>When used with
|
||||
* <code>SourceKMSKeyArn</code>, the unzipped version of the .zip deployment
|
||||
* package that's used for function invocations. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption">
|
||||
* Specifying a customer managed key for Lambda</a>.</p> </li> <li> <p>The
|
||||
* optimized version of the container image that's used for function invocations.
|
||||
* Note that this is not the same key that's used to protect your container image
|
||||
* in the Amazon Elastic Container Registry (Amazon ECR). For more information, see
|
||||
* <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle">Function
|
||||
* lifecycle</a>.</p> </li> </ul> <p>If you don't provide a customer managed key,
|
||||
* Lambda uses an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon
|
||||
* Web Services owned key</a> or an <a
|
||||
* href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon
|
||||
* Web Services managed key</a>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
|
||||
inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArn = value; }
|
||||
inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArn = std::move(value); }
|
||||
inline void SetKMSKeyArn(const char* value) { m_kMSKeyArn.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's X-Ray tracing configuration.</p>
|
||||
*/
|
||||
inline const TracingConfigResponse& GetTracingConfig() const{ return m_tracingConfig; }
|
||||
inline void SetTracingConfig(const TracingConfigResponse& value) { m_tracingConfig = value; }
|
||||
inline void SetTracingConfig(TracingConfigResponse&& value) { m_tracingConfig = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithTracingConfig(const TracingConfigResponse& value) { SetTracingConfig(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithTracingConfig(TracingConfigResponse&& value) { SetTracingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>For Lambda@Edge functions, the ARN of the main function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMasterArn() const{ return m_masterArn; }
|
||||
inline void SetMasterArn(const Aws::String& value) { m_masterArn = value; }
|
||||
inline void SetMasterArn(Aws::String&& value) { m_masterArn = std::move(value); }
|
||||
inline void SetMasterArn(const char* value) { m_masterArn.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithMasterArn(const Aws::String& value) { SetMasterArn(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithMasterArn(Aws::String&& value) { SetMasterArn(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithMasterArn(const char* value) { SetMasterArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The latest updated revision of the function or alias.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">layers</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Layer>& GetLayers() const{ return m_layers; }
|
||||
inline void SetLayers(const Aws::Vector<Layer>& value) { m_layers = value; }
|
||||
inline void SetLayers(Aws::Vector<Layer>&& value) { m_layers = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithLayers(const Aws::Vector<Layer>& value) { SetLayers(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLayers(Aws::Vector<Layer>&& value) { SetLayers(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; }
|
||||
inline GetFunctionConfigurationResult& AddLayers(Layer&& value) { m_layers.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The current state of the function. When the state is <code>Inactive</code>,
|
||||
* you can reactivate the function by invoking it.</p>
|
||||
*/
|
||||
inline const State& GetState() const{ return m_state; }
|
||||
inline void SetState(const State& value) { m_state = value; }
|
||||
inline void SetState(State&& value) { m_state = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithState(const State& value) { SetState(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithState(State&& value) { SetState(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the function's current state.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStateReason() const{ return m_stateReason; }
|
||||
inline void SetStateReason(const Aws::String& value) { m_stateReason = value; }
|
||||
inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); }
|
||||
inline void SetStateReason(const char* value) { m_stateReason.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithStateReason(const char* value) { SetStateReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason code for the function's current state. When the code is
|
||||
* <code>Creating</code>, you can't invoke or modify the function.</p>
|
||||
*/
|
||||
inline const StateReasonCode& GetStateReasonCode() const{ return m_stateReasonCode; }
|
||||
inline void SetStateReasonCode(const StateReasonCode& value) { m_stateReasonCode = value; }
|
||||
inline void SetStateReasonCode(StateReasonCode&& value) { m_stateReasonCode = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithStateReasonCode(const StateReasonCode& value) { SetStateReasonCode(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithStateReasonCode(StateReasonCode&& value) { SetStateReasonCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The status of the last update that was performed on the function. This is
|
||||
* first set to <code>Successful</code> after function creation completes.</p>
|
||||
*/
|
||||
inline const LastUpdateStatus& GetLastUpdateStatus() const{ return m_lastUpdateStatus; }
|
||||
inline void SetLastUpdateStatus(const LastUpdateStatus& value) { m_lastUpdateStatus = value; }
|
||||
inline void SetLastUpdateStatus(LastUpdateStatus&& value) { m_lastUpdateStatus = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatus(const LastUpdateStatus& value) { SetLastUpdateStatus(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatus(LastUpdateStatus&& value) { SetLastUpdateStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the last update that was performed on the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastUpdateStatusReason() const{ return m_lastUpdateStatusReason; }
|
||||
inline void SetLastUpdateStatusReason(const Aws::String& value) { m_lastUpdateStatusReason = value; }
|
||||
inline void SetLastUpdateStatusReason(Aws::String&& value) { m_lastUpdateStatusReason = std::move(value); }
|
||||
inline void SetLastUpdateStatusReason(const char* value) { m_lastUpdateStatusReason.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatusReason(const Aws::String& value) { SetLastUpdateStatusReason(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatusReason(Aws::String&& value) { SetLastUpdateStatusReason(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatusReason(const char* value) { SetLastUpdateStatusReason(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason code for the last update that was performed on the function.</p>
|
||||
*/
|
||||
inline const LastUpdateStatusReasonCode& GetLastUpdateStatusReasonCode() const{ return m_lastUpdateStatusReasonCode; }
|
||||
inline void SetLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { m_lastUpdateStatusReasonCode = value; }
|
||||
inline void SetLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { m_lastUpdateStatusReasonCode = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatusReasonCode(const LastUpdateStatusReasonCode& value) { SetLastUpdateStatusReasonCode(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLastUpdateStatusReasonCode(LastUpdateStatusReasonCode&& value) { SetLastUpdateStatusReasonCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Connection settings for an <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html">Amazon
|
||||
* EFS file system</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const{ return m_fileSystemConfigs; }
|
||||
inline void SetFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { m_fileSystemConfigs = value; }
|
||||
inline void SetFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { m_fileSystemConfigs = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithFileSystemConfigs(const Aws::Vector<FileSystemConfig>& value) { SetFileSystemConfigs(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithFileSystemConfigs(Aws::Vector<FileSystemConfig>&& value) { SetFileSystemConfigs(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& AddFileSystemConfigs(const FileSystemConfig& value) { m_fileSystemConfigs.push_back(value); return *this; }
|
||||
inline GetFunctionConfigurationResult& AddFileSystemConfigs(FileSystemConfig&& value) { m_fileSystemConfigs.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of deployment package. Set to <code>Image</code> for container image
|
||||
* and set <code>Zip</code> for .zip file archive.</p>
|
||||
*/
|
||||
inline const PackageType& GetPackageType() const{ return m_packageType; }
|
||||
inline void SetPackageType(const PackageType& value) { m_packageType = value; }
|
||||
inline void SetPackageType(PackageType&& value) { m_packageType = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's image configuration values.</p>
|
||||
*/
|
||||
inline const ImageConfigResponse& GetImageConfigResponse() const{ return m_imageConfigResponse; }
|
||||
inline void SetImageConfigResponse(const ImageConfigResponse& value) { m_imageConfigResponse = value; }
|
||||
inline void SetImageConfigResponse(ImageConfigResponse&& value) { m_imageConfigResponse = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithImageConfigResponse(const ImageConfigResponse& value) { SetImageConfigResponse(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithImageConfigResponse(ImageConfigResponse&& value) { SetImageConfigResponse(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the signing profile version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSigningProfileVersionArn() const{ return m_signingProfileVersionArn; }
|
||||
inline void SetSigningProfileVersionArn(const Aws::String& value) { m_signingProfileVersionArn = value; }
|
||||
inline void SetSigningProfileVersionArn(Aws::String&& value) { m_signingProfileVersionArn = std::move(value); }
|
||||
inline void SetSigningProfileVersionArn(const char* value) { m_signingProfileVersionArn.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithSigningProfileVersionArn(const Aws::String& value) { SetSigningProfileVersionArn(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithSigningProfileVersionArn(Aws::String&& value) { SetSigningProfileVersionArn(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithSigningProfileVersionArn(const char* value) { SetSigningProfileVersionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the signing job.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSigningJobArn() const{ return m_signingJobArn; }
|
||||
inline void SetSigningJobArn(const Aws::String& value) { m_signingJobArn = value; }
|
||||
inline void SetSigningJobArn(Aws::String&& value) { m_signingJobArn = std::move(value); }
|
||||
inline void SetSigningJobArn(const char* value) { m_signingJobArn.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithSigningJobArn(const Aws::String& value) { SetSigningJobArn(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithSigningJobArn(Aws::String&& value) { SetSigningJobArn(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithSigningJobArn(const char* value) { SetSigningJobArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The instruction set architecture that the function supports. Architecture is
|
||||
* a string array with one of the valid values. The default architecture value is
|
||||
* <code>x86_64</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Architecture>& GetArchitectures() const{ return m_architectures; }
|
||||
inline void SetArchitectures(const Aws::Vector<Architecture>& value) { m_architectures = value; }
|
||||
inline void SetArchitectures(Aws::Vector<Architecture>&& value) { m_architectures = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithArchitectures(const Aws::Vector<Architecture>& value) { SetArchitectures(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithArchitectures(Aws::Vector<Architecture>&& value) { SetArchitectures(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& AddArchitectures(const Architecture& value) { m_architectures.push_back(value); return *this; }
|
||||
inline GetFunctionConfigurationResult& AddArchitectures(Architecture&& value) { m_architectures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size of the function's <code>/tmp</code> directory in MB. The default
|
||||
* value is 512, but can be any whole number between 512 and 10,240 MB. For more
|
||||
* information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring
|
||||
* ephemeral storage (console)</a>.</p>
|
||||
*/
|
||||
inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
|
||||
inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorage = value; }
|
||||
inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorage = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a
|
||||
* snapshot of the initialized execution environment when you publish a function
|
||||
* version. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Improving
|
||||
* startup performance with Lambda SnapStart</a>.</p>
|
||||
*/
|
||||
inline const SnapStartResponse& GetSnapStart() const{ return m_snapStart; }
|
||||
inline void SetSnapStart(const SnapStartResponse& value) { m_snapStart = value; }
|
||||
inline void SetSnapStart(SnapStartResponse&& value) { m_snapStart = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithSnapStart(const SnapStartResponse& value) { SetSnapStart(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithSnapStart(SnapStartResponse&& value) { SetSnapStart(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the runtime and any errors that occured.</p>
|
||||
*/
|
||||
inline const RuntimeVersionConfig& GetRuntimeVersionConfig() const{ return m_runtimeVersionConfig; }
|
||||
inline void SetRuntimeVersionConfig(const RuntimeVersionConfig& value) { m_runtimeVersionConfig = value; }
|
||||
inline void SetRuntimeVersionConfig(RuntimeVersionConfig&& value) { m_runtimeVersionConfig = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithRuntimeVersionConfig(const RuntimeVersionConfig& value) { SetRuntimeVersionConfig(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRuntimeVersionConfig(RuntimeVersionConfig&& value) { SetRuntimeVersionConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's Amazon CloudWatch Logs configuration settings.</p>
|
||||
*/
|
||||
inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
|
||||
inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfig = value; }
|
||||
inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfig = std::move(value); }
|
||||
inline GetFunctionConfigurationResult& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
Runtime m_runtime;
|
||||
|
||||
Aws::String m_role;
|
||||
|
||||
Aws::String m_handler;
|
||||
|
||||
long long m_codeSize;
|
||||
|
||||
Aws::String m_description;
|
||||
|
||||
int m_timeout;
|
||||
|
||||
int m_memorySize;
|
||||
|
||||
Aws::String m_lastModified;
|
||||
|
||||
Aws::String m_codeSha256;
|
||||
|
||||
Aws::String m_version;
|
||||
|
||||
VpcConfigResponse m_vpcConfig;
|
||||
|
||||
DeadLetterConfig m_deadLetterConfig;
|
||||
|
||||
EnvironmentResponse m_environment;
|
||||
|
||||
Aws::String m_kMSKeyArn;
|
||||
|
||||
TracingConfigResponse m_tracingConfig;
|
||||
|
||||
Aws::String m_masterArn;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
|
||||
Aws::Vector<Layer> m_layers;
|
||||
|
||||
State m_state;
|
||||
|
||||
Aws::String m_stateReason;
|
||||
|
||||
StateReasonCode m_stateReasonCode;
|
||||
|
||||
LastUpdateStatus m_lastUpdateStatus;
|
||||
|
||||
Aws::String m_lastUpdateStatusReason;
|
||||
|
||||
LastUpdateStatusReasonCode m_lastUpdateStatusReasonCode;
|
||||
|
||||
Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
|
||||
|
||||
PackageType m_packageType;
|
||||
|
||||
ImageConfigResponse m_imageConfigResponse;
|
||||
|
||||
Aws::String m_signingProfileVersionArn;
|
||||
|
||||
Aws::String m_signingJobArn;
|
||||
|
||||
Aws::Vector<Architecture> m_architectures;
|
||||
|
||||
EphemeralStorage m_ephemeralStorage;
|
||||
|
||||
SnapStartResponse m_snapStart;
|
||||
|
||||
RuntimeVersionConfig m_runtimeVersionConfig;
|
||||
|
||||
LoggingConfig m_loggingConfig;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionEventInvokeConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionEventInvokeConfigRequest();
|
||||
|
||||
// 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 "GetFunctionEventInvokeConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function, version, or alias.</p> <p
|
||||
* class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> -
|
||||
* <code>my-function</code> (name-only), <code>my-function:v1</code> (with
|
||||
* alias).</p> </li> <li> <p> <b>Function ARN</b> -
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> -
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can
|
||||
* append a version number or alias to any of the formats. The length constraint
|
||||
* applies only to the full ARN. If you specify only the function name, it is
|
||||
* limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionEventInvokeConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionEventInvokeConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionEventInvokeConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A version number or alias name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline GetFunctionEventInvokeConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline GetFunctionEventInvokeConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline GetFunctionEventInvokeConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/DestinationConfig.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetFunctionEventInvokeConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionEventInvokeConfigResult();
|
||||
AWS_LAMBDA_API GetFunctionEventInvokeConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionEventInvokeConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the configuration was last updated.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
|
||||
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
|
||||
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
|
||||
inline GetFunctionEventInvokeConfigResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
|
||||
inline GetFunctionEventInvokeConfigResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline GetFunctionEventInvokeConfigResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline GetFunctionEventInvokeConfigResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline GetFunctionEventInvokeConfigResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of times to retry when the function returns an error.</p>
|
||||
*/
|
||||
inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; }
|
||||
inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttempts = value; }
|
||||
inline GetFunctionEventInvokeConfigResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum age of a request that Lambda sends to a function for
|
||||
* processing.</p>
|
||||
*/
|
||||
inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; }
|
||||
inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSeconds = value; }
|
||||
inline GetFunctionEventInvokeConfigResult& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A destination for events after they have been sent to a function for
|
||||
* processing.</p> <p class="title"> <b>Destinations</b> </p> <ul> <li> <p>
|
||||
* <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li>
|
||||
* <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p>
|
||||
* <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event
|
||||
* Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul>
|
||||
*/
|
||||
inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; }
|
||||
inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfig = value; }
|
||||
inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfig = std::move(value); }
|
||||
inline GetFunctionEventInvokeConfigResult& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;}
|
||||
inline GetFunctionEventInvokeConfigResult& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionEventInvokeConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionEventInvokeConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionEventInvokeConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Utils::DateTime m_lastModified;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
int m_maximumRetryAttempts;
|
||||
|
||||
int m_maximumEventAgeInSeconds;
|
||||
|
||||
DestinationConfig m_destinationConfig;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionRecursionConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionRecursionConfigRequest();
|
||||
|
||||
// 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 "GetFunctionRecursionConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p/>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionRecursionConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionRecursionConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionRecursionConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/RecursiveLoop.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetFunctionRecursionConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionRecursionConfigResult();
|
||||
AWS_LAMBDA_API GetFunctionRecursionConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionRecursionConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>If your function's recursive loop detection configuration is
|
||||
* <code>Allow</code>, Lambda doesn't take any action when it detects your function
|
||||
* being invoked as part of a recursive loop.</p> <p>If your function's recursive
|
||||
* loop detection configuration is <code>Terminate</code>, Lambda stops your
|
||||
* function being invoked and notifies you when it detects your function being
|
||||
* invoked as part of a recursive loop.</p> <p>By default, Lambda sets your
|
||||
* function's configuration to <code>Terminate</code>. You can update this
|
||||
* configuration using the <a>PutFunctionRecursionConfig</a> action.</p>
|
||||
*/
|
||||
inline const RecursiveLoop& GetRecursiveLoop() const{ return m_recursiveLoop; }
|
||||
inline void SetRecursiveLoop(const RecursiveLoop& value) { m_recursiveLoop = value; }
|
||||
inline void SetRecursiveLoop(RecursiveLoop&& value) { m_recursiveLoop = std::move(value); }
|
||||
inline GetFunctionRecursionConfigResult& WithRecursiveLoop(const RecursiveLoop& value) { SetRecursiveLoop(value); return *this;}
|
||||
inline GetFunctionRecursionConfigResult& WithRecursiveLoop(RecursiveLoop&& value) { SetRecursiveLoop(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionRecursionConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionRecursionConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionRecursionConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
RecursiveLoop m_recursiveLoop;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionRequest();
|
||||
|
||||
// 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 "GetFunction"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function, version, or alias.</p> <p
|
||||
* class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code> (name-only), <code>my-function:v1</code> (with
|
||||
* alias).</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can
|
||||
* append a version number or alias to any of the formats. The length constraint
|
||||
* applies only to the full ARN. If you specify only the function name, it is
|
||||
* limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Specify a version or alias to get details about a published version of the
|
||||
* function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline GetFunctionRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline GetFunctionRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline GetFunctionRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,135 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/FunctionConfiguration.h>
|
||||
#include <aws/lambda/model/FunctionCodeLocation.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/lambda/model/TagsError.h>
|
||||
#include <aws/lambda/model/Concurrency.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetFunctionResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionResult();
|
||||
AWS_LAMBDA_API GetFunctionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The configuration of the function or version.</p>
|
||||
*/
|
||||
inline const FunctionConfiguration& GetConfiguration() const{ return m_configuration; }
|
||||
inline void SetConfiguration(const FunctionConfiguration& value) { m_configuration = value; }
|
||||
inline void SetConfiguration(FunctionConfiguration&& value) { m_configuration = std::move(value); }
|
||||
inline GetFunctionResult& WithConfiguration(const FunctionConfiguration& value) { SetConfiguration(value); return *this;}
|
||||
inline GetFunctionResult& WithConfiguration(FunctionConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The deployment package of the function or version.</p>
|
||||
*/
|
||||
inline const FunctionCodeLocation& GetCode() const{ return m_code; }
|
||||
inline void SetCode(const FunctionCodeLocation& value) { m_code = value; }
|
||||
inline void SetCode(FunctionCodeLocation&& value) { m_code = std::move(value); }
|
||||
inline GetFunctionResult& WithCode(const FunctionCodeLocation& value) { SetCode(value); return *this;}
|
||||
inline GetFunctionResult& WithCode(FunctionCodeLocation&& value) { SetCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>.
|
||||
* Lambda returns tag data only if you have explicit allow permissions for <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/api/API_ListTags.html">lambda:ListTags</a>.</p>
|
||||
*/
|
||||
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
||||
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
|
||||
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
|
||||
inline GetFunctionResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
||||
inline GetFunctionResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
||||
inline GetFunctionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
|
||||
inline GetFunctionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline GetFunctionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline GetFunctionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
||||
inline GetFunctionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
|
||||
inline GetFunctionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
|
||||
inline GetFunctionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about an error related to retrieving
|
||||
* tags.</p>
|
||||
*/
|
||||
inline const TagsError& GetTagsError() const{ return m_tagsError; }
|
||||
inline void SetTagsError(const TagsError& value) { m_tagsError = value; }
|
||||
inline void SetTagsError(TagsError&& value) { m_tagsError = std::move(value); }
|
||||
inline GetFunctionResult& WithTagsError(const TagsError& value) { SetTagsError(value); return *this;}
|
||||
inline GetFunctionResult& WithTagsError(TagsError&& value) { SetTagsError(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The function's <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">reserved
|
||||
* concurrency</a>.</p>
|
||||
*/
|
||||
inline const Concurrency& GetConcurrency() const{ return m_concurrency; }
|
||||
inline void SetConcurrency(const Concurrency& value) { m_concurrency = value; }
|
||||
inline void SetConcurrency(Concurrency&& value) { m_concurrency = std::move(value); }
|
||||
inline GetFunctionResult& WithConcurrency(const Concurrency& value) { SetConcurrency(value); return *this;}
|
||||
inline GetFunctionResult& WithConcurrency(Concurrency&& value) { SetConcurrency(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
FunctionConfiguration m_configuration;
|
||||
|
||||
FunctionCodeLocation m_code;
|
||||
|
||||
Aws::Map<Aws::String, Aws::String> m_tags;
|
||||
|
||||
TagsError m_tagsError;
|
||||
|
||||
Concurrency m_concurrency;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetFunctionUrlConfigRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionUrlConfigRequest();
|
||||
|
||||
// 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 "GetFunctionUrlConfig"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name
|
||||
* formats</b> </p> <ul> <li> <p> <b>Function name</b> –
|
||||
* <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> –
|
||||
* <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p>
|
||||
* </li> <li> <p> <b>Partial ARN</b> –
|
||||
* <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length
|
||||
* constraint applies only to the full ARN. If you specify only the function name,
|
||||
* it is limited to 64 characters in length.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionName() const{ return m_functionName; }
|
||||
inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
|
||||
inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
|
||||
inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
|
||||
inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
|
||||
inline GetFunctionUrlConfigRequest& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
|
||||
inline GetFunctionUrlConfigRequest& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigRequest& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The alias name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetQualifier() const{ return m_qualifier; }
|
||||
inline bool QualifierHasBeenSet() const { return m_qualifierHasBeenSet; }
|
||||
inline void SetQualifier(const Aws::String& value) { m_qualifierHasBeenSet = true; m_qualifier = value; }
|
||||
inline void SetQualifier(Aws::String&& value) { m_qualifierHasBeenSet = true; m_qualifier = std::move(value); }
|
||||
inline void SetQualifier(const char* value) { m_qualifierHasBeenSet = true; m_qualifier.assign(value); }
|
||||
inline GetFunctionUrlConfigRequest& WithQualifier(const Aws::String& value) { SetQualifier(value); return *this;}
|
||||
inline GetFunctionUrlConfigRequest& WithQualifier(Aws::String&& value) { SetQualifier(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigRequest& WithQualifier(const char* value) { SetQualifier(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionName;
|
||||
bool m_functionNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_qualifier;
|
||||
bool m_qualifierHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,174 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/lambda/model/FunctionUrlAuthType.h>
|
||||
#include <aws/lambda/model/Cors.h>
|
||||
#include <aws/lambda/model/InvokeMode.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetFunctionUrlConfigResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetFunctionUrlConfigResult();
|
||||
AWS_LAMBDA_API GetFunctionUrlConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetFunctionUrlConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The HTTP URL endpoint for your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionUrl() const{ return m_functionUrl; }
|
||||
inline void SetFunctionUrl(const Aws::String& value) { m_functionUrl = value; }
|
||||
inline void SetFunctionUrl(Aws::String&& value) { m_functionUrl = std::move(value); }
|
||||
inline void SetFunctionUrl(const char* value) { m_functionUrl.assign(value); }
|
||||
inline GetFunctionUrlConfigResult& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of your function.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
|
||||
inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; }
|
||||
inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); }
|
||||
inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); }
|
||||
inline GetFunctionUrlConfigResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of authentication that your function URL uses. Set to
|
||||
* <code>AWS_IAM</code> if you want to restrict access to authenticated users only.
|
||||
* Set to <code>NONE</code> if you want to bypass IAM authentication to create a
|
||||
* public endpoint. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and
|
||||
* auth model for Lambda function URLs</a>.</p>
|
||||
*/
|
||||
inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; }
|
||||
inline void SetAuthType(const FunctionUrlAuthType& value) { m_authType = value; }
|
||||
inline void SetAuthType(FunctionUrlAuthType&& value) { m_authType = std::move(value); }
|
||||
inline GetFunctionUrlConfigResult& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <a
|
||||
* href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin
|
||||
* resource sharing (CORS)</a> settings for your function URL.</p>
|
||||
*/
|
||||
inline const Cors& GetCors() const{ return m_cors; }
|
||||
inline void SetCors(const Cors& value) { m_cors = value; }
|
||||
inline void SetCors(Cors&& value) { m_cors = std::move(value); }
|
||||
inline GetFunctionUrlConfigResult& WithCors(const Cors& value) { SetCors(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>When the function URL was created, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
|
||||
inline void SetCreationTime(const Aws::String& value) { m_creationTime = value; }
|
||||
inline void SetCreationTime(Aws::String&& value) { m_creationTime = std::move(value); }
|
||||
inline void SetCreationTime(const char* value) { m_creationTime.assign(value); }
|
||||
inline GetFunctionUrlConfigResult& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>When the function URL configuration was last updated, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetLastModifiedTime() const{ return m_lastModifiedTime; }
|
||||
inline void SetLastModifiedTime(const Aws::String& value) { m_lastModifiedTime = value; }
|
||||
inline void SetLastModifiedTime(Aws::String&& value) { m_lastModifiedTime = std::move(value); }
|
||||
inline void SetLastModifiedTime(const char* value) { m_lastModifiedTime.assign(value); }
|
||||
inline GetFunctionUrlConfigResult& WithLastModifiedTime(const Aws::String& value) { SetLastModifiedTime(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithLastModifiedTime(Aws::String&& value) { SetLastModifiedTime(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithLastModifiedTime(const char* value) { SetLastModifiedTime(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> –
|
||||
* This is the default option. Lambda invokes your function using the
|
||||
* <code>Invoke</code> API operation. Invocation results are available when the
|
||||
* payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p>
|
||||
* <code>RESPONSE_STREAM</code> – Your function streams payload results as they
|
||||
* become available. Lambda invokes your function using the
|
||||
* <code>InvokeWithResponseStream</code> API operation. The maximum response
|
||||
* payload size is 20 MB, however, you can <a
|
||||
* href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request
|
||||
* a quota increase</a>.</p> </li> </ul>
|
||||
*/
|
||||
inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; }
|
||||
inline void SetInvokeMode(const InvokeMode& value) { m_invokeMode = value; }
|
||||
inline void SetInvokeMode(InvokeMode&& value) { m_invokeMode = std::move(value); }
|
||||
inline GetFunctionUrlConfigResult& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithInvokeMode(InvokeMode&& value) { SetInvokeMode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetFunctionUrlConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetFunctionUrlConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_functionUrl;
|
||||
|
||||
Aws::String m_functionArn;
|
||||
|
||||
FunctionUrlAuthType m_authType;
|
||||
|
||||
Cors m_cors;
|
||||
|
||||
Aws::String m_creationTime;
|
||||
|
||||
Aws::String m_lastModifiedTime;
|
||||
|
||||
InvokeMode m_invokeMode;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Http
|
||||
{
|
||||
class URI;
|
||||
} //namespace Http
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetLayerVersionByArnRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetLayerVersionByArnRequest();
|
||||
|
||||
// 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 "GetLayerVersionByArn"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_LAMBDA_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the layer version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetArn() const{ return m_arn; }
|
||||
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
|
||||
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
|
||||
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
|
||||
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
|
||||
inline GetLayerVersionByArnRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
|
||||
inline GetLayerVersionByArnRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnRequest& WithArn(const char* value) { SetArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_arn;
|
||||
bool m_arnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,195 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/model/LayerVersionContentOutput.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/lambda/model/Runtime.h>
|
||||
#include <aws/lambda/model/Architecture.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetLayerVersionByArnResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetLayerVersionByArnResult();
|
||||
AWS_LAMBDA_API GetLayerVersionByArnResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetLayerVersionByArnResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Details about the layer version.</p>
|
||||
*/
|
||||
inline const LayerVersionContentOutput& GetContent() const{ return m_content; }
|
||||
inline void SetContent(const LayerVersionContentOutput& value) { m_content = value; }
|
||||
inline void SetContent(LayerVersionContentOutput&& value) { m_content = std::move(value); }
|
||||
inline GetLayerVersionByArnResult& WithContent(const LayerVersionContentOutput& value) { SetContent(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithContent(LayerVersionContentOutput&& value) { SetContent(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerArn() const{ return m_layerArn; }
|
||||
inline void SetLayerArn(const Aws::String& value) { m_layerArn = value; }
|
||||
inline void SetLayerArn(Aws::String&& value) { m_layerArn = std::move(value); }
|
||||
inline void SetLayerArn(const char* value) { m_layerArn.assign(value); }
|
||||
inline GetLayerVersionByArnResult& WithLayerArn(const Aws::String& value) { SetLayerArn(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithLayerArn(Aws::String&& value) { SetLayerArn(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithLayerArn(const char* value) { SetLayerArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the layer version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerVersionArn() const{ return m_layerVersionArn; }
|
||||
inline void SetLayerVersionArn(const Aws::String& value) { m_layerVersionArn = value; }
|
||||
inline void SetLayerVersionArn(Aws::String&& value) { m_layerVersionArn = std::move(value); }
|
||||
inline void SetLayerVersionArn(const char* value) { m_layerVersionArn.assign(value); }
|
||||
inline GetLayerVersionByArnResult& WithLayerVersionArn(const Aws::String& value) { SetLayerVersionArn(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithLayerVersionArn(Aws::String&& value) { SetLayerVersionArn(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithLayerVersionArn(const char* value) { SetLayerVersionArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The description of the version.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_description.assign(value); }
|
||||
inline GetLayerVersionByArnResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date that the layer version was created, in <a
|
||||
* href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a>
|
||||
* (YYYY-MM-DDThh:mm:ss.sTZD).</p>
|
||||
*/
|
||||
inline const Aws::String& GetCreatedDate() const{ return m_createdDate; }
|
||||
inline void SetCreatedDate(const Aws::String& value) { m_createdDate = value; }
|
||||
inline void SetCreatedDate(Aws::String&& value) { m_createdDate = std::move(value); }
|
||||
inline void SetCreatedDate(const char* value) { m_createdDate.assign(value); }
|
||||
inline GetLayerVersionByArnResult& WithCreatedDate(const Aws::String& value) { SetCreatedDate(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithCreatedDate(Aws::String&& value) { SetCreatedDate(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithCreatedDate(const char* value) { SetCreatedDate(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version number.</p>
|
||||
*/
|
||||
inline long long GetVersion() const{ return m_version; }
|
||||
inline void SetVersion(long long value) { m_version = value; }
|
||||
inline GetLayerVersionByArnResult& WithVersion(long long value) { SetVersion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The layer's compatible runtimes.</p> <p>The following list includes
|
||||
* deprecated runtimes. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime
|
||||
* use after deprecation</a>.</p> <p>For a list of all currently supported
|
||||
* runtimes, see <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported
|
||||
* runtimes</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; }
|
||||
inline void SetCompatibleRuntimes(const Aws::Vector<Runtime>& value) { m_compatibleRuntimes = value; }
|
||||
inline void SetCompatibleRuntimes(Aws::Vector<Runtime>&& value) { m_compatibleRuntimes = std::move(value); }
|
||||
inline GetLayerVersionByArnResult& WithCompatibleRuntimes(const Aws::Vector<Runtime>& value) { SetCompatibleRuntimes(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithCompatibleRuntimes(Aws::Vector<Runtime>&& value) { SetCompatibleRuntimes(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimes.push_back(value); return *this; }
|
||||
inline GetLayerVersionByArnResult& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The layer's software license.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; }
|
||||
inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfo = value; }
|
||||
inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfo = std::move(value); }
|
||||
inline void SetLicenseInfo(const char* value) { m_licenseInfo.assign(value); }
|
||||
inline GetLayerVersionByArnResult& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of compatible <a
|
||||
* href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction
|
||||
* set architectures</a>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const{ return m_compatibleArchitectures; }
|
||||
inline void SetCompatibleArchitectures(const Aws::Vector<Architecture>& value) { m_compatibleArchitectures = value; }
|
||||
inline void SetCompatibleArchitectures(Aws::Vector<Architecture>&& value) { m_compatibleArchitectures = std::move(value); }
|
||||
inline GetLayerVersionByArnResult& WithCompatibleArchitectures(const Aws::Vector<Architecture>& value) { SetCompatibleArchitectures(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithCompatibleArchitectures(Aws::Vector<Architecture>&& value) { SetCompatibleArchitectures(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& AddCompatibleArchitectures(const Architecture& value) { m_compatibleArchitectures.push_back(value); return *this; }
|
||||
inline GetLayerVersionByArnResult& AddCompatibleArchitectures(Architecture&& value) { m_compatibleArchitectures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetLayerVersionByArnResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetLayerVersionByArnResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
LayerVersionContentOutput m_content;
|
||||
|
||||
Aws::String m_layerArn;
|
||||
|
||||
Aws::String m_layerVersionArn;
|
||||
|
||||
Aws::String m_description;
|
||||
|
||||
Aws::String m_createdDate;
|
||||
|
||||
long long m_version;
|
||||
|
||||
Aws::Vector<Runtime> m_compatibleRuntimes;
|
||||
|
||||
Aws::String m_licenseInfo;
|
||||
|
||||
Aws::Vector<Architecture> m_compatibleArchitectures;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetLayerVersionPolicyRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetLayerVersionPolicyRequest();
|
||||
|
||||
// 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 "GetLayerVersionPolicy"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or Amazon Resource Name (ARN) of the layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerName() const{ return m_layerName; }
|
||||
inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
|
||||
inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
|
||||
inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
|
||||
inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
|
||||
inline GetLayerVersionPolicyRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
|
||||
inline GetLayerVersionPolicyRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
|
||||
inline GetLayerVersionPolicyRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version number.</p>
|
||||
*/
|
||||
inline long long GetVersionNumber() const{ return m_versionNumber; }
|
||||
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
|
||||
inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
|
||||
inline GetLayerVersionPolicyRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_layerName;
|
||||
bool m_layerNameHasBeenSet = false;
|
||||
|
||||
long long m_versionNumber;
|
||||
bool m_versionNumberHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetLayerVersionPolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetLayerVersionPolicyResult();
|
||||
AWS_LAMBDA_API GetLayerVersionPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_LAMBDA_API GetLayerVersionPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The policy document.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPolicy() const{ return m_policy; }
|
||||
inline void SetPolicy(const Aws::String& value) { m_policy = value; }
|
||||
inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
|
||||
inline void SetPolicy(const char* value) { m_policy.assign(value); }
|
||||
inline GetLayerVersionPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
|
||||
inline GetLayerVersionPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
|
||||
inline GetLayerVersionPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A unique identifier for the current revision of the policy.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
||||
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
||||
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
||||
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
||||
inline GetLayerVersionPolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
||||
inline GetLayerVersionPolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
||||
inline GetLayerVersionPolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetLayerVersionPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetLayerVersionPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetLayerVersionPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_policy;
|
||||
|
||||
Aws::String m_revisionId;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/lambda/Lambda_EXPORTS.h>
|
||||
#include <aws/lambda/LambdaRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Lambda
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetLayerVersionRequest : public LambdaRequest
|
||||
{
|
||||
public:
|
||||
AWS_LAMBDA_API GetLayerVersionRequest();
|
||||
|
||||
// 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 "GetLayerVersion"; }
|
||||
|
||||
AWS_LAMBDA_API Aws::String SerializePayload() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name or Amazon Resource Name (ARN) of the layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerName() const{ return m_layerName; }
|
||||
inline bool LayerNameHasBeenSet() const { return m_layerNameHasBeenSet; }
|
||||
inline void SetLayerName(const Aws::String& value) { m_layerNameHasBeenSet = true; m_layerName = value; }
|
||||
inline void SetLayerName(Aws::String&& value) { m_layerNameHasBeenSet = true; m_layerName = std::move(value); }
|
||||
inline void SetLayerName(const char* value) { m_layerNameHasBeenSet = true; m_layerName.assign(value); }
|
||||
inline GetLayerVersionRequest& WithLayerName(const Aws::String& value) { SetLayerName(value); return *this;}
|
||||
inline GetLayerVersionRequest& WithLayerName(Aws::String&& value) { SetLayerName(std::move(value)); return *this;}
|
||||
inline GetLayerVersionRequest& WithLayerName(const char* value) { SetLayerName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version number.</p>
|
||||
*/
|
||||
inline long long GetVersionNumber() const{ return m_versionNumber; }
|
||||
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
|
||||
inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
|
||||
inline GetLayerVersionRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_layerName;
|
||||
bool m_layerNameHasBeenSet = false;
|
||||
|
||||
long long m_versionNumber;
|
||||
bool m_versionNumberHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace Lambda
|
||||
} // namespace Aws
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user