#[non_exhaustive]pub struct CreateConnectionOutput {Show 14 fields
pub id: String,
pub arn: String,
pub name: String,
pub data_source: Option<DataSourceReference>,
pub scope: Option<DataSourceScope>,
pub access_config: Option<AccessConfig>,
pub sync_schedule: Option<SyncSchedule>,
pub ingestion_config: Option<IngestionConfig>,
pub glue_connection_mappings: Option<Vec<GlueConnectionMapping>>,
pub status: ConnectionStatus,
pub failure: Option<ConnectionFailure>,
pub sub_status: Option<ResourceSubStatus>,
pub created_at: DateTime,
pub updated_at: DateTime,
/* private fields */
}Expand description
A connection, as returned by CreateConnection, GetConnection, and UpdateConnection. id, arn, name, dataSource, status, createdAt, and updatedAt are always present. Every other member is optional.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe ID of the connection.
arn: StringThe ARN of the connection.
name: StringThe 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.
data_source: 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.
scope: Option<DataSourceScope>The hierarchical subset of the data source this connection ingests.
access_config: Option<AccessConfig>Per-connection access configuration: the IAM role used for data access.
sync_schedule: 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.
ingestion_config: 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.
glue_connection_mappings: 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.
status: ConnectionStatusThe 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.
failure: Option<ConnectionFailure>The reason the connection is FAILED. Absent in every other status.
sub_status: 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.
created_at: DateTimeThe date and time when the connection was created.
updated_at: DateTimeWhen the resource last changed. Equal to createdAt until the first update.
Implementations§
Source§impl CreateConnectionOutput
impl CreateConnectionOutput
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
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) -> Option<&DataSourceReference>
pub fn 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) -> Option<&DataSourceScope>
pub fn scope(&self) -> Option<&DataSourceScope>
The hierarchical subset of the data source this connection ingests.
Sourcepub fn access_config(&self) -> Option<&AccessConfig>
pub fn access_config(&self) -> Option<&AccessConfig>
Per-connection access configuration: the IAM role used for data access.
Sourcepub fn sync_schedule(&self) -> Option<&SyncSchedule>
pub fn 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) -> Option<&IngestionConfig>
pub fn 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) -> &[GlueConnectionMapping]
pub fn glue_connection_mappings(&self) -> &[GlueConnectionMapping]
The AWS Glue connection for each redshiftNamespace, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope. Absent when none is configured.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .glue_connection_mappings.is_none().
Sourcepub fn status(&self) -> &ConnectionStatus
pub fn status(&self) -> &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) -> Option<&ConnectionFailure>
pub fn failure(&self) -> Option<&ConnectionFailure>
The reason the connection is FAILED. Absent in every other status.
Sourcepub fn sub_status(&self) -> Option<&ResourceSubStatus>
pub fn 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) -> &DateTime
pub fn created_at(&self) -> &DateTime
The date and time when the connection was created.
Sourcepub fn updated_at(&self) -> &DateTime
pub fn updated_at(&self) -> &DateTime
When the resource last changed. Equal to createdAt until the first update.
Source§impl CreateConnectionOutput
impl CreateConnectionOutput
Sourcepub fn builder() -> CreateConnectionOutputBuilder
pub fn builder() -> CreateConnectionOutputBuilder
Creates a new builder-style object to manufacture CreateConnectionOutput.
Trait Implementations§
Source§impl Clone for CreateConnectionOutput
impl Clone for CreateConnectionOutput
Source§impl Debug for CreateConnectionOutput
impl Debug for CreateConnectionOutput
Source§impl PartialEq for CreateConnectionOutput
impl PartialEq for CreateConnectionOutput
Source§impl RequestId for CreateConnectionOutput
impl RequestId for CreateConnectionOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for CreateConnectionOutput
Auto Trait Implementations§
impl Forget for CreateConnectionOutput
impl Freeze for CreateConnectionOutputwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ResourceSelector>: Freeze,
PhantomData<GlueConnectionMapping>: Freeze,
impl Move for CreateConnectionOutput
impl RefUnwindSafe for CreateConnectionOutput
impl Send for CreateConnectionOutputwhere
RawVecInner: Send,
impl Sync for CreateConnectionOutputwhere
RawVecInner: Sync,
impl Unpin for CreateConnectionOutput
impl UnsafeUnpin for CreateConnectionOutputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ResourceSelector>: UnsafeUnpin,
PhantomData<GlueConnectionMapping>: UnsafeUnpin,
impl UnwindSafe for CreateConnectionOutputwhere
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);