class
Amazonite::EventBridge::RedshiftDataParameters
- Amazonite::EventBridge::RedshiftDataParameters
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
eventbridge/redshift_data_parameters.crConstructors
- .new(pull : JSON::PullParser)
- .new(database : String, secret_manager_arn : String | Nil = nil, db_user : String | Nil = nil, sql : String | Nil = nil, statement_name : String | Nil = nil, with_event : Bool | Nil = nil, sqls : Array(String) | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#database : String
The name of the database.
-
#database=(database : String)
The name of the database.
-
#db_user : String | Nil
The database user name.
-
#db_user=(db_user : String | Nil)
The database user name.
-
#hash(hasher)
See
Object#hash(hasher) -
#secret_manager_arn : String | Nil
The name or ARN of the secret that enables access to the database.
-
#secret_manager_arn=(secret_manager_arn : String | Nil)
The name or ARN of the secret that enables access to the database.
-
#sql : String | Nil
The SQL statement text to run.
-
#sql=(sql : String | Nil)
The SQL statement text to run.
-
#sqls : Array(String) | Nil
One or more SQL statements to run.
-
#sqls=(sqls : Array(String) | Nil)
One or more SQL statements to run.
-
#statement_name : String | Nil
The name of the SQL statement.
-
#statement_name=(statement_name : String | Nil)
The name of the SQL statement.
- #validate! : Nil
-
#with_event : Bool | Nil
Indicates whether to send an event back to EventBridge after the SQL statement runs.
-
#with_event=(with_event : Bool | Nil)
Indicates whether to send an event back to EventBridge after the SQL statement runs.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The name of the database. Required when authenticating using temporary credentials.
The name of the database. Required when authenticating using temporary credentials.
The database user name. Required when authenticating using temporary credentials.
The database user name. Required when authenticating using temporary credentials.
The name or ARN of the secret that enables access to the database. Required when authenticating using Amazon Web Services Secrets Manager.
The name or ARN of the secret that enables access to the database. Required when authenticating using Amazon Web Services Secrets Manager.
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.
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.
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
Indicates whether to send an event back to EventBridge after the SQL statement runs.
Indicates whether to send an event back to EventBridge after the SQL statement runs.