Struct aws_sdk_appsync::model::DataSource [−][src]
#[non_exhaustive]pub struct DataSource {
pub data_source_arn: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub type: Option<DataSourceType>,
pub service_role_arn: Option<String>,
pub dynamodb_config: Option<DynamodbDataSourceConfig>,
pub lambda_config: Option<LambdaDataSourceConfig>,
pub elasticsearch_config: Option<ElasticsearchDataSourceConfig>,
pub open_search_service_config: Option<OpenSearchServiceDataSourceConfig>,
pub http_config: Option<HttpDataSourceConfig>,
pub relational_database_config: Option<RelationalDatabaseDataSourceConfig>,
}
Expand description
Describes a data source.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_source_arn: Option<String>
The data source ARN.
name: Option<String>
The name of the data source.
description: Option<String>
The description of the data source.
type: Option<DataSourceType>
The type of the data source.
-
AWS_LAMBDA: The data source is an Amazon Web Services 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.
-
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.
service_role_arn: Option<String>
The Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.
dynamodb_config: Option<DynamodbDataSourceConfig>
Amazon DynamoDB settings.
lambda_config: Option<LambdaDataSourceConfig>
Amazon Web Services Lambda settings.
elasticsearch_config: Option<ElasticsearchDataSourceConfig>
Amazon OpenSearch Service settings.
open_search_service_config: Option<OpenSearchServiceDataSourceConfig>
Amazon OpenSearch Service settings.
http_config: Option<HttpDataSourceConfig>
HTTP endpoint settings.
relational_database_config: Option<RelationalDatabaseDataSourceConfig>
Relational database settings.
Implementations
The data source ARN.
The description of the data source.
The type of the data source.
-
AWS_LAMBDA: The data source is an Amazon Web Services 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.
-
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.
The Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.
Amazon DynamoDB settings.
Amazon Web Services Lambda settings.
Amazon OpenSearch Service settings.
Amazon OpenSearch Service settings.
HTTP endpoint settings.
Relational database settings.
Creates a new builder-style object to manufacture DataSource
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more