@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsLambdaFunctionDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about an Lambda function's configuration.
Constructor and Description |
---|
AwsLambdaFunctionDetails() |
Modifier and Type | Method and Description |
---|---|
AwsLambdaFunctionDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getArchitectures()
The instruction set architecture that the function uses.
|
AwsLambdaFunctionCode |
getCode()
An
AwsLambdaFunctionCode object. |
String |
getCodeSha256()
The SHA256 hash of the function's deployment package.
|
AwsLambdaFunctionDeadLetterConfig |
getDeadLetterConfig()
The function's dead letter queue.
|
AwsLambdaFunctionEnvironment |
getEnvironment()
The function's environment variables.
|
String |
getFunctionName()
The name of the function.
|
String |
getHandler()
The function that Lambda calls to begin executing your function.
|
String |
getKmsKeyArn()
The KMS key that is used to encrypt the function's environment variables.
|
String |
getLastModified()
Indicates when the function was last updated.
|
List<AwsLambdaFunctionLayer> |
getLayers()
The function's layers.
|
String |
getMasterArn()
For Lambda@Edge functions, the ARN of the master function.
|
Integer |
getMemorySize()
The memory that is allocated to the function.
|
String |
getPackageType()
The type of deployment package that's used to deploy the function code to Lambda.
|
String |
getRevisionId()
The latest updated revision of the function or alias.
|
String |
getRole()
The function's execution role.
|
String |
getRuntime()
The runtime environment for the Lambda function.
|
Integer |
getTimeout()
The amount of time that Lambda allows a function to run before stopping it.
|
AwsLambdaFunctionTracingConfig |
getTracingConfig()
The function's X-Ray tracing configuration.
|
String |
getVersion()
The version of the Lambda function.
|
AwsLambdaFunctionVpcConfig |
getVpcConfig()
The function's networking configuration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArchitectures(Collection<String> architectures)
The instruction set architecture that the function uses.
|
void |
setCode(AwsLambdaFunctionCode code)
An
AwsLambdaFunctionCode object. |
void |
setCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
void |
setDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
void |
setEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
|
void |
setFunctionName(String functionName)
The name of the function.
|
void |
setHandler(String handler)
The function that Lambda calls to begin executing your function.
|
void |
setKmsKeyArn(String kmsKeyArn)
The KMS key that is used to encrypt the function's environment variables.
|
void |
setLastModified(String lastModified)
Indicates when the function was last updated.
|
void |
setLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
|
void |
setMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
|
void |
setMemorySize(Integer memorySize)
The memory that is allocated to the function.
|
void |
setPackageType(String packageType)
The type of deployment package that's used to deploy the function code to Lambda.
|
void |
setRevisionId(String revisionId)
The latest updated revision of the function or alias.
|
void |
setRole(String role)
The function's execution role.
|
void |
setRuntime(String runtime)
The runtime environment for the Lambda function.
|
void |
setTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
|
void |
setTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
|
void |
setVersion(String version)
The version of the Lambda function.
|
void |
setVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
|
String |
toString()
Returns a string representation of this object.
|
AwsLambdaFunctionDetails |
withArchitectures(Collection<String> architectures)
The instruction set architecture that the function uses.
|
AwsLambdaFunctionDetails |
withArchitectures(String... architectures)
The instruction set architecture that the function uses.
|
AwsLambdaFunctionDetails |
withCode(AwsLambdaFunctionCode code)
An
AwsLambdaFunctionCode object. |
AwsLambdaFunctionDetails |
withCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
|
AwsLambdaFunctionDetails |
withDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
|
AwsLambdaFunctionDetails |
withEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
|
AwsLambdaFunctionDetails |
withFunctionName(String functionName)
The name of the function.
|
AwsLambdaFunctionDetails |
withHandler(String handler)
The function that Lambda calls to begin executing your function.
|
AwsLambdaFunctionDetails |
withKmsKeyArn(String kmsKeyArn)
The KMS key that is used to encrypt the function's environment variables.
|
AwsLambdaFunctionDetails |
withLastModified(String lastModified)
Indicates when the function was last updated.
|
AwsLambdaFunctionDetails |
withLayers(AwsLambdaFunctionLayer... layers)
The function's layers.
|
AwsLambdaFunctionDetails |
withLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
|
AwsLambdaFunctionDetails |
withMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
|
AwsLambdaFunctionDetails |
withMemorySize(Integer memorySize)
The memory that is allocated to the function.
|
AwsLambdaFunctionDetails |
withPackageType(String packageType)
The type of deployment package that's used to deploy the function code to Lambda.
|
AwsLambdaFunctionDetails |
withRevisionId(String revisionId)
The latest updated revision of the function or alias.
|
AwsLambdaFunctionDetails |
withRole(String role)
The function's execution role.
|
AwsLambdaFunctionDetails |
withRuntime(String runtime)
The runtime environment for the Lambda function.
|
AwsLambdaFunctionDetails |
withTimeout(Integer timeout)
The amount of time that Lambda allows a function to run before stopping it.
|
AwsLambdaFunctionDetails |
withTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
|
AwsLambdaFunctionDetails |
withVersion(String version)
The version of the Lambda function.
|
AwsLambdaFunctionDetails |
withVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
|
public void setCode(AwsLambdaFunctionCode code)
An AwsLambdaFunctionCode
object.
code
- An AwsLambdaFunctionCode
object.public AwsLambdaFunctionCode getCode()
An AwsLambdaFunctionCode
object.
AwsLambdaFunctionCode
object.public AwsLambdaFunctionDetails withCode(AwsLambdaFunctionCode code)
An AwsLambdaFunctionCode
object.
code
- An AwsLambdaFunctionCode
object.public void setCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
codeSha256
- The SHA256 hash of the function's deployment package.public String getCodeSha256()
The SHA256 hash of the function's deployment package.
public AwsLambdaFunctionDetails withCodeSha256(String codeSha256)
The SHA256 hash of the function's deployment package.
codeSha256
- The SHA256 hash of the function's deployment package.public void setDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.public AwsLambdaFunctionDeadLetterConfig getDeadLetterConfig()
The function's dead letter queue.
public AwsLambdaFunctionDetails withDeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)
The function's dead letter queue.
deadLetterConfig
- The function's dead letter queue.public void setEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
environment
- The function's environment variables.public AwsLambdaFunctionEnvironment getEnvironment()
The function's environment variables.
public AwsLambdaFunctionDetails withEnvironment(AwsLambdaFunctionEnvironment environment)
The function's environment variables.
environment
- The function's environment variables.public void setFunctionName(String functionName)
The name of the function.
functionName
- The name of the function.public String getFunctionName()
The name of the function.
public AwsLambdaFunctionDetails withFunctionName(String functionName)
The name of the function.
functionName
- The name of the function.public void setHandler(String handler)
The function that Lambda calls to begin executing your function.
handler
- The function that Lambda calls to begin executing your function.public String getHandler()
The function that Lambda calls to begin executing your function.
public AwsLambdaFunctionDetails withHandler(String handler)
The function that Lambda calls to begin executing your function.
handler
- The function that Lambda calls to begin executing your function.public void setKmsKeyArn(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.
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.public String getKmsKeyArn()
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.
public AwsLambdaFunctionDetails withKmsKeyArn(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.
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.public void setLastModified(String lastModified)
Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
lastModified
- Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public String getLastModified()
Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsLambdaFunctionDetails withLastModified(String lastModified)
Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
lastModified
- Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public List<AwsLambdaFunctionLayer> getLayers()
The function's layers.
public void setLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
layers
- The function's layers.public AwsLambdaFunctionDetails withLayers(AwsLambdaFunctionLayer... layers)
The function's layers.
NOTE: This method appends the values to the existing list (if any). Use
setLayers(java.util.Collection)
or withLayers(java.util.Collection)
if you want to override the
existing values.
layers
- The function's layers.public AwsLambdaFunctionDetails withLayers(Collection<AwsLambdaFunctionLayer> layers)
The function's layers.
layers
- The function's layers.public void setMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
masterArn
- For Lambda@Edge functions, the ARN of the master function.public String getMasterArn()
For Lambda@Edge functions, the ARN of the master function.
public AwsLambdaFunctionDetails withMasterArn(String masterArn)
For Lambda@Edge functions, the ARN of the master function.
masterArn
- For Lambda@Edge functions, the ARN of the master function.public void setMemorySize(Integer memorySize)
The memory that is allocated to the function.
memorySize
- The memory that is allocated to the function.public Integer getMemorySize()
The memory that is allocated to the function.
public AwsLambdaFunctionDetails withMemorySize(Integer memorySize)
The memory that is allocated to the function.
memorySize
- The memory that is allocated to the function.public void setRevisionId(String revisionId)
The latest updated revision of the function or alias.
revisionId
- The latest updated revision of the function or alias.public String getRevisionId()
The latest updated revision of the function or alias.
public AwsLambdaFunctionDetails withRevisionId(String revisionId)
The latest updated revision of the function or alias.
revisionId
- The latest updated revision of the function or alias.public void setRole(String role)
The function's execution role.
role
- The function's execution role.public String getRole()
The function's execution role.
public AwsLambdaFunctionDetails withRole(String role)
The function's execution role.
role
- The function's execution role.public void setRuntime(String runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.public String getRuntime()
The runtime environment for the Lambda function.
public AwsLambdaFunctionDetails withRuntime(String runtime)
The runtime environment for the Lambda function.
runtime
- The runtime environment for the Lambda function.public void setTimeout(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.public Integer getTimeout()
The amount of time that Lambda allows a function to run before stopping it.
public AwsLambdaFunctionDetails withTimeout(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.public void setTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
tracingConfig
- The function's X-Ray tracing configuration.public AwsLambdaFunctionTracingConfig getTracingConfig()
The function's X-Ray tracing configuration.
public AwsLambdaFunctionDetails withTracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)
The function's X-Ray tracing configuration.
tracingConfig
- The function's X-Ray tracing configuration.public void setVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.public AwsLambdaFunctionVpcConfig getVpcConfig()
The function's networking configuration.
public AwsLambdaFunctionDetails withVpcConfig(AwsLambdaFunctionVpcConfig vpcConfig)
The function's networking configuration.
vpcConfig
- The function's networking configuration.public void setVersion(String version)
The version of the Lambda function.
version
- The version of the Lambda function.public String getVersion()
The version of the Lambda function.
public AwsLambdaFunctionDetails withVersion(String version)
The version of the Lambda function.
version
- The version of the Lambda function.public List<String> getArchitectures()
The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.
x86_64
or
arm64
.public void setArchitectures(Collection<String> architectures)
The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.
architectures
- The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.public AwsLambdaFunctionDetails withArchitectures(String... architectures)
The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.
NOTE: This method appends the values to the existing list (if any). Use
setArchitectures(java.util.Collection)
or withArchitectures(java.util.Collection)
if you want
to override the existing values.
architectures
- The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.public AwsLambdaFunctionDetails withArchitectures(Collection<String> architectures)
The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.
architectures
- The instruction set architecture that the function uses. Valid values are x86_64
or
arm64
.public void setPackageType(String packageType)
The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
container image and Zip
for a .zip file archive.
packageType
- The type of deployment package that's used to deploy the function code to Lambda. Set to
Image
for a container image and Zip
for a .zip file archive.public String getPackageType()
The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
container image and Zip
for a .zip file archive.
Image
for a container image and Zip
for a .zip file archive.public AwsLambdaFunctionDetails withPackageType(String packageType)
The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a
container image and Zip
for a .zip file archive.
packageType
- The type of deployment package that's used to deploy the function code to Lambda. Set to
Image
for a container image and Zip
for a .zip file archive.public String toString()
toString
in class Object
Object.toString()
public AwsLambdaFunctionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.