Class CfnFunctionProps.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunctionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionProps>
- Enclosing interface:
CfnFunctionProps
@Stability(Stable)
public static final class CfnFunctionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionProps>
A builder for
CfnFunctionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionarchitectures
(List<String> architectures) Sets the value ofCfnFunctionProps.getArchitectures()
assumeRolePolicyDocument
(Object assumeRolePolicyDocument) Sets the value ofCfnFunctionProps.getAssumeRolePolicyDocument()
autoPublishAlias
(String autoPublishAlias) Sets the value ofCfnFunctionProps.getAutoPublishAlias()
autoPublishCodeSha256
(String autoPublishCodeSha256) Sets the value ofCfnFunctionProps.getAutoPublishCodeSha256()
build()
Builds the configured instance.codeSigningConfigArn
(String codeSigningConfigArn) Sets the value ofCfnFunctionProps.getCodeSigningConfigArn()
Sets the value ofCfnFunctionProps.getCodeUri()
codeUri
(IResolvable codeUri) Sets the value ofCfnFunctionProps.getCodeUri()
codeUri
(CfnFunction.S3LocationProperty codeUri) Sets the value ofCfnFunctionProps.getCodeUri()
deadLetterQueue
(IResolvable deadLetterQueue) Sets the value ofCfnFunctionProps.getDeadLetterQueue()
deadLetterQueue
(CfnFunction.DeadLetterQueueProperty deadLetterQueue) Sets the value ofCfnFunctionProps.getDeadLetterQueue()
deploymentPreference
(IResolvable deploymentPreference) Sets the value ofCfnFunctionProps.getDeploymentPreference()
deploymentPreference
(CfnFunction.DeploymentPreferenceProperty deploymentPreference) Sets the value ofCfnFunctionProps.getDeploymentPreference()
description
(String description) Sets the value ofCfnFunctionProps.getDescription()
environment
(IResolvable environment) Sets the value ofCfnFunctionProps.getEnvironment()
environment
(CfnFunction.FunctionEnvironmentProperty environment) Sets the value ofCfnFunctionProps.getEnvironment()
ephemeralStorage
(IResolvable ephemeralStorage) Sets the value ofCfnFunctionProps.getEphemeralStorage()
ephemeralStorage
(CfnFunction.EphemeralStorageProperty ephemeralStorage) Sets the value ofCfnFunctionProps.getEphemeralStorage()
eventInvokeConfig
(IResolvable eventInvokeConfig) Sets the value ofCfnFunctionProps.getEventInvokeConfig()
eventInvokeConfig
(CfnFunction.EventInvokeConfigProperty eventInvokeConfig) Sets the value ofCfnFunctionProps.getEventInvokeConfig()
Sets the value ofCfnFunctionProps.getEvents()
events
(IResolvable events) Sets the value ofCfnFunctionProps.getEvents()
fileSystemConfigs
(List<? extends Object> fileSystemConfigs) Sets the value ofCfnFunctionProps.getFileSystemConfigs()
fileSystemConfigs
(IResolvable fileSystemConfigs) Sets the value ofCfnFunctionProps.getFileSystemConfigs()
functionName
(String functionName) Sets the value ofCfnFunctionProps.getFunctionName()
functionUrlConfig
(IResolvable functionUrlConfig) Sets the value ofCfnFunctionProps.getFunctionUrlConfig()
functionUrlConfig
(CfnFunction.FunctionUrlConfigProperty functionUrlConfig) Sets the value ofCfnFunctionProps.getFunctionUrlConfig()
Sets the value ofCfnFunctionProps.getHandler()
imageConfig
(IResolvable imageConfig) Sets the value ofCfnFunctionProps.getImageConfig()
imageConfig
(CfnFunction.ImageConfigProperty imageConfig) Sets the value ofCfnFunctionProps.getImageConfig()
Sets the value ofCfnFunctionProps.getImageUri()
inlineCode
(String inlineCode) Sets the value ofCfnFunctionProps.getInlineCode()
Sets the value ofCfnFunctionProps.getKmsKeyArn()
Sets the value ofCfnFunctionProps.getLayers()
memorySize
(Number memorySize) Sets the value ofCfnFunctionProps.getMemorySize()
packageType
(String packageType) Sets the value ofCfnFunctionProps.getPackageType()
permissionsBoundary
(String permissionsBoundary) Sets the value ofCfnFunctionProps.getPermissionsBoundary()
Sets the value ofCfnFunctionProps.getPolicies()
Sets the value ofCfnFunctionProps.getPolicies()
policies
(IResolvable policies) Sets the value ofCfnFunctionProps.getPolicies()
Sets the value ofCfnFunctionProps.getPolicies()
provisionedConcurrencyConfig
(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnFunctionProps.getProvisionedConcurrencyConfig()
provisionedConcurrencyConfig
(CfnFunction.ProvisionedConcurrencyConfigProperty provisionedConcurrencyConfig) Sets the value ofCfnFunctionProps.getProvisionedConcurrencyConfig()
reservedConcurrentExecutions
(Number reservedConcurrentExecutions) Sets the value ofCfnFunctionProps.getReservedConcurrentExecutions()
Sets the value ofCfnFunctionProps.getRole()
Sets the value ofCfnFunctionProps.getRuntime()
Sets the value ofCfnFunctionProps.getTags()
Sets the value ofCfnFunctionProps.getTimeout()
Sets the value ofCfnFunctionProps.getTracing()
versionDescription
(String versionDescription) Sets the value ofCfnFunctionProps.getVersionDescription()
vpcConfig
(IResolvable vpcConfig) Sets the value ofCfnFunctionProps.getVpcConfig()
vpcConfig
(CfnFunction.VpcConfigProperty vpcConfig) Sets the value ofCfnFunctionProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
architectures
Sets the value ofCfnFunctionProps.getArchitectures()
- Parameters:
architectures
- the value to be set.- Returns:
this
-
assumeRolePolicyDocument
@Stability(Stable) public CfnFunctionProps.Builder assumeRolePolicyDocument(Object assumeRolePolicyDocument) Sets the value ofCfnFunctionProps.getAssumeRolePolicyDocument()
- Parameters:
assumeRolePolicyDocument
- the value to be set.- Returns:
this
-
autoPublishAlias
Sets the value ofCfnFunctionProps.getAutoPublishAlias()
- Parameters:
autoPublishAlias
- the value to be set.- Returns:
this
-
autoPublishCodeSha256
@Stability(Stable) public CfnFunctionProps.Builder autoPublishCodeSha256(String autoPublishCodeSha256) Sets the value ofCfnFunctionProps.getAutoPublishCodeSha256()
- Parameters:
autoPublishCodeSha256
- the value to be set.- Returns:
this
-
codeSigningConfigArn
@Stability(Stable) public CfnFunctionProps.Builder codeSigningConfigArn(String codeSigningConfigArn) Sets the value ofCfnFunctionProps.getCodeSigningConfigArn()
- Parameters:
codeSigningConfigArn
- the value to be set.- Returns:
this
-
codeUri
Sets the value ofCfnFunctionProps.getCodeUri()
- Parameters:
codeUri
- the value to be set.- Returns:
this
-
codeUri
Sets the value ofCfnFunctionProps.getCodeUri()
- Parameters:
codeUri
- the value to be set.- Returns:
this
-
codeUri
Sets the value ofCfnFunctionProps.getCodeUri()
- Parameters:
codeUri
- the value to be set.- Returns:
this
-
deadLetterQueue
Sets the value ofCfnFunctionProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- the value to be set.- Returns:
this
-
deadLetterQueue
@Stability(Stable) public CfnFunctionProps.Builder deadLetterQueue(CfnFunction.DeadLetterQueueProperty deadLetterQueue) Sets the value ofCfnFunctionProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- the value to be set.- Returns:
this
-
deploymentPreference
@Stability(Stable) public CfnFunctionProps.Builder deploymentPreference(IResolvable deploymentPreference) Sets the value ofCfnFunctionProps.getDeploymentPreference()
- Parameters:
deploymentPreference
- the value to be set.- Returns:
this
-
deploymentPreference
@Stability(Stable) public CfnFunctionProps.Builder deploymentPreference(CfnFunction.DeploymentPreferenceProperty deploymentPreference) Sets the value ofCfnFunctionProps.getDeploymentPreference()
- Parameters:
deploymentPreference
- the value to be set.- Returns:
this
-
description
Sets the value ofCfnFunctionProps.getDescription()
- Parameters:
description
- the value to be set.- Returns:
this
-
environment
Sets the value ofCfnFunctionProps.getEnvironment()
- Parameters:
environment
- the value to be set.- Returns:
this
-
environment
@Stability(Stable) public CfnFunctionProps.Builder environment(CfnFunction.FunctionEnvironmentProperty environment) Sets the value ofCfnFunctionProps.getEnvironment()
- Parameters:
environment
- the value to be set.- Returns:
this
-
ephemeralStorage
Sets the value ofCfnFunctionProps.getEphemeralStorage()
- Parameters:
ephemeralStorage
- the value to be set.- Returns:
this
-
ephemeralStorage
@Stability(Stable) public CfnFunctionProps.Builder ephemeralStorage(CfnFunction.EphemeralStorageProperty ephemeralStorage) Sets the value ofCfnFunctionProps.getEphemeralStorage()
- Parameters:
ephemeralStorage
- the value to be set.- Returns:
this
-
eventInvokeConfig
Sets the value ofCfnFunctionProps.getEventInvokeConfig()
- Parameters:
eventInvokeConfig
- the value to be set.- Returns:
this
-
eventInvokeConfig
@Stability(Stable) public CfnFunctionProps.Builder eventInvokeConfig(CfnFunction.EventInvokeConfigProperty eventInvokeConfig) Sets the value ofCfnFunctionProps.getEventInvokeConfig()
- Parameters:
eventInvokeConfig
- the value to be set.- Returns:
this
-
events
Sets the value ofCfnFunctionProps.getEvents()
- Parameters:
events
- the value to be set.- Returns:
this
-
events
Sets the value ofCfnFunctionProps.getEvents()
- Parameters:
events
- the value to be set.- Returns:
this
-
fileSystemConfigs
Sets the value ofCfnFunctionProps.getFileSystemConfigs()
- Parameters:
fileSystemConfigs
- the value to be set.- Returns:
this
-
fileSystemConfigs
@Stability(Stable) public CfnFunctionProps.Builder fileSystemConfigs(List<? extends Object> fileSystemConfigs) Sets the value ofCfnFunctionProps.getFileSystemConfigs()
- Parameters:
fileSystemConfigs
- the value to be set.- Returns:
this
-
functionName
Sets the value ofCfnFunctionProps.getFunctionName()
- Parameters:
functionName
- the value to be set.- Returns:
this
-
functionUrlConfig
Sets the value ofCfnFunctionProps.getFunctionUrlConfig()
- Parameters:
functionUrlConfig
- the value to be set.- Returns:
this
-
functionUrlConfig
@Stability(Stable) public CfnFunctionProps.Builder functionUrlConfig(CfnFunction.FunctionUrlConfigProperty functionUrlConfig) Sets the value ofCfnFunctionProps.getFunctionUrlConfig()
- Parameters:
functionUrlConfig
- the value to be set.- Returns:
this
-
handler
Sets the value ofCfnFunctionProps.getHandler()
- Parameters:
handler
- the value to be set.- Returns:
this
-
imageConfig
Sets the value ofCfnFunctionProps.getImageConfig()
- Parameters:
imageConfig
- the value to be set.- Returns:
this
-
imageConfig
@Stability(Stable) public CfnFunctionProps.Builder imageConfig(CfnFunction.ImageConfigProperty imageConfig) Sets the value ofCfnFunctionProps.getImageConfig()
- Parameters:
imageConfig
- the value to be set.- Returns:
this
-
imageUri
Sets the value ofCfnFunctionProps.getImageUri()
- Parameters:
imageUri
- the value to be set.- Returns:
this
-
inlineCode
Sets the value ofCfnFunctionProps.getInlineCode()
- Parameters:
inlineCode
- the value to be set.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnFunctionProps.getKmsKeyArn()
- Parameters:
kmsKeyArn
- the value to be set.- Returns:
this
-
layers
Sets the value ofCfnFunctionProps.getLayers()
- Parameters:
layers
- the value to be set.- Returns:
this
-
memorySize
Sets the value ofCfnFunctionProps.getMemorySize()
- Parameters:
memorySize
- the value to be set.- Returns:
this
-
packageType
Sets the value ofCfnFunctionProps.getPackageType()
- Parameters:
packageType
- the value to be set.- Returns:
this
-
permissionsBoundary
Sets the value ofCfnFunctionProps.getPermissionsBoundary()
- Parameters:
permissionsBoundary
- the value to be set.- Returns:
this
-
policies
Sets the value ofCfnFunctionProps.getPolicies()
- Parameters:
policies
- the value to be set.- Returns:
this
-
policies
Sets the value ofCfnFunctionProps.getPolicies()
- Parameters:
policies
- the value to be set.- Returns:
this
-
policies
@Stability(Stable) public CfnFunctionProps.Builder policies(CfnFunction.IAMPolicyDocumentProperty policies) Sets the value ofCfnFunctionProps.getPolicies()
- Parameters:
policies
- the value to be set.- Returns:
this
-
policies
Sets the value ofCfnFunctionProps.getPolicies()
- Parameters:
policies
- the value to be set.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnFunctionProps.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnFunctionProps.getProvisionedConcurrencyConfig()
- Parameters:
provisionedConcurrencyConfig
- the value to be set.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnFunctionProps.Builder provisionedConcurrencyConfig(CfnFunction.ProvisionedConcurrencyConfigProperty provisionedConcurrencyConfig) Sets the value ofCfnFunctionProps.getProvisionedConcurrencyConfig()
- Parameters:
provisionedConcurrencyConfig
- the value to be set.- Returns:
this
-
reservedConcurrentExecutions
@Stability(Stable) public CfnFunctionProps.Builder reservedConcurrentExecutions(Number reservedConcurrentExecutions) Sets the value ofCfnFunctionProps.getReservedConcurrentExecutions()
- Parameters:
reservedConcurrentExecutions
- the value to be set.- Returns:
this
-
role
Sets the value ofCfnFunctionProps.getRole()
- Parameters:
role
- the value to be set.- Returns:
this
-
runtime
Sets the value ofCfnFunctionProps.getRuntime()
- Parameters:
runtime
- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnFunctionProps.getTags()
- Parameters:
tags
- the value to be set.- Returns:
this
-
timeout
Sets the value ofCfnFunctionProps.getTimeout()
- Parameters:
timeout
- the value to be set.- Returns:
this
-
tracing
Sets the value ofCfnFunctionProps.getTracing()
- Parameters:
tracing
- the value to be set.- Returns:
this
-
versionDescription
Sets the value ofCfnFunctionProps.getVersionDescription()
- Parameters:
versionDescription
- the value to be set.- Returns:
this
-
vpcConfig
Sets the value ofCfnFunctionProps.getVpcConfig()
- Parameters:
vpcConfig
- the value to be set.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnFunctionProps.Builder vpcConfig(CfnFunction.VpcConfigProperty vpcConfig) Sets the value ofCfnFunctionProps.getVpcConfig()
- Parameters:
vpcConfig
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionProps>
- Returns:
- a new instance of
CfnFunctionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-