class Amazonite::EventBridge::RedshiftDataParameters

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

Defined in:

eventbridge/redshift_data_parameters.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def database : String #

The name of the database. Required when authenticating using temporary credentials.


[View source]
def database=(database : String) #

The name of the database. Required when authenticating using temporary credentials.


[View source]
def db_user : String | Nil #

The database user name. Required when authenticating using temporary credentials.


[View source]
def db_user=(db_user : String | Nil) #

The database user name. Required when authenticating using temporary credentials.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def secret_manager_arn : String | Nil #

The name or ARN of the secret that enables access to the database. Required when authenticating using Amazon Web Services Secrets Manager.


[View source]
def secret_manager_arn=(secret_manager_arn : String | Nil) #

The name or ARN of the secret that enables access to the database. Required when authenticating using Amazon Web Services Secrets Manager.


[View source]
def sql : String | Nil #

The SQL statement text to run.


[View source]
def sql=(sql : String | Nil) #

The SQL statement text to run.


[View source]
def sqls : Array(String) | Nil #

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.


[View source]
def sqls=(sqls : Array(String) | Nil) #

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.


[View source]
def statement_name : String | Nil #

The name of the SQL statement. You can name the SQL statement when you create it to identify the query.


[View source]
def statement_name=(statement_name : String | Nil) #

The name of the SQL statement. You can name the SQL statement when you create it to identify the query.


[View source]
def validate! : Nil #

[View source]
def with_event : Bool | Nil #

Indicates whether to send an event back to EventBridge after the SQL statement runs.


[View source]
def with_event=(with_event : Bool | Nil) #

Indicates whether to send an event back to EventBridge after the SQL statement runs.


[View source]