redshiftdata

package
v6.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Statement

type Statement struct {
	pulumi.CustomResourceState

	// The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
	ClusterIdentifier pulumi.StringPtrOutput `pulumi:"clusterIdentifier"`
	// The name of the database.
	Database pulumi.StringOutput `pulumi:"database"`
	// The database user name.
	DbUser     pulumi.StringPtrOutput        `pulumi:"dbUser"`
	Parameters StatementParameterArrayOutput `pulumi:"parameters"`
	// The name or ARN of the secret that enables access to the database.
	SecretArn pulumi.StringPtrOutput `pulumi:"secretArn"`
	// The SQL statement text to run.
	//
	// The following arguments are optional:
	Sql pulumi.StringOutput `pulumi:"sql"`
	// The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
	StatementName pulumi.StringPtrOutput `pulumi:"statementName"`
	// A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
	WithEvent pulumi.BoolPtrOutput `pulumi:"withEvent"`
	// The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
	WorkgroupName pulumi.StringPtrOutput `pulumi:"workgroupName"`
}

Executes a Redshift Data Statement.

## Example Usage

### clusterIdentifier

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftdata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redshiftdata.NewStatement(ctx, "example", &redshiftdata.StatementArgs{
			ClusterIdentifier: pulumi.Any(exampleAwsRedshiftCluster.ClusterIdentifier),
			Database:          pulumi.Any(exampleAwsRedshiftCluster.DatabaseName),
			DbUser:            pulumi.Any(exampleAwsRedshiftCluster.MasterUsername),
			Sql:               pulumi.String("CREATE GROUP group_name;"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

### workgroupName

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftdata"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redshiftdata.NewStatement(ctx, "example", &redshiftdata.StatementArgs{
			WorkgroupName: pulumi.Any(exampleAwsRedshiftserverlessWorkgroup.WorkgroupName),
			Database:      pulumi.String("dev"),
			Sql:           pulumi.String("CREATE GROUP group_name;"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import Redshift Data Statements using the `id`. For example:

```sh $ pulumi import aws:redshiftdata/statement:Statement example example ```

func GetStatement

func GetStatement(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StatementState, opts ...pulumi.ResourceOption) (*Statement, error)

GetStatement gets an existing Statement resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStatement

func NewStatement(ctx *pulumi.Context,
	name string, args *StatementArgs, opts ...pulumi.ResourceOption) (*Statement, error)

NewStatement registers a new resource with the given unique name, arguments, and options.

func (*Statement) ElementType

func (*Statement) ElementType() reflect.Type

func (*Statement) ToStatementOutput

func (i *Statement) ToStatementOutput() StatementOutput

func (*Statement) ToStatementOutputWithContext

func (i *Statement) ToStatementOutputWithContext(ctx context.Context) StatementOutput

type StatementArgs

type StatementArgs struct {
	// The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
	ClusterIdentifier pulumi.StringPtrInput
	// The name of the database.
	Database pulumi.StringInput
	// The database user name.
	DbUser     pulumi.StringPtrInput
	Parameters StatementParameterArrayInput
	// The name or ARN of the secret that enables access to the database.
	SecretArn pulumi.StringPtrInput
	// The SQL statement text to run.
	//
	// The following arguments are optional:
	Sql pulumi.StringInput
	// The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
	StatementName pulumi.StringPtrInput
	// A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
	WithEvent pulumi.BoolPtrInput
	// The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
	WorkgroupName pulumi.StringPtrInput
}

The set of arguments for constructing a Statement resource.

func (StatementArgs) ElementType

func (StatementArgs) ElementType() reflect.Type

type StatementArray

type StatementArray []StatementInput

func (StatementArray) ElementType

func (StatementArray) ElementType() reflect.Type

func (StatementArray) ToStatementArrayOutput

func (i StatementArray) ToStatementArrayOutput() StatementArrayOutput

func (StatementArray) ToStatementArrayOutputWithContext

func (i StatementArray) ToStatementArrayOutputWithContext(ctx context.Context) StatementArrayOutput

type StatementArrayInput

type StatementArrayInput interface {
	pulumi.Input

	ToStatementArrayOutput() StatementArrayOutput
	ToStatementArrayOutputWithContext(context.Context) StatementArrayOutput
}

StatementArrayInput is an input type that accepts StatementArray and StatementArrayOutput values. You can construct a concrete instance of `StatementArrayInput` via:

StatementArray{ StatementArgs{...} }

type StatementArrayOutput

type StatementArrayOutput struct{ *pulumi.OutputState }

func (StatementArrayOutput) ElementType

func (StatementArrayOutput) ElementType() reflect.Type

func (StatementArrayOutput) Index

func (StatementArrayOutput) ToStatementArrayOutput

func (o StatementArrayOutput) ToStatementArrayOutput() StatementArrayOutput

func (StatementArrayOutput) ToStatementArrayOutputWithContext

func (o StatementArrayOutput) ToStatementArrayOutputWithContext(ctx context.Context) StatementArrayOutput

type StatementInput

type StatementInput interface {
	pulumi.Input

	ToStatementOutput() StatementOutput
	ToStatementOutputWithContext(ctx context.Context) StatementOutput
}

type StatementMap

type StatementMap map[string]StatementInput

func (StatementMap) ElementType

func (StatementMap) ElementType() reflect.Type

func (StatementMap) ToStatementMapOutput

func (i StatementMap) ToStatementMapOutput() StatementMapOutput

func (StatementMap) ToStatementMapOutputWithContext

func (i StatementMap) ToStatementMapOutputWithContext(ctx context.Context) StatementMapOutput

type StatementMapInput

type StatementMapInput interface {
	pulumi.Input

	ToStatementMapOutput() StatementMapOutput
	ToStatementMapOutputWithContext(context.Context) StatementMapOutput
}

StatementMapInput is an input type that accepts StatementMap and StatementMapOutput values. You can construct a concrete instance of `StatementMapInput` via:

StatementMap{ "key": StatementArgs{...} }

type StatementMapOutput

type StatementMapOutput struct{ *pulumi.OutputState }

func (StatementMapOutput) ElementType

func (StatementMapOutput) ElementType() reflect.Type

func (StatementMapOutput) MapIndex

func (StatementMapOutput) ToStatementMapOutput

func (o StatementMapOutput) ToStatementMapOutput() StatementMapOutput

func (StatementMapOutput) ToStatementMapOutputWithContext

func (o StatementMapOutput) ToStatementMapOutputWithContext(ctx context.Context) StatementMapOutput

type StatementOutput

type StatementOutput struct{ *pulumi.OutputState }

func (StatementOutput) ClusterIdentifier

func (o StatementOutput) ClusterIdentifier() pulumi.StringPtrOutput

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

func (StatementOutput) Database

func (o StatementOutput) Database() pulumi.StringOutput

The name of the database.

func (StatementOutput) DbUser

The database user name.

func (StatementOutput) ElementType

func (StatementOutput) ElementType() reflect.Type

func (StatementOutput) Parameters

func (StatementOutput) SecretArn

func (o StatementOutput) SecretArn() pulumi.StringPtrOutput

The name or ARN of the secret that enables access to the database.

func (StatementOutput) Sql

The SQL statement text to run.

The following arguments are optional:

func (StatementOutput) StatementName

func (o StatementOutput) StatementName() pulumi.StringPtrOutput

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

func (StatementOutput) ToStatementOutput

func (o StatementOutput) ToStatementOutput() StatementOutput

func (StatementOutput) ToStatementOutputWithContext

func (o StatementOutput) ToStatementOutputWithContext(ctx context.Context) StatementOutput

func (StatementOutput) WithEvent

func (o StatementOutput) WithEvent() pulumi.BoolPtrOutput

A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.

func (StatementOutput) WorkgroupName

func (o StatementOutput) WorkgroupName() pulumi.StringPtrOutput

The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

type StatementParameter

type StatementParameter struct {
	Name  string `pulumi:"name"`
	Value string `pulumi:"value"`
}

type StatementParameterArgs

type StatementParameterArgs struct {
	Name  pulumi.StringInput `pulumi:"name"`
	Value pulumi.StringInput `pulumi:"value"`
}

func (StatementParameterArgs) ElementType

func (StatementParameterArgs) ElementType() reflect.Type

func (StatementParameterArgs) ToStatementParameterOutput

func (i StatementParameterArgs) ToStatementParameterOutput() StatementParameterOutput

func (StatementParameterArgs) ToStatementParameterOutputWithContext

func (i StatementParameterArgs) ToStatementParameterOutputWithContext(ctx context.Context) StatementParameterOutput

type StatementParameterArray

type StatementParameterArray []StatementParameterInput

func (StatementParameterArray) ElementType

func (StatementParameterArray) ElementType() reflect.Type

func (StatementParameterArray) ToStatementParameterArrayOutput

func (i StatementParameterArray) ToStatementParameterArrayOutput() StatementParameterArrayOutput

func (StatementParameterArray) ToStatementParameterArrayOutputWithContext

func (i StatementParameterArray) ToStatementParameterArrayOutputWithContext(ctx context.Context) StatementParameterArrayOutput

type StatementParameterArrayInput

type StatementParameterArrayInput interface {
	pulumi.Input

	ToStatementParameterArrayOutput() StatementParameterArrayOutput
	ToStatementParameterArrayOutputWithContext(context.Context) StatementParameterArrayOutput
}

StatementParameterArrayInput is an input type that accepts StatementParameterArray and StatementParameterArrayOutput values. You can construct a concrete instance of `StatementParameterArrayInput` via:

StatementParameterArray{ StatementParameterArgs{...} }

type StatementParameterArrayOutput

type StatementParameterArrayOutput struct{ *pulumi.OutputState }

func (StatementParameterArrayOutput) ElementType

func (StatementParameterArrayOutput) Index

func (StatementParameterArrayOutput) ToStatementParameterArrayOutput

func (o StatementParameterArrayOutput) ToStatementParameterArrayOutput() StatementParameterArrayOutput

func (StatementParameterArrayOutput) ToStatementParameterArrayOutputWithContext

func (o StatementParameterArrayOutput) ToStatementParameterArrayOutputWithContext(ctx context.Context) StatementParameterArrayOutput

type StatementParameterInput

type StatementParameterInput interface {
	pulumi.Input

	ToStatementParameterOutput() StatementParameterOutput
	ToStatementParameterOutputWithContext(context.Context) StatementParameterOutput
}

StatementParameterInput is an input type that accepts StatementParameterArgs and StatementParameterOutput values. You can construct a concrete instance of `StatementParameterInput` via:

StatementParameterArgs{...}

type StatementParameterOutput

type StatementParameterOutput struct{ *pulumi.OutputState }

func (StatementParameterOutput) ElementType

func (StatementParameterOutput) ElementType() reflect.Type

func (StatementParameterOutput) Name

func (StatementParameterOutput) ToStatementParameterOutput

func (o StatementParameterOutput) ToStatementParameterOutput() StatementParameterOutput

func (StatementParameterOutput) ToStatementParameterOutputWithContext

func (o StatementParameterOutput) ToStatementParameterOutputWithContext(ctx context.Context) StatementParameterOutput

func (StatementParameterOutput) Value

type StatementState

type StatementState struct {
	// The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
	ClusterIdentifier pulumi.StringPtrInput
	// The name of the database.
	Database pulumi.StringPtrInput
	// The database user name.
	DbUser     pulumi.StringPtrInput
	Parameters StatementParameterArrayInput
	// The name or ARN of the secret that enables access to the database.
	SecretArn pulumi.StringPtrInput
	// The SQL statement text to run.
	//
	// The following arguments are optional:
	Sql pulumi.StringPtrInput
	// The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
	StatementName pulumi.StringPtrInput
	// A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
	WithEvent pulumi.BoolPtrInput
	// The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
	WorkgroupName pulumi.StringPtrInput
}

func (StatementState) ElementType

func (StatementState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL