Show / Hide Table of Contents

Class CfnFunction

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Inheritance
object
CfnElement
CfnRefElement
CfnResource
CfnFunction
Implements
IInspectable
IFunctionRef
IConstruct
IDependable
IEnvironmentAware
ITaggable
Inherited Members
CfnResource.IsCfnResource(object)
CfnResource.AddDeletionOverride(string)
CfnResource.AddDependency(CfnResource)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(string, object)
CfnResource.AddOverride(string, object)
CfnResource.AddPropertyDeletionOverride(string)
CfnResource.AddPropertyOverride(string, object)
CfnResource.ApplyRemovalPolicy(RemovalPolicy?, IRemovalPolicyOptions)
CfnResource.GetAtt(string, ResolutionTypeHint?)
CfnResource.GetMetadata(string)
CfnResource.ObtainDependencies()
CfnResource.ObtainResourceDependencies()
CfnResource.RemoveDependency(CfnResource)
CfnResource.ReplaceDependency(CfnResource, CfnResource)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.Env
CfnResource.UpdatedProperites
CfnResource.UpdatedProperties
CfnRefElement.Ref
CfnElement.IsCfnElement(object)
CfnElement.OverrideLogicalId(string)
CfnElement.With(params IMixin[])
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFunction : CfnResource, IInspectable, IFunctionRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnFunction Inherits CfnResource Implements IInspectable, IFunctionRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Synopsis

Constructors

CfnFunction(Construct, string, ICfnFunctionProps?)

Create a new AWS::Serverless::Function.

Properties

Architectures

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

AssumeRolePolicyDocument

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

AutoPublishAlias

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

AutoPublishCodeSha256

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

CodeSigningConfigArn

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

CodeUri

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

DeadLetterQueue

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

DeploymentPreference

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Description

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Environment

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

EphemeralStorage

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

EventInvokeConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Events

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

FileSystemConfigs

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

FunctionName

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

FunctionRef

A reference to a Function resource.

FunctionUrlConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Handler

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

ImageConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

ImageUri

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

InlineCode

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

KmsKeyArn

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Layers

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

MemorySize

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

PackageType

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

PermissionsBoundary

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Policies

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

ProvisionedConcurrencyConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

REQUIRED_TRANSFORM

The Transform a template must use in order to use this resource.

ReservedConcurrentExecutions

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Role

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Runtime

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Tags

Tag Manager which manages the tags for this resource.

TagsRaw

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Timeout

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Tracing

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

VersionDescription

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

VpcConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

IsCfnFunction(object)

Checks whether the given object is a CfnFunction.

RenderProperties(IDictionary<string, object>)

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

Constructors

CfnFunction(Construct, string, ICfnFunctionProps?)

Create a new AWS::Serverless::Function.

public CfnFunction(Construct scope, string id, ICfnFunctionProps? props = null)
Parameters
scope Construct

Scope in which this resource is defined.

id string

Construct identifier for this resource (unique in its scope).

props ICfnFunctionProps

Resource properties.

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Properties

