7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda/LambdaRequest.h>
11#include <aws/lambda/Lambda_EXPORTS.h>
12#include <aws/lambda/model/Architecture.h>
13#include <aws/lambda/model/DeadLetterConfig.h>
14#include <aws/lambda/model/Environment.h>
15#include <aws/lambda/model/EphemeralStorage.h>
16#include <aws/lambda/model/FileSystemConfig.h>
17#include <aws/lambda/model/FunctionCode.h>
18#include <aws/lambda/model/ImageConfig.h>
19#include <aws/lambda/model/LoggingConfig.h>
20#include <aws/lambda/model/PackageType.h>
21#include <aws/lambda/model/Runtime.h>
22#include <aws/lambda/model/SnapStart.h>
23#include <aws/lambda/model/TenancyConfig.h>
24#include <aws/lambda/model/TracingConfig.h>
25#include <aws/lambda/model/VpcConfig.h>
60 template <
typename FunctionNameT = Aws::String>
62 m_functionNameHasBeenSet =
true;
63 m_functionName = std::forward<FunctionNameT>(value);
65 template <
typename FunctionNameT = Aws::String>
90 m_runtimeHasBeenSet =
true;
105 template <
typename RoleT = Aws::String>
107 m_roleHasBeenSet =
true;
108 m_role = std::forward<RoleT>(value);
110 template <
typename RoleT = Aws::String>
112 SetRole(std::forward<RoleT>(value));
128 template <
typename HandlerT = Aws::String>
130 m_handlerHasBeenSet =
true;
131 m_handler = std::forward<HandlerT>(value);
133 template <
typename HandlerT = Aws::String>
146 template <
typename CodeT = FunctionCode>
148 m_codeHasBeenSet =
true;
149 m_code = std::forward<CodeT>(value);
151 template <
typename CodeT = FunctionCode>
153 SetCode(std::forward<CodeT>(value));
164 template <
typename DescriptionT = Aws::String>
166 m_descriptionHasBeenSet =
true;
167 m_description = std::forward<DescriptionT>(value);
169 template <
typename DescriptionT = Aws::String>
187 m_timeoutHasBeenSet =
true;
207 m_memorySizeHasBeenSet =
true;
208 m_memorySize = value;
223 m_publishHasBeenSet =
true;
243 template <
typename VpcConfigT = VpcConfig>
245 m_vpcConfigHasBeenSet =
true;
246 m_vpcConfig = std::forward<VpcConfigT>(value);
248 template <
typename VpcConfigT = VpcConfig>
263 m_packageTypeHasBeenSet =
true;
264 m_packageType = value;
282 template <
typename DeadLetterConfigT = DeadLetterConfig>
284 m_deadLetterConfigHasBeenSet =
true;
285 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
287 template <
typename DeadLetterConfigT = DeadLetterConfig>
301 template <
typename EnvironmentT = Environment>
303 m_environmentHasBeenSet =
true;
304 m_environment = std::forward<EnvironmentT>(value);
306 template <
typename EnvironmentT = Environment>
339 template <
typename KMSKeyArnT = Aws::String>
341 m_kMSKeyArnHasBeenSet =
true;
342 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
344 template <
typename KMSKeyArnT = Aws::String>
359 template <
typename TracingConfigT = TracingConfig>
361 m_tracingConfigHasBeenSet =
true;
362 m_tracingConfig = std::forward<TracingConfigT>(value);
364 template <
typename TracingConfigT = TracingConfig>
379 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
381 m_tagsHasBeenSet =
true;
382 m_tags = std::forward<TagsT>(value);
384 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
386 SetTags(std::forward<TagsT>(value));
389 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
391 m_tagsHasBeenSet =
true;
392 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
406 template <
typename LayersT = Aws::Vector<Aws::String>>
408 m_layersHasBeenSet =
true;
409 m_layers = std::forward<LayersT>(value);
411 template <
typename LayersT = Aws::Vector<Aws::String>>
416 template <
typename LayersT = Aws::String>
418 m_layersHasBeenSet =
true;
419 m_layers.emplace_back(std::forward<LayersT>(value));
430 template <
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
432 m_fileSystemConfigsHasBeenSet =
true;
433 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
435 template <
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
440 template <
typename FileSystemConfigsT = FileSystemConfig>
442 m_fileSystemConfigsHasBeenSet =
true;
443 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
456 template <
typename ImageConfigT = ImageConfig>
458 m_imageConfigHasBeenSet =
true;
459 m_imageConfig = std::forward<ImageConfigT>(value);
461 template <
typename ImageConfigT = ImageConfig>
476 template <
typename CodeSigningConfigArnT = Aws::String>
478 m_codeSigningConfigArnHasBeenSet =
true;
479 m_codeSigningConfigArn = std::forward<CodeSigningConfigArnT>(value);
481 template <
typename CodeSigningConfigArnT = Aws::String>
496 template <
typename ArchitecturesT = Aws::Vector<Architecture>>
498 m_architecturesHasBeenSet =
true;
499 m_architectures = std::forward<ArchitecturesT>(value);
501 template <
typename ArchitecturesT = Aws::Vector<Architecture>>
507 m_architecturesHasBeenSet =
true;
508 m_architectures.push_back(value);
523 template <
typename EphemeralStorageT = EphemeralStorage>
525 m_ephemeralStorageHasBeenSet =
true;
526 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
528 template <
typename EphemeralStorageT = EphemeralStorage>
543 template <
typename SnapStartT = SnapStart>
545 m_snapStartHasBeenSet =
true;
546 m_snapStart = std::forward<SnapStartT>(value);
548 template <
typename SnapStartT = SnapStart>
561 template <
typename LoggingConfigT = LoggingConfig>
563 m_loggingConfigHasBeenSet =
true;
564 m_loggingConfig = std::forward<LoggingConfigT>(value);
566 template <
typename LoggingConfigT = LoggingConfig>
581 template <
typename TenancyConfigT = TenancyConfig>
583 m_tenancyConfigHasBeenSet =
true;
584 m_tenancyConfig = std::forward<TenancyConfigT>(value);
586 template <
typename TenancyConfigT = TenancyConfig>
594 bool m_functionNameHasBeenSet =
false;
597 bool m_runtimeHasBeenSet =
false;
600 bool m_roleHasBeenSet =
false;
603 bool m_handlerHasBeenSet =
false;
606 bool m_codeHasBeenSet =
false;
609 bool m_descriptionHasBeenSet =
false;
612 bool m_timeoutHasBeenSet =
false;
615 bool m_memorySizeHasBeenSet =
false;
617 bool m_publish{
false};
618 bool m_publishHasBeenSet =
false;
620 VpcConfig m_vpcConfig;
621 bool m_vpcConfigHasBeenSet =
false;
624 bool m_packageTypeHasBeenSet =
false;
626 DeadLetterConfig m_deadLetterConfig;
627 bool m_deadLetterConfigHasBeenSet =
false;
629 Environment m_environment;
630 bool m_environmentHasBeenSet =
false;
633 bool m_kMSKeyArnHasBeenSet =
false;
635 TracingConfig m_tracingConfig;
636 bool m_tracingConfigHasBeenSet =
false;
639 bool m_tagsHasBeenSet =
false;
642 bool m_layersHasBeenSet =
false;
645 bool m_fileSystemConfigsHasBeenSet =
false;
647 ImageConfig m_imageConfig;
648 bool m_imageConfigHasBeenSet =
false;
651 bool m_codeSigningConfigArnHasBeenSet =
false;
654 bool m_architecturesHasBeenSet =
false;
656 EphemeralStorage m_ephemeralStorage;
657 bool m_ephemeralStorageHasBeenSet =
false;
659 SnapStart m_snapStart;
660 bool m_snapStartHasBeenSet =
false;
662 LoggingConfig m_loggingConfig;
663 bool m_loggingConfigHasBeenSet =
false;
665 TenancyConfig m_tenancyConfig;
666 bool m_tenancyConfigHasBeenSet =
false;
bool RoleHasBeenSet() const
void SetHandler(HandlerT &&value)
const TenancyConfig & GetTenancyConfig() const
bool HandlerHasBeenSet() const
bool CodeSigningConfigArnHasBeenSet() const
CreateFunctionRequest & WithArchitectures(ArchitecturesT &&value)
const TracingConfig & GetTracingConfig() const
void SetPublish(bool value)
CreateFunctionRequest & AddLayers(LayersT &&value)
CreateFunctionRequest & WithTenancyConfig(TenancyConfigT &&value)
const Aws::String & GetKMSKeyArn() const
bool EphemeralStorageHasBeenSet() const
void SetPackageType(PackageType value)
const Aws::Vector< Architecture > & GetArchitectures() const
CreateFunctionRequest & WithImageConfig(ImageConfigT &&value)
void SetTimeout(int value)
void SetDescription(DescriptionT &&value)
CreateFunctionRequest & WithLoggingConfig(LoggingConfigT &&value)
bool DescriptionHasBeenSet() const
bool RuntimeHasBeenSet() const
void SetEnvironment(EnvironmentT &&value)
CreateFunctionRequest & WithRole(RoleT &&value)
CreateFunctionRequest & WithTimeout(int value)
CreateFunctionRequest & WithPublish(bool value)
const ImageConfig & GetImageConfig() const
void SetCodeSigningConfigArn(CodeSigningConfigArnT &&value)
void SetVpcConfig(VpcConfigT &&value)
void SetFunctionName(FunctionNameT &&value)
CreateFunctionRequest & WithKMSKeyArn(KMSKeyArnT &&value)
CreateFunctionRequest & WithTags(TagsT &&value)
const Aws::String & GetRole() const
bool SnapStartHasBeenSet() const
void SetRole(RoleT &&value)
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
CreateFunctionRequest & WithMemorySize(int value)
const Aws::String & GetDescription() const
CreateFunctionRequest & WithDeadLetterConfig(DeadLetterConfigT &&value)
const EphemeralStorage & GetEphemeralStorage() const
void SetArchitectures(ArchitecturesT &&value)
bool MemorySizeHasBeenSet() const
bool CodeHasBeenSet() const
CreateFunctionRequest & WithFunctionName(FunctionNameT &&value)
bool VpcConfigHasBeenSet() const
bool TimeoutHasBeenSet() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
CreateFunctionRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetHandler() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool FunctionNameHasBeenSet() const
CreateFunctionRequest & AddArchitectures(Architecture value)
bool ImageConfigHasBeenSet() const
const VpcConfig & GetVpcConfig() const
const FunctionCode & GetCode() const
const Environment & GetEnvironment() const
Runtime GetRuntime() const
const LoggingConfig & GetLoggingConfig() const
bool FileSystemConfigsHasBeenSet() const
const Aws::Vector< Aws::String > & GetLayers() const
void SetKMSKeyArn(KMSKeyArnT &&value)
bool DeadLetterConfigHasBeenSet() const
bool PublishHasBeenSet() const
bool LayersHasBeenSet() const
const Aws::String & GetFunctionName() const
const Aws::String & GetCodeSigningConfigArn() const
PackageType GetPackageType() const
void SetMemorySize(int value)
bool TracingConfigHasBeenSet() const
AWS_LAMBDA_API CreateFunctionRequest()=default
void SetLayers(LayersT &&value)
CreateFunctionRequest & WithHandler(HandlerT &&value)
bool TenancyConfigHasBeenSet() const
CreateFunctionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFunctionRequest & AddFileSystemConfigs(FileSystemConfigsT &&value)
void SetDeadLetterConfig(DeadLetterConfigT &&value)
void SetTags(TagsT &&value)
void SetFileSystemConfigs(FileSystemConfigsT &&value)
const SnapStart & GetSnapStart() const
CreateFunctionRequest & WithCode(CodeT &&value)
CreateFunctionRequest & WithSnapStart(SnapStartT &&value)
void SetSnapStart(SnapStartT &&value)
int GetMemorySize() const
CreateFunctionRequest & WithVpcConfig(VpcConfigT &&value)
void SetImageConfig(ImageConfigT &&value)
CreateFunctionRequest & WithPackageType(PackageType value)
void SetCode(CodeT &&value)
CreateFunctionRequest & WithFileSystemConfigs(FileSystemConfigsT &&value)
void SetRuntime(Runtime value)
CreateFunctionRequest & WithEphemeralStorage(EphemeralStorageT &&value)
void SetTenancyConfig(TenancyConfigT &&value)
virtual const char * GetServiceRequestName() const override
void SetEphemeralStorage(EphemeralStorageT &&value)
CreateFunctionRequest & WithTracingConfig(TracingConfigT &&value)
bool ArchitecturesHasBeenSet() const
bool KMSKeyArnHasBeenSet() const
void SetLoggingConfig(LoggingConfigT &&value)
const DeadLetterConfig & GetDeadLetterConfig() const
CreateFunctionRequest & WithLayers(LayersT &&value)
bool EnvironmentHasBeenSet() const
void SetTracingConfig(TracingConfigT &&value)
CreateFunctionRequest & WithEnvironment(EnvironmentT &&value)
CreateFunctionRequest & WithCodeSigningConfigArn(CodeSigningConfigArnT &&value)
bool PackageTypeHasBeenSet() const
CreateFunctionRequest & WithRuntime(Runtime value)
bool TagsHasBeenSet() const
bool LoggingConfigHasBeenSet() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector