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/CapacityProviderConfig.h>
14#include <aws/lambda/model/DeadLetterConfig.h>
15#include <aws/lambda/model/DurableConfig.h>
16#include <aws/lambda/model/Environment.h>
17#include <aws/lambda/model/EphemeralStorage.h>
18#include <aws/lambda/model/FileSystemConfig.h>
19#include <aws/lambda/model/FunctionCode.h>
20#include <aws/lambda/model/FunctionVersionLatestPublished.h>
21#include <aws/lambda/model/ImageConfig.h>
22#include <aws/lambda/model/LoggingConfig.h>
23#include <aws/lambda/model/PackageType.h>
24#include <aws/lambda/model/Runtime.h>
25#include <aws/lambda/model/SnapStart.h>
26#include <aws/lambda/model/TenancyConfig.h>
27#include <aws/lambda/model/TracingConfig.h>
28#include <aws/lambda/model/VpcConfig.h>
63 template <
typename FunctionNameT = Aws::String>
65 m_functionNameHasBeenSet =
true;
66 m_functionName = std::forward<FunctionNameT>(value);
68 template <
typename FunctionNameT = Aws::String>
93 m_runtimeHasBeenSet =
true;
108 template <
typename RoleT = Aws::String>
110 m_roleHasBeenSet =
true;
111 m_role = std::forward<RoleT>(value);
113 template <
typename RoleT = Aws::String>
115 SetRole(std::forward<RoleT>(value));
131 template <
typename HandlerT = Aws::String>
133 m_handlerHasBeenSet =
true;
134 m_handler = std::forward<HandlerT>(value);
136 template <
typename HandlerT = Aws::String>
149 template <
typename CodeT = FunctionCode>
151 m_codeHasBeenSet =
true;
152 m_code = std::forward<CodeT>(value);
154 template <
typename CodeT = FunctionCode>
156 SetCode(std::forward<CodeT>(value));
167 template <
typename DescriptionT = Aws::String>
169 m_descriptionHasBeenSet =
true;
170 m_description = std::forward<DescriptionT>(value);
172 template <
typename DescriptionT = Aws::String>
190 m_timeoutHasBeenSet =
true;
210 m_memorySizeHasBeenSet =
true;
211 m_memorySize = value;
226 m_publishHasBeenSet =
true;
246 template <
typename VpcConfigT = VpcConfig>
248 m_vpcConfigHasBeenSet =
true;
249 m_vpcConfig = std::forward<VpcConfigT>(value);
251 template <
typename VpcConfigT = VpcConfig>
266 m_packageTypeHasBeenSet =
true;
267 m_packageType = value;
285 template <
typename DeadLetterConfigT = DeadLetterConfig>
287 m_deadLetterConfigHasBeenSet =
true;
288 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
290 template <
typename DeadLetterConfigT = DeadLetterConfig>
304 template <
typename EnvironmentT = Environment>
306 m_environmentHasBeenSet =
true;
307 m_environment = std::forward<EnvironmentT>(value);
309 template <
typename EnvironmentT = Environment>
342 template <
typename KMSKeyArnT = Aws::String>
344 m_kMSKeyArnHasBeenSet =
true;
345 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
347 template <
typename KMSKeyArnT = Aws::String>
362 template <
typename TracingConfigT = TracingConfig>
364 m_tracingConfigHasBeenSet =
true;
365 m_tracingConfig = std::forward<TracingConfigT>(value);
367 template <
typename TracingConfigT = TracingConfig>
382 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
384 m_tagsHasBeenSet =
true;
385 m_tags = std::forward<TagsT>(value);
387 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
389 SetTags(std::forward<TagsT>(value));
392 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
394 m_tagsHasBeenSet =
true;
395 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
409 template <
typename LayersT = Aws::Vector<Aws::String>>
411 m_layersHasBeenSet =
true;
412 m_layers = std::forward<LayersT>(value);
414 template <
typename LayersT = Aws::Vector<Aws::String>>
419 template <
typename LayersT = Aws::String>
421 m_layersHasBeenSet =
true;
422 m_layers.emplace_back(std::forward<LayersT>(value));
433 template <
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
435 m_fileSystemConfigsHasBeenSet =
true;
436 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
438 template <
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
443 template <
typename FileSystemConfigsT = FileSystemConfig>
445 m_fileSystemConfigsHasBeenSet =
true;
446 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
459 template <
typename ImageConfigT = ImageConfig>
461 m_imageConfigHasBeenSet =
true;
462 m_imageConfig = std::forward<ImageConfigT>(value);
464 template <
typename ImageConfigT = ImageConfig>
479 template <
typename CodeSigningConfigArnT = Aws::String>
481 m_codeSigningConfigArnHasBeenSet =
true;
482 m_codeSigningConfigArn = std::forward<CodeSigningConfigArnT>(value);
484 template <
typename CodeSigningConfigArnT = Aws::String>
499 template <
typename ArchitecturesT = Aws::Vector<Architecture>>
501 m_architecturesHasBeenSet =
true;
502 m_architectures = std::forward<ArchitecturesT>(value);
504 template <
typename ArchitecturesT = Aws::Vector<Architecture>>
510 m_architecturesHasBeenSet =
true;
511 m_architectures.push_back(value);
526 template <
typename EphemeralStorageT = EphemeralStorage>
528 m_ephemeralStorageHasBeenSet =
true;
529 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
531 template <
typename EphemeralStorageT = EphemeralStorage>
546 template <
typename SnapStartT = SnapStart>
548 m_snapStartHasBeenSet =
true;
549 m_snapStart = std::forward<SnapStartT>(value);
551 template <
typename SnapStartT = SnapStart>
564 template <
typename LoggingConfigT = LoggingConfig>
566 m_loggingConfigHasBeenSet =
true;
567 m_loggingConfig = std::forward<LoggingConfigT>(value);
569 template <
typename LoggingConfigT = LoggingConfig>
583 template <
typename CapacityProv
iderConfigT = CapacityProv
iderConfig>
585 m_capacityProviderConfigHasBeenSet =
true;
586 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
588 template <
typename CapacityProv
iderConfigT = CapacityProv
iderConfig>
602 m_publishToHasBeenSet =
true;
619 template <
typename DurableConfigT = DurableConfig>
621 m_durableConfigHasBeenSet =
true;
622 m_durableConfig = std::forward<DurableConfigT>(value);
624 template <
typename DurableConfigT = DurableConfig>
639 template <
typename TenancyConfigT = TenancyConfig>
641 m_tenancyConfigHasBeenSet =
true;
642 m_tenancyConfig = std::forward<TenancyConfigT>(value);
644 template <
typename TenancyConfigT = TenancyConfig>
667 bool m_publish{
false};
669 VpcConfig m_vpcConfig;
673 DeadLetterConfig m_deadLetterConfig;
675 Environment m_environment;
679 TracingConfig m_tracingConfig;
687 ImageConfig m_imageConfig;
693 EphemeralStorage m_ephemeralStorage;
695 SnapStart m_snapStart;
697 LoggingConfig m_loggingConfig;
699 CapacityProviderConfig m_capacityProviderConfig;
703 DurableConfig m_durableConfig;
705 TenancyConfig m_tenancyConfig;
706 bool m_functionNameHasBeenSet =
false;
707 bool m_runtimeHasBeenSet =
false;
708 bool m_roleHasBeenSet =
false;
709 bool m_handlerHasBeenSet =
false;
710 bool m_codeHasBeenSet =
false;
711 bool m_descriptionHasBeenSet =
false;
712 bool m_timeoutHasBeenSet =
false;
713 bool m_memorySizeHasBeenSet =
false;
714 bool m_publishHasBeenSet =
false;
715 bool m_vpcConfigHasBeenSet =
false;
716 bool m_packageTypeHasBeenSet =
false;
717 bool m_deadLetterConfigHasBeenSet =
false;
718 bool m_environmentHasBeenSet =
false;
719 bool m_kMSKeyArnHasBeenSet =
false;
720 bool m_tracingConfigHasBeenSet =
false;
721 bool m_tagsHasBeenSet =
false;
722 bool m_layersHasBeenSet =
false;
723 bool m_fileSystemConfigsHasBeenSet =
false;
724 bool m_imageConfigHasBeenSet =
false;
725 bool m_codeSigningConfigArnHasBeenSet =
false;
726 bool m_architecturesHasBeenSet =
false;
727 bool m_ephemeralStorageHasBeenSet =
false;
728 bool m_snapStartHasBeenSet =
false;
729 bool m_loggingConfigHasBeenSet =
false;
730 bool m_capacityProviderConfigHasBeenSet =
false;
731 bool m_publishToHasBeenSet =
false;
732 bool m_durableConfigHasBeenSet =
false;
733 bool m_tenancyConfigHasBeenSet =
false;
bool RoleHasBeenSet() const
void SetHandler(HandlerT &&value)
const TenancyConfig & GetTenancyConfig() const
CreateFunctionRequest & WithPublishTo(FunctionVersionLatestPublished value)
bool HandlerHasBeenSet() const
bool CodeSigningConfigArnHasBeenSet() const
CreateFunctionRequest & WithArchitectures(ArchitecturesT &&value)
const TracingConfig & GetTracingConfig() const
const CapacityProviderConfig & GetCapacityProviderConfig() 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)
void SetCapacityProviderConfig(CapacityProviderConfigT &&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
const DurableConfig & GetDurableConfig() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
CreateFunctionRequest & WithDescription(DescriptionT &&value)
CreateFunctionRequest & WithDurableConfig(DurableConfigT &&value)
const Aws::String & GetHandler() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool FunctionNameHasBeenSet() const
bool DurableConfigHasBeenSet() const
bool CapacityProviderConfigHasBeenSet() 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 & WithCapacityProviderConfig(CapacityProviderConfigT &&value)
CreateFunctionRequest & WithHandler(HandlerT &&value)
bool PublishToHasBeenSet() const
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)
void SetDurableConfig(DurableConfigT &&value)
CreateFunctionRequest & WithEphemeralStorage(EphemeralStorageT &&value)
void SetTenancyConfig(TenancyConfigT &&value)
virtual const char * GetServiceRequestName() const override
void SetEphemeralStorage(EphemeralStorageT &&value)
FunctionVersionLatestPublished GetPublishTo() const
CreateFunctionRequest & WithTracingConfig(TracingConfigT &&value)
bool ArchitecturesHasBeenSet() const
bool KMSKeyArnHasBeenSet() const
void SetLoggingConfig(LoggingConfigT &&value)
const DeadLetterConfig & GetDeadLetterConfig() const
void SetPublishTo(FunctionVersionLatestPublished value)
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
FunctionVersionLatestPublished
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