@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFunctionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateFunctionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFunctionRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateFunctionRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateFunctionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getArchitectures()
The instruction set architecture that the function supports.
|
FunctionCode |
getCode()
The code for the function.
|
String |
getCodeSigningConfigArn()
To enable code signing for this function, specify the ARN of a code-signing configuration.
|
DeadLetterConfig |
getDeadLetterConfig()
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
they fail processing.
|
String |
getDescription()
A description of the function.
|
Environment |
getEnvironment()
Environment variables that are accessible from function code during execution.
|
EphemeralStorage |
getEphemeralStorage()
The size of the function's
/tmp directory in MB. |
List<FileSystemConfig> |
getFileSystemConfigs()
Connection settings for an Amazon EFS file system.
|
String |
getFunctionName()
The name or ARN of the Lambda function.
|
String |
getHandler()
The name of the method within your code that Lambda calls to run your function.
|
ImageConfig |
getImageConfig()
Container image configuration values that
override the values in the container image Dockerfile.
|
String |
getKMSKeyArn()
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables.
|
List<String> |
getLayers()
A list of function layers to
add to the function's execution environment.
|
LoggingConfig |
getLoggingConfig()
The function's Amazon CloudWatch Logs configuration settings.
|
Integer |
getMemorySize()
The amount of memory available to the function at runtime.
|
String |
getPackageType()
The type of deployment package.
|
Boolean |
getPublish()
Set to true to publish the first version of the function during creation.
|
String |
getRole()
The Amazon Resource Name (ARN) of the function's execution role.
|
String |
getRuntime()
The identifier of the function's runtime.
|
SnapStart |
getSnapStart()
The function's SnapStart setting.
|
Map<String,String> |
getTags()
A list of tags to apply to the function.
|
Integer |
getTimeout()
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
TracingConfig |
getTracingConfig()
|
VpcConfig |
getVpcConfig()
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets
in the VPC.
|
int |
hashCode() |
Boolean |
isPublish()
Set to true to publish the first version of the function during creation.
|
void |
setArchitectures(Collection<String> architectures)
The instruction set architecture that the function supports.
|
void |
setCode(FunctionCode code)
The code for the function.
|
void |
setCodeSigningConfigArn(String codeSigningConfigArn)
To enable code signing for this function, specify the ARN of a code-signing configuration.
|
void |
setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
they fail processing.
|
void |
setDescription(String description)
A description of the function.
|
void |
setEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
|
void |
setEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function's
/tmp directory in MB. |
void |
setFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
void |
setFunctionName(String functionName)
The name or ARN of the Lambda function.
|
void |
setHandler(String handler)
The name of the method within your code that Lambda calls to run your function.
|
void |
setImageConfig(ImageConfig imageConfig)
Container image configuration values that
override the values in the container image Dockerfile.
|
void |
setKMSKeyArn(String kMSKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables.
|
void |
setLayers(Collection<String> layers)
A list of function layers to
add to the function's execution environment.
|
void |
setLoggingConfig(LoggingConfig loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.
|
void |
setMemorySize(Integer memorySize)
The amount of memory available to the function at runtime.
|
void |
setPackageType(PackageType packageType)
The type of deployment package.
|
void |
setPackageType(String packageType)
The type of deployment package.
|
void |
setPublish(Boolean publish)
Set to true to publish the first version of the function during creation.
|
void |
setRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
void |
setRuntime(Runtime runtime)
The identifier of the function's runtime.
|
void |
setRuntime(String runtime)
The identifier of the function's runtime.
|
void |
setSnapStart(SnapStart snapStart)
The function's SnapStart setting.
|
void |
setTags(Map<String,String> tags)
A list of tags to apply to the function.
|
void |
setTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
void |
setTracingConfig(TracingConfig tracingConfig)
|
void |
setVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets
in the VPC.
|
String |
toString()
Returns a string representation of this object.
|
CreateFunctionRequest |
withArchitectures(Architecture... architectures)
The instruction set architecture that the function supports.
|
CreateFunctionRequest |
withArchitectures(Collection<String> architectures)
The instruction set architecture that the function supports.
|
CreateFunctionRequest |
withArchitectures(String... architectures)
The instruction set architecture that the function supports.
|
CreateFunctionRequest |
withCode(FunctionCode code)
The code for the function.
|
CreateFunctionRequest |
withCodeSigningConfigArn(String codeSigningConfigArn)
To enable code signing for this function, specify the ARN of a code-signing configuration.
|
CreateFunctionRequest |
withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when
they fail processing.
|
CreateFunctionRequest |
withDescription(String description)
A description of the function.
|
CreateFunctionRequest |
withEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
|
CreateFunctionRequest |
withEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function's
/tmp directory in MB. |
CreateFunctionRequest |
withFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
CreateFunctionRequest |
withFileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
CreateFunctionRequest |
withFunctionName(String functionName)
The name or ARN of the Lambda function.
|
CreateFunctionRequest |
withHandler(String handler)
The name of the method within your code that Lambda calls to run your function.
|
CreateFunctionRequest |
withImageConfig(ImageConfig imageConfig)
Container image configuration values that
override the values in the container image Dockerfile.
|
CreateFunctionRequest |
withKMSKeyArn(String kMSKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables.
|
CreateFunctionRequest |
withLayers(Collection<String> layers)
A list of function layers to
add to the function's execution environment.
|
CreateFunctionRequest |
withLayers(String... layers)
A list of function layers to
add to the function's execution environment.
|
CreateFunctionRequest |
withLoggingConfig(LoggingConfig loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.
|
CreateFunctionRequest |
withMemorySize(Integer memorySize)
The amount of memory available to the function at runtime.
|
CreateFunctionRequest |
withPackageType(PackageType packageType)
The type of deployment package.
|
CreateFunctionRequest |
withPackageType(String packageType)
The type of deployment package.
|
CreateFunctionRequest |
withPublish(Boolean publish)
Set to true to publish the first version of the function during creation.
|
CreateFunctionRequest |
withRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
CreateFunctionRequest |
withRuntime(Runtime runtime)
The identifier of the function's runtime.
|
CreateFunctionRequest |
withRuntime(String runtime)
The identifier of the function's runtime.
|
CreateFunctionRequest |
withSnapStart(SnapStart snapStart)
The function's SnapStart setting.
|
CreateFunctionRequest |
withTags(Map<String,String> tags)
A list of tags to apply to the function.
|
CreateFunctionRequest |
withTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
CreateFunctionRequest |
withTracingConfig(TracingConfig tracingConfig)
|
CreateFunctionRequest |
withVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets
in the VPC.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFunctionName(String functionName)
The name or ARN of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name or ARN of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The name or ARN of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public CreateFunctionRequest withFunctionName(String functionName)
The name or ARN of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name or ARN of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setRuntime(String runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
runtime
- The identifier of the function's runtime. Runtime is required
if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
public String getRuntime()
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
public CreateFunctionRequest withRuntime(String runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
runtime
- The identifier of the function's runtime. Runtime is required
if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
public void setRuntime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
runtime
- The identifier of the function's runtime. Runtime is required
if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
public CreateFunctionRequest withRuntime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
runtime
- The identifier of the function's runtime. Runtime is required
if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
public void setRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.public String getRole()
The Amazon Resource Name (ARN) of the function's execution role.
public CreateFunctionRequest withRole(String role)
The Amazon Resource Name (ARN) of the function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.public void setHandler(String handler)
The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
handler
- The name of the method within your code that Lambda calls to run your function. Handler is required if the
deployment package is a .zip file archive. The format includes the file name. It can also include
namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming
model.public String getHandler()
The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
public CreateFunctionRequest withHandler(String handler)
The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
handler
- The name of the method within your code that Lambda calls to run your function. Handler is required if the
deployment package is a .zip file archive. The format includes the file name. It can also include
namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming
model.public void setCode(FunctionCode code)
The code for the function.
code
- The code for the function.public FunctionCode getCode()
The code for the function.
public CreateFunctionRequest withCode(FunctionCode code)
The code for the function.
code
- The code for the function.public void setDescription(String description)
A description of the function.
description
- A description of the function.public String getDescription()
A description of the function.
public CreateFunctionRequest withDescription(String description)
A description of the function.
description
- A description of the function.public void setTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
timeout
- The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3
seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution
environment.public Integer getTimeout()
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
public CreateFunctionRequest withTimeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
timeout
- The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3
seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution
environment.public void setMemorySize(Integer memorySize)
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
memorySize
- The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple of 1 MB.public Integer getMemorySize()
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
public CreateFunctionRequest withMemorySize(Integer memorySize)
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
memorySize
- The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple of 1 MB.public void setPublish(Boolean publish)
Set to true to publish the first version of the function during creation.
publish
- Set to true to publish the first version of the function during creation.public Boolean getPublish()
Set to true to publish the first version of the function during creation.
public CreateFunctionRequest withPublish(Boolean publish)
Set to true to publish the first version of the function during creation.
publish
- Set to true to publish the first version of the function during creation.public Boolean isPublish()
Set to true to publish the first version of the function during creation.
public void setVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only
through that VPC. For more information, see Configuring a Lambda function
to access resources in a VPC.public VpcConfig getVpcConfig()
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
public CreateFunctionRequest withVpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only
through that VPC. For more information, see Configuring a Lambda function
to access resources in a VPC.public void setPackageType(String packageType)
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
packageType
- The type of deployment package. Set to Image
for container image and set to Zip
for .zip file archive.PackageType
public String getPackageType()
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
Image
for container image and set to Zip
for .zip file archive.PackageType
public CreateFunctionRequest withPackageType(String packageType)
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
packageType
- The type of deployment package. Set to Image
for container image and set to Zip
for .zip file archive.PackageType
public void setPackageType(PackageType packageType)
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
packageType
- The type of deployment package. Set to Image
for container image and set to Zip
for .zip file archive.PackageType
public CreateFunctionRequest withPackageType(PackageType packageType)
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
packageType
- The type of deployment package. Set to Image
for container image and set to Zip
for .zip file archive.PackageType
public void setDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.
deadLetterConfig
- A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing. For more information, see Dead-letter
queues.public DeadLetterConfig getDeadLetterConfig()
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.
public CreateFunctionRequest withDeadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.
deadLetterConfig
- A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing. For more information, see Dead-letter
queues.public void setEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.public Environment getEnvironment()
Environment variables that are accessible from function code during execution.
public CreateFunctionRequest withEnvironment(Environment environment)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.public void setKMSKeyArn(String kMSKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
kMSKeyArn
- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is
activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function
using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that
this is not the same key that's used to protect your container image in the Amazon Elastic Container
Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.public String getKMSKeyArn()
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
public CreateFunctionRequest withKMSKeyArn(String kMSKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
kMSKeyArn
- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is
activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function
using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that
this is not the same key that's used to protect your container image in the Amazon Elastic Container
Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.public void setTracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.public TracingConfig getTracingConfig()
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.public CreateFunctionRequest withTracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.public Map<String,String> getTags()
A list of tags to apply to the function.
public void setTags(Map<String,String> tags)
A list of tags to apply to the function.
tags
- A list of tags to apply to the
function.public CreateFunctionRequest withTags(Map<String,String> tags)
A list of tags to apply to the function.
tags
- A list of tags to apply to the
function.public CreateFunctionRequest addTagsEntry(String key, String value)
public CreateFunctionRequest clearTagsEntries()
public List<String> getLayers()
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
public void setLayers(Collection<String> layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including the
version.public CreateFunctionRequest withLayers(String... layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
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
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including the
version.public CreateFunctionRequest withLayers(Collection<String> layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including the
version.public List<FileSystemConfig> getFileSystemConfigs()
Connection settings for an Amazon EFS file system.
public void setFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.public CreateFunctionRequest withFileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
NOTE: This method appends the values to the existing list (if any). Use
setFileSystemConfigs(java.util.Collection)
or withFileSystemConfigs(java.util.Collection)
if
you want to override the existing values.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.public CreateFunctionRequest withFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.public void setImageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Dockerfile.
imageConfig
- Container image configuration
values that override the values in the container image Dockerfile.public ImageConfig getImageConfig()
Container image configuration values that override the values in the container image Dockerfile.
public CreateFunctionRequest withImageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Dockerfile.
imageConfig
- Container image configuration
values that override the values in the container image Dockerfile.public void setCodeSigningConfigArn(String codeSigningConfigArn)
To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
codeSigningConfigArn
- To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing
configuration includes a set of signing profiles, which define the trusted publishers for this function.public String getCodeSigningConfigArn()
To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
public CreateFunctionRequest withCodeSigningConfigArn(String codeSigningConfigArn)
To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
codeSigningConfigArn
- To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing
configuration includes a set of signing profiles, which define the trusted publishers for this function.public List<String> getArchitectures()
The instruction set architecture that the function supports. Enter a string array with one of the valid values
(arm64 or x86_64). The default value is x86_64
.
x86_64
.Architecture
public void setArchitectures(Collection<String> architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid values
(arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.Architecture
public CreateFunctionRequest withArchitectures(String... architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid values
(arm64 or x86_64). The default value is x86_64
.
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 supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.Architecture
public CreateFunctionRequest withArchitectures(Collection<String> architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid values
(arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.Architecture
public CreateFunctionRequest withArchitectures(Architecture... architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid values
(arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.Architecture
public void setEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole
number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
ephemeralStorage
- The size of the function's /tmp
directory in MB. The default value is 512, but can be any
whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).public EphemeralStorage getEphemeralStorage()
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole
number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
/tmp
directory in MB. The default value is 512, but can be any
whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).public CreateFunctionRequest withEphemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole
number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
ephemeralStorage
- The size of the function's /tmp
directory in MB. The default value is 512, but can be any
whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).public void setSnapStart(SnapStart snapStart)
The function's SnapStart setting.
snapStart
- The function's SnapStart
setting.public SnapStart getSnapStart()
The function's SnapStart setting.
public CreateFunctionRequest withSnapStart(SnapStart snapStart)
The function's SnapStart setting.
snapStart
- The function's SnapStart
setting.public void setLoggingConfig(LoggingConfig loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.
loggingConfig
- The function's Amazon CloudWatch Logs configuration settings.public LoggingConfig getLoggingConfig()
The function's Amazon CloudWatch Logs configuration settings.
public CreateFunctionRequest withLoggingConfig(LoggingConfig loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.
loggingConfig
- The function's Amazon CloudWatch Logs configuration settings.public String toString()
toString
in class Object
Object.toString()
public CreateFunctionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()