JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lambda.model

Class CreateFunctionRequest

    • Constructor Detail

      • CreateFunctionRequest

        public CreateFunctionRequest()
    • Method Detail

      • setFunctionName

        public void setFunctionName(String functionName)

        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Parameters:
        functionName - The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

      • getFunctionName

        public String getFunctionName()

        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Returns:
        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

      • withFunctionName

        public CreateFunctionRequest withFunctionName(String functionName)

        The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Parameters:
        functionName - The name or ARN of the Lambda function.

        Name formats

        • Function namemy-function.

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012: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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRuntime

        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.

        Parameters:
        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.

        See Also:
        Runtime
      • getRuntime

        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.

        Returns:
        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.

        See Also:
        Runtime
      • withRuntime

        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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime
      • setRuntime

        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.

        Parameters:
        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.

        See Also:
        Runtime
      • withRuntime

        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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Runtime
      • setRole

        public void setRole(String role)

        The Amazon Resource Name (ARN) of the function's execution role.

        Parameters:
        role - The Amazon Resource Name (ARN) of the function's execution role.
      • getRole

        public String getRole()

        The Amazon Resource Name (ARN) of the function's execution role.

        Returns:
        The Amazon Resource Name (ARN) of the function's execution role.
      • withRole

        public CreateFunctionRequest withRole(String role)

        The Amazon Resource Name (ARN) of the function's execution role.

        Parameters:
        role - The Amazon Resource Name (ARN) of the function's execution role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHandler

        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.

        Parameters:
        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.
      • getHandler

        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.

        Returns:
        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.
      • withHandler

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCode

        public void setCode(FunctionCode code)

        The code for the function.

        Parameters:
        code - The code for the function.
      • getCode

        public FunctionCode getCode()

        The code for the function.

        Returns:
        The code for the function.
      • withCode

        public CreateFunctionRequest withCode(FunctionCode code)

        The code for the function.

        Parameters:
        code - The code for the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDescription

        public void setDescription(String description)

        A description of the function.

        Parameters:
        description - A description of the function.
      • getDescription

        public String getDescription()

        A description of the function.

        Returns:
        A description of the function.
      • withDescription

        public CreateFunctionRequest withDescription(String description)

        A description of the function.

        Parameters:
        description - A description of the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTimeout

        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.

        Parameters:
        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.
      • getTimeout

        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.

        Returns:
        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.
      • withTimeout

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMemorySize

        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.

        Parameters:
        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.
      • getMemorySize

        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.

        Returns:
        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.
      • withMemorySize

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPublish

        public void setPublish(Boolean publish)

        Set to true to publish the first version of the function during creation.

        Parameters:
        publish - Set to true to publish the first version of the function during creation.
      • getPublish

        public Boolean getPublish()

        Set to true to publish the first version of the function during creation.

        Returns:
        Set to true to publish the first version of the function during creation.
      • withPublish

        public CreateFunctionRequest withPublish(Boolean publish)

        Set to true to publish the first version of the function during creation.

        Parameters:
        publish - Set to true to publish the first version of the function during creation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isPublish

        public Boolean isPublish()

        Set to true to publish the first version of the function during creation.

        Returns:
        Set to true to publish the first version of the function during creation.
      • setVpcConfig

        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.

        Parameters:
        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.
      • getVpcConfig

        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.

        Returns:
        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.
      • withVpcConfig

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPackageType

        public void setPackageType(String packageType)

        The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

        Parameters:
        packageType - The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.
        See Also:
        PackageType
      • getPackageType

        public String getPackageType()

        The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

        Returns:
        The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.
        See Also:
        PackageType
      • withPackageType

        public CreateFunctionRequest withPackageType(String packageType)

        The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

        Parameters:
        packageType - The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PackageType
      • setPackageType

        public void setPackageType(PackageType packageType)

        The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

        Parameters:
        packageType - The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.
        See Also:
        PackageType
      • withPackageType

        public CreateFunctionRequest withPackageType(PackageType packageType)

        The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.

        Parameters:
        packageType - The type of deployment package. Set to Image for container image and set to Zip for .zip file archive.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PackageType
      • setDeadLetterConfig

        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.

        Parameters:
        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.
      • getDeadLetterConfig

        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.

        Returns:
        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.
      • withDeadLetterConfig

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEnvironment

        public void setEnvironment(Environment environment)

        Environment variables that are accessible from function code during execution.

        Parameters:
        environment - Environment variables that are accessible from function code during execution.
      • getEnvironment

        public Environment getEnvironment()

        Environment variables that are accessible from function code during execution.

        Returns:
        Environment variables that are accessible from function code during execution.
      • withEnvironment

        public CreateFunctionRequest withEnvironment(Environment environment)

        Environment variables that are accessible from function code during execution.

        Parameters:
        environment - Environment variables that are accessible from function code during execution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setKMSKeyArn

        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.

        Parameters:
        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.
      • getKMSKeyArn

        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.

        Returns:
        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.
      • withKMSKeyArn

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTracingConfig

        public void setTracingConfig(TracingConfig tracingConfig)

        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

        Parameters:
        tracingConfig - Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
      • getTracingConfig

        public TracingConfig getTracingConfig()

        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

        Returns:
        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
      • withTracingConfig

        public CreateFunctionRequest withTracingConfig(TracingConfig tracingConfig)

        Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.

        Parameters:
        tracingConfig - Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public Map<String,String> getTags()

        A list of tags to apply to the function.

        Returns:
        A list of tags to apply to the function.
      • setTags

        public void setTags(Map<String,String> tags)

        A list of tags to apply to the function.

        Parameters:
        tags - A list of tags to apply to the function.
      • withTags

        public CreateFunctionRequest withTags(Map<String,String> tags)

        A list of tags to apply to the function.

        Parameters:
        tags - A list of tags to apply to the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearTagsEntries

        public CreateFunctionRequest clearTagsEntries()
        Removes all the entries added into Tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getLayers

        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.

        Returns:
        A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
      • setLayers

        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.

        Parameters:
        layers - A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
      • withLayers

        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.

        Parameters:
        layers - A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withLayers

        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.

        Parameters:
        layers - A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getFileSystemConfigs

        public List<FileSystemConfig> getFileSystemConfigs()

        Connection settings for an Amazon EFS file system.

        Returns:
        Connection settings for an Amazon EFS file system.
      • setFileSystemConfigs

        public void setFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)

        Connection settings for an Amazon EFS file system.

        Parameters:
        fileSystemConfigs - Connection settings for an Amazon EFS file system.
      • withFileSystemConfigs

        public CreateFunctionRequest withFileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)

        Connection settings for an Amazon EFS file system.

        Parameters:
        fileSystemConfigs - Connection settings for an Amazon EFS file system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setImageConfig

        public void setImageConfig(ImageConfig imageConfig)

        Container image configuration values that override the values in the container image Dockerfile.

        Parameters:
        imageConfig - Container image configuration values that override the values in the container image Dockerfile.
      • getImageConfig

        public ImageConfig getImageConfig()

        Container image configuration values that override the values in the container image Dockerfile.

        Returns:
        Container image configuration values that override the values in the container image Dockerfile.
      • withImageConfig

        public CreateFunctionRequest withImageConfig(ImageConfig imageConfig)

        Container image configuration values that override the values in the container image Dockerfile.

        Parameters:
        imageConfig - Container image configuration values that override the values in the container image Dockerfile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCodeSigningConfigArn

        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.

        Parameters:
        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.
      • getCodeSigningConfigArn

        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.

        Returns:
        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.
      • withCodeSigningConfigArn

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getArchitectures

        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.

        Returns:
        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.
        See Also:
        Architecture
      • setArchitectures

        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.

        Parameters:
        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.
        See Also:
        Architecture
      • withArchitectures

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Architecture
      • withArchitectures

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Architecture
      • withArchitectures

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Architecture
      • setEphemeralStorage

        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).

        Parameters:
        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).
      • getEphemeralStorage

        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).

        Returns:
        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).
      • withEphemeralStorage

        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).

        Parameters:
        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).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSnapStart

        public void setSnapStart(SnapStart snapStart)

        The function's SnapStart setting.

        Parameters:
        snapStart - The function's SnapStart setting.
      • withSnapStart

        public CreateFunctionRequest withSnapStart(SnapStart snapStart)

        The function's SnapStart setting.

        Parameters:
        snapStart - The function's SnapStart setting.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLoggingConfig

        public void setLoggingConfig(LoggingConfig loggingConfig)

        The function's Amazon CloudWatch Logs configuration settings.

        Parameters:
        loggingConfig - The function's Amazon CloudWatch Logs configuration settings.
      • getLoggingConfig

        public LoggingConfig getLoggingConfig()

        The function's Amazon CloudWatch Logs configuration settings.

        Returns:
        The function's Amazon CloudWatch Logs configuration settings.
      • withLoggingConfig

        public CreateFunctionRequest withLoggingConfig(LoggingConfig loggingConfig)

        The function's Amazon CloudWatch Logs configuration settings.

        Parameters:
        loggingConfig - The function's Amazon CloudWatch Logs configuration settings.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public 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.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /