Class: Aws::AppSync::Types::UpdateFunctionRequest

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

{
  api_id: "String", # required
  name: "ResourceName", # required
  description: "String",
  function_id: "ResourceName", # required
  data_source_name: "ResourceName", # required
  request_mapping_template: "MappingTemplate",
  response_mapping_template: "MappingTemplate",
  function_version: "String", # required
  sync_config: {
    conflict_handler: "OPTIMISTIC_CONCURRENCY", # accepts OPTIMISTIC_CONCURRENCY, LAMBDA, AUTOMERGE, NONE
    conflict_detection: "VERSION", # accepts VERSION, NONE
    lambda_conflict_handler_config: {
      lambda_conflict_handler_arn: "String",
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

The GraphQL API ID.

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#data_source_nameString

The Function DataSource name.

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

The Function description.

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#function_idString

The function ID.

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#function_versionString

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

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The Function name.

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  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)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#response_mapping_templateString

The Function request mapping template.

Returns:

  • (String)


3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end

#sync_configTypes::SyncConfig

Describes a Sync configuration for a resolver.

Contains information on which Conflict Detection as well as Resolution strategy should be performed when the resolver is invoked.

Returns:



3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 3356

class UpdateFunctionRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :function_id,
  :data_source_name,
  :request_mapping_template,
  :response_mapping_template,
  :function_version,
  :sync_config)
  SENSITIVE = []
  include Aws::Structure
end