@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 Amazon Resource Name (ARN).
|
String |
description()
The description of the data source.
|
DynamodbDataSourceConfig |
dynamodbConfig()
DynamoDB settings.
|
ElasticsearchDataSourceConfig |
elasticsearchConfig()
Amazon OpenSearch Service settings.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
EventBridgeDataSourceConfig |
eventBridgeConfig()
Amazon EventBridge settings.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HttpDataSourceConfig |
httpConfig()
HTTP endpoint settings.
|
LambdaDataSourceConfig |
lambdaConfig()
Lambda settings.
|
String |
name()
The name of the data source.
|
OpenSearchServiceDataSourceConfig |
openSearchServiceConfig()
Amazon OpenSearch Service settings.
|
RelationalDatabaseDataSourceConfig |
relationalDatabaseConfig()
Relational database settings.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataSource.Builder> |
serializableBuilderClass() |
String |
serviceRoleArn()
The Identity and Access Management (IAM) service role Amazon Resource Name (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 Amazon Resource Name (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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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().
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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().
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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 Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
public final DynamodbDataSourceConfig dynamodbConfig()
DynamoDB settings.
public final LambdaDataSourceConfig lambdaConfig()
Lambda settings.
public final ElasticsearchDataSourceConfig elasticsearchConfig()
Amazon OpenSearch Service settings.
public final OpenSearchServiceDataSourceConfig openSearchServiceConfig()
Amazon OpenSearch Service settings.
public final HttpDataSourceConfig httpConfig()
HTTP endpoint settings.
public final RelationalDatabaseDataSourceConfig relationalDatabaseConfig()
Relational database settings.
public final EventBridgeDataSourceConfig eventBridgeConfig()
Amazon EventBridge 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 © 2023. All rights reserved.