Struct aws_sdk_appsync::client::fluent_builders::CreateDataSource
source · [−]pub struct CreateDataSource { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDataSource
.
Creates a DataSource
object.
Implementations
sourceimpl CreateDataSource
impl CreateDataSource
sourcepub async fn send(
self
) -> Result<CreateDataSourceOutput, SdkError<CreateDataSourceError>>
pub async fn send(
self
) -> Result<CreateDataSourceOutput, SdkError<CreateDataSourceError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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 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 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 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 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 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 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 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 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 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.
Trait Implementations
sourceimpl Clone for CreateDataSource
impl Clone for CreateDataSource
sourcefn clone(&self) -> CreateDataSource
fn clone(&self) -> CreateDataSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateDataSource
impl Send for CreateDataSource
impl Sync for CreateDataSource
impl Unpin for CreateDataSource
impl !UnwindSafe for CreateDataSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more