Struct aws_sdk_lambda::output::update_function_code_output::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateFunctionCodeOutput
.
Implementations
sourceimpl Builder
impl Builder
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 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 set_runtime(self, input: Option<Runtime>) -> Self
pub fn set_runtime(self, input: Option<Runtime>) -> Self
The runtime environment for the Lambda function.
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 executing 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 executing 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 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 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 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 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 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 set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
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 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 environment(self, input: EnvironmentResponse) -> Self
pub fn environment(self, input: EnvironmentResponse) -> Self
The function's environment variables.
sourcepub fn set_environment(self, input: Option<EnvironmentResponse>) -> Self
pub fn set_environment(self, input: Option<EnvironmentResponse>) -> Self
The function's environment variables.
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. This key is only returned 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. This key is only returned 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 10240 MB.
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 10240 MB.
sourcepub fn build(self) -> UpdateFunctionCodeOutput
pub fn build(self) -> UpdateFunctionCodeOutput
Consumes the builder and constructs a UpdateFunctionCodeOutput
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more