#[non_exhaustive]
pub struct AwsLambdaFunctionDetailsBuilder { /* private fields */ }
Expand description

A builder for AwsLambdaFunctionDetails.

Implementations§

source§

impl AwsLambdaFunctionDetailsBuilder

source

pub fn code(self, input: AwsLambdaFunctionCode) -> Self

An AwsLambdaFunctionCode object.

source

pub fn set_code(self, input: Option<AwsLambdaFunctionCode>) -> Self

An AwsLambdaFunctionCode object.

source

pub fn get_code(&self) -> &Option<AwsLambdaFunctionCode>

An AwsLambdaFunctionCode object.

source

pub fn code_sha256(self, input: impl Into<String>) -> Self

The SHA256 hash of the function's deployment package.

source

pub fn set_code_sha256(self, input: Option<String>) -> Self

The SHA256 hash of the function's deployment package.

source

pub fn get_code_sha256(&self) -> &Option<String>

The SHA256 hash of the function's deployment package.

source

pub fn dead_letter_config( self, input: AwsLambdaFunctionDeadLetterConfig ) -> Self

The function's dead letter queue.

source

pub fn set_dead_letter_config( self, input: Option<AwsLambdaFunctionDeadLetterConfig> ) -> Self

The function's dead letter queue.

source

pub fn get_dead_letter_config( &self ) -> &Option<AwsLambdaFunctionDeadLetterConfig>

The function's dead letter queue.

source

pub fn environment(self, input: AwsLambdaFunctionEnvironment) -> Self

The function's environment variables.

source

pub fn set_environment( self, input: Option<AwsLambdaFunctionEnvironment> ) -> Self

The function's environment variables.

source

pub fn get_environment(&self) -> &Option<AwsLambdaFunctionEnvironment>

The function's environment variables.

source

pub fn function_name(self, input: impl Into<String>) -> Self

The name of the function.

source

pub fn set_function_name(self, input: Option<String>) -> Self

The name of the function.

source

pub fn get_function_name(&self) -> &Option<String>

The name of the function.

source

pub fn handler(self, input: impl Into<String>) -> Self

The function that Lambda calls to begin executing your function.

source

pub fn set_handler(self, input: Option<String>) -> Self

The function that Lambda calls to begin executing your function.

source

pub fn get_handler(&self) -> &Option<String>

The function that Lambda calls to begin executing your function.

source

pub fn kms_key_arn(self, input: impl Into<String>) -> Self

The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.

source

pub fn set_kms_key_arn(self, input: Option<String>) -> Self

The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.

source

pub fn get_kms_key_arn(&self) -> &Option<String>

The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.

source

pub fn last_modified(self, input: impl Into<String>) -> Self

Indicates when the function was last updated.

Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z.

source

pub fn set_last_modified(self, input: Option<String>) -> Self

Indicates when the function was last updated.

Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z.

source

pub fn get_last_modified(&self) -> &Option<String>

Indicates when the function was last updated.

Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z.

source

pub fn layers(self, input: AwsLambdaFunctionLayer) -> Self

Appends an item to layers.

To override the contents of this collection use set_layers.

The function's layers.

source

pub fn set_layers(self, input: Option<Vec<AwsLambdaFunctionLayer>>) -> Self

The function's layers.

source

pub fn get_layers(&self) -> &Option<Vec<AwsLambdaFunctionLayer>>

The function's layers.

source

pub fn master_arn(self, input: impl Into<String>) -> Self

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

source

pub fn set_master_arn(self, input: Option<String>) -> Self

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

source

pub fn get_master_arn(&self) -> &Option<String>

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

source

pub fn memory_size(self, input: i32) -> Self

The memory that is allocated to the function.

source

pub fn set_memory_size(self, input: Option<i32>) -> Self

The memory that is allocated to the function.

source

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

The memory that is allocated to the function.

source

pub fn revision_id(self, input: impl Into<String>) -> Self

