public static interface FunctionConfiguration.Builder extends SdkPojo, CopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>
Modifier and Type | Method and Description |
---|---|
FunctionConfiguration.Builder |
codeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
FunctionConfiguration.Builder |
codeSize(Long codeSize)
The size of the function's deployment package, in bytes.
|
default FunctionConfiguration.Builder |
deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
The function's dead letter queue.
|
FunctionConfiguration.Builder |
deadLetterConfig(DeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
FunctionConfiguration.Builder |
description(String description)
The function's description.
|
default FunctionConfiguration.Builder |
environment(Consumer<EnvironmentResponse.Builder> environment)
The function's environment variables.
|
FunctionConfiguration.Builder |
environment(EnvironmentResponse environment)
The function's environment variables.
|
FunctionConfiguration.Builder |
functionArn(String functionArn)
The function's Amazon Resource Name (ARN).
|
FunctionConfiguration.Builder |
functionName(String functionName)
The name of the function.
|
FunctionConfiguration.Builder |
handler(String handler)
The function that Lambda calls to begin executing your function.
|
FunctionConfiguration.Builder |
kmsKeyArn(String kmsKeyArn)
The KMS key that's used to encrypt the function's environment variables.
|
FunctionConfiguration.Builder |
lastModified(String lastModified)
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
|
FunctionConfiguration.Builder |
lastUpdateStatus(LastUpdateStatus lastUpdateStatus)
The status of the last update that was performed on the function.
|
FunctionConfiguration.Builder |
lastUpdateStatus(String lastUpdateStatus)
The status of the last update that was performed on the function.
|
FunctionConfiguration.Builder |
lastUpdateStatusReason(String lastUpdateStatusReason)
The reason for the last update that was performed on the function.
|
FunctionConfiguration.Builder |
lastUpdateStatusReasonCode(LastUpdateStatusReasonCode lastUpdateStatusReasonCode)
The reason code for the last update that was performed on the function.
|
FunctionConfiguration.Builder |
lastUpdateStatusReasonCode(String lastUpdateStatusReasonCode)
The reason code for the last update that was performed on the function.
|
FunctionConfiguration.Builder |
layers(Collection<Layer> layers)
The function's layers.
|
FunctionConfiguration.Builder |
layers(Consumer<Layer.Builder>... layers)
The function's layers.
|
FunctionConfiguration.Builder |
layers(Layer... layers)
The function's layers.
|
FunctionConfiguration.Builder |
masterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
|
FunctionConfiguration.Builder |
memorySize(Integer memorySize)
The memory that's allocated to the function.
|
FunctionConfiguration.Builder |
revisionId(String revisionId)
The latest updated revision of the function or alias.
|
FunctionConfiguration.Builder |
role(String role)
The function's execution role.
|
FunctionConfiguration.Builder |
runtime(Runtime runtime)
The runtime environment for the Lambda function.
|
FunctionConfiguration.Builder |
runtime(String runtime)
The runtime environment for the Lambda function.
|
FunctionConfiguration.Builder |
state(State state)
The current state of the function.
|
FunctionConfiguration.Builder |
state(String state)
The current state of the function.
|
FunctionConfiguration.Builder |
stateReason(String stateReason)
The reason for the function's current state.
|
FunctionConfiguration.Builder |
stateReasonCode(StateReasonCode stateReasonCode)
The reason code for the function's current state.
|
FunctionConfiguration.Builder |
stateReasonCode(String stateReasonCode)
The reason code for the function's current state.
|
FunctionConfiguration.Builder |
timeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
|
default FunctionConfiguration.Builder |
tracingConfig(Consumer<TracingConfigResponse.Builder> tracingConfig)
The function's AWS X-Ray tracing configuration.
|
FunctionConfiguration.Builder |
tracingConfig(TracingConfigResponse tracingConfig)
The function's AWS X-Ray tracing configuration.
|
FunctionConfiguration.Builder |
version(String version)
The version of the Lambda function.
|
default FunctionConfiguration.Builder |
vpcConfig(Consumer<VpcConfigResponse.Builder> vpcConfig)
The function's networking configuration.
|
FunctionConfiguration.Builder |
vpcConfig(VpcConfigResponse vpcConfig)
The function's networking configuration.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
FunctionConfiguration.Builder functionName(String functionName)
The name of the function.
functionName
- The name of the function.FunctionConfiguration.Builder functionArn(String functionArn)
The function's Amazon Resource Name (ARN).
functionArn
- The function's Amazon Resource Name (ARN).FunctionConfiguration.Builder runtime(String runtime)
The runtime environment for the Lambda function.
FunctionConfiguration.Builder runtime(Runtime runtime)
The runtime environment for the Lambda function.
FunctionConfiguration.Builder role(String role)
The function's execution role.
role
- The function's execution role.FunctionConfiguration.Builder handler(String handler)
The function that Lambda calls to begin executing your function.
handler
- The function that Lambda calls to begin executing your function.FunctionConfiguration.Builder codeSize(Long codeSize)
The size of the function's deployment package, in bytes.
codeSize
- The size of the function's deployment package, in bytes.FunctionConfiguration.Builder description(String description)
The function's description.
description
- The function's description.FunctionConfiguration.Builder timeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
timeout
- The amount of time that Lambda allows a function to run before stopping it.FunctionConfiguration.Builder memorySize(Integer memorySize)
The memory that's allocated to the function.
memorySize
- The memory that's allocated to the function.FunctionConfiguration.Builder lastModified(String lastModified)
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
lastModified
- The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).FunctionConfiguration.Builder codeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
codeSha256
- The SHA256 hash of the function's deployment package.FunctionConfiguration.Builder version(String version)
The version of the Lambda function.
version
- The version of the Lambda function.FunctionConfiguration.Builder vpcConfig(VpcConfigResponse vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.default FunctionConfiguration.Builder vpcConfig(Consumer<VpcConfigResponse.Builder> vpcConfig)
The function's networking configuration.
This is a convenience that creates an instance of theVpcConfigResponse.Builder
avoiding the need to
create one manually via VpcConfigResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to vpcConfig(VpcConfigResponse)
.vpcConfig
- a consumer that will call methods on VpcConfigResponse.Builder
vpcConfig(VpcConfigResponse)
FunctionConfiguration.Builder deadLetterConfig(DeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.default FunctionConfiguration.Builder deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
The function's dead letter queue.
This is a convenience that creates an instance of theDeadLetterConfig.Builder
avoiding the need to
create one manually via DeadLetterConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to deadLetterConfig(DeadLetterConfig)
.deadLetterConfig
- a consumer that will call methods on DeadLetterConfig.Builder
deadLetterConfig(DeadLetterConfig)
FunctionConfiguration.Builder environment(EnvironmentResponse environment)
The function's environment variables.
environment
- The function's environment variables.default FunctionConfiguration.Builder environment(Consumer<EnvironmentResponse.Builder> environment)
The function's environment variables.
This is a convenience that creates an instance of theEnvironmentResponse.Builder
avoiding the need
to create one manually via EnvironmentResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to environment(EnvironmentResponse)
.environment
- a consumer that will call methods on EnvironmentResponse.Builder
environment(EnvironmentResponse)
FunctionConfiguration.Builder kmsKeyArn(String kmsKeyArn)
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 CMK.
kmsKeyArn
- 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 CMK.FunctionConfiguration.Builder tracingConfig(TracingConfigResponse tracingConfig)
The function's AWS X-Ray tracing configuration.
tracingConfig
- The function's AWS X-Ray tracing configuration.default FunctionConfiguration.Builder tracingConfig(Consumer<TracingConfigResponse.Builder> tracingConfig)
The function's AWS X-Ray tracing configuration.
This is a convenience that creates an instance of theTracingConfigResponse.Builder
avoiding the need
to create one manually via TracingConfigResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to tracingConfig(TracingConfigResponse)
.tracingConfig
- a consumer that will call methods on TracingConfigResponse.Builder
tracingConfig(TracingConfigResponse)
FunctionConfiguration.Builder masterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
masterArn
- For Lambda@Edge functions, the ARN of the master function.FunctionConfiguration.Builder revisionId(String revisionId)
The latest updated revision of the function or alias.
revisionId
- The latest updated revision of the function or alias.FunctionConfiguration.Builder layers(Collection<Layer> layers)
The function's layers.
layers
- The function's
layers.FunctionConfiguration.Builder layers(Layer... layers)
The function's layers.
layers
- The function's
layers.FunctionConfiguration.Builder layers(Consumer<Layer.Builder>... layers)
The function's layers.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #layers(List)
.layers
- a consumer that will call methods on List.Builder
#layers(List)
FunctionConfiguration.Builder state(String state)
The current state of the function. When the state is Inactive
, you can reactivate the function
by invoking it.
FunctionConfiguration.Builder state(State state)
The current state of the function. When the state is Inactive
, you can reactivate the function
by invoking it.
FunctionConfiguration.Builder stateReason(String stateReason)
The reason for the function's current state.
stateReason
- The reason for the function's current state.FunctionConfiguration.Builder stateReasonCode(String stateReasonCode)
The reason code for the function's current state. When the code is Creating
, you can't invoke or
modify the function.
stateReasonCode
- The reason code for the function's current state. When the code is Creating
, you can't
invoke or modify the function.StateReasonCode
,
StateReasonCode
FunctionConfiguration.Builder stateReasonCode(StateReasonCode stateReasonCode)
The reason code for the function's current state. When the code is Creating
, you can't invoke or
modify the function.
stateReasonCode
- The reason code for the function's current state. When the code is Creating
, you can't
invoke or modify the function.StateReasonCode
,
StateReasonCode
FunctionConfiguration.Builder lastUpdateStatus(String lastUpdateStatus)
The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.
lastUpdateStatus
- The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.LastUpdateStatus
,
LastUpdateStatus
FunctionConfiguration.Builder lastUpdateStatus(LastUpdateStatus lastUpdateStatus)
The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.
lastUpdateStatus
- The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.LastUpdateStatus
,
LastUpdateStatus
FunctionConfiguration.Builder lastUpdateStatusReason(String lastUpdateStatusReason)
The reason for the last update that was performed on the function.
lastUpdateStatusReason
- The reason for the last update that was performed on the function.FunctionConfiguration.Builder lastUpdateStatusReasonCode(String lastUpdateStatusReasonCode)
The reason code for the last update that was performed on the function.
lastUpdateStatusReasonCode
- The reason code for the last update that was performed on the function.LastUpdateStatusReasonCode
,
LastUpdateStatusReasonCode
FunctionConfiguration.Builder lastUpdateStatusReasonCode(LastUpdateStatusReasonCode lastUpdateStatusReasonCode)
The reason code for the last update that was performed on the function.
lastUpdateStatusReasonCode
- The reason code for the last update that was performed on the function.LastUpdateStatusReasonCode
,
LastUpdateStatusReasonCode
Copyright © 2020. All rights reserved.