Struct aws_sdk_appsync::operation::update_data_source::builders::UpdateDataSourceInputBuilder
source · #[non_exhaustive]pub struct UpdateDataSourceInputBuilder { /* private fields */ }
Expand description
A builder for UpdateDataSourceInput
.
Implementations§
source§impl UpdateDataSourceInputBuilder
impl UpdateDataSourceInputBuilder
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 get_api_id(&self) -> &Option<String>
pub fn get_api_id(&self) -> &Option<String>
The API ID.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The new name for the data source.
This field is required.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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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.
This field is required.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 get_type(&self) -> &Option<DataSourceType>
pub fn get_type(&self) -> &Option<DataSourceType>
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 get_service_role_arn(&self) -> &Option<String>
pub fn get_service_role_arn(&self) -> &Option<String>
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 get_dynamodb_config(&self) -> &Option<DynamodbDataSourceConfig>
pub fn get_dynamodb_config(&self) -> &Option<DynamodbDataSourceConfig>
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 get_lambda_config(&self) -> &Option<LambdaDataSourceConfig>
pub fn get_lambda_config(&self) -> &Option<LambdaDataSourceConfig>
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 get_elasticsearch_config(&self) -> &Option<ElasticsearchDataSourceConfig>
pub fn get_elasticsearch_config(&self) -> &Option<ElasticsearchDataSourceConfig>
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 get_open_search_service_config(
&self,
) -> &Option<OpenSearchServiceDataSourceConfig>
pub fn get_open_search_service_config( &self, ) -> &Option<OpenSearchServiceDataSourceConfig>
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 get_http_config(&self) -> &Option<HttpDataSourceConfig>
pub fn get_http_config(&self) -> &Option<HttpDataSourceConfig>
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.
sourcepub fn get_relational_database_config(
&self,
) -> &Option<RelationalDatabaseDataSourceConfig>
pub fn get_relational_database_config( &self, ) -> &Option<RelationalDatabaseDataSourceConfig>
The new relational database configuration.
sourcepub fn event_bridge_config(self, input: EventBridgeDataSourceConfig) -> Self
pub fn event_bridge_config(self, input: EventBridgeDataSourceConfig) -> Self
The new 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
The new Amazon EventBridge settings.
sourcepub fn get_event_bridge_config(&self) -> &Option<EventBridgeDataSourceConfig>
pub fn get_event_bridge_config(&self) -> &Option<EventBridgeDataSourceConfig>
The new Amazon EventBridge settings.
sourcepub fn metrics_config(self, input: DataSourceLevelMetricsConfig) -> Self
pub fn metrics_config(self, input: DataSourceLevelMetricsConfig) -> Self
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
sourcepub fn set_metrics_config(
self,
input: Option<DataSourceLevelMetricsConfig>,
) -> Self
pub fn set_metrics_config( self, input: Option<DataSourceLevelMetricsConfig>, ) -> Self
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
sourcepub fn get_metrics_config(&self) -> &Option<DataSourceLevelMetricsConfig>
pub fn get_metrics_config(&self) -> &Option<DataSourceLevelMetricsConfig>
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
sourcepub fn build(self) -> Result<UpdateDataSourceInput, BuildError>
pub fn build(self) -> Result<UpdateDataSourceInput, BuildError>
Consumes the builder and constructs a UpdateDataSourceInput
.
source§impl UpdateDataSourceInputBuilder
impl UpdateDataSourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateDataSourceOutput, SdkError<UpdateDataSourceError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateDataSourceOutput, SdkError<UpdateDataSourceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateDataSourceInputBuilder
impl Clone for UpdateDataSourceInputBuilder
source§fn clone(&self) -> UpdateDataSourceInputBuilder
fn clone(&self) -> UpdateDataSourceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateDataSourceInputBuilder
impl Debug for UpdateDataSourceInputBuilder
source§impl Default for UpdateDataSourceInputBuilder
impl Default for UpdateDataSourceInputBuilder
source§fn default() -> UpdateDataSourceInputBuilder
fn default() -> UpdateDataSourceInputBuilder
source§impl PartialEq for UpdateDataSourceInputBuilder
impl PartialEq for UpdateDataSourceInputBuilder
source§fn eq(&self, other: &UpdateDataSourceInputBuilder) -> bool
fn eq(&self, other: &UpdateDataSourceInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateDataSourceInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateDataSourceInputBuilder
impl RefUnwindSafe for UpdateDataSourceInputBuilder
impl Send for UpdateDataSourceInputBuilder
impl Sync for UpdateDataSourceInputBuilder
impl Unpin for UpdateDataSourceInputBuilder
impl UnwindSafe for UpdateDataSourceInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more