Class CfnFunctionProps
Properties for defining a CfnFunction
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFunctionProps : Object, ICfnFunctionProps
Syntax (vb)
Public Class CfnFunctionProps
Inherits Object
Implements ICfnFunctionProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html
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 {
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
CfnFunctionProps() |
Properties
Constructors
CfnFunctionProps()
public CfnFunctionProps()
Properties
Architectures
public string[] Architectures { get; set; }
Property Value
System.String[]
Remarks
AssumeRolePolicyDocument
public object AssumeRolePolicyDocument { get; set; }
Property Value
System.Object
Remarks
AutoPublishAlias
public string AutoPublishAlias { get; set; }
Property Value
System.String
Remarks
AutoPublishCodeSha256
public string AutoPublishCodeSha256 { get; set; }
Property Value
System.String
Remarks
CodeSigningConfigArn
public string CodeSigningConfigArn { get; set; }
Property Value
System.String
Remarks
CodeUri
public object CodeUri { get; set; }
Property Value
System.Object
Remarks
DeadLetterQueue
public object DeadLetterQueue { get; set; }
Property Value
System.Object
Remarks
DeploymentPreference
public object DeploymentPreference { get; set; }
Property Value
System.Object
Remarks
Description
public string Description { get; set; }
Property Value
System.String
Remarks
Environment
public object Environment { get; set; }
Property Value
System.Object
Remarks
EphemeralStorage
public object EphemeralStorage { get; set; }
Property Value
System.Object
Remarks
EventInvokeConfig
public object EventInvokeConfig { get; set; }
Property Value
System.Object
Remarks
Events
public object Events { get; set; }
Property Value
System.Object
Remarks
FileSystemConfigs
public object FileSystemConfigs { get; set; }
Property Value
System.Object
Remarks
FunctionName
public string FunctionName { get; set; }
Property Value
System.String
Remarks
FunctionUrlConfig
public object FunctionUrlConfig { get; set; }
Property Value
System.Object
Remarks
Handler
public string Handler { get; set; }
Property Value
System.String
Remarks
ImageConfig
public object ImageConfig { get; set; }
Property Value
System.Object
Remarks
ImageUri
public string ImageUri { get; set; }
Property Value
System.String
Remarks
InlineCode
public string InlineCode { get; set; }
Property Value
System.String
Remarks
KmsKeyArn
public string KmsKeyArn { get; set; }
Property Value
System.String
Remarks
Layers
public string[] Layers { get; set; }
Property Value
System.String[]
Remarks
MemorySize
public Nullable<double> MemorySize { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
PackageType
public string PackageType { get; set; }
Property Value
System.String
Remarks
PermissionsBoundary
public string PermissionsBoundary { get; set; }
Property Value
System.String
Remarks
Policies
public object Policies { get; set; }
Property Value
System.Object
Remarks
ProvisionedConcurrencyConfig
public object ProvisionedConcurrencyConfig { get; set; }
Property Value
System.Object
Remarks
ReservedConcurrentExecutions
public Nullable<double> ReservedConcurrentExecutions { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Role
public string Role { get; set; }
Property Value
System.String
Remarks
Runtime
public string Runtime { get; set; }
Property Value
System.String
Remarks
Tags
public IDictionary<string, string> Tags { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Timeout
public Nullable<double> Timeout { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Tracing
public string Tracing { get; set; }
Property Value
System.String
Remarks
VersionDescription
public string VersionDescription { get; set; }
Property Value
System.String
Remarks
VpcConfig
public object VpcConfig { get; set; }
Property Value
System.Object