Struct aws_sdk_appsync::client::fluent_builders::UpdateDataSource
source · pub struct UpdateDataSource { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateDataSource
.
Updates a DataSource
object.
Implementations§
source§impl UpdateDataSource
impl UpdateDataSource
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateDataSource, AwsResponseRetryClassifier>, SdkError<UpdateDataSourceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateDataSource, AwsResponseRetryClassifier>, SdkError<UpdateDataSourceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateDataSourceOutput, SdkError<UpdateDataSourceError>>
pub async fn send(
self
) -> Result<UpdateDataSourceOutput, SdkError<UpdateDataSourceError>>
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 set_api_id(self, input: Option<String>) -> Self
pub fn set_api_id(self, input: Option<String>) -> Self
The API ID.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The new description for the data source.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The new description for the data source.
sourcepub fn type(self, input: DataSourceType) -> Self
pub fn type(self, input: DataSourceType) -> Self
The new data source type.
sourcepub fn set_type(self, input: Option<DataSourceType>) -> Self
pub fn set_type(self, input: Option<DataSourceType>) -> Self
The new data source type.
sourcepub fn service_role_arn(self, input: impl Into<String>) -> Self
pub fn service_role_arn(self, input: impl Into<String>) -> Self
The new service role Amazon Resource Name (ARN) for 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 new service role Amazon Resource Name (ARN) for the data source.
sourcepub fn dynamodb_config(self, input: DynamodbDataSourceConfig) -> Self
pub fn dynamodb_config(self, input: DynamodbDataSourceConfig) -> Self
The new Amazon DynamoDB configuration.
sourcepub fn set_dynamodb_config(self, input: Option<DynamodbDataSourceConfig>) -> Self
pub fn set_dynamodb_config(self, input: Option<DynamodbDataSourceConfig>) -> Self
The new Amazon DynamoDB configuration.
sourcepub fn lambda_config(self, input: LambdaDataSourceConfig) -> Self
pub fn lambda_config(self, input: LambdaDataSourceConfig) -> Self
The new Lambda configuration.
sourcepub fn set_lambda_config(self, input: Option<LambdaDataSourceConfig>) -> Self
pub fn set_lambda_config(self, input: Option<LambdaDataSourceConfig>) -> Self
The new Lambda configuration.
sourcepub fn elasticsearch_config(self, input: ElasticsearchDataSourceConfig) -> Self
pub fn elasticsearch_config(self, input: ElasticsearchDataSourceConfig) -> Self
The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig
to update an OpenSearch data source.
sourcepub fn set_elasticsearch_config(
self,
input: Option<ElasticsearchDataSourceConfig>
) -> Self
pub fn set_elasticsearch_config(
self,
input: Option<ElasticsearchDataSourceConfig>
) -> Self
The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig
to update an OpenSearch data source.
sourcepub fn open_search_service_config(
self,
input: OpenSearchServiceDataSourceConfig
) -> Self
pub fn open_search_service_config(
self,
input: OpenSearchServiceDataSourceConfig
) -> Self
The new OpenSearch configuration.
sourcepub fn set_open_search_service_config(
self,
input: Option<OpenSearchServiceDataSourceConfig>
) -> Self
pub fn set_open_search_service_config(
self,
input: Option<OpenSearchServiceDataSourceConfig>
) -> Self
The new OpenSearch configuration.
sourcepub fn http_config(self, input: HttpDataSourceConfig) -> Self
pub fn http_config(self, input: HttpDataSourceConfig) -> Self
The new HTTP endpoint configuration.
sourcepub fn set_http_config(self, input: Option<HttpDataSourceConfig>) -> Self
pub fn set_http_config(self, input: Option<HttpDataSourceConfig>) -> Self
The new HTTP endpoint configuration.
sourcepub fn relational_database_config(
self,
input: RelationalDatabaseDataSourceConfig
) -> Self
pub fn relational_database_config(
self,
input: RelationalDatabaseDataSourceConfig
) -> Self
The new relational database configuration.
sourcepub fn set_relational_database_config(
self,
input: Option<RelationalDatabaseDataSourceConfig>
) -> Self
pub fn set_relational_database_config(
self,
input: Option<RelationalDatabaseDataSourceConfig>
) -> Self
The new relational database configuration.
Trait Implementations§
source§impl Clone for UpdateDataSource
impl Clone for UpdateDataSource
source§fn clone(&self) -> UpdateDataSource
fn clone(&self) -> UpdateDataSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more