The latest updated revision of the function or alias.

source

pub fn set_revision_id(self, input: Option<String>) -> Self

The latest updated revision of the function or alias.

source

pub fn get_revision_id(&self) -> &Option<String>

The latest updated revision of the function or alias.

source

pub fn role(self, input: impl Into<String>) -> Self

The function's execution role.

source

pub fn set_role(self, input: Option<String>) -> Self

The function's execution role.

source

pub fn get_role(&self) -> &Option<String>

The function's execution role.

source

pub fn runtime(self, input: impl Into<String>) -> Self

The runtime environment for the Lambda function.

source

pub fn set_runtime(self, input: Option<String>) -> Self

The runtime environment for the Lambda function.

source

pub fn get_runtime(&self) -> &Option<String>

The runtime environment for the Lambda function.

source

pub fn timeout(self, input: i32) -> Self

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

source

pub fn set_timeout(self, input: Option<i32>) -> Self

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

source

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

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

source

pub fn tracing_config(self, input: AwsLambdaFunctionTracingConfig) -> Self

The function's X-Ray tracing configuration.

source

pub fn set_tracing_config( self, input: Option<AwsLambdaFunctionTracingConfig> ) -> Self

The function's X-Ray tracing configuration.

source

pub fn get_tracing_config(&self) -> &Option<AwsLambdaFunctionTracingConfig>

The function's X-Ray tracing configuration.

source

pub fn vpc_config(self, input: AwsLambdaFunctionVpcConfig) -> Self

The function's networking configuration.

source

pub fn set_vpc_config(self, input: Option<AwsLambdaFunctionVpcConfig>) -> Self

The function's networking configuration.

source

pub fn get_vpc_config(&self) -> &Option<AwsLambdaFunctionVpcConfig>

The function's networking configuration.

source

pub fn version(self, input: impl Into<String>) -> Self

The version of the Lambda function.

source

pub fn set_version(self, input: Option<String>) -> Self

The version of the Lambda function.

source

pub fn get_version(&self) -> &Option<String>

The version of the Lambda function.

source

pub fn architectures(self, input: impl Into<String>) -> Self

Appends an item to architectures.

To override the contents of this collection use set_architectures.

The instruction set architecture that the function uses. Valid values are x86_64 or arm64.

source

pub fn set_architectures(self, input: Option<Vec<String>>) -> Self

The instruction set architecture that the function uses. Valid values are x86_64 or arm64.

source

pub fn get_architectures(&self) -> &Option<Vec<String>>

The instruction set architecture that the function uses. Valid values are x86_64 or arm64.

source

pub fn package_type(self, input: impl Into<String>) -> Self

The type of deployment package that's used to deploy the function code to Lambda. Set to Image for a container image and Zip for a .zip file archive.

source

pub fn set_package_type(self, input: Option<String>) -> Self

The type of deployment package that's used to deploy the function code to Lambda. Set to Image for a container image and Zip for a .zip file archive.

source

pub fn get_package_type(&self) -> &Option<String>

The type of deployment package that's used to deploy the function code to Lambda. Set to Image for a container image and Zip for a .zip file archive.

source

pub fn build(self) -> AwsLambdaFunctionDetails

Consumes the builder and constructs a AwsLambdaFunctionDetails.

Trait Implementations§

source§

impl Clone for AwsLambdaFunctionDetailsBuilder

source§

fn clone(&self) -> AwsLambdaFunctionDetailsBuilder

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 AwsLambdaFunctionDetailsBuilder

source§

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

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

impl Default for AwsLambdaFunctionDetailsBuilder

source§

fn default() -> AwsLambdaFunctionDetailsBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for AwsLambdaFunctionDetailsBuilder

source§

fn eq(&self, other: &AwsLambdaFunctionDetailsBuilder) -> 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 StructuralPartialEq for AwsLambdaFunctionDetailsBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere 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 Twhere 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 Twhere 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