Class RedshiftQueryProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.RedshiftQueryProps.Jsii$Proxy
All Implemented Interfaces:
RedshiftQueryProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
RedshiftQueryProps

@Stability(Stable) @Internal public static final class RedshiftQueryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RedshiftQueryProps
An implementation for RedshiftQueryProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(RedshiftQueryProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the RedshiftQueryProps.Builder.
  • Method Details

    • getDatabase

      public final String getDatabase()
      Description copied from interface: RedshiftQueryProps
      The Amazon Redshift database to run the query against.
      Specified by:
      getDatabase in interface RedshiftQueryProps
    • getSql

      public final List<String> getSql()
      Description copied from interface: RedshiftQueryProps
      The SQL queries to be executed.

      Each query is run sequentially within a single transaction; the next query in the array will only execute after the previous one has successfully completed.

      • When multiple sql queries are included, this will use the batchExecuteStatement API. Therefore, if any statement fails, the entire transaction is rolled back.
      • If a single SQL statement is to be executed, this will use the executeStatement API.

      Default: - No SQL query is specified

      Specified by:
      getSql in interface RedshiftQueryProps
    • getDbUser

      public final String getDbUser()
      Description copied from interface: RedshiftQueryProps
      The Amazon Redshift database user to run the query as.

      This is required when authenticating via temporary credentials.

      Default: - No Database user is specified

      Specified by:
      getDbUser in interface RedshiftQueryProps
    • getDeadLetterQueue

      public final IQueue getDeadLetterQueue()
      Description copied from interface: RedshiftQueryProps
      The queue to be used as dead letter queue.

      Default: - No dead letter queue is specified

      Specified by:
      getDeadLetterQueue in interface RedshiftQueryProps
    • getInput

      public final RuleTargetInput getInput()
      Description copied from interface: RedshiftQueryProps
      The input to the state machine execution.

      Default: - the entire EventBridge event

      Specified by:
      getInput in interface RedshiftQueryProps
    • getRole

      public final IRole getRole()
      Description copied from interface: RedshiftQueryProps
      The IAM role to be used to execute the SQL statement.

      Default: - a new role will be created.

      Specified by:
      getRole in interface RedshiftQueryProps
    • getSecret

      public final ISecret getSecret()
      Description copied from interface: RedshiftQueryProps
      The secret containing the password for the database user.

      This is required when authenticating via Secrets Manager. If the full secret ARN is not specified, this will instead use the secret name.

      Default: - No secret is specified

      Specified by:
      getSecret in interface RedshiftQueryProps
    • getSendEventBridgeEvent

      public final Boolean getSendEventBridgeEvent()
      Description copied from interface: RedshiftQueryProps
      Should an event be sent back to Event Bridge when the SQL statement is executed.

      Default: false

      Specified by:
      getSendEventBridgeEvent in interface RedshiftQueryProps
    • getStatementName

      public final String getStatementName()
      Description copied from interface: RedshiftQueryProps
      The name of the SQL statement.

      You can name the SQL statement for identitfication purposes. If you would like Amazon Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, append a QS2- prefix to the statement name.

      Default: - No statement name is specified

      Specified by:
      getStatementName in interface RedshiftQueryProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object