Class AwsLambdaFunctionDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsLambdaFunctionDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsLambdaFunctionDetails.Builder,AwsLambdaFunctionDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsLambdaFunctionDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsLambdaFunctionDetails.Builder,AwsLambdaFunctionDetails>
Details about an Lambda function's configuration.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsLambdaFunctionDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>architectures()The instruction set architecture that the function uses.static AwsLambdaFunctionDetails.Builderbuilder()AwsLambdaFunctionCodecode()AnAwsLambdaFunctionCodeobject.StringcodeSha256()The SHA256 hash of the function's deployment package.AwsLambdaFunctionDeadLetterConfigdeadLetterConfig()The function's dead letter queue.AwsLambdaFunctionEnvironmentenvironment()The function's environment variables.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfunctionName()The name of the function.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Stringhandler()The function that Lambda calls to begin executing your function.booleanhasArchitectures()For responses, this returns true if the service returned a value for the Architectures property.inthashCode()booleanhasLayers()For responses, this returns true if the service returned a value for the Layers property.StringkmsKeyArn()The KMS key that is used to encrypt the function's environment variables.StringlastModified()Indicates when the function was last updated.List<AwsLambdaFunctionLayer>layers()The function's layers.StringmasterArn()For Lambda@Edge functions, the ARN of the master function.IntegermemorySize()The memory that is allocated to the function.StringpackageType()The type of deployment package that's used to deploy the function code to Lambda.StringrevisionId()The latest updated revision of the function or alias.Stringrole()The function's execution role.Stringruntime()The runtime environment for the Lambda function.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsLambdaFunctionDetails.Builder>serializableBuilderClass()Integertimeout()The amount of time that Lambda allows a function to run before stopping it.AwsLambdaFunctionDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.AwsLambdaFunctionTracingConfigtracingConfig()The function's X-Ray tracing configuration.Stringversion()The version of the Lambda function.AwsLambdaFunctionVpcConfigvpcConfig()The function's networking configuration.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
code
public final AwsLambdaFunctionCode code()
An
AwsLambdaFunctionCodeobject.- Returns:
- An
AwsLambdaFunctionCodeobject.
-
codeSha256
public final String codeSha256()
The SHA256 hash of the function's deployment package.
- Returns:
- The SHA256 hash of the function's deployment package.
-
deadLetterConfig
public final AwsLambdaFunctionDeadLetterConfig deadLetterConfig()
The function's dead letter queue.
- Returns:
- The function's dead letter queue.
-
environment
public final AwsLambdaFunctionEnvironment environment()
The function's environment variables.
- Returns:
- The function's environment variables.
-
functionName
public final String functionName()
The name of the function.
- Returns:
- The name of the function.
-
handler
public final String handler()
The function that Lambda calls to begin executing your function.
- Returns:
- The function that Lambda calls to begin executing your function.
-
kmsKeyArn
public final String kmsKeyArn()
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.
- Returns:
- 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.
-
lastModified
public final String lastModified()
Indicates when the function was last updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Indicates when the function was last updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
-
hasLayers
public final boolean hasLayers()
For responses, this returns true if the service returned a value for the Layers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
layers
public final List<AwsLambdaFunctionLayer> 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.- Returns:
- The function's layers.
-
masterArn
public final String masterArn()
For Lambda@Edge functions, the ARN of the master function.
- Returns:
- For Lambda@Edge functions, the ARN of the master function.
-
memorySize
public final Integer memorySize()
The memory that is allocated to the function.
- Returns:
- The memory that is allocated to the function.
-
revisionId
public final String revisionId()
The latest updated revision of the function or alias.
- Returns:
- The latest updated revision of the function or alias.
-
role
public final String role()
The function's execution role.
- Returns:
- The function's execution role.
-
runtime
public final String runtime()
The runtime environment for the Lambda function.
- Returns:
- The runtime environment for the Lambda function.
-
timeout
public final Integer timeout()
The amount of time that Lambda allows a function to run before stopping it.
- Returns:
- The amount of time that Lambda allows a function to run before stopping it.
-
tracingConfig
public final AwsLambdaFunctionTracingConfig tracingConfig()
The function's X-Ray tracing configuration.
- Returns:
- The function's X-Ray tracing configuration.
-
vpcConfig
public final AwsLambdaFunctionVpcConfig vpcConfig()
The function's networking configuration.
- Returns:
- The function's networking configuration.
-
version
public final String version()
The version of the Lambda function.
- Returns:
- The version of the Lambda function.
-
hasArchitectures
public final boolean hasArchitectures()
For responses, this returns true if the service returned a value for the Architectures property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
architectures
public final List<String> architectures()
The instruction set architecture that the function uses. Valid values are
x86_64orarm64.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.- Returns:
- The instruction set architecture that the function uses. Valid values are
x86_64orarm64.
-
packageType
public final String packageType()
The type of deployment package that's used to deploy the function code to Lambda. Set to
Imagefor a container image andZipfor a .zip file archive.- Returns:
- The type of deployment package that's used to deploy the function code to Lambda. Set to
Imagefor a container image andZipfor a .zip file archive.
-
toBuilder
public AwsLambdaFunctionDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsLambdaFunctionDetails.Builder,AwsLambdaFunctionDetails>
-
builder
public static AwsLambdaFunctionDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsLambdaFunctionDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-