Class CfnFunction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.sam.CfnFunction
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:35.593Z")
@Stability(Stable)
public class CfnFunction
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Serverless::Function
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.sam.*; Object assumeRolePolicyDocument; CfnFunction cfnFunction = CfnFunction.Builder.create(this, "MyCfnFunction") .architectures(List.of("architectures")) .assumeRolePolicyDocument(assumeRolePolicyDocument) .autoPublishAlias("autoPublishAlias") .autoPublishCodeSha256("autoPublishCodeSha256") .codeSigningConfigArn("codeSigningConfigArn") .codeUri("codeUri") .deadLetterQueue(DeadLetterQueueProperty.builder() .targetArn("targetArn") .type("type") .build()) .deploymentPreference(DeploymentPreferenceProperty.builder() .enabled(false) .type("type") // the properties below are optional .alarms(List.of("alarms")) .hooks(HooksProperty.builder() .postTraffic("postTraffic") .preTraffic("preTraffic") .build()) .build()) .description("description") .environment(FunctionEnvironmentProperty.builder() .variables(Map.of( "variablesKey", "variables")) .build()) .eventInvokeConfig(EventInvokeConfigProperty.builder() .destinationConfig(EventInvokeDestinationConfigProperty.builder() .onFailure(DestinationProperty.builder() .destination("destination") // the properties below are optional .type("type") .build()) .onSuccess(DestinationProperty.builder() .destination("destination") // the properties below are optional .type("type") .build()) .build()) .maximumEventAgeInSeconds(123) .maximumRetryAttempts(123) .build()) .events(Map.of( "eventsKey", EventSourceProperty.builder() .properties(S3EventProperty.builder() .variables(Map.of( "variablesKey", "variables")) .build()) .type("type") .build())) .fileSystemConfigs(List.of(FileSystemConfigProperty.builder() .arn("arn") .localMountPath("localMountPath") .build())) .functionName("functionName") .handler("handler") .imageConfig(ImageConfigProperty.builder() .command(List.of("command")) .entryPoint(List.of("entryPoint")) .workingDirectory("workingDirectory") .build()) .imageUri("imageUri") .inlineCode("inlineCode") .kmsKeyArn("kmsKeyArn") .layers(List.of("layers")) .memorySize(123) .packageType("packageType") .permissionsBoundary("permissionsBoundary") .policies("policies") .provisionedConcurrencyConfig(ProvisionedConcurrencyConfigProperty.builder() .provisionedConcurrentExecutions("provisionedConcurrentExecutions") .build()) .reservedConcurrentExecutions(123) .role("role") .runtime("runtime") .tags(Map.of( "tagsKey", "tags")) .timeout(123) .tracing("tracing") .versionDescription("versionDescription") .vpcConfig(VpcConfigProperty.builder() .securityGroupIds(List.of("securityGroupIds")) .subnetIds(List.of("subnetIds")) .build()) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static final class
A fluent builder forCfnFunction
.static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionCfnFunction
(Construct scope, String id) Create a newAWS::Serverless::Function
.CfnFunction
(Construct scope, String id, CfnFunctionProps props) Create a newAWS::Serverless::Function
.protected
CfnFunction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFunction
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionAWS::Serverless::Function.Architectures
.AWS::Serverless::Function.AssumeRolePolicyDocument
.AWS::Serverless::Function.AutoPublishAlias
.AWS::Serverless::Function.AutoPublishCodeSha256
.AWS::Serverless::Function.CodeSigningConfigArn
.AWS::Serverless::Function.CodeUri
.AWS::Serverless::Function.DeadLetterQueue
.AWS::Serverless::Function.DeploymentPreference
.AWS::Serverless::Function.Description
.AWS::Serverless::Function.Environment
.AWS::Serverless::Function.EventInvokeConfig
.AWS::Serverless::Function.Events
.AWS::Serverless::Function.FileSystemConfigs
.AWS::Serverless::Function.FunctionName
.AWS::Serverless::Function.Handler
.AWS::Serverless::Function.ImageConfig
.AWS::Serverless::Function.ImageUri
.AWS::Serverless::Function.InlineCode
.AWS::Serverless::Function.KmsKeyArn
.AWS::Serverless::Function.Layers
.AWS::Serverless::Function.MemorySize
.AWS::Serverless::Function.PackageType
.AWS::Serverless::Function.PermissionsBoundary
.AWS::Serverless::Function.Policies
.AWS::Serverless::Function.ProvisionedConcurrencyConfig
.AWS::Serverless::Function.ReservedConcurrentExecutions
.getRole()
AWS::Serverless::Function.Role
.AWS::Serverless::Function.Runtime
.getTags()
AWS::Serverless::Function.Tags
.AWS::Serverless::Function.Timeout
.AWS::Serverless::Function.Tracing
.AWS::Serverless::Function.VersionDescription
.AWS::Serverless::Function.VpcConfig
.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setArchitectures
(List<String> value) AWS::Serverless::Function.Architectures
.void
AWS::Serverless::Function.AssumeRolePolicyDocument
.void
setAutoPublishAlias
(String value) AWS::Serverless::Function.AutoPublishAlias
.void
setAutoPublishCodeSha256
(String value) AWS::Serverless::Function.AutoPublishCodeSha256
.void
setCodeSigningConfigArn
(String value) AWS::Serverless::Function.CodeSigningConfigArn
.void
setCodeUri
(String value) AWS::Serverless::Function.CodeUri
.void
setCodeUri
(IResolvable value) AWS::Serverless::Function.CodeUri
.void
AWS::Serverless::Function.CodeUri
.void
setDeadLetterQueue
(IResolvable value) AWS::Serverless::Function.DeadLetterQueue
.void
AWS::Serverless::Function.DeadLetterQueue
.void
AWS::Serverless::Function.DeploymentPreference
.void
AWS::Serverless::Function.DeploymentPreference
.void
setDescription
(String value) AWS::Serverless::Function.Description
.void
setEnvironment
(IResolvable value) AWS::Serverless::Function.Environment
.void
AWS::Serverless::Function.Environment
.void
setEventInvokeConfig
(IResolvable value) AWS::Serverless::Function.EventInvokeConfig
.void
AWS::Serverless::Function.EventInvokeConfig
.void
AWS::Serverless::Function.Events
.void
setEvents
(IResolvable value) AWS::Serverless::Function.Events
.void
setFileSystemConfigs
(List<Object> value) AWS::Serverless::Function.FileSystemConfigs
.void
setFileSystemConfigs
(IResolvable value) AWS::Serverless::Function.FileSystemConfigs
.void
setFunctionName
(String value) AWS::Serverless::Function.FunctionName
.void
setHandler
(String value) AWS::Serverless::Function.Handler
.void
setImageConfig
(IResolvable value) AWS::Serverless::Function.ImageConfig
.void
AWS::Serverless::Function.ImageConfig
.void
setImageUri
(String value) AWS::Serverless::Function.ImageUri
.void
setInlineCode
(String value) AWS::Serverless::Function.InlineCode
.void
setKmsKeyArn
(String value) AWS::Serverless::Function.KmsKeyArn
.void
AWS::Serverless::Function.Layers
.void
setMemorySize
(Number value) AWS::Serverless::Function.MemorySize
.void
setPackageType
(String value) AWS::Serverless::Function.PackageType
.void
setPermissionsBoundary
(String value) AWS::Serverless::Function.PermissionsBoundary
.void
setPolicies
(String value) AWS::Serverless::Function.Policies
.void
setPolicies
(List<Object> value) AWS::Serverless::Function.Policies
.void
setPolicies
(IResolvable value) AWS::Serverless::Function.Policies
.void
AWS::Serverless::Function.Policies
.void
AWS::Serverless::Function.ProvisionedConcurrencyConfig
.void
AWS::Serverless::Function.ProvisionedConcurrencyConfig
.void
AWS::Serverless::Function.ReservedConcurrentExecutions
.void
AWS::Serverless::Function.Role
.void
setRuntime
(String value) AWS::Serverless::Function.Runtime
.void
setTimeout
(Number value) AWS::Serverless::Function.Timeout
.void
setTracing
(String value) AWS::Serverless::Function.Tracing
.void
setVersionDescription
(String value) AWS::Serverless::Function.VersionDescription
.void
setVpcConfig
(IResolvable value) AWS::Serverless::Function.VpcConfig
.void
AWS::Serverless::Function.VpcConfig
.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class. -
REQUIRED_TRANSFORM
TheTransform
a template must use in order to use this resource.
-
-
Constructor Details
-
CfnFunction
protected CfnFunction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFunction
protected CfnFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFunction
@Stability(Stable) public CfnFunction(@NotNull Construct scope, @NotNull String id, @Nullable CfnFunctionProps props) Create a newAWS::Serverless::Function
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
CfnFunction
Create a newAWS::Serverless::Function
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
AWS::Serverless::Function.Tags
. -
getAssumeRolePolicyDocument
AWS::Serverless::Function.AssumeRolePolicyDocument
. -
setAssumeRolePolicyDocument
AWS::Serverless::Function.AssumeRolePolicyDocument
. -
getArchitectures
AWS::Serverless::Function.Architectures
. -
setArchitectures
AWS::Serverless::Function.Architectures
. -
getAutoPublishAlias
AWS::Serverless::Function.AutoPublishAlias
. -
setAutoPublishAlias
AWS::Serverless::Function.AutoPublishAlias
. -
getAutoPublishCodeSha256
AWS::Serverless::Function.AutoPublishCodeSha256
. -
setAutoPublishCodeSha256
AWS::Serverless::Function.AutoPublishCodeSha256
. -
getCodeSigningConfigArn
AWS::Serverless::Function.CodeSigningConfigArn
. -
setCodeSigningConfigArn
AWS::Serverless::Function.CodeSigningConfigArn
. -
getCodeUri
AWS::Serverless::Function.CodeUri
. -
setCodeUri
AWS::Serverless::Function.CodeUri
. -
setCodeUri
AWS::Serverless::Function.CodeUri
. -
setCodeUri
AWS::Serverless::Function.CodeUri
. -
getDeadLetterQueue
AWS::Serverless::Function.DeadLetterQueue
. -
setDeadLetterQueue
AWS::Serverless::Function.DeadLetterQueue
. -
setDeadLetterQueue
@Stability(Stable) public void setDeadLetterQueue(@Nullable CfnFunction.DeadLetterQueueProperty value) AWS::Serverless::Function.DeadLetterQueue
. -
getDeploymentPreference
AWS::Serverless::Function.DeploymentPreference
. -
setDeploymentPreference
AWS::Serverless::Function.DeploymentPreference
. -
setDeploymentPreference
@Stability(Stable) public void setDeploymentPreference(@Nullable CfnFunction.DeploymentPreferenceProperty value) AWS::Serverless::Function.DeploymentPreference
. -
getDescription
AWS::Serverless::Function.Description
. -
setDescription
AWS::Serverless::Function.Description
. -
getEnvironment
AWS::Serverless::Function.Environment
. -
setEnvironment
AWS::Serverless::Function.Environment
. -
setEnvironment
@Stability(Stable) public void setEnvironment(@Nullable CfnFunction.FunctionEnvironmentProperty value) AWS::Serverless::Function.Environment
. -
getEventInvokeConfig
AWS::Serverless::Function.EventInvokeConfig
. -
setEventInvokeConfig
AWS::Serverless::Function.EventInvokeConfig
. -
setEventInvokeConfig
@Stability(Stable) public void setEventInvokeConfig(@Nullable CfnFunction.EventInvokeConfigProperty value) AWS::Serverless::Function.EventInvokeConfig
. -
getEvents
AWS::Serverless::Function.Events
. -
setEvents
AWS::Serverless::Function.Events
. -
setEvents
AWS::Serverless::Function.Events
. -
getFileSystemConfigs
AWS::Serverless::Function.FileSystemConfigs
. -
setFileSystemConfigs
AWS::Serverless::Function.FileSystemConfigs
. -
setFileSystemConfigs
AWS::Serverless::Function.FileSystemConfigs
. -
getFunctionName
AWS::Serverless::Function.FunctionName
. -
setFunctionName
AWS::Serverless::Function.FunctionName
. -
getHandler
AWS::Serverless::Function.Handler
. -
setHandler
AWS::Serverless::Function.Handler
. -
getImageConfig
AWS::Serverless::Function.ImageConfig
. -
setImageConfig
AWS::Serverless::Function.ImageConfig
. -
setImageConfig
AWS::Serverless::Function.ImageConfig
. -
getImageUri
AWS::Serverless::Function.ImageUri
. -
setImageUri
AWS::Serverless::Function.ImageUri
. -
getInlineCode
AWS::Serverless::Function.InlineCode
. -
setInlineCode
AWS::Serverless::Function.InlineCode
. -
getKmsKeyArn
AWS::Serverless::Function.KmsKeyArn
. -
setKmsKeyArn
AWS::Serverless::Function.KmsKeyArn
. -
getLayers
AWS::Serverless::Function.Layers
. -
setLayers
AWS::Serverless::Function.Layers
. -
getMemorySize
AWS::Serverless::Function.MemorySize
. -
setMemorySize
AWS::Serverless::Function.MemorySize
. -
getPackageType
AWS::Serverless::Function.PackageType
. -
setPackageType
AWS::Serverless::Function.PackageType
. -
getPermissionsBoundary
AWS::Serverless::Function.PermissionsBoundary
. -
setPermissionsBoundary
AWS::Serverless::Function.PermissionsBoundary
. -
getPolicies
AWS::Serverless::Function.Policies
. -
setPolicies
AWS::Serverless::Function.Policies
. -
setPolicies
AWS::Serverless::Function.Policies
. -
setPolicies
AWS::Serverless::Function.Policies
. -
setPolicies
AWS::Serverless::Function.Policies
. -
getProvisionedConcurrencyConfig
AWS::Serverless::Function.ProvisionedConcurrencyConfig
. -
setProvisionedConcurrencyConfig
AWS::Serverless::Function.ProvisionedConcurrencyConfig
. -
setProvisionedConcurrencyConfig
@Stability(Stable) public void setProvisionedConcurrencyConfig(@Nullable CfnFunction.ProvisionedConcurrencyConfigProperty value) AWS::Serverless::Function.ProvisionedConcurrencyConfig
. -
getReservedConcurrentExecutions
AWS::Serverless::Function.ReservedConcurrentExecutions
. -
setReservedConcurrentExecutions
AWS::Serverless::Function.ReservedConcurrentExecutions
. -
getRole
AWS::Serverless::Function.Role
. -
setRole
AWS::Serverless::Function.Role
. -
getRuntime
AWS::Serverless::Function.Runtime
. -
setRuntime
AWS::Serverless::Function.Runtime
. -
getTimeout
AWS::Serverless::Function.Timeout
. -
setTimeout
AWS::Serverless::Function.Timeout
. -
getTracing
AWS::Serverless::Function.Tracing
. -
setTracing
AWS::Serverless::Function.Tracing
. -
getVersionDescription
AWS::Serverless::Function.VersionDescription
. -
setVersionDescription
AWS::Serverless::Function.VersionDescription
. -
getVpcConfig
AWS::Serverless::Function.VpcConfig
. -
setVpcConfig
AWS::Serverless::Function.VpcConfig
. -
setVpcConfig
AWS::Serverless::Function.VpcConfig
.
-