You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::AppSync::Types::CreateFunctionRequest

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

Overview

Note:

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

{
  api_id: "String", # required
  name: "ResourceName", # required
  description: "String",
  data_source_name: "ResourceName", # required
  request_mapping_template: "MappingTemplate", # required
  response_mapping_template: "MappingTemplate",
  function_version: "String", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

The GraphQL API ID.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end

#data_source_nameString

The Function DataSource name.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end

#descriptionString

The Function description.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end

#function_versionString

The version of the request mapping template. Currently the supported value is 2018-05-29.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end

#nameString

The Function name. The function name does not have to be unique.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end

#request_mapping_templateString

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end

#response_mapping_templateString

The Function response mapping template.

Returns:

  • (String)


484
485
486
487
488
489
490
491
492
493
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 484

class CreateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version)
  include Aws::Structure
end