Documentation ¶
Overview ¶
The CDK Construct Library for AWS::Redshift
Index ¶
- func ClusterParameterGroup_IsConstruct(x interface{}) *bool
- func ClusterParameterGroup_IsResource(construct constructs.IConstruct) *bool
- func ClusterSubnetGroup_IsConstruct(x interface{}) *bool
- func ClusterSubnetGroup_IsResource(construct constructs.IConstruct) *bool
- func Cluster_IsConstruct(x interface{}) *bool
- func Cluster_IsResource(construct constructs.IConstruct) *bool
- func DatabaseSecret_FromSecretAttributes(scope constructs.Construct, id *string, ...) awssecretsmanager.ISecret
- func DatabaseSecret_FromSecretCompleteArn(scope constructs.Construct, id *string, secretCompleteArn *string) awssecretsmanager.ISecret
- func DatabaseSecret_FromSecretNameV2(scope constructs.Construct, id *string, secretName *string) awssecretsmanager.ISecret
- func DatabaseSecret_FromSecretPartialArn(scope constructs.Construct, id *string, secretPartialArn *string) awssecretsmanager.ISecret
- func DatabaseSecret_IsConstruct(x interface{}) *bool
- func DatabaseSecret_IsResource(construct constructs.IConstruct) *bool
- func NewClusterParameterGroup_Override(c ClusterParameterGroup, scope constructs.Construct, id *string, ...)
- func NewClusterSubnetGroup_Override(c ClusterSubnetGroup, scope constructs.Construct, id *string, ...)
- func NewCluster_Override(c Cluster, scope constructs.Construct, id *string, props *ClusterProps)
- func NewDatabaseSecret_Override(d DatabaseSecret, scope constructs.Construct, id *string, ...)
- func NewEndpoint_Override(e Endpoint, address *string, port *float64)
- func NewTable_Override(t Table, scope constructs.Construct, id *string, props *TableProps)
- func NewUser_Override(u User, scope constructs.Construct, id *string, props *UserProps)
- func Table_IsConstruct(x interface{}) *bool
- func User_IsConstruct(x interface{}) *bool
- type Cluster
- type ClusterAttributes
- type ClusterParameterGroup
- type ClusterParameterGroupProps
- type ClusterProps
- type ClusterSubnetGroup
- type ClusterSubnetGroupProps
- type ClusterType
- type Column
- type DatabaseOptions
- type DatabaseSecret
- type DatabaseSecretProps
- type Endpoint
- type ICluster
- type IClusterParameterGroup
- type IClusterSubnetGroup
- type ITable
- type IUser
- type Login
- type NodeType
- type RotationMultiUserOptions
- type Table
- type TableAction
- type TableAttributes
- type TableDistStyle
- type TableProps
- type TableSortStyle
- type User
- type UserAttributes
- type UserProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterParameterGroup_IsConstruct ¶
func ClusterParameterGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ClusterParameterGroup_IsResource ¶
func ClusterParameterGroup_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func ClusterSubnetGroup_IsConstruct ¶
func ClusterSubnetGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ClusterSubnetGroup_IsResource ¶
func ClusterSubnetGroup_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func Cluster_IsConstruct ¶
func Cluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func Cluster_IsResource ¶
func Cluster_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func DatabaseSecret_FromSecretAttributes ¶
func DatabaseSecret_FromSecretAttributes(scope constructs.Construct, id *string, attrs *awssecretsmanager.SecretAttributes) awssecretsmanager.ISecret
Import an existing secret into the Stack. Experimental.
func DatabaseSecret_FromSecretCompleteArn ¶
func DatabaseSecret_FromSecretCompleteArn(scope constructs.Construct, id *string, secretCompleteArn *string) awssecretsmanager.ISecret
Imports a secret by complete ARN.
The complete ARN is the ARN with the Secrets Manager-supplied suffix. Experimental.
func DatabaseSecret_FromSecretNameV2 ¶
func DatabaseSecret_FromSecretNameV2(scope constructs.Construct, id *string, secretName *string) awssecretsmanager.ISecret
Imports a secret by secret name.
A secret with this name must exist in the same account & region. Replaces the deprecated `fromSecretName`. Experimental.
func DatabaseSecret_FromSecretPartialArn ¶
func DatabaseSecret_FromSecretPartialArn(scope constructs.Construct, id *string, secretPartialArn *string) awssecretsmanager.ISecret
Imports a secret by partial ARN.
The partial ARN is the ARN without the Secrets Manager-supplied suffix. Experimental.
func DatabaseSecret_IsConstruct ¶
func DatabaseSecret_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func DatabaseSecret_IsResource ¶
func DatabaseSecret_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func NewClusterParameterGroup_Override ¶
func NewClusterParameterGroup_Override(c ClusterParameterGroup, scope constructs.Construct, id *string, props *ClusterParameterGroupProps)
Experimental.
func NewClusterSubnetGroup_Override ¶
func NewClusterSubnetGroup_Override(c ClusterSubnetGroup, scope constructs.Construct, id *string, props *ClusterSubnetGroupProps)
Experimental.
func NewCluster_Override ¶
func NewCluster_Override(c Cluster, scope constructs.Construct, id *string, props *ClusterProps)
Experimental.
func NewDatabaseSecret_Override ¶
func NewDatabaseSecret_Override(d DatabaseSecret, scope constructs.Construct, id *string, props *DatabaseSecretProps)
Experimental.
func NewEndpoint_Override ¶
Experimental.
func NewTable_Override ¶
func NewTable_Override(t Table, scope constructs.Construct, id *string, props *TableProps)
Experimental.
func NewUser_Override ¶
Experimental.
func Table_IsConstruct ¶
func Table_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func User_IsConstruct ¶
func User_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
Types ¶
type Cluster ¶
type Cluster interface { awscdk.Resource ICluster ClusterEndpoint() Endpoint ClusterName() *string Connections() awsec2.Connections Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string Secret() awssecretsmanager.ISecret Stack() awscdk.Stack AddRotationMultiUser(id *string, options *RotationMultiUserOptions) awssecretsmanager.SecretRotation AddRotationSingleUser(automaticallyAfter awscdk.Duration) awssecretsmanager.SecretRotation ApplyRemovalPolicy(policy awscdk.RemovalPolicy) AsSecretAttachmentTarget() *awssecretsmanager.SecretAttachmentTargetProps GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string }
Create a Redshift cluster a given number of nodes.
TODO: EXAMPLE
Experimental.
func NewCluster ¶
func NewCluster(scope constructs.Construct, id *string, props *ClusterProps) Cluster
Experimental.
type ClusterAttributes ¶
type ClusterAttributes struct { // Cluster endpoint address. // Experimental. ClusterEndpointAddress *string `json:"clusterEndpointAddress" yaml:"clusterEndpointAddress"` // Cluster endpoint port. // Experimental. ClusterEndpointPort *float64 `json:"clusterEndpointPort" yaml:"clusterEndpointPort"` // Identifier for the cluster. // Experimental. ClusterName *string `json:"clusterName" yaml:"clusterName"` // The security groups of the redshift cluster. // Experimental. SecurityGroups *[]awsec2.ISecurityGroup `json:"securityGroups" yaml:"securityGroups"` }
Properties that describe an existing cluster instance.
TODO: EXAMPLE
Experimental.
type ClusterParameterGroup ¶
type ClusterParameterGroup interface { awscdk.Resource IClusterParameterGroup ClusterParameterGroupName() *string Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string Stack() awscdk.Stack ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string }
A cluster parameter group.
TODO: EXAMPLE
Experimental.
func NewClusterParameterGroup ¶
func NewClusterParameterGroup(scope constructs.Construct, id *string, props *ClusterParameterGroupProps) ClusterParameterGroup
Experimental.
type ClusterParameterGroupProps ¶
type ClusterParameterGroupProps struct { // The parameters in this parameter group. // Experimental. Parameters *map[string]*string `json:"parameters" yaml:"parameters"` // Description for this parameter group. // Experimental. Description *string `json:"description" yaml:"description"` }
Properties for a parameter group.
TODO: EXAMPLE
Experimental.
type ClusterProps ¶
type ClusterProps struct { // Username and password for the administrative user. // Experimental. MasterUser *Login `json:"masterUser" yaml:"masterUser"` // The VPC to place the cluster in. // Experimental. Vpc awsec2.IVpc `json:"vpc" yaml:"vpc"` // An optional identifier for the cluster. // Experimental. ClusterName *string `json:"clusterName" yaml:"clusterName"` // Settings for the individual instances that are launched. // Experimental. ClusterType ClusterType `json:"clusterType" yaml:"clusterType"` // Name of a database which is automatically created inside the cluster. // Experimental. DefaultDatabaseName *string `json:"defaultDatabaseName" yaml:"defaultDatabaseName"` // Whether to enable encryption of data at rest in the cluster. // Experimental. Encrypted *bool `json:"encrypted" yaml:"encrypted"` // The KMS key to use for encryption of data at rest. // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey" yaml:"encryptionKey"` // Bucket to send logs to. // // Logging information includes queries and connection attempts, for the specified Amazon Redshift cluster. // Experimental. LoggingBucket awss3.IBucket `json:"loggingBucket" yaml:"loggingBucket"` // Prefix used for logging. // Experimental. LoggingKeyPrefix *string `json:"loggingKeyPrefix" yaml:"loggingKeyPrefix"` // The node type to be provisioned for the cluster. // Experimental. NodeType NodeType `json:"nodeType" yaml:"nodeType"` // Number of compute nodes in the cluster. Only specify this property for multi-node clusters. // // Value must be at least 2 and no more than 100. // Experimental. NumberOfNodes *float64 `json:"numberOfNodes" yaml:"numberOfNodes"` // Additional parameters to pass to the database engine https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html. // Experimental. ParameterGroup IClusterParameterGroup `json:"parameterGroup" yaml:"parameterGroup"` // What port to listen on. // Experimental. Port *float64 `json:"port" yaml:"port"` // A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). // // Example: 'Sun:23:45-Mon:00:15' // See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance // // Experimental. PreferredMaintenanceWindow *string `json:"preferredMaintenanceWindow" yaml:"preferredMaintenanceWindow"` // Whether to make cluster publicly accessible. // Experimental. PubliclyAccessible *bool `json:"publiclyAccessible" yaml:"publiclyAccessible"` // The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update. // Experimental. RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy" yaml:"removalPolicy"` // A list of AWS Identity and Access Management (IAM) role that can be used by the cluster to access other AWS services. // // Specify a maximum of 10 roles. // Experimental. Roles *[]awsiam.IRole `json:"roles" yaml:"roles"` // Security group. // Experimental. SecurityGroups *[]awsec2.ISecurityGroup `json:"securityGroups" yaml:"securityGroups"` // A cluster subnet group to use with this cluster. // Experimental. SubnetGroup IClusterSubnetGroup `json:"subnetGroup" yaml:"subnetGroup"` // Where to place the instances within the VPC. // Experimental. VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets" yaml:"vpcSubnets"` }
Properties for a new database cluster.
TODO: EXAMPLE
Experimental.
type ClusterSubnetGroup ¶
type ClusterSubnetGroup interface { awscdk.Resource IClusterSubnetGroup ClusterSubnetGroupName() *string Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string Stack() awscdk.Stack ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string }
Class for creating a Redshift cluster subnet group.
TODO: EXAMPLE
Experimental.
func NewClusterSubnetGroup ¶
func NewClusterSubnetGroup(scope constructs.Construct, id *string, props *ClusterSubnetGroupProps) ClusterSubnetGroup
Experimental.
type ClusterSubnetGroupProps ¶
type ClusterSubnetGroupProps struct { // Description of the subnet group. // Experimental. Description *string `json:"description" yaml:"description"` // The VPC to place the subnet group in. // Experimental. Vpc awsec2.IVpc `json:"vpc" yaml:"vpc"` // The removal policy to apply when the subnet group are removed from the stack or replaced during an update. // Experimental. RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy" yaml:"removalPolicy"` // Which subnets within the VPC to associate with this group. // Experimental. VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets" yaml:"vpcSubnets"` }
Properties for creating a ClusterSubnetGroup.
TODO: EXAMPLE
Experimental.
type ClusterType ¶
type ClusterType string
What cluster type to use.
Used by {@link ClusterProps.clusterType} Experimental.
const ( ClusterType_SINGLE_NODE ClusterType = "SINGLE_NODE" ClusterType_MULTI_NODE ClusterType = "MULTI_NODE" )
type Column ¶
type Column struct { // The data type of the column. // Experimental. DataType *string `json:"dataType" yaml:"dataType"` // The name of the column. // Experimental. Name *string `json:"name" yaml:"name"` // Boolean value that indicates whether the column is to be configured as DISTKEY. // Experimental. DistKey *bool `json:"distKey" yaml:"distKey"` // Boolean value that indicates whether the column is to be configured as SORTKEY. // Experimental. SortKey *bool `json:"sortKey" yaml:"sortKey"` }
A column in a Redshift table.
TODO: EXAMPLE
Experimental.
type DatabaseOptions ¶
type DatabaseOptions struct { // The cluster containing the database. // Experimental. Cluster ICluster `json:"cluster" yaml:"cluster"` // The name of the database. // Experimental. DatabaseName *string `json:"databaseName" yaml:"databaseName"` // The secret containing credentials to a Redshift user with administrator privileges. // // Secret JSON schema: `{ username: string; password: string }`. // Experimental. AdminUser awssecretsmanager.ISecret `json:"adminUser" yaml:"adminUser"` }
Properties for accessing a Redshift database.
TODO: EXAMPLE
Experimental.
type DatabaseSecret ¶
type DatabaseSecret interface { awssecretsmanager.Secret ArnForPolicies() *string AutoCreatePolicy() *bool EncryptionKey() awskms.IKey Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string SecretArn() *string SecretFullArn() *string SecretName() *string SecretValue() awscdk.SecretValue Stack() awscdk.Stack AddReplicaRegion(region *string, encryptionKey awskms.IKey) AddRotationSchedule(id *string, options *awssecretsmanager.RotationScheduleOptions) awssecretsmanager.RotationSchedule AddToResourcePolicy(statement awsiam.PolicyStatement) *awsiam.AddToResourcePolicyResult ApplyRemovalPolicy(policy awscdk.RemovalPolicy) Attach(target awssecretsmanager.ISecretAttachmentTarget) awssecretsmanager.ISecret DenyAccountRootDelete() GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string GrantRead(grantee awsiam.IGrantable, versionStages *[]*string) awsiam.Grant GrantWrite(grantee awsiam.IGrantable) awsiam.Grant SecretValueFromJson(jsonField *string) awscdk.SecretValue ToString() *string }
A database secret.
TODO: EXAMPLE
Experimental.
func NewDatabaseSecret ¶
func NewDatabaseSecret(scope constructs.Construct, id *string, props *DatabaseSecretProps) DatabaseSecret
Experimental.
type DatabaseSecretProps ¶
type DatabaseSecretProps struct { // The username. // Experimental. Username *string `json:"username" yaml:"username"` // The KMS key to use to encrypt the secret. // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey" yaml:"encryptionKey"` }
Construction properties for a DatabaseSecret.
TODO: EXAMPLE
Experimental.
type Endpoint ¶
Connection endpoint of a redshift cluster.
Consists of a combination of hostname and port.
TODO: EXAMPLE
Experimental.
type ICluster ¶
type ICluster interface { awsec2.IConnectable awscdk.IResource awssecretsmanager.ISecretAttachmentTarget // The endpoint to use for read/write operations. // Experimental. ClusterEndpoint() Endpoint // Name of the cluster. // Experimental. ClusterName() *string }
Create a Redshift Cluster with a given number of nodes.
Implemented by {@link Cluster} via {@link ClusterBase}. Experimental.
func Cluster_FromClusterAttributes ¶
func Cluster_FromClusterAttributes(scope constructs.Construct, id *string, attrs *ClusterAttributes) ICluster
Import an existing DatabaseCluster from properties. Experimental.
type IClusterParameterGroup ¶
type IClusterParameterGroup interface { awscdk.IResource // The name of this parameter group. // Experimental. ClusterParameterGroupName() *string }
A parameter group. Experimental.
func ClusterParameterGroup_FromClusterParameterGroupName ¶
func ClusterParameterGroup_FromClusterParameterGroupName(scope constructs.Construct, id *string, clusterParameterGroupName *string) IClusterParameterGroup
Imports a parameter group. Experimental.
type IClusterSubnetGroup ¶
type IClusterSubnetGroup interface { awscdk.IResource // The name of the cluster subnet group. // Experimental. ClusterSubnetGroupName() *string }
Interface for a cluster subnet group. Experimental.
func ClusterSubnetGroup_FromClusterSubnetGroupName ¶
func ClusterSubnetGroup_FromClusterSubnetGroupName(scope constructs.Construct, id *string, clusterSubnetGroupName *string) IClusterSubnetGroup
Imports an existing subnet group by name. Experimental.
type ITable ¶
type ITable interface { constructs.IConstruct // Grant a user privilege to access this table. // Experimental. Grant(user IUser, actions ...TableAction) // The cluster where the table is located. // Experimental. Cluster() ICluster // The name of the database where the table is located. // Experimental. DatabaseName() *string // The columns of the table. // Experimental. TableColumns() *[]*Column // Name of the table. // Experimental. TableName() *string }
Represents a table in a Redshift database. Experimental.
func Table_FromTableAttributes ¶
func Table_FromTableAttributes(scope constructs.Construct, id *string, attrs *TableAttributes) ITable
Specify a Redshift table using a table name and schema that already exists. Experimental.
type IUser ¶
type IUser interface { constructs.IConstruct // Grant this user privilege to access a table. // Experimental. AddTablePrivileges(table ITable, actions ...TableAction) // The cluster where the table is located. // Experimental. Cluster() ICluster // The name of the database where the table is located. // Experimental. DatabaseName() *string // The password of the user. // Experimental. Password() awscdk.SecretValue // The name of the user. // Experimental. Username() *string }
Represents a user in a Redshift database. Experimental.
func User_FromUserAttributes ¶
func User_FromUserAttributes(scope constructs.Construct, id *string, attrs *UserAttributes) IUser
Specify a Redshift user using credentials that already exist. Experimental.
type Login ¶
type Login struct { // Username. // Experimental. MasterUsername *string `json:"masterUsername" yaml:"masterUsername"` // KMS encryption key to encrypt the generated secret. // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey" yaml:"encryptionKey"` // Password. // // Do not put passwords in your CDK code directly. // Experimental. MasterPassword awscdk.SecretValue `json:"masterPassword" yaml:"masterPassword"` }
Username and password combination.
TODO: EXAMPLE
Experimental.
type NodeType ¶
type NodeType string
Possible Node Types to use in the cluster used for defining {@link ClusterProps.nodeType}. Experimental.
const ( NodeType_DS2_XLARGE NodeType = "DS2_XLARGE" NodeType_DS2_8XLARGE NodeType = "DS2_8XLARGE" NodeType_DC1_LARGE NodeType = "DC1_LARGE" NodeType_DC1_8XLARGE NodeType = "DC1_8XLARGE" NodeType_DC2_LARGE NodeType = "DC2_LARGE" NodeType_DC2_8XLARGE NodeType = "DC2_8XLARGE" NodeType_RA3_XLPLUS NodeType = "RA3_XLPLUS" NodeType_RA3_4XLARGE NodeType = "RA3_4XLARGE" NodeType_RA3_16XLARGE NodeType = "RA3_16XLARGE" )
type RotationMultiUserOptions ¶
type RotationMultiUserOptions struct { // The secret to rotate. // // It must be a JSON string with the following format: // “` // { // "engine": <required: database engine>, // "host": <required: instance host name>, // "username": <required: username>, // "password": <required: password>, // "dbname": <optional: database name>, // "port": <optional: if not specified, default port will be used>, // "masterarn": <required: the arn of the master secret which will be used to create users/change passwords> // } // “` // Experimental. Secret awssecretsmanager.ISecret `json:"secret" yaml:"secret"` // Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. // Experimental. AutomaticallyAfter awscdk.Duration `json:"automaticallyAfter" yaml:"automaticallyAfter"` }
Options to add the multi user rotation.
TODO: EXAMPLE
Experimental.
type Table ¶
type Table interface { constructs.Construct ITable Cluster() ICluster DatabaseName() *string Node() constructs.Node TableColumns() *[]*Column TableName() *string ApplyRemovalPolicy(policy awscdk.RemovalPolicy) Grant(user IUser, actions ...TableAction) ToString() *string }
A table in a Redshift cluster.
TODO: EXAMPLE
Experimental.
func NewTable ¶
func NewTable(scope constructs.Construct, id *string, props *TableProps) Table
Experimental.
type TableAction ¶
type TableAction string
An action that a Redshift user can be granted privilege to perform on a table.
TODO: EXAMPLE
Experimental.
const ( TableAction_SELECT TableAction = "SELECT" TableAction_INSERT TableAction = "INSERT" TableAction_UPDATE TableAction = "UPDATE" TableAction_DELETE TableAction = "DELETE" TableAction_DROP TableAction = "DROP" TableAction_REFERENCES TableAction = "REFERENCES" TableAction_ALL TableAction = "ALL" )
type TableAttributes ¶
type TableAttributes struct { // The cluster where the table is located. // Experimental. Cluster ICluster `json:"cluster" yaml:"cluster"` // The name of the database where the table is located. // Experimental. DatabaseName *string `json:"databaseName" yaml:"databaseName"` // The columns of the table. // Experimental. TableColumns *[]*Column `json:"tableColumns" yaml:"tableColumns"` // Name of the table. // Experimental. TableName *string `json:"tableName" yaml:"tableName"` }
A full specification of a Redshift table that can be used to import it fluently into the CDK application.
TODO: EXAMPLE
Experimental.
type TableDistStyle ¶
type TableDistStyle string
The data distribution style of a table.
TODO: EXAMPLE
Experimental.
const ( TableDistStyle_AUTO TableDistStyle = "AUTO" TableDistStyle_EVEN TableDistStyle = "EVEN" TableDistStyle_KEY TableDistStyle = "KEY" TableDistStyle_ALL TableDistStyle = "ALL" )
type TableProps ¶
type TableProps struct { // The cluster containing the database. // Experimental. Cluster ICluster `json:"cluster" yaml:"cluster"` // The name of the database. // Experimental. DatabaseName *string `json:"databaseName" yaml:"databaseName"` // The secret containing credentials to a Redshift user with administrator privileges. // // Secret JSON schema: `{ username: string; password: string }`. // Experimental. AdminUser awssecretsmanager.ISecret `json:"adminUser" yaml:"adminUser"` // The columns of the table. // Experimental. TableColumns *[]*Column `json:"tableColumns" yaml:"tableColumns"` // The distribution style of the table. // Experimental. DistStyle TableDistStyle `json:"distStyle" yaml:"distStyle"` // The policy to apply when this resource is removed from the application. // Experimental. RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy" yaml:"removalPolicy"` // The sort style of the table. // Experimental. SortStyle TableSortStyle `json:"sortStyle" yaml:"sortStyle"` // The name of the table. // Experimental. TableName *string `json:"tableName" yaml:"tableName"` }
Properties for configuring a Redshift table.
TODO: EXAMPLE
Experimental.
type TableSortStyle ¶
type TableSortStyle string
The sort style of a table.
TODO: EXAMPLE
Experimental.
const ( TableSortStyle_AUTO TableSortStyle = "AUTO" TableSortStyle_COMPOUND TableSortStyle = "COMPOUND" TableSortStyle_INTERLEAVED TableSortStyle = "INTERLEAVED" )
type User ¶
type User interface { constructs.Construct IUser Cluster() ICluster DatabaseName() *string DatabaseProps() *DatabaseOptions SetDatabaseProps(val *DatabaseOptions) Node() constructs.Node Password() awscdk.SecretValue Username() *string AddTablePrivileges(table ITable, actions ...TableAction) ApplyRemovalPolicy(policy awscdk.RemovalPolicy) ToString() *string }
A user in a Redshift cluster.
TODO: EXAMPLE
Experimental.
type UserAttributes ¶
type UserAttributes struct { // The cluster containing the database. // Experimental. Cluster ICluster `json:"cluster" yaml:"cluster"` // The name of the database. // Experimental. DatabaseName *string `json:"databaseName" yaml:"databaseName"` // The secret containing credentials to a Redshift user with administrator privileges. // // Secret JSON schema: `{ username: string; password: string }`. // Experimental. AdminUser awssecretsmanager.ISecret `json:"adminUser" yaml:"adminUser"` // The password of the user. // // Do not put passwords in CDK code directly. // Experimental. Password awscdk.SecretValue `json:"password" yaml:"password"` // The name of the user. // Experimental. Username *string `json:"username" yaml:"username"` }
A full specification of a Redshift user that can be used to import it fluently into the CDK application.
TODO: EXAMPLE
Experimental.
type UserProps ¶
type UserProps struct { // The cluster containing the database. // Experimental. Cluster ICluster `json:"cluster" yaml:"cluster"` // The name of the database. // Experimental. DatabaseName *string `json:"databaseName" yaml:"databaseName"` // The secret containing credentials to a Redshift user with administrator privileges. // // Secret JSON schema: `{ username: string; password: string }`. // Experimental. AdminUser awssecretsmanager.ISecret `json:"adminUser" yaml:"adminUser"` // KMS key to encrypt the generated secret. // Experimental. EncryptionKey awskms.IKey `json:"encryptionKey" yaml:"encryptionKey"` // The policy to apply when this resource is removed from the application. // Experimental. RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy" yaml:"removalPolicy"` // The name of the user. // // For valid values, see: https://docs.aws.amazon.com/redshift/latest/dg/r_names.html // Experimental. Username *string `json:"username" yaml:"username"` }
Properties for configuring a Redshift user.
TODO: EXAMPLE
Experimental.