Struct aws_sdk_appsync::types::builders::DataSourceBuilder
source · #[non_exhaustive]pub struct DataSourceBuilder { /* private fields */ }
Expand description
A builder for DataSource
.
Implementations§
source§impl DataSourceBuilder
impl DataSourceBuilder
sourcepub fn data_source_arn(self, input: impl Into<String>) -> Self
pub fn data_source_arn(self, input: impl Into<String>) -> Self
The data source Amazon Resource Name (ARN).
sourcepub fn set_data_source_arn(self, input: Option<String>) -> Self
pub fn set_data_source_arn(self, input: Option<String>) -> Self
The data source Amazon Resource Name (ARN).
sourcepub fn get_data_source_arn(&self) -> &Option<String>
pub fn get_data_source_arn(&self) -> &Option<String>
The data source Amazon Resource Name (ARN).
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the data source.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the data source.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the data source.
sourcepub fn type(self, input: DataSourceType) -> Self
pub fn type(self, input: DataSourceType) -> Self
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.
sourcepub fn set_type(self, input: Option<DataSourceType>) -> Self
pub fn set_type(self, input: Option<DataSourceType>) -> Self
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.
sourcepub fn get_type(&self) -> &Option<DataSourceType>
pub fn get_type(&self) -> &Option<DataSourceType>
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.
sourcepub fn service_role_arn(self, input: impl Into<String>) -> Self
pub fn service_role_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_service_role_arn(self, input: Option<String>) -> Self
pub fn set_service_role_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_service_role_arn(&self) -> &Option<String>
pub fn get_service_role_arn(&self) -> &Option<String>
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.
sourcepub fn dynamodb_config(self, input: DynamodbDataSourceConfig) -> Self
pub fn dynamodb_config(self, input: DynamodbDataSourceConfig) -> Self
DynamoDB settings.
sourcepub fn set_dynamodb_config(
self,
input: Option<DynamodbDataSourceConfig>
) -> Self
pub fn set_dynamodb_config( self, input: Option<DynamodbDataSourceConfig> ) -> Self
DynamoDB settings.
sourcepub fn get_dynamodb_config(&self) -> &Option<DynamodbDataSourceConfig>
pub fn get_dynamodb_config(&self) -> &Option<DynamodbDataSourceConfig>
DynamoDB settings.
sourcepub fn lambda_config(self, input: LambdaDataSourceConfig) -> Self
pub fn lambda_config(self, input: LambdaDataSourceConfig) -> Self
Lambda settings.
sourcepub fn set_lambda_config(self, input: Option<LambdaDataSourceConfig>) -> Self
pub fn set_lambda_config(self, input: Option<LambdaDataSourceConfig>) -> Self
Lambda settings.
sourcepub fn get_lambda_config(&self) -> &Option<LambdaDataSourceConfig>
pub fn get_lambda_config(&self) -> &Option<LambdaDataSourceConfig>
Lambda settings.
sourcepub fn elasticsearch_config(self, input: ElasticsearchDataSourceConfig) -> Self
pub fn elasticsearch_config(self, input: ElasticsearchDataSourceConfig) -> Self
Amazon OpenSearch Service settings.
sourcepub fn set_elasticsearch_config(
self,
input: Option<ElasticsearchDataSourceConfig>
) -> Self
pub fn set_elasticsearch_config( self, input: Option<ElasticsearchDataSourceConfig> ) -> Self
Amazon OpenSearch Service settings.
sourcepub fn get_elasticsearch_config(&self) -> &Option<ElasticsearchDataSourceConfig>
pub fn get_elasticsearch_config(&self) -> &Option<ElasticsearchDataSourceConfig>
Amazon OpenSearch Service settings.
sourcepub fn open_search_service_config(
self,
input: OpenSearchServiceDataSourceConfig
) -> Self
pub fn open_search_service_config( self, input: OpenSearchServiceDataSourceConfig ) -> Self
Amazon OpenSearch Service settings.
sourcepub fn set_open_search_service_config(
self,
input: Option<OpenSearchServiceDataSourceConfig>
) -> Self
pub fn set_open_search_service_config( self, input: Option<OpenSearchServiceDataSourceConfig> ) -> Self
Amazon OpenSearch Service settings.
sourcepub fn get_open_search_service_config(
&self
) -> &Option<OpenSearchServiceDataSourceConfig>
pub fn get_open_search_service_config( &self ) -> &Option<OpenSearchServiceDataSourceConfig>
Amazon OpenSearch Service settings.
sourcepub fn http_config(self, input: HttpDataSourceConfig) -> Self
pub fn http_config(self, input: HttpDataSourceConfig) -> Self
HTTP endpoint settings.
sourcepub fn set_http_config(self, input: Option<HttpDataSourceConfig>) -> Self
pub fn set_http_config(self, input: Option<HttpDataSourceConfig>) -> Self
HTTP endpoint settings.
sourcepub fn get_http_config(&self) -> &Option<HttpDataSourceConfig>
pub fn get_http_config(&self) -> &Option<HttpDataSourceConfig>
HTTP endpoint settings.
sourcepub fn relational_database_config(
self,
input: RelationalDatabaseDataSourceConfig
) -> Self
pub fn relational_database_config( self, input: RelationalDatabaseDataSourceConfig ) -> Self
Relational database settings.
sourcepub fn set_relational_database_config(
self,
input: Option<RelationalDatabaseDataSourceConfig>
) -> Self
pub fn set_relational_database_config( self, input: Option<RelationalDatabaseDataSourceConfig> ) -> Self
Relational database settings.
sourcepub fn get_relational_database_config(
&self
) -> &Option<RelationalDatabaseDataSourceConfig>
pub fn get_relational_database_config( &self ) -> &Option<RelationalDatabaseDataSourceConfig>
Relational database settings.
sourcepub fn event_bridge_config(self, input: EventBridgeDataSourceConfig) -> Self
pub fn event_bridge_config(self, input: EventBridgeDataSourceConfig) -> Self
Amazon EventBridge settings.
sourcepub fn set_event_bridge_config(
self,
input: Option<EventBridgeDataSourceConfig>
) -> Self
pub fn set_event_bridge_config( self, input: Option<EventBridgeDataSourceConfig> ) -> Self
Amazon EventBridge settings.
sourcepub fn get_event_bridge_config(&self) -> &Option<EventBridgeDataSourceConfig>
pub fn get_event_bridge_config(&self) -> &Option<EventBridgeDataSourceConfig>
Amazon EventBridge settings.
sourcepub fn build(self) -> DataSource
pub fn build(self) -> DataSource
Consumes the builder and constructs a DataSource
.
Trait Implementations§
source§impl Clone for DataSourceBuilder
impl Clone for DataSourceBuilder
source§fn clone(&self) -> DataSourceBuilder
fn clone(&self) -> DataSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataSourceBuilder
impl Debug for DataSourceBuilder
source§impl Default for DataSourceBuilder
impl Default for DataSourceBuilder
source§fn default() -> DataSourceBuilder
fn default() -> DataSourceBuilder
source§impl PartialEq for DataSourceBuilder
impl PartialEq for DataSourceBuilder
source§fn eq(&self, other: &DataSourceBuilder) -> bool
fn eq(&self, other: &DataSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.