Class CfnFunctionProps
Properties for defining a CfnFunction
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.AWS.SAM.dll
Syntax (csharp)
public class CfnFunctionProps : Object, ICfnFunctionProps
Syntax (vb)
Public Class CfnFunctionProps
Inherits Object
Implements ICfnFunctionProps
Remarks
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 cfnFunctionProps = 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 {
Enabled = false,
Type = "type",
// the properties below are optional
Alarms = new [] { "alarms" },
Hooks = new HooksProperty {
PostTraffic = "postTraffic",
PreTraffic = "preTraffic"
}
},
Description = "description",
Environment = new FunctionEnvironmentProperty {
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
},
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 S3EventProperty {
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
},
Type = "type"
} }
},
FileSystemConfigs = new [] { new FileSystemConfigProperty {
Arn = "arn",
LocalMountPath = "localMountPath"
} },
FunctionName = "functionName",
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
CfnFunctionProps() |
Properties
Architectures |
|
AssumeRolePolicyDocument |
|
AutoPublishAlias |
|
AutoPublishCodeSha256 |
|
CodeSigningConfigArn |
|
CodeUri |
|
DeadLetterQueue |
|
DeploymentPreference |
|
Description |
|
Environment |
|
EventInvokeConfig |
|
Events |
|
FileSystemConfigs |
|
FunctionName |
|
Handler |
|
ImageConfig |
|
ImageUri |
|
InlineCode |
|
KmsKeyArn |
|
Layers |
|
MemorySize |
|
PackageType |
|
PermissionsBoundary |
|
Policies |
|
ProvisionedConcurrencyConfig |
|
ReservedConcurrentExecutions |
|
Role |
|
Runtime |
|
Tags |
|
Timeout |
|
Tracing |
|
VersionDescription |
|
VpcConfig |
|
Constructors
CfnFunctionProps()
public CfnFunctionProps()
Properties
Architectures
AWS::Serverless::Function.Architectures
.
public string[] Architectures { get; set; }
Property Value
System.String[]
Remarks
AssumeRolePolicyDocument
AWS::Serverless::Function.AssumeRolePolicyDocument
.
public object AssumeRolePolicyDocument { get; set; }
Property Value
System.Object
Remarks
AutoPublishAlias
AWS::Serverless::Function.AutoPublishAlias
.
public string AutoPublishAlias { get; set; }
Property Value
System.String
Remarks
AutoPublishCodeSha256
AWS::Serverless::Function.AutoPublishCodeSha256
.
public string AutoPublishCodeSha256 { get; set; }
Property Value
System.String
Remarks
CodeSigningConfigArn
AWS::Serverless::Function.CodeSigningConfigArn
.
public string CodeSigningConfigArn { get; set; }
Property Value
System.String
Remarks
CodeUri
AWS::Serverless::Function.CodeUri
.
public object CodeUri { get; set; }
Property Value
System.Object
Remarks
DeadLetterQueue
AWS::Serverless::Function.DeadLetterQueue
.
public object DeadLetterQueue { get; set; }
Property Value
System.Object
Remarks
DeploymentPreference
AWS::Serverless::Function.DeploymentPreference
.
public object DeploymentPreference { get; set; }
Property Value
System.Object
Remarks
Description
AWS::Serverless::Function.Description
.
public string Description { get; set; }
Property Value
System.String
Remarks
Environment
AWS::Serverless::Function.Environment
.
public object Environment { get; set; }
Property Value
System.Object
Remarks
EventInvokeConfig
AWS::Serverless::Function.EventInvokeConfig
.
public object EventInvokeConfig { get; set; }
Property Value
System.Object
Remarks
Events
AWS::Serverless::Function.Events
.
public object Events { get; set; }
Property Value
System.Object
Remarks
FileSystemConfigs
AWS::Serverless::Function.FileSystemConfigs
.
public object FileSystemConfigs { get; set; }
Property Value
System.Object
Remarks
FunctionName
AWS::Serverless::Function.FunctionName
.
public string FunctionName { get; set; }
Property Value
System.String
Remarks
Handler
AWS::Serverless::Function.Handler
.
public string Handler { get; set; }
Property Value
System.String
Remarks
ImageConfig
AWS::Serverless::Function.ImageConfig
.
public object ImageConfig { get; set; }
Property Value
System.Object
Remarks
ImageUri
AWS::Serverless::Function.ImageUri
.
public string ImageUri { get; set; }
Property Value
System.String
Remarks
InlineCode
AWS::Serverless::Function.InlineCode
.
public string InlineCode { get; set; }
Property Value
System.String
Remarks
KmsKeyArn
AWS::Serverless::Function.KmsKeyArn
.
public string KmsKeyArn { get; set; }
Property Value
System.String
Remarks
Layers
AWS::Serverless::Function.Layers
.
public string[] Layers { get; set; }
Property Value
System.String[]
Remarks
MemorySize
AWS::Serverless::Function.MemorySize
.
public Nullable<double> MemorySize { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
PackageType
AWS::Serverless::Function.PackageType
.
public string PackageType { get; set; }
Property Value
System.String
Remarks
PermissionsBoundary
AWS::Serverless::Function.PermissionsBoundary
.
public string PermissionsBoundary { get; set; }
Property Value
System.String
Remarks
Policies
AWS::Serverless::Function.Policies
.
public object Policies { get; set; }
Property Value
System.Object
Remarks
ProvisionedConcurrencyConfig
AWS::Serverless::Function.ProvisionedConcurrencyConfig
.
public object ProvisionedConcurrencyConfig { get; set; }
Property Value
System.Object
Remarks
ReservedConcurrentExecutions
AWS::Serverless::Function.ReservedConcurrentExecutions
.
public Nullable<double> ReservedConcurrentExecutions { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Role
AWS::Serverless::Function.Role
.
public string Role { get; set; }
Property Value
System.String
Remarks
Runtime
AWS::Serverless::Function.Runtime
.
public string Runtime { get; set; }
Property Value
System.String
Remarks
Tags
AWS::Serverless::Function.Tags
.
public IDictionary<string, string> Tags { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Timeout
AWS::Serverless::Function.Timeout
.
public Nullable<double> Timeout { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Tracing
AWS::Serverless::Function.Tracing
.
public string Tracing { get; set; }
Property Value
System.String
Remarks
VersionDescription
AWS::Serverless::Function.VersionDescription
.
public string VersionDescription { get; set; }
Property Value
System.String
Remarks
VpcConfig
AWS::Serverless::Function.VpcConfig
.
public object VpcConfig { get; set; }
Property Value
System.Object