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

Class: Aws::AppSync::Types::DataSource

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

Overview

Describes a data source.

Instance Attribute Summary collapse

Instance Attribute Details

#data_source_arnString

The data source ARN.

Returns:

  • (String)


365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#descriptionString

The description of the data source.

Returns:

  • (String)


365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#dynamodb_configTypes::DynamodbDataSourceConfig

DynamoDB settings.



365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#elasticsearch_configTypes::ElasticsearchDataSourceConfig

Amazon Elasticsearch settings.



365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#lambda_configTypes::LambdaDataSourceConfig

Lambda settings.



365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#nameString

The name of the data source.

Returns:

  • (String)


365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#service_role_arnString

The IAM service role ARN for the data source. The system assumes this role when accessing the data source.

Returns:

  • (String)


365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end

#typeString

The type of the data source.

  • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

  • AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.

  • AWS_LAMBDA: The data source is an AWS Lambda function.

  • NONE: There is no data source. This type is used when the required information can be computed on the fly without connecting to a back-end data source.

Returns:

  • (String)


365
366
367
368
369
370
371
372
373
374
375
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 365

class DataSource < Struct.new(
  :data_source_arn,
  :name,
  :description,
  :type,
  :service_role_arn,
  :dynamodb_config,
  :lambda_config,
  :elasticsearch_config)
  include Aws::Structure
end