#[non_exhaustive]pub struct CreateConnectionOutputBuilder { /* private fields */ }Expand description
A builder for CreateConnectionOutput.
Implementations§
Source§impl CreateConnectionOutputBuilder
impl CreateConnectionOutputBuilder
Sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the connection.
This field is required.Sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the connection.
This field is required.Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.
This field is required.Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.
Sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the connection. You set it when you create the connection and can change it with UpdateConnection. Uses the same constraints as an agent context name. Always present.
Sourcepub fn data_source(self, input: DataSourceReference) -> Self
pub fn data_source(self, input: DataSourceReference) -> Self
The typed reference to the external data source that this connection binds to. Its type, the authoritative kind of data source, is in dataSource.type.
Sourcepub fn set_data_source(self, input: Option<DataSourceReference>) -> Self
pub fn set_data_source(self, input: Option<DataSourceReference>) -> Self
The typed reference to the external data source that this connection binds to. Its type, the authoritative kind of data source, is in dataSource.type.
Sourcepub fn get_data_source(&self) -> &Option<DataSourceReference>
pub fn get_data_source(&self) -> &Option<DataSourceReference>
The typed reference to the external data source that this connection binds to. Its type, the authoritative kind of data source, is in dataSource.type.
Sourcepub fn scope(self, input: DataSourceScope) -> Self
pub fn scope(self, input: DataSourceScope) -> Self
The hierarchical subset of the data source this connection ingests.
Sourcepub fn set_scope(self, input: Option<DataSourceScope>) -> Self
pub fn set_scope(self, input: Option<DataSourceScope>) -> Self
The hierarchical subset of the data source this connection ingests.
Sourcepub fn get_scope(&self) -> &Option<DataSourceScope>
pub fn get_scope(&self) -> &Option<DataSourceScope>
The hierarchical subset of the data source this connection ingests.
Sourcepub fn access_config(self, input: AccessConfig) -> Self
pub fn access_config(self, input: AccessConfig) -> Self
Per-connection access configuration: the IAM role used for data access.
Sourcepub fn set_access_config(self, input: Option<AccessConfig>) -> Self
pub fn set_access_config(self, input: Option<AccessConfig>) -> Self
Per-connection access configuration: the IAM role used for data access.
Sourcepub fn get_access_config(&self) -> &Option<AccessConfig>
pub fn get_access_config(&self) -> &Option<AccessConfig>
Per-connection access configuration: the IAM role used for data access.
Sourcepub fn sync_schedule(self, input: SyncSchedule) -> Self
pub fn sync_schedule(self, input: SyncSchedule) -> Self
The effective sync schedule. Present for DATABRICKS and SNOWFLAKE connections (DAILY if you didn't specify one). Absent for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which are event-driven.
Sourcepub fn set_sync_schedule(self, input: Option<SyncSchedule>) -> Self
pub fn set_sync_schedule(self, input: Option<SyncSchedule>) -> Self
The effective sync schedule. Present for DATABRICKS and SNOWFLAKE connections (DAILY if you didn't specify one). Absent for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which are event-driven.
Sourcepub fn get_sync_schedule(&self) -> &Option<SyncSchedule>
pub fn get_sync_schedule(&self) -> &Option<SyncSchedule>
The effective sync schedule. Present for DATABRICKS and SNOWFLAKE connections (DAILY if you didn't specify one). Absent for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which are event-driven.
Sourcepub fn ingestion_config(self, input: IngestionConfig) -> Self
pub fn ingestion_config(self, input: IngestionConfig) -> Self
The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.
Sourcepub fn set_ingestion_config(self, input: Option<IngestionConfig>) -> Self
pub fn set_ingestion_config(self, input: Option<IngestionConfig>) -> Self
The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.
Sourcepub fn get_ingestion_config(&self) -> &Option<IngestionConfig>
pub fn get_ingestion_config(&self) -> &Option<IngestionConfig>
The connection's ingestion configuration (the IAM role a data producer assumes to push into this connection). Absent when no ingestion role is configured.
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, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope. Absent when none is configured.
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, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope. Absent when none is configured.
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, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope. Absent when none is configured.
Sourcepub fn status(self, input: ConnectionStatus) -> Self
pub fn status(self, input: ConnectionStatus) -> Self
The connection's status. Valid values:
-
CREATING- Validation or provisioning is still in progress. -
ACTIVE- The data source is reachable and, for aDATABRICKSorSNOWFLAKEconnection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed. -
UPDATING- The connection is being updated. -
DELETING- The connection is being deleted. -
FAILED- Validation or provisioning failed, and the connection can't recover.
Sourcepub fn set_status(self, input: Option<ConnectionStatus>) -> Self
pub fn set_status(self, input: Option<ConnectionStatus>) -> Self
The connection's status. Valid values:
-
CREATING- Validation or provisioning is still in progress. -
ACTIVE- The data source is reachable and, for aDATABRICKSorSNOWFLAKEconnection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed. -
UPDATING- The connection is being updated. -
DELETING- The connection is being deleted. -
FAILED- Validation or provisioning failed, and the connection can't recover.
Sourcepub fn get_status(&self) -> &Option<ConnectionStatus>
pub fn get_status(&self) -> &Option<ConnectionStatus>
The connection's status. Valid values:
-
CREATING- Validation or provisioning is still in progress. -
ACTIVE- The data source is reachable and, for aDATABRICKSorSNOWFLAKEconnection, AWS Glue has provisioned catalog synchronization and returned its crawler ARN. This doesn't mean that a crawl has started or completed. -
UPDATING- The connection is being updated. -
DELETING- The connection is being deleted. -
FAILED- Validation or provisioning failed, and the connection can't recover.
Sourcepub fn failure(self, input: ConnectionFailure) -> Self
pub fn failure(self, input: ConnectionFailure) -> Self
The reason the connection is FAILED. Absent in every other status.
Sourcepub fn set_failure(self, input: Option<ConnectionFailure>) -> Self
pub fn set_failure(self, input: Option<ConnectionFailure>) -> Self
The reason the connection is FAILED. Absent in every other status.
Sourcepub fn get_failure(&self) -> &Option<ConnectionFailure>
pub fn get_failure(&self) -> &Option<ConnectionFailure>
The reason the connection is FAILED. Absent in every other status.
Sourcepub fn sub_status(self, input: ResourceSubStatus) -> Self
pub fn sub_status(self, input: ResourceSubStatus) -> Self
The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with publish: false means it is waiting for UpdateConnection publish: true.
Sourcepub fn set_sub_status(self, input: Option<ResourceSubStatus>) -> Self
pub fn set_sub_status(self, input: Option<ResourceSubStatus>) -> Self
The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with publish: false means it is waiting for UpdateConnection publish: true.
Sourcepub fn get_sub_status(&self) -> &Option<ResourceSubStatus>
pub fn get_sub_status(&self) -> &Option<ResourceSubStatus>
The last milestone a third-party connection's lifecycle reached. Present in two statuses: CREATING, where it shows the resources provisioned so far, and DELETING, where it shows the resources removed so far. Absent in every other status and while nothing has been done yet in the current direction. CREATING at GLUE_CONNECTION_VALIDATED on a connection created with publish: false means it is waiting for UpdateConnection publish: true.
Sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time when the connection was created.
This field is required.Sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date and time when the connection was created.
Sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time when the connection was created.
Sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
When the resource last changed. Equal to createdAt until the first update.
Sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
When the resource last changed. Equal to createdAt until the first update.
Sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
When the resource last changed. Equal to createdAt until the first update.
Sourcepub fn build(self) -> Result<CreateConnectionOutput, BuildError>
pub fn build(self) -> Result<CreateConnectionOutput, BuildError>
Consumes the builder and constructs a CreateConnectionOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
impl StructuralPartialEq for CreateConnectionOutputBuilder
Auto Trait Implementations§
impl Forget for CreateConnectionOutputBuilder
impl Freeze for CreateConnectionOutputBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ResourceSelector>: Freeze,
PhantomData<GlueConnectionMapping>: Freeze,
impl Move for CreateConnectionOutputBuilder
impl RefUnwindSafe for CreateConnectionOutputBuilder
impl Send for CreateConnectionOutputBuilderwhere
RawVecInner: Send,
impl Sync for CreateConnectionOutputBuilderwhere
RawVecInner: Sync,
impl Unpin for CreateConnectionOutputBuilder
impl UnsafeUnpin for CreateConnectionOutputBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ResourceSelector>: UnsafeUnpin,
PhantomData<GlueConnectionMapping>: UnsafeUnpin,
impl UnwindSafe for CreateConnectionOutputBuilderwhere
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);