@Generated(value="software.amazon.awssdk:codegen") public final class DataSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataSource.Builder,DataSource>
Describes a data source.
Modifier and Type | Class and Description |
---|---|
static interface |
DataSource.Builder |
Modifier and Type | Method and Description |
---|---|
static DataSource.Builder |
builder() |
String |
dataSourceArn()
The data source ARN.
|
String |
description()
The description of the data source.
|
DynamodbDataSourceConfig |
dynamodbConfig()
Amazon DynamoDB settings.
|
ElasticsearchDataSourceConfig |
elasticsearchConfig()
Amazon Elasticsearch Service settings.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HttpDataSourceConfig |
httpConfig()
HTTP endpoint settings.
|
LambdaDataSourceConfig |
lambdaConfig()
AWS Lambda settings.
|
String |
name()
The name of the data source.
|
RelationalDatabaseDataSourceConfig |
relationalDatabaseConfig()
Relational database settings.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataSource.Builder> |
serializableBuilderClass() |
String |
serviceRoleArn()
The AWS IAM service role ARN for the data source.
|
DataSource.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
DataSourceType |
type()
The type of the data source.
|
String |
typeAsString()
The type of the data source.
|
copy
public String dataSourceArn()
The data source ARN.
public String name()
The name of the data source.
public String description()
The description of the data source.
public DataSourceType type()
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 you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
If the service returns an enum value that is not available in the current SDK version, type
will return
DataSourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
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 you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType
public String typeAsString()
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 you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
If the service returns an enum value that is not available in the current SDK version, type
will return
DataSourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
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 you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType
public String serviceRoleArn()
The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.
public DynamodbDataSourceConfig dynamodbConfig()
Amazon DynamoDB settings.
public LambdaDataSourceConfig lambdaConfig()
AWS Lambda settings.
public ElasticsearchDataSourceConfig elasticsearchConfig()
Amazon Elasticsearch Service settings.
public HttpDataSourceConfig httpConfig()
HTTP endpoint settings.
public RelationalDatabaseDataSourceConfig relationalDatabaseConfig()
Relational database settings.
public DataSource.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DataSource.Builder,DataSource>
public static DataSource.Builder builder()
public static Class<? extends DataSource.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.