AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateFunctionRequest.h
1
6#pragma once
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>
31
32#include <utility>
33
34namespace Aws {
35namespace Lambda {
36namespace Model {
37
41 public:
42 AWS_LAMBDA_API CreateFunctionRequest() = default;
43
44 // Service request name is the Operation name which will send this request out,
45 // each operation should has unique request name, so that we can get operation's name from this request.
46 // Note: this is not true for response, multiple operations may have the same response name,
47 // so we can not get operation's name from response.
48 inline virtual const char* GetServiceRequestName() const override { return "CreateFunction"; }
49
50 AWS_LAMBDA_API Aws::String SerializePayload() const override;
51
53
63 inline const Aws::String& GetFunctionName() const { return m_functionName; }
64 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
65 template <typename FunctionNameT = Aws::String>
66 void SetFunctionName(FunctionNameT&& value) {
67 m_functionNameHasBeenSet = true;
68 m_functionName = std::forward<FunctionNameT>(value);
69 }
70 template <typename FunctionNameT = Aws::String>
71 CreateFunctionRequest& WithFunctionName(FunctionNameT&& value) {
72 SetFunctionName(std::forward<FunctionNameT>(value));
73 return *this;
74 }
76
78
92 inline Runtime GetRuntime() const { return m_runtime; }
93 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
94 inline void SetRuntime(Runtime value) {
95 m_runtimeHasBeenSet = true;
96 m_runtime = value;
97 }
99 SetRuntime(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetRole() const { return m_role; }
109 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
110 template <typename RoleT = Aws::String>
111 void SetRole(RoleT&& value) {
112 m_roleHasBeenSet = true;
113 m_role = std::forward<RoleT>(value);
114 }
115 template <typename RoleT = Aws::String>
117 SetRole(std::forward<RoleT>(value));
118 return *this;
119 }
121
123
131 inline const Aws::String& GetHandler() const { return m_handler; }
132 inline bool HandlerHasBeenSet() const { return m_handlerHasBeenSet; }
133 template <typename HandlerT = Aws::String>
134 void SetHandler(HandlerT&& value) {
135 m_handlerHasBeenSet = true;
136 m_handler = std::forward<HandlerT>(value);
137 }
138 template <typename HandlerT = Aws::String>
140 SetHandler(std::forward<HandlerT>(value));
141 return *this;
142 }
144
146
149 inline const FunctionCode& GetCode() const { return m_code; }
150 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
151 template <typename CodeT = FunctionCode>
152 void SetCode(CodeT&& value) {
153 m_codeHasBeenSet = true;
154 m_code = std::forward<CodeT>(value);
155 }
156 template <typename CodeT = FunctionCode>
158 SetCode(std::forward<CodeT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetDescription() const { return m_description; }
168 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 template <typename DescriptionT = Aws::String>
170 void SetDescription(DescriptionT&& value) {
171 m_descriptionHasBeenSet = true;
172 m_description = std::forward<DescriptionT>(value);
173 }
174 template <typename DescriptionT = Aws::String>
175 CreateFunctionRequest& WithDescription(DescriptionT&& value) {
176 SetDescription(std::forward<DescriptionT>(value));
177 return *this;
178 }
180
182
192 inline int GetTimeout() const { return m_timeout; }
193 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
194 inline void SetTimeout(int value) {
195 m_timeoutHasBeenSet = true;
196 m_timeout = value;
197 }
199 SetTimeout(value);
200 return *this;
201 }
203
205
212 inline int GetMemorySize() const { return m_memorySize; }
213 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
214 inline void SetMemorySize(int value) {
215 m_memorySizeHasBeenSet = true;
216 m_memorySize = value;
217 }
219 SetMemorySize(value);
220 return *this;
221 }
223
225
228 inline bool GetPublish() const { return m_publish; }
229 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
230 inline void SetPublish(bool value) {
231 m_publishHasBeenSet = true;
232 m_publish = value;
233 }
234 inline CreateFunctionRequest& WithPublish(bool value) {
235 SetPublish(value);
236 return *this;
237 }
239
241
244 inline FunctionVersionLatestPublished GetPublishTo() const { return m_publishTo; }
245 inline bool PublishToHasBeenSet() const { return m_publishToHasBeenSet; }
247 m_publishToHasBeenSet = true;
248 m_publishTo = value;
249 }
251 SetPublishTo(value);
252 return *this;
253 }
255
257
265 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
266 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
267 template <typename VpcConfigT = VpcConfig>
268 void SetVpcConfig(VpcConfigT&& value) {
269 m_vpcConfigHasBeenSet = true;
270 m_vpcConfig = std::forward<VpcConfigT>(value);
271 }
272 template <typename VpcConfigT = VpcConfig>
274 SetVpcConfig(std::forward<VpcConfigT>(value));
275 return *this;
276 }
278
280
284 inline PackageType GetPackageType() const { return m_packageType; }
285 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
286 inline void SetPackageType(PackageType value) {
287 m_packageTypeHasBeenSet = true;
288 m_packageType = value;
289 }
291 SetPackageType(value);
292 return *this;
293 }
295
297
304 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
305 inline bool DeadLetterConfigHasBeenSet() const { return m_deadLetterConfigHasBeenSet; }
306 template <typename DeadLetterConfigT = DeadLetterConfig>
307 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
308 m_deadLetterConfigHasBeenSet = true;
309 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
310 }
311 template <typename DeadLetterConfigT = DeadLetterConfig>
312 CreateFunctionRequest& WithDeadLetterConfig(DeadLetterConfigT&& value) {
313 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
314 return *this;
315 }
317
319
323 inline const Environment& GetEnvironment() const { return m_environment; }
324 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
325 template <typename EnvironmentT = Environment>
326 void SetEnvironment(EnvironmentT&& value) {
327 m_environmentHasBeenSet = true;
328 m_environment = std::forward<EnvironmentT>(value);
329 }
330 template <typename EnvironmentT = Environment>
331 CreateFunctionRequest& WithEnvironment(EnvironmentT&& value) {
332 SetEnvironment(std::forward<EnvironmentT>(value));
333 return *this;
334 }
336
338
361 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
362 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
363 template <typename KMSKeyArnT = Aws::String>
364 void SetKMSKeyArn(KMSKeyArnT&& value) {
365 m_kMSKeyArnHasBeenSet = true;
366 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
367 }
368 template <typename KMSKeyArnT = Aws::String>
370 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
371 return *this;
372 }
374
376
381 inline const TracingConfig& GetTracingConfig() const { return m_tracingConfig; }
382 inline bool TracingConfigHasBeenSet() const { return m_tracingConfigHasBeenSet; }
383 template <typename TracingConfigT = TracingConfig>
384 void SetTracingConfig(TracingConfigT&& value) {
385 m_tracingConfigHasBeenSet = true;
386 m_tracingConfig = std::forward<TracingConfigT>(value);
387 }
388 template <typename TracingConfigT = TracingConfig>
389 CreateFunctionRequest& WithTracingConfig(TracingConfigT&& value) {
390 SetTracingConfig(std::forward<TracingConfigT>(value));
391 return *this;
392 }
394
396
401 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
402 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
403 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
404 void SetTags(TagsT&& value) {
405 m_tagsHasBeenSet = true;
406 m_tags = std::forward<TagsT>(value);
407 }
408 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
410 SetTags(std::forward<TagsT>(value));
411 return *this;
412 }
413 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
414 CreateFunctionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
415 m_tagsHasBeenSet = true;
416 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
417 return *this;
418 }
420
422
428 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
429 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
430 template <typename LayersT = Aws::Vector<Aws::String>>
431 void SetLayers(LayersT&& value) {
432 m_layersHasBeenSet = true;
433 m_layers = std::forward<LayersT>(value);
434 }
435 template <typename LayersT = Aws::Vector<Aws::String>>
437 SetLayers(std::forward<LayersT>(value));
438 return *this;
439 }
440 template <typename LayersT = Aws::String>
442 m_layersHasBeenSet = true;
443 m_layers.emplace_back(std::forward<LayersT>(value));
444 return *this;
445 }
447
449
453 inline const Aws::Vector<FileSystemConfig>& GetFileSystemConfigs() const { return m_fileSystemConfigs; }
454 inline bool FileSystemConfigsHasBeenSet() const { return m_fileSystemConfigsHasBeenSet; }
455 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
456 void SetFileSystemConfigs(FileSystemConfigsT&& value) {
457 m_fileSystemConfigsHasBeenSet = true;
458 m_fileSystemConfigs = std::forward<FileSystemConfigsT>(value);
459 }
460 template <typename FileSystemConfigsT = Aws::Vector<FileSystemConfig>>
461 CreateFunctionRequest& WithFileSystemConfigs(FileSystemConfigsT&& value) {
462 SetFileSystemConfigs(std::forward<FileSystemConfigsT>(value));
463 return *this;
464 }
465 template <typename FileSystemConfigsT = FileSystemConfig>
466 CreateFunctionRequest& AddFileSystemConfigs(FileSystemConfigsT&& value) {
467 m_fileSystemConfigsHasBeenSet = true;
468 m_fileSystemConfigs.emplace_back(std::forward<FileSystemConfigsT>(value));
469 return *this;
470 }
472
474
479 inline const Aws::String& GetCodeSigningConfigArn() const { return m_codeSigningConfigArn; }
480 inline bool CodeSigningConfigArnHasBeenSet() const { return m_codeSigningConfigArnHasBeenSet; }
481 template <typename CodeSigningConfigArnT = Aws::String>
482 void SetCodeSigningConfigArn(CodeSigningConfigArnT&& value) {
483 m_codeSigningConfigArnHasBeenSet = true;
484 m_codeSigningConfigArn = std::forward<CodeSigningConfigArnT>(value);
485 }
486 template <typename CodeSigningConfigArnT = Aws::String>
487 CreateFunctionRequest& WithCodeSigningConfigArn(CodeSigningConfigArnT&& value) {
488 SetCodeSigningConfigArn(std::forward<CodeSigningConfigArnT>(value));
489 return *this;
490 }
492
494
499 inline const ImageConfig& GetImageConfig() const { return m_imageConfig; }
500 inline bool ImageConfigHasBeenSet() const { return m_imageConfigHasBeenSet; }
501 template <typename ImageConfigT = ImageConfig>
502 void SetImageConfig(ImageConfigT&& value) {
503 m_imageConfigHasBeenSet = true;
504 m_imageConfig = std::forward<ImageConfigT>(value);
505 }
506 template <typename ImageConfigT = ImageConfig>
507 CreateFunctionRequest& WithImageConfig(ImageConfigT&& value) {
508 SetImageConfig(std::forward<ImageConfigT>(value));
509 return *this;
510 }
512
514
519 inline const Aws::Vector<Architecture>& GetArchitectures() const { return m_architectures; }
520 inline bool ArchitecturesHasBeenSet() const { return m_architecturesHasBeenSet; }
521 template <typename ArchitecturesT = Aws::Vector<Architecture>>
522 void SetArchitectures(ArchitecturesT&& value) {
523 m_architecturesHasBeenSet = true;
524 m_architectures = std::forward<ArchitecturesT>(value);
525 }
526 template <typename ArchitecturesT = Aws::Vector<Architecture>>
527 CreateFunctionRequest& WithArchitectures(ArchitecturesT&& value) {
528 SetArchitectures(std::forward<ArchitecturesT>(value));
529 return *this;
530 }
532 m_architecturesHasBeenSet = true;
533 m_architectures.push_back(value);
534 return *this;
535 }
537
539
547 inline const EphemeralStorage& GetEphemeralStorage() const { return m_ephemeralStorage; }
548 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
549 template <typename EphemeralStorageT = EphemeralStorage>
550 void SetEphemeralStorage(EphemeralStorageT&& value) {
551 m_ephemeralStorageHasBeenSet = true;
552 m_ephemeralStorage = std::forward<EphemeralStorageT>(value);
553 }
554 template <typename EphemeralStorageT = EphemeralStorage>
555 CreateFunctionRequest& WithEphemeralStorage(EphemeralStorageT&& value) {
556 SetEphemeralStorage(std::forward<EphemeralStorageT>(value));
557 return *this;
558 }
560
562
567 inline const SnapStart& GetSnapStart() const { return m_snapStart; }
568 inline bool SnapStartHasBeenSet() const { return m_snapStartHasBeenSet; }
569 template <typename SnapStartT = SnapStart>
570 void SetSnapStart(SnapStartT&& value) {
571 m_snapStartHasBeenSet = true;
572 m_snapStart = std::forward<SnapStartT>(value);
573 }
574 template <typename SnapStartT = SnapStart>
576 SetSnapStart(std::forward<SnapStartT>(value));
577 return *this;
578 }
580
582
585 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
586 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
587 template <typename LoggingConfigT = LoggingConfig>
588 void SetLoggingConfig(LoggingConfigT&& value) {
589 m_loggingConfigHasBeenSet = true;
590 m_loggingConfig = std::forward<LoggingConfigT>(value);
591 }
592 template <typename LoggingConfigT = LoggingConfig>
593 CreateFunctionRequest& WithLoggingConfig(LoggingConfigT&& value) {
594 SetLoggingConfig(std::forward<LoggingConfigT>(value));
595 return *this;
596 }
598
600
605 inline const TenancyConfig& GetTenancyConfig() const { return m_tenancyConfig; }
606 inline bool TenancyConfigHasBeenSet() const { return m_tenancyConfigHasBeenSet; }
607 template <typename TenancyConfigT = TenancyConfig>
608 void SetTenancyConfig(TenancyConfigT&& value) {
609 m_tenancyConfigHasBeenSet = true;
610 m_tenancyConfig = std::forward<TenancyConfigT>(value);
611 }
612 template <typename TenancyConfigT = TenancyConfig>
613 CreateFunctionRequest& WithTenancyConfig(TenancyConfigT&& value) {
614 SetTenancyConfig(std::forward<TenancyConfigT>(value));
615 return *this;
616 }
618
620
624 inline const CapacityProviderConfig& GetCapacityProviderConfig() const { return m_capacityProviderConfig; }
625 inline bool CapacityProviderConfigHasBeenSet() const { return m_capacityProviderConfigHasBeenSet; }
626 template <typename CapacityProviderConfigT = CapacityProviderConfig>
627 void SetCapacityProviderConfig(CapacityProviderConfigT&& value) {
628 m_capacityProviderConfigHasBeenSet = true;
629 m_capacityProviderConfig = std::forward<CapacityProviderConfigT>(value);
630 }
631 template <typename CapacityProviderConfigT = CapacityProviderConfig>
632 CreateFunctionRequest& WithCapacityProviderConfig(CapacityProviderConfigT&& value) {
633 SetCapacityProviderConfig(std::forward<CapacityProviderConfigT>(value));
634 return *this;
635 }
637
639
644 inline const DurableConfig& GetDurableConfig() const { return m_durableConfig; }
645 inline bool DurableConfigHasBeenSet() const { return m_durableConfigHasBeenSet; }
646 template <typename DurableConfigT = DurableConfig>
647 void SetDurableConfig(DurableConfigT&& value) {
648 m_durableConfigHasBeenSet = true;
649 m_durableConfig = std::forward<DurableConfigT>(value);
650 }
651 template <typename DurableConfigT = DurableConfig>
652 CreateFunctionRequest& WithDurableConfig(DurableConfigT&& value) {
653 SetDurableConfig(std::forward<DurableConfigT>(value));
654 return *this;
655 }
657
659
663 inline const FunctionRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
664 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
665 template <typename RuntimeConfigT = FunctionRuntimeConfig>
666 void SetRuntimeConfig(RuntimeConfigT&& value) {
667 m_runtimeConfigHasBeenSet = true;
668 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
669 }
670 template <typename RuntimeConfigT = FunctionRuntimeConfig>
671 CreateFunctionRequest& WithRuntimeConfig(RuntimeConfigT&& value) {
672 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
673 return *this;
674 }
676
678
681 inline const AcceleratorConfig& GetAcceleratorConfig() const { return m_acceleratorConfig; }
682 inline bool AcceleratorConfigHasBeenSet() const { return m_acceleratorConfigHasBeenSet; }
683 template <typename AcceleratorConfigT = AcceleratorConfig>
684 void SetAcceleratorConfig(AcceleratorConfigT&& value) {
685 m_acceleratorConfigHasBeenSet = true;
686 m_acceleratorConfig = std::forward<AcceleratorConfigT>(value);
687 }
688 template <typename AcceleratorConfigT = AcceleratorConfig>
689 CreateFunctionRequest& WithAcceleratorConfig(AcceleratorConfigT&& value) {
690 SetAcceleratorConfig(std::forward<AcceleratorConfigT>(value));
691 return *this;
692 }
694 private:
695 Aws::String m_functionName;
696
697 Runtime m_runtime{Runtime::NOT_SET};
698
699 Aws::String m_role;
700
701 Aws::String m_handler;
702
703 FunctionCode m_code;
704
705 Aws::String m_description;
706
707 int m_timeout{0};
708
709 int m_memorySize{0};
710
711 bool m_publish{false};
712
714
715 VpcConfig m_vpcConfig;
716
717 PackageType m_packageType{PackageType::NOT_SET};
718
719 DeadLetterConfig m_deadLetterConfig;
720
721 Environment m_environment;
722
723 Aws::String m_kMSKeyArn;
724
725 TracingConfig m_tracingConfig;
726
728
730
731 Aws::Vector<FileSystemConfig> m_fileSystemConfigs;
732
733 Aws::String m_codeSigningConfigArn;
734
735 ImageConfig m_imageConfig;
736
737 Aws::Vector<Architecture> m_architectures;
738
739 EphemeralStorage m_ephemeralStorage;
740
741 SnapStart m_snapStart;
742
743 LoggingConfig m_loggingConfig;
744
745 TenancyConfig m_tenancyConfig;
746
747 CapacityProviderConfig m_capacityProviderConfig;
748
749 DurableConfig m_durableConfig;
750
751 FunctionRuntimeConfig m_runtimeConfig;
752
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;
784};
785
786} // namespace Model
787} // namespace Lambda
788} // namespace Aws
CreateFunctionRequest & WithPublishTo(FunctionVersionLatestPublished value)
CreateFunctionRequest & WithArchitectures(ArchitecturesT &&value)
const CapacityProviderConfig & GetCapacityProviderConfig() const
CreateFunctionRequest & AddLayers(LayersT &&value)
CreateFunctionRequest & WithTenancyConfig(TenancyConfigT &&value)
const Aws::Vector< Architecture > & GetArchitectures() const
CreateFunctionRequest & WithImageConfig(ImageConfigT &&value)
CreateFunctionRequest & WithLoggingConfig(LoggingConfigT &&value)
CreateFunctionRequest & WithRole(RoleT &&value)
CreateFunctionRequest & WithTimeout(int value)
CreateFunctionRequest & WithPublish(bool value)
void SetCodeSigningConfigArn(CodeSigningConfigArnT &&value)
CreateFunctionRequest & WithKMSKeyArn(KMSKeyArnT &&value)
CreateFunctionRequest & WithTags(TagsT &&value)
const FunctionRuntimeConfig & GetRuntimeConfig() const
const Aws::Vector< FileSystemConfig > & GetFileSystemConfigs() const
CreateFunctionRequest & WithMemorySize(int value)
void SetCapacityProviderConfig(CapacityProviderConfigT &&value)
CreateFunctionRequest & WithDeadLetterConfig(DeadLetterConfigT &&value)
const EphemeralStorage & GetEphemeralStorage() const
CreateFunctionRequest & WithFunctionName(FunctionNameT &&value)
const AcceleratorConfig & GetAcceleratorConfig() const
AWS_LAMBDA_API Aws::String SerializePayload() const override
CreateFunctionRequest & WithDescription(DescriptionT &&value)
CreateFunctionRequest & WithDurableConfig(DurableConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFunctionRequest & AddArchitectures(Architecture value)
void SetAcceleratorConfig(AcceleratorConfigT &&value)
const Aws::Vector< Aws::String > & GetLayers() const
const Aws::String & GetCodeSigningConfigArn() const
AWS_LAMBDA_API CreateFunctionRequest()=default
CreateFunctionRequest & WithCapacityProviderConfig(CapacityProviderConfigT &&value)
CreateFunctionRequest & WithHandler(HandlerT &&value)
CreateFunctionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFunctionRequest & AddFileSystemConfigs(FileSystemConfigsT &&value)
void SetDeadLetterConfig(DeadLetterConfigT &&value)
void SetFileSystemConfigs(FileSystemConfigsT &&value)
CreateFunctionRequest & WithCode(CodeT &&value)
CreateFunctionRequest & WithSnapStart(SnapStartT &&value)
CreateFunctionRequest & WithVpcConfig(VpcConfigT &&value)
CreateFunctionRequest & WithPackageType(PackageType value)
CreateFunctionRequest & WithFileSystemConfigs(FileSystemConfigsT &&value)
CreateFunctionRequest & WithEphemeralStorage(EphemeralStorageT &&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)
const DeadLetterConfig & GetDeadLetterConfig() const
void SetPublishTo(FunctionVersionLatestPublished value)
CreateFunctionRequest & WithLayers(LayersT &&value)
CreateFunctionRequest & WithEnvironment(EnvironmentT &&value)
CreateFunctionRequest & WithCodeSigningConfigArn(CodeSigningConfigArnT &&value)
CreateFunctionRequest & WithRuntime(Runtime value)
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