@Generated(value="software.amazon.awssdk:codegen") public final class GetFunctionConfigurationResponse extends LambdaResponse implements ToCopyableBuilder<GetFunctionConfigurationResponse.Builder,GetFunctionConfigurationResponse>
Details about a function's configuration.
Modifier and Type | Class and Description |
---|---|
static interface |
GetFunctionConfigurationResponse.Builder |
Modifier and Type | Method and Description |
---|---|
List<Architecture> |
architectures()
The instruction set architecture that the function supports.
|
List<String> |
architecturesAsStrings()
The instruction set architecture that the function supports.
|
static GetFunctionConfigurationResponse.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.
|
EphemeralStorage |
ephemeralStorage()
The size of the function’s
/tmp directory in MB. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
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) |
String |
handler()
The function that Lambda calls to begin running your function.
|
boolean |
hasArchitectures()
For responses, this returns true if the service returned a value for the Architectures property.
|
boolean |
hasFileSystemConfigs()
For responses, this returns true if the service returned a value for the FileSystemConfigs property.
|
int |
hashCode() |
boolean |
hasLayers()
For responses, this returns true if the service returned a value for the Layers property.
|
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 main 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.
|
RuntimeVersionConfig |
runtimeVersionConfig()
The ARN of the runtime and any errors that occured.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetFunctionConfigurationResponse.Builder> |
serializableBuilderClass() |
String |
signingJobArn()
The ARN of the signing job.
|
String |
signingProfileVersionArn()
The ARN of the signing profile version.
|
SnapStartResponse |
snapStart()
Set
ApplyOn to PublishedVersions to create a snapshot of the initialized execution
environment when you publish a function 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.
|
GetFunctionConfigurationResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TracingConfigResponse |
tracingConfig()
The function's X-Ray tracing configuration.
|
String |
version()
The version of the Lambda function.
|
VpcConfigResponse |
vpcConfig()
The function's networking configuration.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 running 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. Omitted from CloudTrail logs.
public final String kmsKeyArn()
The KMS key that's used to encrypt the function's environment variables. When Lambda SnapStart is activated, this key is also used to encrypt the function's snapshot. This key is returned only if you've configured a customer managed key.
public final TracingConfigResponse tracingConfig()
The function's X-Ray tracing configuration.
public final String masterArn()
For Lambda@Edge functions, the ARN of the main function.
public final String revisionId()
The latest updated revision of the function or alias.
public final boolean hasLayers()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Layer> layers()
The function's layers.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLayers()
method.
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()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFileSystemConfigs()
method.
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 final List<Architecture> architectures()
The instruction set architecture that the function supports. Architecture is a string array with one of the valid
values. The default architecture value is x86_64
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasArchitectures()
method.
x86_64
.public final boolean hasArchitectures()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> architecturesAsStrings()
The instruction set architecture that the function supports. Architecture is a string array with one of the valid
values. The default architecture value is x86_64
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasArchitectures()
method.
x86_64
.public final EphemeralStorage ephemeralStorage()
The size of the function’s /tmp
directory in MB. The default value is 512, but it can be any whole
number between 512 and 10,240 MB.
/tmp
directory in MB. The default value is 512, but it can be any
whole number between 512 and 10,240 MB.public final SnapStartResponse snapStart()
Set ApplyOn
to PublishedVersions
to create a snapshot of the initialized execution
environment when you publish a function version. For more information, see Improving startup performance with Lambda
SnapStart.
ApplyOn
to PublishedVersions
to create a snapshot of the initialized
execution environment when you publish a function version. For more information, see Improving startup performance with
Lambda SnapStart.public final RuntimeVersionConfig runtimeVersionConfig()
The ARN of the runtime and any errors that occured.
public GetFunctionConfigurationResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<GetFunctionConfigurationResponse.Builder,GetFunctionConfigurationResponse>
toBuilder
in class AwsResponse
public static GetFunctionConfigurationResponse.Builder builder()
public static Class<? extends GetFunctionConfigurationResponse.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)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2023. All rights reserved.