#[non_exhaustive]
pub struct PublishVersionOutput {
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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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.

The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

§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 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.

§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 PublishVersionOutput

source

pub fn function_name(&self) -> Option<&str>

The name of the function.

source

pub fn function_arn(&self) -> Option<&str>

The function's Amazon Resource Name (ARN).

source

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.

The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

source

pub fn role(&self) -> Option<&str>

The function's execution role.

source

pub fn handler(&self) -> Option<&str>

The function that Lambda calls to begin running your function.

source

pub fn code_size(&self) -> i64

The size of the function's deployment package, in bytes.

source

pub fn description(&self) -> Option<&str>

The function's description.

source

pub fn timeout(&self) -> Option<i32>

The amount of time in seconds that Lambda allows a function to run before stopping it.

source

pub fn memory_size(&self) -> Option<i32>

The amount of memory available to the function at runtime.

source

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).

source

pub fn code_sha256(&self) -> Option<&str>

The SHA256 hash of the function's deployment package.

source

pub fn version(&self) -> Option<&str>

The version of the Lambda function.

source

pub fn vpc_config(&self) -> Option<&VpcConfigResponse>

The function's networking configuration.

source

pub fn dead_letter_config(&self) -> Option<&DeadLetterConfig>

The function's dead letter queue.

source

pub fn environment(&self) -> Option<&EnvironmentResponse>

The function's environment variables. Omitted from CloudTrail logs.

source

pub fn kms_key_arn(&self) -> Option<&str>

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.

source

pub fn tracing_config(&self) -> Option<&TracingConfigResponse>

The function's X-Ray tracing configuration.

source

pub fn master_arn(&self) -> Option<&str>

For Lambda@Edge functions, the ARN of the main function.

source

pub fn revision_id(&self) -> Option<&str>

The latest updated revision of the function or alias.

source

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().

source

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.

source

pub fn state_reason(&self) -> Option<&str>

The reason for the function's current state.

source

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.

source

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.

source

pub fn last_update_status_reason(&self) -> Option<&str>

The reason for the last update that was performed on the function.

source

pub fn last_update_status_reason_code( &self ) -> Option<&LastUpdateStatusReasonCode>

The reason code for the last update that was performed on the function.

source

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().

source

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.

source

pub fn image_config_response(&self) -> Option<&ImageConfigResponse>

The function's image configuration values.

source

pub fn signing_profile_version_arn(&self) -> Option<&str>

The ARN of the signing profile version.

source

pub fn signing_job_arn(&self) -> Option<&str>

The ARN of the signing job.

source

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().

source

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).

source

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.

source

pub fn runtime_version_config(&self) -> Option<&RuntimeVersionConfig>

The ARN of the runtime and any errors that occured.

source

pub fn logging_config(&self) -> Option<&LoggingConfig>

The function's Amazon CloudWatch Logs configuration settings.

source§

impl PublishVersionOutput

source

pub fn builder() -> PublishVersionOutputBuilder

Creates a new builder-style object to manufacture PublishVersionOutput.

Trait Implementations§

source§

impl Clone for PublishVersionOutput

source§

fn clone(&self) -> PublishVersionOutput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PublishVersionOutput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for PublishVersionOutput

source§

fn eq(&self, other: &PublishVersionOutput) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RequestId for PublishVersionOutput

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.
source§

impl StructuralPartialEq for PublishVersionOutput

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more