@Generated(value="software.amazon.awssdk:codegen") public final class CreateFunctionResponse extends LambdaResponse implements ToCopyableBuilder<CreateFunctionResponse.Builder,CreateFunctionResponse>
Details about a function's configuration.
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) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
List<FileSystemConfig> |
fileSystemConfigs()
Connection settings for an Amazon EFS file system.
|
String |
functionArn()
The function's Amazon Resource Name (ARN).
|
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 that Lambda calls to begin executing your function.
|
boolean |
hasFileSystemConfigs()
Returns true if the FileSystemConfigs property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasLayers()
Returns true if the Layers property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
ImageConfigResponse |
imageConfigResponse()
The function's image configuration values.
|
String |
kmsKeyArn()
The KMS key that's 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).
|
LastUpdateStatus |
lastUpdateStatus()
The status of the last update that was performed on the function.
|
String |
lastUpdateStatusAsString()
The status of the last update that was performed on the function.
|
String |
lastUpdateStatusReason()
The reason for the last update that was performed on the function.
|
LastUpdateStatusReasonCode |
lastUpdateStatusReasonCode()
The reason code for the last update that was performed on the function.
|
String |
lastUpdateStatusReasonCodeAsString()
The reason code for the last update that was performed on the function.
|
List<Layer> |
layers()
The function's layers.
|
String |
masterArn()
For Lambda@Edge functions, the ARN of the master function.
|
Integer |
memorySize()
The amount of memory available to the function at runtime.
|
PackageType |
packageType()
The type of deployment package.
|
String |
packageTypeAsString()
The type of deployment package.
|
String |
revisionId()
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() |
String |
signingJobArn()
The ARN of the signing job.
|
String |
signingProfileVersionArn()
The ARN of the signing profile version.
|
State |
state()
The current state of the function.
|
String |
stateAsString()
The current state of the function.
|
String |
stateReason()
The reason for the function's current state.
|
StateReasonCode |
stateReasonCode()
The reason code for the function's current state.
|
String |
stateReasonCodeAsString()
The reason code for the function's current state.
|
Integer |
timeout()
The amount of time in seconds that Lambda allows a function to run before stopping it.
|
CreateFunctionResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
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 final String functionName()
The name of the function.
public final String functionArn()
The function's Amazon Resource Name (ARN).
public final 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 final 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 final String role()
The function's execution role.
public final String handler()
The function that Lambda calls to begin executing your function.
public final Long codeSize()
The size of the function's deployment package, in bytes.
public final String description()
The function's description.
public final Integer timeout()
The amount of time in seconds that Lambda allows a function to run before stopping it.
public final Integer memorySize()
The amount of memory available to the function at runtime.
public final String lastModified()
The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
public final String codeSha256()
The SHA256 hash of the function's deployment package.
public final String version()
The version of the Lambda function.
public final VpcConfigResponse vpcConfig()
The function's networking configuration.
public final DeadLetterConfig deadLetterConfig()
The function's dead letter queue.
public final EnvironmentResponse environment()
The function's environment variables.
public final 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.
public final TracingConfigResponse tracingConfig()
The function's AWS X-Ray tracing configuration.
public final String masterArn()
For Lambda@Edge functions, the ARN of the master function.
public final String revisionId()
The latest updated revision of the function or alias.
public final boolean hasLayers()
public final List<Layer> layers()
The function's layers.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLayers()
to see if a value was sent in this field.
public final State state()
The current state of the function. When the state is Inactive
, you can reactivate the function by
invoking it.
If the service returns an enum value that is not available in the current SDK version, state
will return
State.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
Inactive
, you can reactivate the
function by invoking it.State
public final String stateAsString()
The current state of the function. When the state is Inactive
, you can reactivate the function by
invoking it.
If the service returns an enum value that is not available in the current SDK version, state
will return
State.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
Inactive
, you can reactivate the
function by invoking it.State
public final String stateReason()
The reason for the function's current state.
public final StateReasonCode stateReasonCode()
The reason code for the function's current state. When the code is Creating
, you can't invoke or
modify the function.
If the service returns an enum value that is not available in the current SDK version, stateReasonCode
will return StateReasonCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from stateReasonCodeAsString()
.
Creating
, you can't
invoke or modify the function.StateReasonCode
public final String stateReasonCodeAsString()
The reason code for the function's current state. When the code is Creating
, you can't invoke or
modify the function.
If the service returns an enum value that is not available in the current SDK version, stateReasonCode
will return StateReasonCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from stateReasonCodeAsString()
.
Creating
, you can't
invoke or modify the function.StateReasonCode
public final LastUpdateStatus lastUpdateStatus()
The status of the last update that was performed on the function. This is first set to Successful
after function creation completes.
If the service returns an enum value that is not available in the current SDK version, lastUpdateStatus
will return LastUpdateStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from lastUpdateStatusAsString()
.
Successful
after function creation completes.LastUpdateStatus
public final String lastUpdateStatusAsString()
The status of the last update that was performed on the function. This is first set to Successful
after function creation completes.
If the service returns an enum value that is not available in the current SDK version, lastUpdateStatus
will return LastUpdateStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from lastUpdateStatusAsString()
.
Successful
after function creation completes.LastUpdateStatus
public final String lastUpdateStatusReason()
The reason for the last update that was performed on the function.
public final LastUpdateStatusReasonCode lastUpdateStatusReasonCode()
The reason code for the last update that was performed on the function.
If the service returns an enum value that is not available in the current SDK version,
lastUpdateStatusReasonCode
will return LastUpdateStatusReasonCode.UNKNOWN_TO_SDK_VERSION
. The
raw value returned by the service is available from lastUpdateStatusReasonCodeAsString()
.
LastUpdateStatusReasonCode
public final String lastUpdateStatusReasonCodeAsString()
The reason code for the last update that was performed on the function.
If the service returns an enum value that is not available in the current SDK version,
lastUpdateStatusReasonCode
will return LastUpdateStatusReasonCode.UNKNOWN_TO_SDK_VERSION
. The
raw value returned by the service is available from lastUpdateStatusReasonCodeAsString()
.
LastUpdateStatusReasonCode
public final boolean hasFileSystemConfigs()
public final List<FileSystemConfig> fileSystemConfigs()
Connection settings for an Amazon EFS file system.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFileSystemConfigs()
to see if a value was sent in this field.
public final PackageType packageType()
The type of deployment package. Set to Image
for container image and set Zip
for .zip
file archive.
If the service returns an enum value that is not available in the current SDK version, packageType
will
return PackageType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
packageTypeAsString()
.
Image
for container image and set Zip
for .zip file archive.PackageType
public final String packageTypeAsString()
The type of deployment package. Set to Image
for container image and set Zip
for .zip
file archive.
If the service returns an enum value that is not available in the current SDK version, packageType
will
return PackageType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
packageTypeAsString()
.
Image
for container image and set Zip
for .zip file archive.PackageType
public final ImageConfigResponse imageConfigResponse()
The function's image configuration values.
public final String signingProfileVersionArn()
The ARN of the signing profile version.
public final String signingJobArn()
The ARN of the signing job.
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 final int hashCode()
hashCode
in class AwsResponse
public final boolean equals(Object obj)
equals
in class AwsResponse
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
public final <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.