pub struct Builder { /* private fields */ }
Expand description
A builder for AwsLambdaFunctionDetails
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn code(self, input: AwsLambdaFunctionCode) -> Self
pub fn code(self, input: AwsLambdaFunctionCode) -> Self
An AwsLambdaFunctionCode
object.
sourcepub fn set_code(self, input: Option<AwsLambdaFunctionCode>) -> Self
pub fn set_code(self, input: Option<AwsLambdaFunctionCode>) -> Self
An AwsLambdaFunctionCode
object.
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 dead_letter_config(self, input: AwsLambdaFunctionDeadLetterConfig) -> Self
pub fn dead_letter_config(self, input: AwsLambdaFunctionDeadLetterConfig) -> Self
The function's dead letter queue.
sourcepub fn set_dead_letter_config(
self,
input: Option<AwsLambdaFunctionDeadLetterConfig>
) -> Self
pub fn set_dead_letter_config(
self,
input: Option<AwsLambdaFunctionDeadLetterConfig>
) -> Self
The function's dead letter queue.
sourcepub fn environment(self, input: AwsLambdaFunctionEnvironment) -> Self
pub fn environment(self, input: AwsLambdaFunctionEnvironment) -> Self
The function's environment variables.
sourcepub fn set_environment(self, input: Option<AwsLambdaFunctionEnvironment>) -> Self
pub fn set_environment(self, input: Option<AwsLambdaFunctionEnvironment>) -> Self
The function's environment variables.
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 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 kms_key_arn(self, input: impl Into<String>) -> Self
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.
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 is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.
sourcepub fn last_modified(self, input: impl Into<String>) -> Self
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. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_last_modified(self, input: Option<String>) -> Self
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. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn layers(self, input: AwsLambdaFunctionLayer) -> Self
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.
sourcepub fn set_layers(self, input: Option<Vec<AwsLambdaFunctionLayer>>) -> Self
pub fn set_layers(self, input: Option<Vec<AwsLambdaFunctionLayer>>) -> Self
The function's layers.
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 master 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 master function.
sourcepub fn memory_size(self, input: i32) -> Self
pub fn memory_size(self, input: i32) -> Self
The memory that is allocated to the function.
sourcepub fn set_memory_size(self, input: Option<i32>) -> Self
pub fn set_memory_size(self, input: Option<i32>) -> Self
The memory that is allocated to the 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 runtime(self, input: impl Into<String>) -> Self
pub fn runtime(self, input: impl Into<String>) -> Self
The runtime environment for the Lambda function.
sourcepub fn set_runtime(self, input: Option<String>) -> Self
pub fn set_runtime(self, input: Option<String>) -> Self
The runtime environment for the Lambda function.
sourcepub fn timeout(self, input: i32) -> Self
pub fn timeout(self, input: i32) -> Self
The amount of time 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 that Lambda allows a function to run before stopping it.
sourcepub fn tracing_config(self, input: AwsLambdaFunctionTracingConfig) -> Self
pub fn tracing_config(self, input: AwsLambdaFunctionTracingConfig) -> Self
The function's X-Ray tracing configuration.
sourcepub fn set_tracing_config(
self,
input: Option<AwsLambdaFunctionTracingConfig>
) -> Self
pub fn set_tracing_config(
self,
input: Option<AwsLambdaFunctionTracingConfig>
) -> Self
The function's X-Ray tracing configuration.
sourcepub fn vpc_config(self, input: AwsLambdaFunctionVpcConfig) -> Self
pub fn vpc_config(self, input: AwsLambdaFunctionVpcConfig) -> Self
The function's networking configuration.
sourcepub fn set_vpc_config(self, input: Option<AwsLambdaFunctionVpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<AwsLambdaFunctionVpcConfig>) -> Self
The function's networking configuration.
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 build(self) -> AwsLambdaFunctionDetails
pub fn build(self) -> AwsLambdaFunctionDetails
Consumes the builder and constructs a AwsLambdaFunctionDetails
.
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