#[non_exhaustive]pub struct PipeTargetRedshiftDataParameters {
pub secret_manager_arn: Option<String>,
pub database: String,
pub db_user: Option<String>,
pub statement_name: Option<String>,
pub with_event: bool,
pub sqls: Vec<String>,
}
Expand description
These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API BatchExecuteStatement.
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.secret_manager_arn: Option<String>
The name or ARN of the secret that enables access to the database. Required when authenticating using Secrets Manager.
database: String
The name of the database. Required when authenticating using temporary credentials.
db_user: Option<String>
The database user name. Required when authenticating using temporary credentials.
statement_name: Option<String>
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
with_event: bool
Indicates whether to send an event back to EventBridge after the SQL statement runs.
sqls: Vec<String>
The SQL statement text to run.
Implementations§
source§impl PipeTargetRedshiftDataParameters
impl PipeTargetRedshiftDataParameters
sourcepub fn secret_manager_arn(&self) -> Option<&str>
pub fn secret_manager_arn(&self) -> Option<&str>
The name or ARN of the secret that enables access to the database. Required when authenticating using Secrets Manager.
sourcepub fn database(&self) -> &str
pub fn database(&self) -> &str
The name of the database. Required when authenticating using temporary credentials.
sourcepub fn db_user(&self) -> Option<&str>
pub fn db_user(&self) -> Option<&str>
The database user name. Required when authenticating using temporary credentials.
sourcepub fn statement_name(&self) -> Option<&str>
pub fn statement_name(&self) -> Option<&str>
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
sourcepub fn with_event(&self) -> bool
pub fn with_event(&self) -> bool
Indicates whether to send an event back to EventBridge after the SQL statement runs.
source§impl PipeTargetRedshiftDataParameters
impl PipeTargetRedshiftDataParameters
sourcepub fn builder() -> PipeTargetRedshiftDataParametersBuilder
pub fn builder() -> PipeTargetRedshiftDataParametersBuilder
Creates a new builder-style object to manufacture PipeTargetRedshiftDataParameters
.
Trait Implementations§
source§impl Clone for PipeTargetRedshiftDataParameters
impl Clone for PipeTargetRedshiftDataParameters
source§fn clone(&self) -> PipeTargetRedshiftDataParameters
fn clone(&self) -> PipeTargetRedshiftDataParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PipeTargetRedshiftDataParameters
impl PartialEq for PipeTargetRedshiftDataParameters
source§fn eq(&self, other: &PipeTargetRedshiftDataParameters) -> bool
fn eq(&self, other: &PipeTargetRedshiftDataParameters) -> bool
self
and other
values to be equal, and is used
by ==
.