Class CfnRule.RedshiftDataParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.RedshiftDataParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.RedshiftDataParametersProperty>
- Enclosing interface:
- CfnRule.RedshiftDataParametersProperty
@Stability(Stable)
public static final class CfnRule.RedshiftDataParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.RedshiftDataParametersProperty>
A builder for
CfnRule.RedshiftDataParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRule.RedshiftDataParametersProperty.getDatabase()Sets the value ofCfnRule.RedshiftDataParametersProperty.getDbUser()secretManagerArn(String secretManagerArn) Sets the value ofCfnRule.RedshiftDataParametersProperty.getSecretManagerArn()Sets the value ofCfnRule.RedshiftDataParametersProperty.getSql()statementName(String statementName) Sets the value ofCfnRule.RedshiftDataParametersProperty.getStatementName()Sets the value ofCfnRule.RedshiftDataParametersProperty.getWithEvent()withEvent(IResolvable withEvent) Sets the value ofCfnRule.RedshiftDataParametersProperty.getWithEvent()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
database
Sets the value ofCfnRule.RedshiftDataParametersProperty.getDatabase()- Parameters:
database- The name of the database. This parameter is required. Required when authenticating using temporary credentials.- Returns:
this
-
sql
Sets the value ofCfnRule.RedshiftDataParametersProperty.getSql()- Parameters:
sql- The SQL statement text to run. This parameter is required.- Returns:
this
-
dbUser
Sets the value ofCfnRule.RedshiftDataParametersProperty.getDbUser()- Parameters:
dbUser- The database user name. Required when authenticating using temporary credentials.- Returns:
this
-
secretManagerArn
@Stability(Stable) public CfnRule.RedshiftDataParametersProperty.Builder secretManagerArn(String secretManagerArn) Sets the value ofCfnRule.RedshiftDataParametersProperty.getSecretManagerArn()- Parameters:
secretManagerArn- The name or ARN of the secret that enables access to the database. Required when authenticating using AWS Secrets Manager.- Returns:
this
-
statementName
@Stability(Stable) public CfnRule.RedshiftDataParametersProperty.Builder statementName(String statementName) Sets the value ofCfnRule.RedshiftDataParametersProperty.getStatementName()- Parameters:
statementName- The name of the SQL statement. You can name the SQL statement when you create it to identify the query.- Returns:
this
-
withEvent
@Stability(Stable) public CfnRule.RedshiftDataParametersProperty.Builder withEvent(Boolean withEvent) Sets the value ofCfnRule.RedshiftDataParametersProperty.getWithEvent()- Parameters:
withEvent- Indicates whether to send an event back to EventBridge after the SQL statement runs.- Returns:
this
-
withEvent
@Stability(Stable) public CfnRule.RedshiftDataParametersProperty.Builder withEvent(IResolvable withEvent) Sets the value ofCfnRule.RedshiftDataParametersProperty.getWithEvent()- Parameters:
withEvent- Indicates whether to send an event back to EventBridge after the SQL statement runs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRule.RedshiftDataParametersProperty>- Returns:
- a new instance of
CfnRule.RedshiftDataParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-