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

Class: Aws::AppSync::Types::UpdateDataSourceRequest

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

{
  api_id: "String", # required
  name: "ResourceName", # required
  description: "String",
  type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE, HTTP, RELATIONAL_DATABASE
  service_role_arn: "String",
  dynamodb_config: {
    table_name: "String", # required
    aws_region: "String", # required
    use_caller_credentials: false,
  },
  lambda_config: {
    lambda_function_arn: "String", # required
  },
  elasticsearch_config: {
    endpoint: "String", # required
    aws_region: "String", # required
  },
  http_config: {
    endpoint: "String",
    authorization_config: {
      authorization_type: "AWS_IAM", # required, accepts AWS_IAM
      aws_iam_config: {
        signing_region: "String",
        signing_service_name: "String",
      },
    },
  },
  relational_database_config: {
    relational_database_source_type: "RDS_HTTP_ENDPOINT", # accepts RDS_HTTP_ENDPOINT
    rds_http_endpoint_config: {
      aws_region: "String",
      db_cluster_identifier: "String",
      database_name: "String",
      schema: "String",
      aws_secret_store_arn: "String",
    },
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

The API ID.

Returns:

  • (String)


2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#descriptionString

The new description for the data source.

Returns:

  • (String)


2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#dynamodb_configTypes::DynamodbDataSourceConfig

The new Amazon DynamoDB configuration.



2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#elasticsearch_configTypes::ElasticsearchDataSourceConfig

The new Elasticsearch Service configuration.



2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#http_configTypes::HttpDataSourceConfig

The new HTTP endpoint configuration.



2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#lambda_configTypes::LambdaDataSourceConfig

The new AWS Lambda configuration.



2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#nameString

The new name for the data source.

Returns:

  • (String)


2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#relational_database_configTypes::RelationalDatabaseDataSourceConfig

The new relational database configuration.



2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#service_role_arnString

The new service role ARN for the data source.

Returns:

  • (String)


2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end

#typeString

The new data source type.

Returns:

  • (String)


2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 2439

class UpdateDataSourceRequest < Struct.new(
  :api_id,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config,
  :http_config,
  :relational_database_config)
  include Aws::Structure
end