Interface ICfnFunctionProps
Properties for defining a CfnFunction.
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnFunctionProps
Syntax (vb)
Public Interface 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
Properties
| Architectures | Properties for defining a |
| AssumeRolePolicyDocument | Properties for defining a |
| AutoPublishAlias | Properties for defining a |
| AutoPublishCodeSha256 | Properties for defining a |
| CodeSigningConfigArn | Properties for defining a |
| CodeUri | Properties for defining a |
| DeadLetterQueue | Properties for defining a |
| DeploymentPreference | Properties for defining a |
| Description | Properties for defining a |
| Environment | Properties for defining a |
| EphemeralStorage | Properties for defining a |
| EventInvokeConfig | Properties for defining a |
| Events | Properties for defining a |
| FileSystemConfigs | Properties for defining a |
| FunctionName | Properties for defining a |
| FunctionUrlConfig | Properties for defining a |
| Handler | Properties for defining a |
| ImageConfig | Properties for defining a |
| ImageUri | Properties for defining a |
| InlineCode | Properties for defining a |
| KmsKeyArn | Properties for defining a |
| Layers | Properties for defining a |
| MemorySize | Properties for defining a |
| PackageType | Properties for defining a |
| PermissionsBoundary | Properties for defining a |
| Policies | Properties for defining a |
| ProvisionedConcurrencyConfig | Properties for defining a |
| ReservedConcurrentExecutions | Properties for defining a |
| Role | Properties for defining a |
| Runtime | Properties for defining a |
| Tags | Properties for defining a |
| Timeout | Properties for defining a |
| Tracing | Properties for defining a |
| VersionDescription | Properties for defining a |
| VpcConfig | Properties for defining a |
Properties
Architectures
Properties for defining a CfnFunction.
string[]? Architectures { get; }
Property Value
string[]
Remarks
AssumeRolePolicyDocument
Properties for defining a CfnFunction.
object? AssumeRolePolicyDocument { get; }
Property Value
Remarks
AutoPublishAlias
Properties for defining a CfnFunction.
string? AutoPublishAlias { get; }
Property Value
Remarks
AutoPublishCodeSha256
Properties for defining a CfnFunction.
string? AutoPublishCodeSha256 { get; }
Property Value
Remarks
CodeSigningConfigArn
Properties for defining a CfnFunction.
string? CodeSigningConfigArn { get; }
Property Value
Remarks
CodeUri
Properties for defining a CfnFunction.
object? CodeUri { get; }
Property Value
Remarks
DeadLetterQueue
Properties for defining a CfnFunction.
object? DeadLetterQueue { get; }
Property Value
Remarks
DeploymentPreference
Properties for defining a CfnFunction.
object? DeploymentPreference { get; }
Property Value
Remarks
Description
Properties for defining a CfnFunction.
string? Description { get; }
Property Value
Remarks
Environment
Properties for defining a CfnFunction.
object? Environment { get; }
Property Value
Remarks
EphemeralStorage
Properties for defining a CfnFunction.
object? EphemeralStorage { get; }
Property Value
Remarks
EventInvokeConfig
Properties for defining a CfnFunction.
object? EventInvokeConfig { get; }
Property Value
Remarks
Events
Properties for defining a CfnFunction.
object? Events { get; }
Property Value
Remarks
Type union: either IResolvable or Dictionary<string, either IResolvable or CfnFunction.IEventSourceProperty>
FileSystemConfigs
Properties for defining a CfnFunction.
object? FileSystemConfigs { get; }
Property Value
Remarks
FunctionName
Properties for defining a CfnFunction.
string? FunctionName { get; }
Property Value
Remarks
FunctionUrlConfig
Properties for defining a CfnFunction.
object? FunctionUrlConfig { get; }
Property Value
Remarks
Handler
Properties for defining a CfnFunction.
string? Handler { get; }
Property Value
Remarks
ImageConfig
Properties for defining a CfnFunction.
object? ImageConfig { get; }
Property Value
Remarks
ImageUri
Properties for defining a CfnFunction.
string? ImageUri { get; }
Property Value
Remarks
InlineCode
Properties for defining a CfnFunction.
string? InlineCode { get; }
Property Value
Remarks
KmsKeyArn
Properties for defining a CfnFunction.
string? KmsKeyArn { get; }
Property Value
Remarks
Layers
MemorySize
Properties for defining a CfnFunction.
double? MemorySize { get; }
Property Value
Remarks
PackageType
Properties for defining a CfnFunction.
string? PackageType { get; }
Property Value
Remarks
PermissionsBoundary
Properties for defining a CfnFunction.
string? PermissionsBoundary { get; }
Property Value
Remarks
Policies
Properties for defining a CfnFunction.
object? Policies { get; }
Property Value
Remarks
Type union: either string or IResolvable or CfnFunction.IIAMPolicyDocumentProperty or (either string or IResolvable or CfnFunction.IIAMPolicyDocumentProperty or CfnFunction.ISAMPolicyTemplateProperty)[]
ProvisionedConcurrencyConfig
Properties for defining a CfnFunction.
object? ProvisionedConcurrencyConfig { get; }
Property Value
Remarks
ReservedConcurrentExecutions
Properties for defining a CfnFunction.
double? ReservedConcurrentExecutions { get; }
Property Value
Remarks
Role
Properties for defining a CfnFunction.
string? Role { get; }
Property Value
Remarks
Runtime
Properties for defining a CfnFunction.
string? Runtime { get; }
Property Value
Remarks
Tags
Properties for defining a CfnFunction.
IDictionary<string, string>? Tags { get; }
Property Value
Remarks
Timeout
Properties for defining a CfnFunction.
double? Timeout { get; }
Property Value
Remarks
Tracing
Properties for defining a CfnFunction.
string? Tracing { get; }
Property Value
Remarks
VersionDescription
Properties for defining a CfnFunction.
string? VersionDescription { get; }
Property Value
Remarks
VpcConfig
Properties for defining a CfnFunction.
object? VpcConfig { get; }