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
Constructors -
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()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()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-AWS::Serverless::Function.Architectures.- Returns:
this
-
assumeRolePolicyDocument
@Stability(Stable) public CfnFunctionProps.Builder assumeRolePolicyDocument(Object assumeRolePolicyDocument) Sets the value ofCfnFunctionProps.getAssumeRolePolicyDocument()- Parameters:
assumeRolePolicyDocument-AWS::Serverless::Function.AssumeRolePolicyDocument.- Returns:
this
-
autoPublishAlias
Sets the value ofCfnFunctionProps.getAutoPublishAlias()- Parameters:
autoPublishAlias-AWS::Serverless::Function.AutoPublishAlias.- Returns:
this
-
autoPublishCodeSha256
@Stability(Stable) public CfnFunctionProps.Builder autoPublishCodeSha256(String autoPublishCodeSha256) Sets the value ofCfnFunctionProps.getAutoPublishCodeSha256()- Parameters:
autoPublishCodeSha256-AWS::Serverless::Function.AutoPublishCodeSha256.- Returns:
this
-
codeSigningConfigArn
@Stability(Stable) public CfnFunctionProps.Builder codeSigningConfigArn(String codeSigningConfigArn) Sets the value ofCfnFunctionProps.getCodeSigningConfigArn()- Parameters:
codeSigningConfigArn-AWS::Serverless::Function.CodeSigningConfigArn.- Returns:
this
-
codeUri
Sets the value ofCfnFunctionProps.getCodeUri()- Parameters:
codeUri-AWS::Serverless::Function.CodeUri.- Returns:
this
-
codeUri
Sets the value ofCfnFunctionProps.getCodeUri()- Parameters:
codeUri-AWS::Serverless::Function.CodeUri.- Returns:
this
-
codeUri
Sets the value ofCfnFunctionProps.getCodeUri()- Parameters:
codeUri-AWS::Serverless::Function.CodeUri.- Returns:
this
-
deadLetterQueue
Sets the value ofCfnFunctionProps.getDeadLetterQueue()- Parameters:
deadLetterQueue-AWS::Serverless::Function.DeadLetterQueue.- Returns:
this
-
deadLetterQueue
@Stability(Stable) public CfnFunctionProps.Builder deadLetterQueue(CfnFunction.DeadLetterQueueProperty deadLetterQueue) Sets the value ofCfnFunctionProps.getDeadLetterQueue()- Parameters:
deadLetterQueue-AWS::Serverless::Function.DeadLetterQueue.- Returns:
this
-
deploymentPreference
@Stability(Stable) public CfnFunctionProps.Builder deploymentPreference(IResolvable deploymentPreference) Sets the value ofCfnFunctionProps.getDeploymentPreference()- Parameters:
deploymentPreference-AWS::Serverless::Function.DeploymentPreference.- Returns:
this
-
deploymentPreference
@Stability(Stable) public CfnFunctionProps.Builder deploymentPreference(CfnFunction.DeploymentPreferenceProperty deploymentPreference) Sets the value ofCfnFunctionProps.getDeploymentPreference()- Parameters:
deploymentPreference-AWS::Serverless::Function.DeploymentPreference.- Returns:
this
-
description
Sets the value ofCfnFunctionProps.getDescription()- Parameters:
description-AWS::Serverless::Function.Description.- Returns:
this
-
environment
Sets the value ofCfnFunctionProps.getEnvironment()- Parameters:
environment-AWS::Serverless::Function.Environment.- Returns:
this
-
environment
@Stability(Stable) public CfnFunctionProps.Builder environment(CfnFunction.FunctionEnvironmentProperty environment) Sets the value ofCfnFunctionProps.getEnvironment()- Parameters:
environment-AWS::Serverless::Function.Environment.- Returns:
this
-
eventInvokeConfig
Sets the value ofCfnFunctionProps.getEventInvokeConfig()- Parameters:
eventInvokeConfig-AWS::Serverless::Function.EventInvokeConfig.- Returns:
this
-
eventInvokeConfig
@Stability(Stable) public CfnFunctionProps.Builder eventInvokeConfig(CfnFunction.EventInvokeConfigProperty eventInvokeConfig) Sets the value ofCfnFunctionProps.getEventInvokeConfig()- Parameters:
eventInvokeConfig-AWS::Serverless::Function.EventInvokeConfig.- Returns:
this
-
events
Sets the value ofCfnFunctionProps.getEvents()- Parameters:
events-AWS::Serverless::Function.Events.- Returns:
this
-
events
Sets the value ofCfnFunctionProps.getEvents()- Parameters:
events-AWS::Serverless::Function.Events.- Returns:
this
-
fileSystemConfigs
Sets the value ofCfnFunctionProps.getFileSystemConfigs()- Parameters:
fileSystemConfigs-AWS::Serverless::Function.FileSystemConfigs.- Returns:
this
-
fileSystemConfigs
@Stability(Stable) public CfnFunctionProps.Builder fileSystemConfigs(List<? extends Object> fileSystemConfigs) Sets the value ofCfnFunctionProps.getFileSystemConfigs()- Parameters:
fileSystemConfigs-AWS::Serverless::Function.FileSystemConfigs.- Returns:
this
-
functionName
Sets the value ofCfnFunctionProps.getFunctionName()- Parameters:
functionName-AWS::Serverless::Function.FunctionName.- Returns:
this
-
handler
Sets the value ofCfnFunctionProps.getHandler()- Parameters:
handler-AWS::Serverless::Function.Handler.- Returns:
this
-
imageConfig
Sets the value ofCfnFunctionProps.getImageConfig()- Parameters:
imageConfig-AWS::Serverless::Function.ImageConfig.- Returns:
this
-
imageConfig
@Stability(Stable) public CfnFunctionProps.Builder imageConfig(CfnFunction.ImageConfigProperty imageConfig) Sets the value ofCfnFunctionProps.getImageConfig()- Parameters:
imageConfig-AWS::Serverless::Function.ImageConfig.- Returns:
this
-
imageUri
Sets the value ofCfnFunctionProps.getImageUri()- Parameters:
imageUri-AWS::Serverless::Function.ImageUri.- Returns:
this
-
inlineCode
Sets the value ofCfnFunctionProps.getInlineCode()- Parameters:
inlineCode-AWS::Serverless::Function.InlineCode.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnFunctionProps.getKmsKeyArn()- Parameters:
kmsKeyArn-AWS::Serverless::Function.KmsKeyArn.- Returns:
this
-
layers
Sets the value ofCfnFunctionProps.getLayers()- Parameters:
layers-AWS::Serverless::Function.Layers.- Returns:
this
-
memorySize
Sets the value ofCfnFunctionProps.getMemorySize()- Parameters:
memorySize-AWS::Serverless::Function.MemorySize.- Returns:
this
-
packageType
Sets the value ofCfnFunctionProps.getPackageType()- Parameters:
packageType-AWS::Serverless::Function.PackageType.- Returns:
this
-
permissionsBoundary
Sets the value ofCfnFunctionProps.getPermissionsBoundary()- Parameters:
permissionsBoundary-AWS::Serverless::Function.PermissionsBoundary.- Returns:
this
-
policies
Sets the value ofCfnFunctionProps.getPolicies()- Parameters:
policies-AWS::Serverless::Function.Policies.- Returns:
this
-
policies
Sets the value ofCfnFunctionProps.getPolicies()- Parameters:
policies-AWS::Serverless::Function.Policies.- Returns:
this
-
policies
@Stability(Stable) public CfnFunctionProps.Builder policies(CfnFunction.IAMPolicyDocumentProperty policies) Sets the value ofCfnFunctionProps.getPolicies()- Parameters:
policies-AWS::Serverless::Function.Policies.- Returns:
this
-
policies
Sets the value ofCfnFunctionProps.getPolicies()- Parameters:
policies-AWS::Serverless::Function.Policies.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnFunctionProps.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnFunctionProps.getProvisionedConcurrencyConfig()- Parameters:
provisionedConcurrencyConfig-AWS::Serverless::Function.ProvisionedConcurrencyConfig.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnFunctionProps.Builder provisionedConcurrencyConfig(CfnFunction.ProvisionedConcurrencyConfigProperty provisionedConcurrencyConfig) Sets the value ofCfnFunctionProps.getProvisionedConcurrencyConfig()- Parameters:
provisionedConcurrencyConfig-AWS::Serverless::Function.ProvisionedConcurrencyConfig.- Returns:
this
-
reservedConcurrentExecutions
@Stability(Stable) public CfnFunctionProps.Builder reservedConcurrentExecutions(Number reservedConcurrentExecutions) Sets the value ofCfnFunctionProps.getReservedConcurrentExecutions()- Parameters:
reservedConcurrentExecutions-AWS::Serverless::Function.ReservedConcurrentExecutions.- Returns:
this
-
role
Sets the value ofCfnFunctionProps.getRole()- Parameters:
role-AWS::Serverless::Function.Role.- Returns:
this
-
runtime
Sets the value ofCfnFunctionProps.getRuntime()- Parameters:
runtime-AWS::Serverless::Function.Runtime.- Returns:
this
-
tags
Sets the value ofCfnFunctionProps.getTags()- Parameters:
tags-AWS::Serverless::Function.Tags.- Returns:
this
-
timeout
Sets the value ofCfnFunctionProps.getTimeout()- Parameters:
timeout-AWS::Serverless::Function.Timeout.- Returns:
this
-
tracing
Sets the value ofCfnFunctionProps.getTracing()- Parameters:
tracing-AWS::Serverless::Function.Tracing.- Returns:
this
-
versionDescription
Sets the value ofCfnFunctionProps.getVersionDescription()- Parameters:
versionDescription-AWS::Serverless::Function.VersionDescription.- Returns:
this
-
vpcConfig
Sets the value ofCfnFunctionProps.getVpcConfig()- Parameters:
vpcConfig-AWS::Serverless::Function.VpcConfig.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnFunctionProps.Builder vpcConfig(CfnFunction.VpcConfigProperty vpcConfig) Sets the value ofCfnFunctionProps.getVpcConfig()- Parameters:
vpcConfig-AWS::Serverless::Function.VpcConfig.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionProps>- Returns:
- a new instance of
CfnFunctionProps - Throws:
NullPointerException- if any required attribute was not provided
-