Interface CfnRule.RedshiftDataParametersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.RedshiftDataParametersProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.RedshiftDataParametersProperty
extends software.amazon.jsii.JsiiSerializable
These are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.events.*; RedshiftDataParametersProperty redshiftDataParametersProperty = RedshiftDataParametersProperty.builder() .database("database") // the properties below are optional .dbUser("dbUser") .secretManagerArn("secretManagerArn") .sql("sql") .sqls(List.of("sqls")) .statementName("statementName") .withEvent(false) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRule.RedshiftDataParametersProperty
static final class
An implementation forCfnRule.RedshiftDataParametersProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The name of the database.default String
The database user name.default String
The name or ARN of the secret that enables access to the database.default String
getSql()
The SQL statement text to run.getSqls()
One or more SQL statements to run.default String
The name of the SQL statement.default Object
Indicates whether to send an event back to EventBridge after the SQL statement runs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDatabase
The name of the database.Required when authenticating using temporary credentials.
- See Also:
-
getDbUser
The database user name.Required when authenticating using temporary credentials.
- See Also:
-
getSecretManagerArn
The name or ARN of the secret that enables access to the database.Required when authenticating using AWS Secrets Manager.
- See Also:
-
getSql
The SQL statement text to run.- See Also:
-
getSqls
One or more SQL statements to run.The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.
- See Also:
-
getStatementName
The name of the SQL statement.You can name the SQL statement when you create it to identify the query.
- See Also:
-
getWithEvent
Indicates whether to send an event back to EventBridge after the SQL statement runs.- See Also:
-
builder
-