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

Class: Aws::AppSync::Types::CreateDataSourceRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateDataSourceRequest as input to an Aws::Client method, you can use a vanilla 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 for the GraphQL API for the DataSource.

Returns:

  • (String)

    The API ID for the GraphQL API for the DataSource.

#descriptionString

A description of the DataSource.

Returns:

  • (String)

    A description of the DataSource.

#dynamodb_configTypes::DynamodbDataSourceConfig

Amazon DynamoDB settings.

Returns:

#elasticsearch_configTypes::ElasticsearchDataSourceConfig

Amazon Elasticsearch Service settings.

Returns:

#http_configTypes::HttpDataSourceConfig

HTTP endpoint settings.

Returns:

#lambda_configTypes::LambdaDataSourceConfig

AWS Lambda settings.

Returns:

#nameString

A user-supplied name for the DataSource.

Returns:

  • (String)

    A user-supplied name for the DataSource.

#relational_database_configTypes::RelationalDatabaseDataSourceConfig

Relational database settings.

Returns:

#service_role_arnString

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

Returns:

  • (String)

    The AWS IAM service role ARN for the data source.

#typeString

The type of the DataSource.

Possible values:

  • AWS_LAMBDA
  • AMAZON_DYNAMODB
  • AMAZON_ELASTICSEARCH
  • NONE
  • HTTP
  • RELATIONAL_DATABASE

Returns:

  • (String)

    The type of the DataSource.