@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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
DataSourceType |
type()
The type of the data source.
|
String |
typeAsString()
The type of the data source.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String dataSourceArn()
The data source ARN.
public final String name()
The name of the data source.
public final String description()
The description of the data source.
public final 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.
DataSourceTypepublic final 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.
DataSourceTypepublic final String serviceRoleArn()
The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.
public final DynamodbDataSourceConfig dynamodbConfig()
Amazon DynamoDB settings.
public final LambdaDataSourceConfig lambdaConfig()
AWS Lambda settings.
public final ElasticsearchDataSourceConfig elasticsearchConfig()
Amazon Elasticsearch Service settings.
public final HttpDataSourceConfig httpConfig()
HTTP endpoint settings.
public final RelationalDatabaseDataSourceConfig relationalDatabaseConfig()
Relational database settings.
public DataSource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DataSource.Builder,DataSource>public static DataSource.Builder builder()
public static Class<? extends DataSource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.