1. Packages
  2. AWS Classic
  3. API Docs
  4. redshiftserverless
  5. Namespace

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.23.0 published on Thursday, Feb 22, 2024 by Pulumi

aws.redshiftserverless.Namespace

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.23.0 published on Thursday, Feb 22, 2024 by Pulumi

    Creates a new Amazon Redshift Serverless Namespace.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.RedshiftServerless.Namespace("example", new()
        {
            NamespaceName = "concurrency-scaling",
        });
    
    });
    
    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.NewNamespace(ctx, "example", &redshiftserverless.NamespaceArgs{
    			NamespaceName: pulumi.String("concurrency-scaling"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.redshiftserverless.Namespace;
    import com.pulumi.aws.redshiftserverless.NamespaceArgs;
    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 Namespace("example", NamespaceArgs.builder()        
                .namespaceName("concurrency-scaling")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.redshiftserverless.Namespace("example", namespace_name="concurrency-scaling")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.redshiftserverless.Namespace("example", {namespaceName: "concurrency-scaling"});
    
    resources:
      example:
        type: aws:redshiftserverless:Namespace
        properties:
          namespaceName: concurrency-scaling
    

    Create Namespace Resource

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  admin_user_password: Optional[str] = None,
                  admin_username: Optional[str] = None,
                  db_name: Optional[str] = None,
                  default_iam_role_arn: Optional[str] = None,
                  iam_roles: Optional[Sequence[str]] = None,
                  kms_key_id: Optional[str] = None,
                  log_exports: Optional[Sequence[str]] = None,
                  namespace_name: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None)
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
    public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
    public Namespace(String name, NamespaceArgs args)
    public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
    
    type: aws:redshiftserverless:Namespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Namespace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Namespace resource accepts the following input properties:

    NamespaceName string
    The name of the namespace.
    AdminUserPassword string
    The password of the administrator for the first database created in the namespace.
    AdminUsername string
    The username of the administrator for the first database created in the namespace.
    DbName string
    The name of the first database created in the namespace.
    DefaultIamRoleArn string
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    IamRoles List<string>
    A list of IAM roles to associate with the namespace.
    KmsKeyId string
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    LogExports List<string>
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    Tags Dictionary<string, string>
    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.
    NamespaceName string
    The name of the namespace.
    AdminUserPassword string
    The password of the administrator for the first database created in the namespace.
    AdminUsername string
    The username of the administrator for the first database created in the namespace.
    DbName string
    The name of the first database created in the namespace.
    DefaultIamRoleArn string
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    IamRoles []string
    A list of IAM roles to associate with the namespace.
    KmsKeyId string
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    LogExports []string
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    Tags map[string]string
    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.
    namespaceName String
    The name of the namespace.
    adminUserPassword String
    The password of the administrator for the first database created in the namespace.
    adminUsername String
    The username of the administrator for the first database created in the namespace.
    dbName String
    The name of the first database created in the namespace.
    defaultIamRoleArn String
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iamRoles List<String>
    A list of IAM roles to associate with the namespace.
    kmsKeyId String
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    logExports List<String>
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    tags Map<String,String>
    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.
    namespaceName string
    The name of the namespace.
    adminUserPassword string
    The password of the administrator for the first database created in the namespace.
    adminUsername string
    The username of the administrator for the first database created in the namespace.
    dbName string
    The name of the first database created in the namespace.
    defaultIamRoleArn string
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iamRoles string[]
    A list of IAM roles to associate with the namespace.
    kmsKeyId string
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    logExports string[]
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    tags {[key: string]: string}
    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.
    namespace_name str
    The name of the namespace.
    admin_user_password str
    The password of the administrator for the first database created in the namespace.
    admin_username str
    The username of the administrator for the first database created in the namespace.
    db_name str
    The name of the first database created in the namespace.
    default_iam_role_arn str
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iam_roles Sequence[str]
    A list of IAM roles to associate with the namespace.
    kms_key_id str
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    log_exports Sequence[str]
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    tags Mapping[str, str]
    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.
    namespaceName String
    The name of the namespace.
    adminUserPassword String
    The password of the administrator for the first database created in the namespace.
    adminUsername String
    The username of the administrator for the first database created in the namespace.
    dbName String
    The name of the first database created in the namespace.
    defaultIamRoleArn String
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iamRoles List<String>
    A list of IAM roles to associate with the namespace.
    kmsKeyId String
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    logExports List<String>
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    tags Map<String>
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

    Arn string
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    NamespaceId string
    The Redshift Namespace ID.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Arn string
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    NamespaceId string
    The Redshift Namespace ID.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    namespaceId String
    The Redshift Namespace ID.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn string
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    namespaceId string
    The Redshift Namespace ID.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn str
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    id str
    The provider-assigned unique ID for this managed resource.
    namespace_id str
    The Redshift Namespace ID.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    namespaceId String
    The Redshift Namespace ID.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Look up Existing Namespace Resource

    Get an existing Namespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NamespaceState, opts?: CustomResourceOptions): Namespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_user_password: Optional[str] = None,
            admin_username: Optional[str] = None,
            arn: Optional[str] = None,
            db_name: Optional[str] = None,
            default_iam_role_arn: Optional[str] = None,
            iam_roles: Optional[Sequence[str]] = None,
            kms_key_id: Optional[str] = None,
            log_exports: Optional[Sequence[str]] = None,
            namespace_id: Optional[str] = None,
            namespace_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Namespace
    func GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)
    public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)
    public static Namespace get(String name, Output<String> id, NamespaceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminUserPassword string
    The password of the administrator for the first database created in the namespace.
    AdminUsername string
    The username of the administrator for the first database created in the namespace.
    Arn string
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    DbName string
    The name of the first database created in the namespace.
    DefaultIamRoleArn string
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    IamRoles List<string>
    A list of IAM roles to associate with the namespace.
    KmsKeyId string
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    LogExports List<string>
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    NamespaceId string
    The Redshift Namespace ID.
    NamespaceName string
    The name of the namespace.
    Tags Dictionary<string, string>
    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.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    AdminUserPassword string
    The password of the administrator for the first database created in the namespace.
    AdminUsername string
    The username of the administrator for the first database created in the namespace.
    Arn string
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    DbName string
    The name of the first database created in the namespace.
    DefaultIamRoleArn string
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    IamRoles []string
    A list of IAM roles to associate with the namespace.
    KmsKeyId string
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    LogExports []string
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    NamespaceId string
    The Redshift Namespace ID.
    NamespaceName string
    The name of the namespace.
    Tags map[string]string
    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.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    adminUserPassword String
    The password of the administrator for the first database created in the namespace.
    adminUsername String
    The username of the administrator for the first database created in the namespace.
    arn String
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    dbName String
    The name of the first database created in the namespace.
    defaultIamRoleArn String
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iamRoles List<String>
    A list of IAM roles to associate with the namespace.
    kmsKeyId String
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    logExports List<String>
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    namespaceId String
    The Redshift Namespace ID.
    namespaceName String
    The name of the namespace.
    tags Map<String,String>
    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.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    adminUserPassword string
    The password of the administrator for the first database created in the namespace.
    adminUsername string
    The username of the administrator for the first database created in the namespace.
    arn string
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    dbName string
    The name of the first database created in the namespace.
    defaultIamRoleArn string
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iamRoles string[]
    A list of IAM roles to associate with the namespace.
    kmsKeyId string
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    logExports string[]
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    namespaceId string
    The Redshift Namespace ID.
    namespaceName string
    The name of the namespace.
    tags {[key: string]: string}
    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.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    admin_user_password str
    The password of the administrator for the first database created in the namespace.
    admin_username str
    The username of the administrator for the first database created in the namespace.
    arn str
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    db_name str
    The name of the first database created in the namespace.
    default_iam_role_arn str
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iam_roles Sequence[str]
    A list of IAM roles to associate with the namespace.
    kms_key_id str
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    log_exports Sequence[str]
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    namespace_id str
    The Redshift Namespace ID.
    namespace_name str
    The name of the namespace.
    tags Mapping[str, str]
    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.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    adminUserPassword String
    The password of the administrator for the first database created in the namespace.
    adminUsername String
    The username of the administrator for the first database created in the namespace.
    arn String
    Amazon Resource Name (ARN) of the Redshift Serverless Namespace.
    dbName String
    The name of the first database created in the namespace.
    defaultIamRoleArn String
    The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying default_iam_role_arn, it also must be part of iam_roles.
    iamRoles List<String>
    A list of IAM roles to associate with the namespace.
    kmsKeyId String
    The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
    logExports List<String>
    The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.
    namespaceId String
    The Redshift Namespace ID.
    namespaceName String
    The name of the namespace.
    tags Map<String>
    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.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Import

    Using pulumi import, import Redshift Serverless Namespaces using the namespace_name. For example:

     $ pulumi import aws:redshiftserverless/namespace:Namespace example example
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.23.0 published on Thursday, Feb 22, 2024 by Pulumi