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/AcceleratorConfig.h>
13#include <aws/lambda/model/Architecture.h>
14#include <aws/lambda/model/CapacityProviderConfig.h>
15#include <aws/lambda/model/DeadLetterConfig.h>
16#include <aws/lambda/model/DurableConfig.h>
17#include <aws/lambda/model/Environment.h>
18#include <aws/lambda/model/EphemeralStorage.h>
19#include <aws/lambda/model/FileSystemConfig.h>
20#include <aws/lambda/model/FunctionCode.h>
21#include <aws/lambda/model/FunctionRuntimeConfig.h>
22#include <aws/lambda/model/FunctionVersionLatestPublished.h>
23#include <aws/lambda/model/ImageConfig.h>
24#include <aws/lambda/model/LoggingConfig.h>
25#include <aws/lambda/model/PackageType.h>
26#include <aws/lambda/model/Runtime.h>
27#include <aws/lambda/model/SnapStart.h>
28#include <aws/lambda/model/TenancyConfig.h>
29#include <aws/lambda/model/TracingConfig.h>
30#include <aws/lambda/model/VpcConfig.h>
65 template <
typename FunctionNameT = Aws::String>
67 m_functionNameHasBeenSet =
true;
68 m_functionName = std::forward<FunctionNameT>(value);
70 template <
typename FunctionNameT = Aws::String>
95 m_runtimeHasBeenSet =
true;
110 template <
typename RoleT = Aws::String>
112 m_roleHasBeenSet =
true;
113 m_role = std::forward<RoleT>(value);
115 template <
typename RoleT = Aws::String>
117 SetRole(std::forward<RoleT>(value));
133 template <
typename HandlerT = Aws::String>
135 m_handlerHasBeenSet =
true;
136 m_handler = std::forward<HandlerT>(value);
138 template <
typename HandlerT = Aws::String>
151 template <
typename CodeT = FunctionCode>
153 m_codeHasBeenSet =
true;
154 m_code = std::forward<CodeT>(value);
156 template <
typename CodeT = FunctionCode>
158 SetCode(std::forward<CodeT>(value));
169 template <
typename DescriptionT = Aws::String>
171 m_descriptionHasBeenSet =
true;
172 m_description = std::forward<DescriptionT>(value);
174 template <
typename DescriptionT = Aws::String>
195 m_timeoutHasBeenSet =
true;
215 m_memorySizeHasBeenSet =
true;
216 m_memorySize = value;
231 m_publishHasBeenSet =
true;
247 m_publishToHasBeenSet =
true;
267 template <
typename VpcConfigT = VpcConfig>
269 m_vpcConfigHasBeenSet =
true;
270 m_vpcConfig = std::forward<VpcConfigT>(value);
272 template <
typename VpcConfigT = VpcConfig>
287 m_packageTypeHasBeenSet =
true;
288 m_packageType = value;
306 template <
typename DeadLetterConfigT = DeadLetterConfig>
308 m_deadLetterConfigHasBeenSet =
true;
309 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
311 template <
typename DeadLetterConfigT = DeadLetterConfig>
325 template <
typename EnvironmentT = Environment>
327 m_environmentHasBeenSet =
true;
328 m_environment = std::forward<EnvironmentT>(value);
330 template <
typename EnvironmentT = Environment>
363 template <
typename KMSKeyArnT = Aws::String>
365 m_kMSKeyArnHasBeenSet =
true;
366 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
368 template <
typename KMSKeyArnT = Aws::String>
383 template <
typename TracingConfigT = TracingConfig>
385 m_tracingConfigHasBeenSet =
true;
386 m_tracingConfig = std::forward<TracingConfigT>(value);
388 template <
typename TracingConfigT = TracingConfig>
403 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
405 m_tagsHasBeenSet =
true;
406 m_tags = std::forward<TagsT>(value);
408 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
410 SetTags(std::forward<TagsT>(value));
413 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
415 m_tagsHasBeenSet =
true;
416 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
430 template <
typename LayersT = Aws::Vector<Aws::String>>
432 m_layersHasBeenSet =
true;
433 m_layers = std::forward<LayersT>(value);
435 template <
typename LayersT = Aws::Vector<Aws::String>>
440 template <
typename LayersT = Aws::String>
442 m_layersHasBeenSet =
true;
443 m_layers.emplace_back(std::forward<LayersT>(value));
455 template <
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
457 m_fileSystemConfigsHasBeenSet =
true;
458 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
460 template <
typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
465 template <
typename FileSystemConfigsT = FileSystemConfig>
467 m_fileSystemConfigsHasBeenSet =
true;
468 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
481 template <
typename CodeSigningConfigArnT = Aws::String>
483 m_codeSigningConfigArnHasBeenSet =
true;
484 m_codeSigningConfigArn = std::forward<CodeSigningConfigArnT>(value);
486 template <
typename CodeSigningConfigArnT = Aws::String>
501 template <
typename ImageConfigT = ImageConfig>
503 m_imageConfigHasBeenSet =
true;
504 m_imageConfig = std::forward<ImageConfigT>(value);
506 template <
typename ImageConfigT = ImageConfig>
521 template <
typename ArchitecturesT = Aws::Vector<Architecture>>
523 m_architecturesHasBeenSet =
true;
524 m_architectures = std::forward<ArchitecturesT>(value);
526 template <
typename ArchitecturesT = Aws::Vector<Architecture>>
532 m_architecturesHasBeenSet =
true;
533 m_architectures.push_back(value);
549 template <
typename EphemeralStorageT = EphemeralStorage>
551 m_ephemeralStorageHasBeenSet =
true;
552 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
554 template <
typename EphemeralStorageT = EphemeralStorage>
569 template <
typename SnapStartT = SnapStart>
571 m_snapStartHasBeenSet =
true;
572 m_snapStart = std::forward<SnapStartT>(value);
574 template <
typename SnapStartT = SnapStart>
587 template <
typename LoggingConfigT = LoggingConfig>
589 m_loggingConfigHasBeenSet =
true;
590 m_loggingConfig = std::forward<LoggingConfigT>(value);
592 template <
typename LoggingConfigT = LoggingConfig>
607 template <
typename TenancyConfigT = TenancyConfig>
609 m_tenancyConfigHasBeenSet =
true;
610 m_tenancyConfig = std::forward<TenancyConfigT>(value);
612 template <
typename TenancyConfigT = TenancyConfig>
626 template <
typename CapacityProv
iderConfigT = CapacityProv
iderConfig>
628 m_capacityProviderConfigHasBeenSet =
true;
629 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
631 template <
typename CapacityProv
iderConfigT = CapacityProv
iderConfig>
646 template <
typename DurableConfigT = DurableConfig>
648 m_durableConfigHasBeenSet =
true;
649 m_durableConfig = std::forward<DurableConfigT>(value);
651 template <
typename DurableConfigT = DurableConfig>
665 template <
typename RuntimeConfigT = FunctionRuntimeConfig>
667 m_runtimeConfigHasBeenSet =
true;
668 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
670 template <
typename RuntimeConfigT = FunctionRuntimeConfig>
683 template <
typename AcceleratorConfigT = AcceleratorConfig>
685 m_acceleratorConfigHasBeenSet =
true;
686 m_acceleratorConfig = std::forward<AcceleratorConfigT>(value);
688 template <
typename AcceleratorConfigT = AcceleratorConfig>
711 bool m_publish{
false};
715 VpcConfig m_vpcConfig;
719 DeadLetterConfig m_deadLetterConfig;
721 Environment m_environment;
725 TracingConfig m_tracingConfig;
735 ImageConfig m_imageConfig;
739 EphemeralStorage m_ephemeralStorage;
741 SnapStart m_snapStart;
743 LoggingConfig m_loggingConfig;
745 TenancyConfig m_tenancyConfig;
747 CapacityProviderConfig m_capacityProviderConfig;
749 DurableConfig m_durableConfig;
751 FunctionRuntimeConfig m_runtimeConfig;
753 AcceleratorConfig m_acceleratorConfig;
754 bool m_functionNameHasBeenSet =
false;
755 bool m_runtimeHasBeenSet =
false;
756 bool m_roleHasBeenSet =
false;
757 bool m_handlerHasBeenSet =
false;
758 bool m_codeHasBeenSet =
false;
759 bool m_descriptionHasBeenSet =
false;
760 bool m_timeoutHasBeenSet =
false;
761 bool m_memorySizeHasBeenSet =
false;
762 bool m_publishHasBeenSet =
false;
763 bool m_publishToHasBeenSet =
false;
764 bool m_vpcConfigHasBeenSet =
false;
765 bool m_packageTypeHasBeenSet =
false;
766 bool m_deadLetterConfigHasBeenSet =
false;
767 bool m_environmentHasBeenSet =
false;
768 bool m_kMSKeyArnHasBeenSet =
false;
769 bool m_tracingConfigHasBeenSet =
false;
770 bool m_tagsHasBeenSet =
false;
771 bool m_layersHasBeenSet =
false;
772 bool m_fileSystemConfigsHasBeenSet =
false;
773 bool m_codeSigningConfigArnHasBeenSet =
false;
774 bool m_imageConfigHasBeenSet =
false;
775 bool m_architecturesHasBeenSet =
false;
776 bool m_ephemeralStorageHasBeenSet =
false;
777 bool m_snapStartHasBeenSet =
false;
778 bool m_loggingConfigHasBeenSet =
false;
779 bool m_tenancyConfigHasBeenSet =
false;
780 bool m_capacityProviderConfigHasBeenSet =
false;
781 bool m_durableConfigHasBeenSet =
false;
782 bool m_runtimeConfigHasBeenSet =
false;
783 bool m_acceleratorConfigHasBeenSet =
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)
bool RuntimeConfigHasBeenSet() const
CreateFunctionRequest & WithTags(TagsT &&value)
const FunctionRuntimeConfig & GetRuntimeConfig() const
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
const AcceleratorConfig & GetAcceleratorConfig() 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
void SetAcceleratorConfig(AcceleratorConfigT &&value)
const Environment & GetEnvironment() const
Runtime GetRuntime() const
const LoggingConfig & GetLoggingConfig() const
bool FileSystemConfigsHasBeenSet() const
const Aws::Vector< Aws::String > & GetLayers() const
void SetRuntimeConfig(RuntimeConfigT &&value)
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
bool AcceleratorConfigHasBeenSet() 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)
CreateFunctionRequest & WithRuntimeConfig(RuntimeConfigT &&value)
CreateFunctionRequest & WithAcceleratorConfig(AcceleratorConfigT &&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