@Generated(value="software.amazon.awssdk:codegen") public final class CreateFunctionResponse extends LambdaResponse implements ToCopyableBuilder<CreateFunctionResponse.Builder,CreateFunctionResponse>
A Lambda function's configuration settings.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateFunctionResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateFunctionResponse.Builder |
builder() |
String |
codeSha256()
The SHA256 hash of the function's deployment package.
|
Long |
codeSize()
The size of the function's deployment package in bytes.
|
DeadLetterConfig |
deadLetterConfig()
The function's dead letter queue.
|
String |
description()
The function's description.
|
EnvironmentResponse |
environment()
The function's environment variables.
|
boolean |
equals(Object obj) |
String |
functionArn()
The function's Amazon Resource Name.
|
String |
functionName()
The name of the function.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
String |
handler()
The function Lambda calls to begin executing your function.
|
int |
hashCode() |
String |
kmsKeyArn()
The KMS key used to encrypt the function's environment variables.
|
String |
lastModified()
The date and time that the function was last updated, in ISO-8601
format (YYYY-MM-DDThh:mm:ss.sTZD).
|
List<Layer> |
layers()
A list of function layers.
|
String |
masterArn()
The ARN of the master function.
|
Integer |
memorySize()
The memory allocated to the function
|
String |
revisionId()
Represents the latest updated revision of the function or alias.
|
String |
role()
The function's execution role.
|
Runtime |
runtime()
The runtime environment for the Lambda function.
|
String |
runtimeAsString()
The runtime environment for the Lambda function.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFunctionResponse.Builder> |
serializableBuilderClass() |
Integer |
timeout()
The amount of time that Lambda allows a function to run before terminating it.
|
CreateFunctionResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TracingConfigResponse |
tracingConfig()
The function's AWS X-Ray tracing configuration.
|
String |
version()
The version of the Lambda function.
|
VpcConfigResponse |
vpcConfig()
The function's networking configuration.
|
responseMetadata
sdkHttpResponse
copy
public String functionName()
The name of the function.
public String functionArn()
The function's Amazon Resource Name.
public Runtime runtime()
The runtime environment for the Lambda function.
If the service returns an enum value that is not available in the current SDK version, runtime
will
return Runtime.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
runtimeAsString()
.
Runtime
public String runtimeAsString()
The runtime environment for the Lambda function.
If the service returns an enum value that is not available in the current SDK version, runtime
will
return Runtime.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
runtimeAsString()
.
Runtime
public String role()
The function's execution role.
public String handler()
The function Lambda calls to begin executing your function.
public Long codeSize()
The size of the function's deployment package in bytes.
public String description()
The function's description.
public Integer timeout()
The amount of time that Lambda allows a function to run before terminating it.
public Integer memorySize()
The memory allocated to the function
public String lastModified()
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
public String codeSha256()
The SHA256 hash of the function's deployment package.
public String version()
The version of the Lambda function.
public VpcConfigResponse vpcConfig()
The function's networking configuration.
public DeadLetterConfig deadLetterConfig()
The function's dead letter queue.
public EnvironmentResponse environment()
The function's environment variables.
public String kmsKeyArn()
The KMS key used to encrypt the function's environment variables. Only returned if you've configured a customer managed CMK.
public TracingConfigResponse tracingConfig()
The function's AWS X-Ray tracing configuration.
public String masterArn()
The ARN of the master function.
public String revisionId()
Represents the latest updated revision of the function or alias.
public List<Layer> layers()
A list of function layers.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public CreateFunctionResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateFunctionResponse.Builder,CreateFunctionResponse>
toBuilder
in class AwsResponse
public static CreateFunctionResponse.Builder builder()
public static Class<? extends CreateFunctionResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.