Class: Aws::CloudFront::Types::UpdateFunctionRequest

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

Overview

Note:

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

{
  name: "string", # required
  if_match: "string", # required
  function_config: { # required
    comment: "string", # required
    runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0
  },
  function_code: "data", # required
}

Constant Summary collapse

SENSITIVE =
[:function_code]

Instance Attribute Summary collapse

Instance Attribute Details

#function_codeString

The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.

Returns:

  • (String)


13334
13335
13336
13337
13338
13339
13340
13341
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 13334

class UpdateFunctionRequest < Struct.new(
  :name,
  :if_match,
  :function_config,
  :function_code)
  SENSITIVE = [:function_code]
  include Aws::Structure
end

#function_configTypes::FunctionConfig

Configuration information about the function.



13334
13335
13336
13337
13338
13339
13340
13341
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 13334

class UpdateFunctionRequest < Struct.new(
  :name,
  :if_match,
  :function_config,
  :function_code)
  SENSITIVE = [:function_code]
  include Aws::Structure
end

#if_matchString

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

Returns:

  • (String)


13334
13335
13336
13337
13338
13339
13340
13341
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 13334

class UpdateFunctionRequest < Struct.new(
  :name,
  :if_match,
  :function_config,
  :function_code)
  SENSITIVE = [:function_code]
  include Aws::Structure
end

#nameString

The name of the function that you are updating.

Returns:

  • (String)


13334
13335
13336
13337
13338
13339
13340
13341
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 13334

class UpdateFunctionRequest < Struct.new(
  :name,
  :if_match,
  :function_config,
  :function_code)
  SENSITIVE = [:function_code]
  include Aws::Structure
end