Class: Aws::CloudFront::Types::CreateFunctionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::CreateFunctionRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
Overview
Note:
When making an API call, you may pass CreateFunctionRequest data as a hash:
{
name: "FunctionName", # 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
-
#function_code ⇒ String
The function code.
-
#function_config ⇒ Types::FunctionConfig
Configuration information about the function, including an optional comment and the function’s runtime.
-
#name ⇒ String
A name to identify the function.
Instance Attribute Details
#function_code ⇒ String
The function code. For more information about writing a CloudFront function, see [Writing function code for CloudFront Functions] in the *Amazon CloudFront Developer Guide*.
[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html
2577 2578 2579 2580 2581 2582 2583 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 2577 class CreateFunctionRequest < Struct.new( :name, :function_config, :function_code) SENSITIVE = [:function_code] include Aws::Structure end |
#function_config ⇒ Types::FunctionConfig
Configuration information about the function, including an optional comment and the function’s runtime.
2577 2578 2579 2580 2581 2582 2583 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 2577 class CreateFunctionRequest < Struct.new( :name, :function_config, :function_code) SENSITIVE = [:function_code] include Aws::Structure end |
#name ⇒ String
A name to identify the function.
2577 2578 2579 2580 2581 2582 2583 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 2577 class CreateFunctionRequest < Struct.new( :name, :function_config, :function_code) SENSITIVE = [:function_code] include Aws::Structure end |