Architectures

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string[]? Architectures { get; set; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

AssumeRolePolicyDocument

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object AssumeRolePolicyDocument { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

AutoPublishAlias

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? AutoPublishAlias { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

AutoPublishCodeSha256

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? AutoPublishCodeSha256 { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

CfnProperties

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

IDictionary<string, object>

Overrides
CfnResource.CfnProperties
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

CodeSigningConfigArn

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? CodeSigningConfigArn { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

CodeUri

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? CodeUri { get; set; }
Property Value

object

Remarks

Type union: either string or IResolvable or CfnFunction.IS3LocationProperty

DeadLetterQueue

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? DeadLetterQueue { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IDeadLetterQueueProperty

DeploymentPreference

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? DeploymentPreference { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IDeploymentPreferenceProperty

Description

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? Description { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Environment

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? Environment { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IFunctionEnvironmentProperty

EphemeralStorage

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? EphemeralStorage { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IEphemeralStorageProperty

EventInvokeConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? EventInvokeConfig { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IEventInvokeConfigProperty

Events

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? Events { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or Dictionary<string, either IResolvable or CfnFunction.IEventSourceProperty>

FileSystemConfigs

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? FileSystemConfigs { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or (either IResolvable or CfnFunction.IFileSystemConfigProperty)[]

FunctionName

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? FunctionName { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

FunctionRef

A reference to a Function resource.

public virtual IFunctionReference FunctionRef { get; }
Property Value

IFunctionReference

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

FunctionUrlConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? FunctionUrlConfig { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IFunctionUrlConfigProperty

Handler

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? Handler { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

ImageConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? ImageConfig { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IImageConfigProperty

ImageUri

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? ImageUri { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

InlineCode

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? InlineCode { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

KmsKeyArn

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? KmsKeyArn { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Layers

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string[]? Layers { get; set; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

MemorySize

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual double? MemorySize { get; set; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

PackageType

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? PackageType { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

PermissionsBoundary

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? PermissionsBoundary { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Policies

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? Policies { get; set; }
Property Value

object

Remarks

Type union: either string or IResolvable or CfnFunction.IIAMPolicyDocumentProperty or (either string or IResolvable or CfnFunction.IIAMPolicyDocumentProperty or CfnFunction.ISAMPolicyTemplateProperty)[]

ProvisionedConcurrencyConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? ProvisionedConcurrencyConfig { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IProvisionedConcurrencyConfigProperty

REQUIRED_TRANSFORM

The Transform a template must use in order to use this resource.

public static string REQUIRED_TRANSFORM { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

ReservedConcurrentExecutions

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual double? ReservedConcurrentExecutions { get; set; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Role

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? Role { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Runtime

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? Runtime { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Tags

Tag Manager which manages the tags for this resource.

public virtual TagManager Tags { get; }
Property Value

TagManager

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

TagsRaw

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual IDictionary<string, string>? TagsRaw { get; set; }
Property Value

IDictionary<string, string>

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Timeout

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual double? Timeout { get; set; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

Tracing

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? Tracing { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

VersionDescription

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual string? VersionDescription { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.SAM;

             var assumeRolePolicyDocument;

             var cfnFunction = new CfnFunction(this, "MyCfnFunction", new CfnFunctionProps {
                 Architectures = new [] { "architectures" },
                 AssumeRolePolicyDocument = assumeRolePolicyDocument,
                 AutoPublishAlias = "autoPublishAlias",
                 AutoPublishCodeSha256 = "autoPublishCodeSha256",
                 CodeSigningConfigArn = "codeSigningConfigArn",
                 CodeUri = "codeUri",
                 DeadLetterQueue = new DeadLetterQueueProperty {
                     TargetArn = "targetArn",
                     Type = "type"
                 },
                 DeploymentPreference = new DeploymentPreferenceProperty {
                     Alarms = new [] { "alarms" },
                     Enabled = false,
                     Hooks = new HooksProperty {
                         PostTraffic = "postTraffic",
                         PreTraffic = "preTraffic"
                     },
                     Role = "role",
                     Type = "type"
                 },
                 Description = "description",
                 Environment = new FunctionEnvironmentProperty {
                     Variables = new Dictionary<string, string> {
                         { "variablesKey", "variables" }
                     }
                 },
                 EphemeralStorage = new EphemeralStorageProperty {
                     Size = 123
                 },
                 EventInvokeConfig = new EventInvokeConfigProperty {
                     DestinationConfig = new EventInvokeDestinationConfigProperty {
                         OnFailure = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         },
                         OnSuccess = new DestinationProperty {
                             Destination = "destination",

                             // the properties below are optional
                             Type = "type"
                         }
                     },
                     MaximumEventAgeInSeconds = 123,
                     MaximumRetryAttempts = 123
                 },
                 Events = new Dictionary<string, object> {
                     { "eventsKey", new EventSourceProperty {
                         Properties = new AlexaSkillEventProperty {
                             SkillId = "skillId"
                         },
                         Type = "type"
                     } }
                 },
                 FileSystemConfigs = new [] { new FileSystemConfigProperty {
                     Arn = "arn",
                     LocalMountPath = "localMountPath"
                 } },
                 FunctionName = "functionName",
                 FunctionUrlConfig = new FunctionUrlConfigProperty {
                     AuthType = "authType",

                     // the properties below are optional
                     Cors = "cors",
                     InvokeMode = "invokeMode"
                 },
                 Handler = "handler",
                 ImageConfig = new ImageConfigProperty {
                     Command = new [] { "command" },
                     EntryPoint = new [] { "entryPoint" },
                     WorkingDirectory = "workingDirectory"
                 },
                 ImageUri = "imageUri",
                 InlineCode = "inlineCode",
                 KmsKeyArn = "kmsKeyArn",
                 Layers = new [] { "layers" },
                 MemorySize = 123,
                 PackageType = "packageType",
                 PermissionsBoundary = "permissionsBoundary",
                 Policies = "policies",
                 ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigProperty {
                     ProvisionedConcurrentExecutions = "provisionedConcurrentExecutions"
                 },
                 ReservedConcurrentExecutions = 123,
                 Role = "role",
                 Runtime = "runtime",
                 Tags = new Dictionary<string, string> {
                     { "tagsKey", "tags" }
                 },
                 Timeout = 123,
                 Tracing = "tracing",
                 VersionDescription = "versionDescription",
                 VpcConfig = new VpcConfigProperty {
                     SecurityGroupIds = new [] { "securityGroupIds" },
                     SubnetIds = new [] { "subnetIds" }
                 }
             });

VpcConfig

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

public virtual object? VpcConfig { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnFunction.IVpcConfigProperty

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)
Parameters
inspector TreeInspector

tree inspector to collect and process attributes.

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

IsCfnFunction(object)

Checks whether the given object is a CfnFunction.

public static bool IsCfnFunction(object x)
Parameters
x object
Returns

bool

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

RenderProperties(IDictionary<string, object>)

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction.

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props IDictionary<string, object>
Returns

IDictionary<string, object>

Overrides
CfnResource.RenderProperties(IDictionary<string, object>)
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html

CloudformationResource: AWS::Serverless::Function

ExampleMetadata: fixture=_generated

Implements

IInspectable
IFunctionRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
ITaggable
Back to top Generated by DocFX