Class: Aws::CloudFront::Types::FunctionAssociation

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudfront/types.rb

Overview

Note:

When making an API call, you may pass FunctionAssociation data as a hash:

{
  function_arn: "FunctionARN", # required
  event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
}

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#event_typeString

The event type of the function, either `viewer-request` or `viewer-response`. You cannot use origin-facing event types (`origin-request` and `origin-response`) with a CloudFront function.

Returns:

  • (String)

6290
6291
6292
6293
6294
6295
# File 'lib/aws-sdk-cloudfront/types.rb', line 6290

class FunctionAssociation < Struct.new(
  :function_arn,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end

#function_arnString

The Amazon Resource Name (ARN) of the function.

Returns:

  • (String)

6290
6291
6292
6293
6294
6295
# File 'lib/aws-sdk-cloudfront/types.rb', line 6290

class FunctionAssociation < Struct.new(
  :function_arn,
  :event_type)
  SENSITIVE = []
  include Aws::Structure
end