#[non_exhaustive]pub struct UpdateConnectionInputBuilder { /* private fields */ }Expand description
A builder for UpdateConnectionInput.
Implementations§
Source§impl UpdateConnectionInputBuilder
impl UpdateConnectionInputBuilder
Sourcepub fn connection_id(self, input: impl Into<String>) -> Self
pub fn connection_id(self, input: impl Into<String>) -> Self
The connection to update, by its ID (which starts with conn-) or its ARN.
Sourcepub fn set_connection_id(self, input: Option<String>) -> Self
pub fn set_connection_id(self, input: Option<String>) -> Self
The connection to update, by its ID (which starts with conn-) or its ARN.
Sourcepub fn get_connection_id(&self) -> &Option<String>
pub fn get_connection_id(&self) -> &Option<String>
The connection to update, by its ID (which starts with conn-) or its ARN.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The new name. If you omit it, the name is unchanged.
Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The new name. If you omit it, the name is unchanged.
Sourcepub fn scope(self, input: DataSourceScope) -> Self
pub fn scope(self, input: DataSourceScope) -> Self
The new ingestion scope for the connection. If you omit it, the existing scope is unchanged. The rules of CreateConnectionRequest.scope apply, with the following additions:
-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can't be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.
Sourcepub fn set_scope(self, input: Option<DataSourceScope>) -> Self
pub fn set_scope(self, input: Option<DataSourceScope>) -> Self
The new ingestion scope for the connection. If you omit it, the existing scope is unchanged. The rules of CreateConnectionRequest.scope apply, with the following additions:
-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can't be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.
Sourcepub fn get_scope(&self) -> &Option<DataSourceScope>
pub fn get_scope(&self) -> &Option<DataSourceScope>
The new ingestion scope for the connection. If you omit it, the existing scope is unchanged. The rules of CreateConnectionRequest.scope apply, with the following additions:
-
A
DATABRICKSorSNOWFLAKEscope names at most onedatabricksCatalogorsnowflakeDatabase, unless the existing scope already names each one. -
If the stored scope has a selector with a
glueServicesegment, the new scope can't be empty. Every selector that it adds must also have aglueServicesegment. Otherwise, the request fails withValidationException. You can keep a selector that the stored scope already has, so resending the stored scope unchanged succeeds.
Sourcepub fn access_config(self, input: AccessConfig) -> Self
pub fn access_config(self, input: AccessConfig) -> Self
The updated access configuration for the data source. If you omit it, the existing configuration is unchanged. If you provide one, it replaces the stored configuration, including its variant.
For DATABRICKS and SNOWFLAKE, a configuration with no variant clears a stored iamRole, and the connection is then returned with no accessConfig.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, you cannot add or remove the iamRole. An update that adds an iamRole to a connection stored without one fails with ValidationException. So does an update that provides a configuration without iamRole for a connection that has one. You can replace a stored role with another role. To change how such a connection reads its data source, delete the connection and create it again.
Sourcepub fn set_access_config(self, input: Option<AccessConfig>) -> Self
pub fn set_access_config(self, input: Option<AccessConfig>) -> Self
The updated access configuration for the data source. If you omit it, the existing configuration is unchanged. If you provide one, it replaces the stored configuration, including its variant.
For DATABRICKS and SNOWFLAKE, a configuration with no variant clears a stored iamRole, and the connection is then returned with no accessConfig.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, you cannot add or remove the iamRole. An update that adds an iamRole to a connection stored without one fails with ValidationException. So does an update that provides a configuration without iamRole for a connection that has one. You can replace a stored role with another role. To change how such a connection reads its data source, delete the connection and create it again.
Sourcepub fn get_access_config(&self) -> &Option<AccessConfig>
pub fn get_access_config(&self) -> &Option<AccessConfig>
The updated access configuration for the data source. If you omit it, the existing configuration is unchanged. If you provide one, it replaces the stored configuration, including its variant.
For DATABRICKS and SNOWFLAKE, a configuration with no variant clears a stored iamRole, and the connection is then returned with no accessConfig.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, you cannot add or remove the iamRole. An update that adds an iamRole to a connection stored without one fails with ValidationException. So does an update that provides a configuration without iamRole for a connection that has one. You can replace a stored role with another role. To change how such a connection reads its data source, delete the connection and create it again.
Sourcepub fn sync_schedule(self, input: SyncSchedule) -> Self
pub fn sync_schedule(self, input: SyncSchedule) -> Self
The new sync schedule for a DATABRICKS or SNOWFLAKE source. If you omit it, the existing schedule is unchanged. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections.
Sourcepub fn set_sync_schedule(self, input: Option<SyncSchedule>) -> Self
pub fn set_sync_schedule(self, input: Option<SyncSchedule>) -> Self
The new sync schedule for a DATABRICKS or SNOWFLAKE source. If you omit it, the existing schedule is unchanged. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections.
Sourcepub fn get_sync_schedule(&self) -> &Option<SyncSchedule>
pub fn get_sync_schedule(&self) -> &Option<SyncSchedule>
The new sync schedule for a DATABRICKS or SNOWFLAKE source. If you omit it, the existing schedule is unchanged. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections.
Sourcepub fn ingestion_config(self, input: IngestionConfig) -> Self
pub fn ingestion_config(self, input: IngestionConfig) -> Self
The ingestion configuration: the IAM role that a data producer assumes to push data into this connection. Required on every update, so that an existing connection always has an ingestion role that AWS Context can authorize. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account. You can't clear the role.
Sourcepub fn set_ingestion_config(self, input: Option<IngestionConfig>) -> Self
pub fn set_ingestion_config(self, input: Option<IngestionConfig>) -> Self
The ingestion configuration: the IAM role that a data producer assumes to push data into this connection. Required on every update, so that an existing connection always has an ingestion role that AWS Context can authorize. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account. You can't clear the role.
Sourcepub fn get_ingestion_config(&self) -> &Option<IngestionConfig>
pub fn get_ingestion_config(&self) -> &Option<IngestionConfig>
The ingestion configuration: the IAM role that a data producer assumes to push data into this connection. Required on every update, so that an existing connection always has an ingestion role that AWS Context can authorize. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account. You can't clear the role.
Sourcepub fn glue_connection_mappings(self, input: GlueConnectionMapping) -> Self
pub fn glue_connection_mappings(self, input: GlueConnectionMapping) -> Self
Appends an item to glue_connection_mappings.
To override the contents of this collection use set_glue_connection_mappings.
The AWS Glue connection for each redshiftNamespace, and for each rdsInstance and rdsDatabase pair, in scope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changes scope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those of CreateConnectionRequest.glueConnectionMappings. You can't change the list of a SNOWFLAKE connection, which is keyed by snowflakeDatabase: omit it or send it unchanged.
Sourcepub fn set_glue_connection_mappings(
self,
input: Option<Vec<GlueConnectionMapping>>,
) -> Self
pub fn set_glue_connection_mappings( self, input: Option<Vec<GlueConnectionMapping>>, ) -> Self
The AWS Glue connection for each redshiftNamespace, and for each rdsInstance and rdsDatabase pair, in scope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changes scope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those of CreateConnectionRequest.glueConnectionMappings. You can't change the list of a SNOWFLAKE connection, which is keyed by snowflakeDatabase: omit it or send it unchanged.
Sourcepub fn get_glue_connection_mappings(
&self,
) -> &Option<Vec<GlueConnectionMapping>>
pub fn get_glue_connection_mappings( &self, ) -> &Option<Vec<GlueConnectionMapping>>
The AWS Glue connection for each redshiftNamespace, and for each rdsInstance and rdsDatabase pair, in scope. If you omit it, the stored list is kept. A list replaces the stored list, and an empty list clears it. If the update changes scope, or changes the role of a connection to another account's catalog, AWS Context validates the kept list again. The rules are those of CreateConnectionRequest.glueConnectionMappings. You can't change the list of a SNOWFLAKE connection, which is keyed by snowflakeDatabase: omit it or send it unchanged.
Sourcepub fn publish(self, input: bool) -> Self
pub fn publish(self, input: bool) -> Self
Specifies whether to publish a third-party connection created with publish: false. If true, AWS Context configures catalog synchronization. The connection moves to ACTIVE when AWS Glue finishes provisioning the managed crawler. This has no effect on an ACTIVE connection. false is not accepted, because a connection can't be unpublished. Delete the connection instead.
Sourcepub fn set_publish(self, input: Option<bool>) -> Self
pub fn set_publish(self, input: Option<bool>) -> Self
Specifies whether to publish a third-party connection created with publish: false. If true, AWS Context configures catalog synchronization. The connection moves to ACTIVE when AWS Glue finishes provisioning the managed crawler. This has no effect on an ACTIVE connection. false is not accepted, because a connection can't be unpublished. Delete the connection instead.
Sourcepub fn get_publish(&self) -> &Option<bool>
pub fn get_publish(&self) -> &Option<bool>
Specifies whether to publish a third-party connection created with publish: false. If true, AWS Context configures catalog synchronization. The connection moves to ACTIVE when AWS Glue finishes provisioning the managed crawler. This has no effect on an ACTIVE connection. false is not accepted, because a connection can't be unpublished. Delete the connection instead.
Sourcepub fn build(self) -> Result<UpdateConnectionInput, BuildError>
pub fn build(self) -> Result<UpdateConnectionInput, BuildError>
Consumes the builder and constructs a UpdateConnectionInput.
Source§impl UpdateConnectionInputBuilder
impl UpdateConnectionInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateConnectionOutput, SdkError<UpdateConnectionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateConnectionOutput, SdkError<UpdateConnectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for UpdateConnectionInputBuilder
impl Clone for UpdateConnectionInputBuilder
Source§impl Debug for UpdateConnectionInputBuilder
impl Debug for UpdateConnectionInputBuilder
impl StructuralPartialEq for UpdateConnectionInputBuilder
Auto Trait Implementations§
impl Forget for UpdateConnectionInputBuilder
impl Freeze for UpdateConnectionInputBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ResourceSelector>: Freeze,
PhantomData<GlueConnectionMapping>: Freeze,
impl Move for UpdateConnectionInputBuilder
impl RefUnwindSafe for UpdateConnectionInputBuilder
impl Send for UpdateConnectionInputBuilderwhere
RawVecInner: Send,
impl Sync for UpdateConnectionInputBuilderwhere
RawVecInner: Sync,
impl Unpin for UpdateConnectionInputBuilder
impl UnsafeUnpin for UpdateConnectionInputBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ResourceSelector>: UnsafeUnpin,
PhantomData<GlueConnectionMapping>: UnsafeUnpin,
impl UnwindSafe for UpdateConnectionInputBuilderwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);