interface CfnFunctionMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnFunctionMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnFunctionMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnFunctionMixinProps |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnFunctionMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnFunctionMixinProps |
Properties for CfnFunctionPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const cfnFunctionMixinProps: cloudfront_mixins.CfnFunctionMixinProps = {
autoPublish: false,
functionCode: 'functionCode',
functionConfig: {
comment: 'comment',
keyValueStoreAssociations: [{
keyValueStoreArn: 'keyValueStoreArn',
}],
runtime: 'runtime',
},
functionMetadata: {
functionArn: 'functionArn',
},
name: 'name',
};
Properties
| Name | Type | Description |
|---|---|---|
| auto | boolean | IResolvable | A flag that determines whether to automatically publish the function to the LIVE stage when it’s created. |
| function | string | The function code. |
| function | IResolvable | Function | Contains configuration information about a CloudFront function. |
| function | IResolvable | Function | Contains metadata about a CloudFront function. |
| name? | string | A name to identify the function. |
autoPublish?
Type:
boolean | IResolvable
(optional)
A flag that determines whether to automatically publish the function to the LIVE stage when it’s created.
To automatically publish to the LIVE stage, set this property to true .
functionCode?
Type:
string
(optional)
The function code.
For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .
functionConfig?
Type:
IResolvable | Function
(optional)
Contains configuration information about a CloudFront function.
functionMetadata?
Type:
IResolvable | Function
(optional)
Contains metadata about a CloudFront function.
name?
Type:
string
(optional)
A name to identify the function.

.NET
Go
Java
Python
TypeScript