Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.redshiftserverless.kotlin
import com.pulumi.aws.redshiftserverless.WorkgroupArgs.builder
import com.pulumi.aws.redshiftserverless.kotlin.inputs.WorkgroupConfigParameterArgs
import com.pulumi.aws.redshiftserverless.kotlin.inputs.WorkgroupConfigParameterArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Creates a new Amazon Redshift Serverless Workgroup.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.redshiftserverless.Workgroup("example", {
* namespaceName: "concurrency-scaling",
* workgroupName: "concurrency-scaling",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.redshiftserverless.Workgroup("example",
* namespace_name="concurrency-scaling",
* workgroup_name="concurrency-scaling")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.RedshiftServerless.Workgroup("example", new()
* {
* NamespaceName = "concurrency-scaling",
* WorkgroupName = "concurrency-scaling",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftserverless"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := redshiftserverless.NewWorkgroup(ctx, "example", &redshiftserverless.WorkgroupArgs{
* NamespaceName: pulumi.String("concurrency-scaling"),
* WorkgroupName: pulumi.String("concurrency-scaling"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.redshiftserverless.Workgroup;
* import com.pulumi.aws.redshiftserverless.WorkgroupArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new Workgroup("example", WorkgroupArgs.builder()
* .namespaceName("concurrency-scaling")
* .workgroupName("concurrency-scaling")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:redshiftserverless:Workgroup
* properties:
* namespaceName: concurrency-scaling
* workgroupName: concurrency-scaling
* ```
*
* ## Import
* Using `pulumi import`, import Redshift Serverless Workgroups using the `workgroup_name`. For example:
* ```sh
* $ pulumi import aws:redshiftserverless/workgroup:Workgroup example example
* ```
* @property baseCapacity The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
* @property configParameters An array of parameters to set for more control over a serverless database. See `Config Parameter` below.
* @property enhancedVpcRouting The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.
* @property maxCapacity The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries, specified in Redshift Processing Units (RPUs).
* @property namespaceName The name of the namespace.
* @property port The port number on which the cluster accepts incoming connections.
* @property publiclyAccessible A value that specifies whether the workgroup can be accessed from a public network.
* @property securityGroupIds An array of security group IDs to associate with the workgroup.
* @property subnetIds An array of VPC subnet IDs to associate with the workgroup. When set, must contain at least three subnets spanning three Availability Zones. A minimum number of IP addresses is required and scales with the Base Capacity. For more information, see the following [AWS document](https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-known-issues.html).
* @property tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property workgroupName The name of the workgroup.
* The following arguments are optional:
*/
public data class WorkgroupArgs(
public val baseCapacity: Output? = null,
public val configParameters: Output>? = null,
public val enhancedVpcRouting: Output? = null,
public val maxCapacity: Output? = null,
public val namespaceName: Output? = null,
public val port: Output? = null,
public val publiclyAccessible: Output? = null,
public val securityGroupIds: Output>? = null,
public val subnetIds: Output>? = null,
public val tags: Output