#[non_exhaustive]pub struct UpdateFunctionCodeOutput {Show 36 fields
pub function_name: Option<String>,
pub function_arn: Option<String>,
pub runtime: Option<Runtime>,
pub role: Option<String>,
pub handler: Option<String>,
pub code_size: i64,
pub description: Option<String>,
pub timeout: Option<i32>,
pub memory_size: Option<i32>,
pub last_modified: Option<String>,
pub code_sha256: Option<String>,
pub version: Option<String>,
pub vpc_config: Option<VpcConfigResponse>,
pub dead_letter_config: Option<DeadLetterConfig>,
pub environment: Option<EnvironmentResponse>,
pub kms_key_arn: Option<String>,
pub tracing_config: Option<TracingConfigResponse>,
pub master_arn: Option<String>,
pub revision_id: Option<String>,
pub layers: Option<Vec<Layer>>,
pub state: Option<State>,
pub state_reason: Option<String>,
pub state_reason_code: Option<StateReasonCode>,
pub last_update_status: Option<LastUpdateStatus>,
pub last_update_status_reason: Option<String>,
pub last_update_status_reason_code: Option<LastUpdateStatusReasonCode>,
pub file_system_configs: Option<Vec<FileSystemConfig>>,
pub package_type: Option<PackageType>,
pub image_config_response: Option<ImageConfigResponse>,
pub signing_profile_version_arn: Option<String>,
pub signing_job_arn: Option<String>,
pub architectures: Option<Vec<Architecture>>,
pub ephemeral_storage: Option<EphemeralStorage>,
pub snap_start: Option<SnapStartResponse>,
pub runtime_version_config: Option<RuntimeVersionConfig>,
pub logging_config: Option<LoggingConfig>,
/* private fields */
}
Expand description
Details about a function's configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.function_name: Option<String>
The name of the function.
function_arn: Option<String>
The function's Amazon Resource Name (ARN).
runtime: Option<Runtime>
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.
The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
role: Option<String>
The function's execution role.
handler: Option<String>
The function that Lambda calls to begin running your function.
code_size: i64
The size of the function's deployment package, in bytes.
description: Option<String>
The function's description.
timeout: Option<i32>
The amount of time in seconds that Lambda allows a function to run before stopping it.
memory_size: Option<i32>
The amount of memory available to the function at runtime.
last_modified: Option<String>
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
code_sha256: Option<String>
The SHA256 hash of the function's deployment package.
version: Option<String>
The version of the Lambda function.
vpc_config: Option<VpcConfigResponse>
The function's networking configuration.
dead_letter_config: Option<DeadLetterConfig>
The function's dead letter queue.
environment: Option<EnvironmentResponse>
The function's environment variables. Omitted from CloudTrail logs.
kms_key_arn: Option<String>
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:
-
The function's environment variables.
-
The function's Lambda SnapStart snapshots.
-
When used with
SourceKMSKeyArn
, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. -
The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle.
If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key.
tracing_config: Option<TracingConfigResponse>
The function's X-Ray tracing configuration.
master_arn: Option<String>
For Lambda@Edge functions, the ARN of the main function.
revision_id: Option<String>
The latest updated revision of the function or alias.
layers: Option<Vec<Layer>>
The function's layers.
state: Option<State>
The current state of the function. When the state is Inactive
, you can reactivate the function by invoking it.
state_reason: Option<String>
The reason for the function's current state.
state_reason_code: Option<StateReasonCode>
The reason code for the function's current state. When the code is Creating
, you can't invoke or modify the function.
last_update_status: Option<LastUpdateStatus>
The status of the last update that was performed on the function. This is first set to Successful
after function creation completes.
last_update_status_reason: Option<String>
The reason for the last update that was performed on the function.
last_update_status_reason_code: Option<LastUpdateStatusReasonCode>
The reason code for the last update that was performed on the function.
file_system_configs: Option<Vec<FileSystemConfig>>
Connection settings for an Amazon EFS file system.
package_type: Option<PackageType>
The type of deployment package. Set to Image
for container image and set Zip
for .zip file archive.
image_config_response: Option<ImageConfigResponse>
The function's image configuration values.
signing_profile_version_arn: Option<String>
The ARN of the signing profile version.
signing_job_arn: Option<String>
The ARN of the signing job.
architectures: 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
.
ephemeral_storage: 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).
snap_start: 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.
runtime_version_config: Option<RuntimeVersionConfig>
The ARN of the runtime and any errors that occured.
logging_config: Option<LoggingConfig>
The function's Amazon CloudWatch Logs configuration settings.
Implementations§
Source§impl UpdateFunctionCodeOutput
impl UpdateFunctionCodeOutput
Sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
The name of the function.
Sourcepub fn function_arn(&self) -> Option<&str>
pub fn function_arn(&self) -> Option<&str>
The function's Amazon Resource Name (ARN).
Sourcepub fn runtime(&self) -> Option<&Runtime>
pub fn runtime(&self) -> Option<&Runtime>
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.
The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
Sourcepub fn handler(&self) -> Option<&str>
pub fn handler(&self) -> Option<&str>
The function that Lambda calls to begin running your function.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The function's description.
Sourcepub fn timeout(&self) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn memory_size(&self) -> Option<i32>
The amount of memory available to the function at runtime.
Sourcepub fn last_modified(&self) -> Option<&str>
pub fn last_modified(&self) -> Option<&str>
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) -> Option<&str>
pub fn code_sha256(&self) -> Option<&str>
The SHA256 hash of the function's deployment package.
Sourcepub fn vpc_config(&self) -> Option<&VpcConfigResponse>
pub fn vpc_config(&self) -> Option<&VpcConfigResponse>
The function's networking configuration.
Sourcepub fn dead_letter_config(&self) -> Option<&DeadLetterConfig>
pub fn dead_letter_config(&self) -> Option<&DeadLetterConfig>
The function's dead letter queue.
Sourcepub fn environment(&self) -> Option<&EnvironmentResponse>
pub fn environment(&self) -> Option<&EnvironmentResponse>
The function's environment variables. Omitted from CloudTrail logs.
Sourcepub fn kms_key_arn(&self) -> Option<&str>
pub fn kms_key_arn(&self) -> Option<&str>
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:
-
The function's environment variables.
-
The function's Lambda SnapStart snapshots.
-
When used with
SourceKMSKeyArn
, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. -
The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle.
If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key.
Sourcepub fn tracing_config(&self) -> Option<&TracingConfigResponse>
pub fn tracing_config(&self) -> Option<&TracingConfigResponse>
The function's X-Ray tracing configuration.
Sourcepub fn master_arn(&self) -> Option<&str>
pub fn master_arn(&self) -> Option<&str>
For Lambda@Edge functions, the ARN of the main function.
Sourcepub fn revision_id(&self) -> Option<&str>
pub fn revision_id(&self) -> Option<&str>
The latest updated revision of the function or alias.
Sourcepub fn layers(&self) -> &[Layer]
pub fn layers(&self) -> &[Layer]
The function's layers.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .layers.is_none()
.
Sourcepub fn state(&self) -> Option<&State>
pub fn 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) -> Option<&str>
pub fn state_reason(&self) -> Option<&str>
The reason for the function's current state.
Sourcepub fn state_reason_code(&self) -> Option<&StateReasonCode>
pub fn 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) -> Option<&LastUpdateStatus>
pub fn 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) -> Option<&str>
pub fn last_update_status_reason(&self) -> Option<&str>
The reason for the last update that was performed on the function.
Sourcepub fn last_update_status_reason_code(
&self,
) -> Option<&LastUpdateStatusReasonCode>
pub fn 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) -> &[FileSystemConfig]
pub fn file_system_configs(&self) -> &[FileSystemConfig]
Connection settings for an Amazon EFS file system.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .file_system_configs.is_none()
.
Sourcepub fn package_type(&self) -> Option<&PackageType>
pub fn 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) -> Option<&ImageConfigResponse>
pub fn image_config_response(&self) -> Option<&ImageConfigResponse>
The function's image configuration values.
Sourcepub fn signing_profile_version_arn(&self) -> Option<&str>
pub fn signing_profile_version_arn(&self) -> Option<&str>
The ARN of the signing profile version.
Sourcepub fn signing_job_arn(&self) -> Option<&str>
pub fn signing_job_arn(&self) -> Option<&str>
The ARN of the signing job.
Sourcepub fn architectures(&self) -> &[Architecture]
pub fn architectures(&self) -> &[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
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .architectures.is_none()
.
Sourcepub fn ephemeral_storage(&self) -> Option<&EphemeralStorage>
pub fn 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) -> Option<&SnapStartResponse>
pub fn 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) -> Option<&RuntimeVersionConfig>
pub fn runtime_version_config(&self) -> Option<&RuntimeVersionConfig>
The ARN of the runtime and any errors that occured.
Sourcepub fn logging_config(&self) -> Option<&LoggingConfig>
pub fn logging_config(&self) -> Option<&LoggingConfig>
The function's Amazon CloudWatch Logs configuration settings.
Source§impl UpdateFunctionCodeOutput
impl UpdateFunctionCodeOutput
Sourcepub fn builder() -> UpdateFunctionCodeOutputBuilder
pub fn builder() -> UpdateFunctionCodeOutputBuilder
Creates a new builder-style object to manufacture UpdateFunctionCodeOutput
.
Trait Implementations§
Source§impl Clone for UpdateFunctionCodeOutput
impl Clone for UpdateFunctionCodeOutput
Source§fn clone(&self) -> UpdateFunctionCodeOutput
fn clone(&self) -> UpdateFunctionCodeOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateFunctionCodeOutput
impl Debug for UpdateFunctionCodeOutput
Source§impl PartialEq for UpdateFunctionCodeOutput
impl PartialEq for UpdateFunctionCodeOutput
Source§impl RequestId for UpdateFunctionCodeOutput
impl RequestId for UpdateFunctionCodeOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for UpdateFunctionCodeOutput
Auto Trait Implementations§
impl Freeze for UpdateFunctionCodeOutput
impl RefUnwindSafe for UpdateFunctionCodeOutput
impl Send for UpdateFunctionCodeOutput
impl Sync for UpdateFunctionCodeOutput
impl Unpin for UpdateFunctionCodeOutput
impl UnwindSafe for UpdateFunctionCodeOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);