Class: Aws::CloudFront::Types::TestFunctionRequest

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 TestFunctionRequest data as a hash:

{
  name: "string", # required
  if_match: "string", # required
  stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
  event_object: "data", # required
}

Constant Summary collapse

SENSITIVE =
[:event_object]

Instance Attribute Summary collapse

Instance Attribute Details

#event_objectString

The event object to test the function with. For more information about the structure of the event object, see [Testing functions] in the *Amazon CloudFront Developer Guide*.

[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function

Returns:

  • (String)

11799
11800
11801
11802
11803
11804
11805
11806
# File 'lib/aws-sdk-cloudfront/types.rb', line 11799

class TestFunctionRequest < Struct.new(
  :name,
  :if_match,
  :stage,
  :event_object)
  SENSITIVE = [:event_object]
  include Aws::Structure
end

#if_matchString

The current version (`ETag` value) of the function that you are testing, which you can get using `DescribeFunction`.

Returns:

  • (String)

11799
11800
11801
11802
11803
11804
11805
11806
# File 'lib/aws-sdk-cloudfront/types.rb', line 11799

class TestFunctionRequest < Struct.new(
  :name,
  :if_match,
  :stage,
  :event_object)
  SENSITIVE = [:event_object]
  include Aws::Structure
end

#nameString

The name of the function that you are testing.

Returns:

  • (String)

11799
11800
11801
11802
11803
11804
11805
11806
# File 'lib/aws-sdk-cloudfront/types.rb', line 11799

class TestFunctionRequest < Struct.new(
  :name,
  :if_match,
  :stage,
  :event_object)
  SENSITIVE = [:event_object]
  include Aws::Structure
end

#stageString

The stage of the function that you are testing, either `DEVELOPMENT` or `LIVE`.

Returns:

  • (String)

11799
11800
11801
11802
11803
11804
11805
11806
# File 'lib/aws-sdk-cloudfront/types.rb', line 11799

class TestFunctionRequest < Struct.new(
  :name,
  :if_match,
  :stage,
  :event_object)
  SENSITIVE = [:event_object]
  include Aws::Structure
end