#[non_exhaustive]pub struct CreateFunctionOutputBuilder { /* private fields */ }
Expand description
A builder for CreateFunctionOutput
.
Implementations§
source§impl CreateFunctionOutputBuilder
impl CreateFunctionOutputBuilder
sourcepub fn function_name(self, input: impl Into<String>) -> Self
pub fn function_name(self, input: impl Into<String>) -> Self
The name of the function.
sourcepub fn set_function_name(self, input: Option<String>) -> Self
pub fn set_function_name(self, input: Option<String>) -> Self
The name of the function.
sourcepub fn get_function_name(&self) -> &Option<String>
pub fn get_function_name(&self) -> &Option<String>
The name of the function.
sourcepub fn function_arn(self, input: impl Into<String>) -> Self
pub fn function_arn(self, input: impl Into<String>) -> Self
The function's Amazon Resource Name (ARN).
sourcepub fn set_function_arn(self, input: Option<String>) -> Self
pub fn set_function_arn(self, input: Option<String>) -> Self
The function's Amazon Resource Name (ARN).
sourcepub fn get_function_arn(&self) -> &Option<String>
pub fn get_function_arn(&self) -> &Option<String>
The function's Amazon Resource Name (ARN).
sourcepub fn runtime(self, input: Runtime) -> Self
pub fn runtime(self, input: Runtime) -> Self
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
sourcepub fn set_runtime(self, input: Option<Runtime>) -> Self
pub fn set_runtime(self, input: Option<Runtime>) -> Self
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
sourcepub fn get_runtime(&self) -> &Option<Runtime>
pub fn get_runtime(&self) -> &Option<Runtime>
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
sourcepub fn handler(self, input: impl Into<String>) -> Self
pub fn handler(self, input: impl Into<String>) -> Self
The function that Lambda calls to begin running your function.
sourcepub fn set_handler(self, input: Option<String>) -> Self
pub fn set_handler(self, input: Option<String>) -> Self
The function that Lambda calls to begin running your function.
sourcepub fn get_handler(&self) -> &Option<String>
pub fn get_handler(&self) -> &Option<String>
The function that Lambda calls to begin running your function.
sourcepub fn code_size(self, input: i64) -> Self
pub fn code_size(self, input: i64) -> Self
The size of the function's deployment package, in bytes.
sourcepub fn set_code_size(self, input: Option<i64>) -> Self
pub fn set_code_size(self, input: Option<i64>) -> Self
The size of the function's deployment package, in bytes.
sourcepub fn get_code_size(&self) -> &Option<i64>
pub fn get_code_size(&self) -> &Option<i64>
The size of the function's deployment package, in bytes.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The function's description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The function's description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The function's description.
sourcepub fn timeout(self, input: i32) -> Self
pub fn timeout(self, input: i32) -> Self
The amount of time in seconds that Lambda allows a function to run before stopping it.
sourcepub fn set_timeout(self, input: Option<i32>) -> Self
pub fn set_timeout(self, input: Option<i32>) -> Self
The amount of time in seconds that Lambda allows a function to run before stopping it.
sourcepub fn get_timeout(&self) -> &Option<i32>
pub fn get_timeout(&self) -> &Option<i32>
The amount of time in seconds that Lambda allows a function to run before stopping it.
sourcepub fn memory_size(self, input: i32) -> Self
pub fn memory_size(self, input: i32) -> Self
The amount of memory available to the function at runtime.
sourcepub fn set_memory_size(self, input: Option<i32>) -> Self
pub fn set_memory_size(self, input: Option<i32>) -> Self
The amount of memory available to the function at runtime.
sourcepub fn get_memory_size(&self) -> &Option<i32>
pub fn get_memory_size(&self) -> &Option<i32>
The amount of memory available to the function at runtime.
sourcepub fn last_modified(self, input: impl Into<String>) -> Self
pub fn last_modified(self, input: impl Into<String>) -> Self
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn set_last_modified(self, input: Option<String>) -> Self
pub fn set_last_modified(self, input: Option<String>) -> Self
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn get_last_modified(&self) -> &Option<String>
pub fn get_last_modified(&self) -> &Option<String>
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn code_sha256(self, input: impl Into<String>) -> Self
pub fn code_sha256(self, input: impl Into<String>) -> Self
The SHA256 hash of the function's deployment package.
sourcepub fn set_code_sha256(self, input: Option<String>) -> Self
pub fn set_code_sha256(self, input: Option<String>) -> Self
The SHA256 hash of the function's deployment package.
sourcepub fn get_code_sha256(&self) -> &Option<String>
pub fn get_code_sha256(&self) -> &Option<String>
The SHA256 hash of the function's deployment package.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the Lambda function.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the Lambda function.
sourcepub fn vpc_config(self, input: VpcConfigResponse) -> Self
pub fn vpc_config(self, input: VpcConfigResponse) -> Self
The function's networking configuration.
sourcepub fn set_vpc_config(self, input: Option<VpcConfigResponse>) -> Self
pub fn set_vpc_config(self, input: Option<VpcConfigResponse>) -> Self
The function's networking configuration.
sourcepub fn get_vpc_config(&self) -> &Option<VpcConfigResponse>
pub fn get_vpc_config(&self) -> &Option<VpcConfigResponse>
The function's networking configuration.
sourcepub fn dead_letter_config(self, input: DeadLetterConfig) -> Self
pub fn dead_letter_config(self, input: DeadLetterConfig) -> Self
The function's dead letter queue.
sourcepub fn set_dead_letter_config(self, input: Option<DeadLetterConfig>) -> Self
pub fn set_dead_letter_config(self, input: Option<DeadLetterConfig>) -> Self
The function's dead letter queue.
sourcepub fn get_dead_letter_config(&self) -> &Option<DeadLetterConfig>
pub fn get_dead_letter_config(&self) -> &Option<DeadLetterConfig>
The function's dead letter queue.
sourcepub fn environment(self, input: EnvironmentResponse) -> Self
pub fn environment(self, input: EnvironmentResponse) -> Self
The function's environment variables. Omitted from CloudTrail logs.
sourcepub fn set_environment(self, input: Option<EnvironmentResponse>) -> Self
pub fn set_environment(self, input: Option<EnvironmentResponse>) -> Self
The function's environment variables. Omitted from CloudTrail logs.
sourcepub fn get_environment(&self) -> &Option<EnvironmentResponse>
pub fn get_environment(&self) -> &Option<EnvironmentResponse>
The function's environment variables. Omitted from CloudTrail logs.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The KMS key that's used to encrypt the function's environment variables. When Lambda SnapStart is activated, this key is also used to encrypt the function's snapshot. This key is returned only if you've configured a customer managed key.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The KMS key that's used to encrypt the function's environment variables. When Lambda SnapStart is activated, this key is also used to encrypt the function's snapshot. This key is returned only if you've configured a customer managed key.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
The KMS key that's used to encrypt the function's environment variables. When Lambda SnapStart is activated, this key is also used to encrypt the function's snapshot. This key is returned only if you've configured a customer managed key.
sourcepub fn tracing_config(self, input: TracingConfigResponse) -> Self
pub fn tracing_config(self, input: TracingConfigResponse) -> Self
The function's X-Ray tracing configuration.
sourcepub fn set_tracing_config(self, input: Option<TracingConfigResponse>) -> Self
pub fn set_tracing_config(self, input: Option<TracingConfigResponse>) -> Self
The function's X-Ray tracing configuration.
sourcepub fn get_tracing_config(&self) -> &Option<TracingConfigResponse>
pub fn get_tracing_config(&self) -> &Option<TracingConfigResponse>
The function's X-Ray tracing configuration.
sourcepub fn master_arn(self, input: impl Into<String>) -> Self
pub fn master_arn(self, input: impl Into<String>) -> Self
For Lambda@Edge functions, the ARN of the main function.
sourcepub fn set_master_arn(self, input: Option<String>) -> Self
pub fn set_master_arn(self, input: Option<String>) -> Self
For Lambda@Edge functions, the ARN of the main function.
sourcepub fn get_master_arn(&self) -> &Option<String>
pub fn get_master_arn(&self) -> &Option<String>
For Lambda@Edge functions, the ARN of the main function.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The latest updated revision of the function or alias.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The latest updated revision of the function or alias.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The latest updated revision of the function or alias.
sourcepub fn layers(self, input: Layer) -> Self
pub fn layers(self, input: Layer) -> Self
Appends an item to layers
.
To override the contents of this collection use set_layers
.
The function's layers.
sourcepub fn state(self, input: State) -> Self
pub fn state(self, input: State) -> Self
The current state of the function. When the state is Inactive
, you can reactivate the function by invoking it.
sourcepub fn set_state(self, input: Option<State>) -> Self
pub fn set_state(self, input: Option<State>) -> Self
The current state of the function. When the state is Inactive
, you can reactivate the function by invoking it.
sourcepub fn get_state(&self) -> &Option<State>
pub fn get_state(&self) -> &Option<State>
The current state of the function. When the state is Inactive
, you can reactivate the function by invoking it.
sourcepub fn state_reason(self, input: impl Into<String>) -> Self
pub fn state_reason(self, input: impl Into<String>) -> Self
The reason for the function's current state.
sourcepub fn set_state_reason(self, input: Option<String>) -> Self
pub fn set_state_reason(self, input: Option<String>) -> Self
The reason for the function's current state.
sourcepub fn get_state_reason(&self) -> &Option<String>
pub fn get_state_reason(&self) -> &Option<String>
The reason for the function's current state.
sourcepub fn state_reason_code(self, input: StateReasonCode) -> Self
pub fn state_reason_code(self, input: StateReasonCode) -> Self
The reason code for the function's current state. When the code is Creating
, you can't invoke or modify the function.
sourcepub fn set_state_reason_code(self, input: Option<StateReasonCode>) -> Self
pub fn set_state_reason_code(self, input: Option<StateReasonCode>) -> Self
The reason code for the function's current state. When the code is Creating
, you can't invoke or modify the function.
sourcepub fn get_state_reason_code(&self) -> &Option<StateReasonCode>
pub fn get_state_reason_code(&self) -> &Option<StateReasonCode>
The reason code for the function's current state. When the code is Creating
, you can't invoke or modify the function.
sourcepub fn last_update_status(self, input: LastUpdateStatus) -> Self
pub fn last_update_status(self, input: LastUpdateStatus) -> Self
The status of the last update that was performed on the function. This is first set to Successful
after function creation completes.
sourcepub fn set_last_update_status(self, input: Option<LastUpdateStatus>) -> Self
pub fn set_last_update_status(self, input: Option<LastUpdateStatus>) -> Self
The status of the last update that was performed on the function. This is first set to Successful
after function creation completes.
sourcepub fn get_last_update_status(&self) -> &Option<LastUpdateStatus>
pub fn get_last_update_status(&self) -> &Option<LastUpdateStatus>
The status of the last update that was performed on the function. This is first set to Successful
after function creation completes.
sourcepub fn last_update_status_reason(self, input: impl Into<String>) -> Self
pub fn last_update_status_reason(self, input: impl Into<String>) -> Self
The reason for the last update that was performed on the function.
sourcepub fn set_last_update_status_reason(self, input: Option<String>) -> Self
pub fn set_last_update_status_reason(self, input: Option<String>) -> Self
The reason for the last update that was performed on the function.
sourcepub fn get_last_update_status_reason(&self) -> &Option<String>
pub fn get_last_update_status_reason(&self) -> &Option<String>
The reason for the last update that was performed on the function.
sourcepub fn last_update_status_reason_code(
self,
input: LastUpdateStatusReasonCode
) -> Self
pub fn last_update_status_reason_code( self, input: LastUpdateStatusReasonCode ) -> Self
The reason code for the last update that was performed on the function.
sourcepub fn set_last_update_status_reason_code(
self,
input: Option<LastUpdateStatusReasonCode>
) -> Self
pub fn set_last_update_status_reason_code( self, input: Option<LastUpdateStatusReasonCode> ) -> Self
The reason code for the last update that was performed on the function.
sourcepub fn get_last_update_status_reason_code(
&self
) -> &Option<LastUpdateStatusReasonCode>
pub fn get_last_update_status_reason_code( &self ) -> &Option<LastUpdateStatusReasonCode>
The reason code for the last update that was performed on the function.
sourcepub fn file_system_configs(self, input: FileSystemConfig) -> Self
pub fn file_system_configs(self, input: FileSystemConfig) -> Self
Appends an item to file_system_configs
.
To override the contents of this collection use set_file_system_configs
.
Connection settings for an Amazon EFS file system.
sourcepub fn set_file_system_configs(
self,
input: Option<Vec<FileSystemConfig>>
) -> Self
pub fn set_file_system_configs( self, input: Option<Vec<FileSystemConfig>> ) -> Self
Connection settings for an Amazon EFS file system.
sourcepub fn get_file_system_configs(&self) -> &Option<Vec<FileSystemConfig>>
pub fn get_file_system_configs(&self) -> &Option<Vec<FileSystemConfig>>
Connection settings for an Amazon EFS file system.
sourcepub fn package_type(self, input: PackageType) -> Self
pub fn package_type(self, input: PackageType) -> Self
The type of deployment package. Set to Image
for container image and set Zip
for .zip file archive.
sourcepub fn set_package_type(self, input: Option<PackageType>) -> Self
pub fn set_package_type(self, input: Option<PackageType>) -> Self
The type of deployment package. Set to Image
for container image and set Zip
for .zip file archive.
sourcepub fn get_package_type(&self) -> &Option<PackageType>
pub fn get_package_type(&self) -> &Option<PackageType>
The type of deployment package. Set to Image
for container image and set Zip
for .zip file archive.
sourcepub fn image_config_response(self, input: ImageConfigResponse) -> Self
pub fn image_config_response(self, input: ImageConfigResponse) -> Self
The function's image configuration values.
sourcepub fn set_image_config_response(
self,
input: Option<ImageConfigResponse>
) -> Self
pub fn set_image_config_response( self, input: Option<ImageConfigResponse> ) -> Self
The function's image configuration values.
sourcepub fn get_image_config_response(&self) -> &Option<ImageConfigResponse>
pub fn get_image_config_response(&self) -> &Option<ImageConfigResponse>
The function's image configuration values.
sourcepub fn signing_profile_version_arn(self, input: impl Into<String>) -> Self
pub fn signing_profile_version_arn(self, input: impl Into<String>) -> Self
The ARN of the signing profile version.
sourcepub fn set_signing_profile_version_arn(self, input: Option<String>) -> Self
pub fn set_signing_profile_version_arn(self, input: Option<String>) -> Self
The ARN of the signing profile version.
sourcepub fn get_signing_profile_version_arn(&self) -> &Option<String>
pub fn get_signing_profile_version_arn(&self) -> &Option<String>
The ARN of the signing profile version.
sourcepub fn signing_job_arn(self, input: impl Into<String>) -> Self
pub fn signing_job_arn(self, input: impl Into<String>) -> Self
The ARN of the signing job.
sourcepub fn set_signing_job_arn(self, input: Option<String>) -> Self
pub fn set_signing_job_arn(self, input: Option<String>) -> Self
The ARN of the signing job.
sourcepub fn get_signing_job_arn(&self) -> &Option<String>
pub fn get_signing_job_arn(&self) -> &Option<String>
The ARN of the signing job.
sourcepub fn architectures(self, input: Architecture) -> Self
pub fn architectures(self, input: Architecture) -> Self
Appends an item to architectures
.
To override the contents of this collection use set_architectures
.
The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64
.
sourcepub fn set_architectures(self, input: Option<Vec<Architecture>>) -> Self
pub fn set_architectures(self, input: Option<Vec<Architecture>>) -> Self
The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64
.
sourcepub fn get_architectures(&self) -> &Option<Vec<Architecture>>
pub fn get_architectures(&self) -> &Option<Vec<Architecture>>
The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64
.
sourcepub fn ephemeral_storage(self, input: EphemeralStorage) -> Self
pub fn ephemeral_storage(self, input: EphemeralStorage) -> Self
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
sourcepub fn set_ephemeral_storage(self, input: Option<EphemeralStorage>) -> Self
pub fn set_ephemeral_storage(self, input: Option<EphemeralStorage>) -> Self
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
sourcepub fn get_ephemeral_storage(&self) -> &Option<EphemeralStorage>
pub fn get_ephemeral_storage(&self) -> &Option<EphemeralStorage>
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
sourcepub fn snap_start(self, input: SnapStartResponse) -> Self
pub fn snap_start(self, input: SnapStartResponse) -> Self
Set ApplyOn
to PublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.
sourcepub fn set_snap_start(self, input: Option<SnapStartResponse>) -> Self
pub fn set_snap_start(self, input: Option<SnapStartResponse>) -> Self
Set ApplyOn
to PublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.
sourcepub fn get_snap_start(&self) -> &Option<SnapStartResponse>
pub fn get_snap_start(&self) -> &Option<SnapStartResponse>
Set ApplyOn
to PublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.
sourcepub fn runtime_version_config(self, input: RuntimeVersionConfig) -> Self
pub fn runtime_version_config(self, input: RuntimeVersionConfig) -> Self
The ARN of the runtime and any errors that occured.
sourcepub fn set_runtime_version_config(
self,
input: Option<RuntimeVersionConfig>
) -> Self
pub fn set_runtime_version_config( self, input: Option<RuntimeVersionConfig> ) -> Self
The ARN of the runtime and any errors that occured.
sourcepub fn get_runtime_version_config(&self) -> &Option<RuntimeVersionConfig>
pub fn get_runtime_version_config(&self) -> &Option<RuntimeVersionConfig>
The ARN of the runtime and any errors that occured.
sourcepub fn logging_config(self, input: LoggingConfig) -> Self
pub fn logging_config(self, input: LoggingConfig) -> Self
The function's Amazon CloudWatch Logs configuration settings.
sourcepub fn set_logging_config(self, input: Option<LoggingConfig>) -> Self
pub fn set_logging_config(self, input: Option<LoggingConfig>) -> Self
The function's Amazon CloudWatch Logs configuration settings.
sourcepub fn get_logging_config(&self) -> &Option<LoggingConfig>
pub fn get_logging_config(&self) -> &Option<LoggingConfig>
The function's Amazon CloudWatch Logs configuration settings.
sourcepub fn build(self) -> CreateFunctionOutput
pub fn build(self) -> CreateFunctionOutput
Consumes the builder and constructs a CreateFunctionOutput
.
Trait Implementations§
source§impl Clone for CreateFunctionOutputBuilder
impl Clone for CreateFunctionOutputBuilder
source§fn clone(&self) -> CreateFunctionOutputBuilder
fn clone(&self) -> CreateFunctionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateFunctionOutputBuilder
impl Debug for CreateFunctionOutputBuilder
source§impl Default for CreateFunctionOutputBuilder
impl Default for CreateFunctionOutputBuilder
source§fn default() -> CreateFunctionOutputBuilder
fn default() -> CreateFunctionOutputBuilder
source§impl PartialEq for CreateFunctionOutputBuilder
impl PartialEq for CreateFunctionOutputBuilder
source§fn eq(&self, other: &CreateFunctionOutputBuilder) -> bool
fn eq(&self, other: &CreateFunctionOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.