Interface ICfnFunctionProps
Properties for defining a CfnFunction
.
Namespace: Amazon.CDK.AWS.CloudFront
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-cloudfront-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.CloudFront;
var cfnFunctionProps = new CfnFunctionProps {
FunctionCode = "functionCode",
FunctionConfig = new FunctionConfigProperty {
Comment = "comment",
Runtime = "runtime",
// the properties below are optional
KeyValueStoreAssociations = new [] { new KeyValueStoreAssociationProperty {
KeyValueStoreArn = "keyValueStoreArn"
} }
},
Name = "name",
// the properties below are optional
AutoPublish = false,
FunctionMetadata = new FunctionMetadataProperty {
FunctionArn = "functionArn"
}
};
Synopsis
Properties
AutoPublish | A flag that determines whether to automatically publish the function to the |
FunctionCode | The function code. |
FunctionConfig | Contains configuration information about a CloudFront function. |
FunctionMetadata | Contains metadata about a CloudFront function. |
Name | A name to identify the function. |
Properties
AutoPublish
A flag that determines whether to automatically publish the function to the LIVE
stage when it’s created.
virtual object AutoPublish { get; }
Property Value
System.Object
Remarks
To automatically publish to the LIVE
stage, set this property to true
.
FunctionCode
The function code.
string FunctionCode { get; }
Property Value
System.String
Remarks
For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .
FunctionConfig
Contains configuration information about a CloudFront function.
object FunctionConfig { get; }
Property Value
System.Object
Remarks
FunctionMetadata
Contains metadata about a CloudFront function.
virtual object FunctionMetadata { get; }
Property Value
System.Object
Remarks
Name
A name to identify the function.
string Name { get; }
Property Value
System.String