Show / Hide Table of Contents

Class CfnDistributionPropsMixin.FunctionAssociationProperty

A CloudFront function that is associated with a cache behavior in a CloudFront distribution.

Inheritance
object
CfnDistributionPropsMixin.FunctionAssociationProperty
Implements
CfnDistributionPropsMixin.IFunctionAssociationProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.CloudFront
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnDistributionPropsMixin.FunctionAssociationProperty : CfnDistributionPropsMixin.IFunctionAssociationProperty
Syntax (vb)
Public Class CfnDistributionPropsMixin.FunctionAssociationProperty Implements CfnDistributionPropsMixin.IFunctionAssociationProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.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.CfnPropertyMixins.AWS.CloudFront;

             var functionAssociationProperty = new FunctionAssociationProperty {
                 EventType = "eventType",
                 FunctionArn = "functionArn"
             };

Synopsis

Constructors

FunctionAssociationProperty()

A CloudFront function that is associated with a cache behavior in a CloudFront distribution.

Properties

EventType

The event type of the function, either viewer-request or viewer-response .

FunctionArn

The Amazon Resource Name (ARN) of the function.

Constructors

FunctionAssociationProperty()

A CloudFront function that is associated with a cache behavior in a CloudFront distribution.

public FunctionAssociationProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.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.CfnPropertyMixins.AWS.CloudFront;

             var functionAssociationProperty = new FunctionAssociationProperty {
                 EventType = "eventType",
                 FunctionArn = "functionArn"
             };

Properties

EventType

The event type of the function, either viewer-request or viewer-response .

public string? EventType { get; set; }
Property Value

string

Remarks

You cannot use origin-facing event types ( origin-request and origin-response ) with a CloudFront function.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-eventtype

FunctionArn

The Amazon Resource Name (ARN) of the function.

public object? FunctionArn { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-functionarn

Type union: either string or IFunctionRef

Implements

CfnDistributionPropsMixin.IFunctionAssociationProperty
Back to top Generated by DocFX