Struct aws_sdk_appsync::operation::create_data_source::builders::CreateDataSourceInputBuilder
source · #[non_exhaustive]pub struct CreateDataSourceInputBuilder { /* private fields */ }
Expand description
A builder for CreateDataSourceInput
.
Implementations§
source§impl CreateDataSourceInputBuilder
impl CreateDataSourceInputBuilder
sourcepub fn api_id(self, input: impl Into<String>) -> Self
pub fn api_id(self, input: impl Into<String>) -> Self
The API ID for the GraphQL API for the DataSource
.
sourcepub fn set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API ID for the GraphQL API for the DataSource
.
sourcepub fn get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
The API ID for the GraphQL API for the DataSource
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the DataSource
.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the DataSource
.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the DataSource
.
sourcepub fn type(self, input: DataSourceType) -> Self
pub fn type(self, input: DataSourceType) -> Self
The type of the DataSource
.
sourcepub fn set_type(self, input: Option<DataSourceType>) -> Self
pub fn set_type(self, input: Option<DataSourceType>) -> Self
The type of the DataSource
.
sourcepub fn get_type(&self) -> &Option<DataSourceType>
pub fn get_type(&self) -> &Option<DataSourceType>
The type of the DataSource
.
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
Amazon DynamoDB settings.
sourcepub fn set_dynamodb_config(
self,
input: Option<DynamodbDataSourceConfig>
) -> Self
pub fn set_dynamodb_config( self, input: Option<DynamodbDataSourceConfig> ) -> Self
Amazon DynamoDB settings.
sourcepub fn get_dynamodb_config(&self) -> &Option<DynamodbDataSourceConfig>
pub fn get_dynamodb_config(&self) -> &Option<DynamodbDataSourceConfig>
Amazon 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.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig
to create an OpenSearch data source.
sourcepub fn set_elasticsearch_config(
self,
input: Option<ElasticsearchDataSourceConfig>
) -> Self
pub fn set_elasticsearch_config( self, input: Option<ElasticsearchDataSourceConfig> ) -> Self
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig
to create an OpenSearch data source.
sourcepub fn get_elasticsearch_config(&self) -> &Option<ElasticsearchDataSourceConfig>
pub fn get_elasticsearch_config(&self) -> &Option<ElasticsearchDataSourceConfig>
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig
to create an OpenSearch data source.
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) -> Result<CreateDataSourceInput, BuildError>
pub fn build(self) -> Result<CreateDataSourceInput, BuildError>
Consumes the builder and constructs a CreateDataSourceInput
.
source§impl CreateDataSourceInputBuilder
impl CreateDataSourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDataSourceOutput, SdkError<CreateDataSourceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDataSourceOutput, SdkError<CreateDataSourceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDataSourceInputBuilder
impl Clone for CreateDataSourceInputBuilder
source§fn clone(&self) -> CreateDataSourceInputBuilder
fn clone(&self) -> CreateDataSourceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDataSourceInputBuilder
impl Debug for CreateDataSourceInputBuilder
source§impl Default for CreateDataSourceInputBuilder
impl Default for CreateDataSourceInputBuilder
source§fn default() -> CreateDataSourceInputBuilder
fn default() -> CreateDataSourceInputBuilder
source§impl PartialEq<CreateDataSourceInputBuilder> for CreateDataSourceInputBuilder
impl PartialEq<CreateDataSourceInputBuilder> for CreateDataSourceInputBuilder
source§fn eq(&self, other: &CreateDataSourceInputBuilder) -> bool
fn eq(&self, other: &CreateDataSourceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.