AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.redshiftserverless.getNamespace
Explore with Pulumi AI
Data source for managing an AWS Redshift Serverless Namespace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.redshiftserverless.getNamespace({
    namespaceName: "example-namespace",
});
import pulumi
import pulumi_aws as aws
example = aws.redshiftserverless.get_namespace(namespace_name="example-namespace")
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.LookupNamespace(ctx, &redshiftserverless.LookupNamespaceArgs{
			NamespaceName: "example-namespace",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.RedshiftServerless.GetNamespace.Invoke(new()
    {
        NamespaceName = "example-namespace",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshiftserverless.RedshiftserverlessFunctions;
import com.pulumi.aws.redshiftserverless.inputs.GetNamespaceArgs;
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) {
        final var example = RedshiftserverlessFunctions.getNamespace(GetNamespaceArgs.builder()
            .namespaceName("example-namespace")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:redshiftserverless:getNamespace
      arguments:
        namespaceName: example-namespace
Using getNamespace
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNamespace(args: GetNamespaceArgs, opts?: InvokeOptions): Promise<GetNamespaceResult>
function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: InvokeOptions): Output<GetNamespaceResult>def get_namespace(namespace_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetNamespaceResult
def get_namespace_output(namespace_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceResult]func LookupNamespace(ctx *Context, args *LookupNamespaceArgs, opts ...InvokeOption) (*LookupNamespaceResult, error)
func LookupNamespaceOutput(ctx *Context, args *LookupNamespaceOutputArgs, opts ...InvokeOption) LookupNamespaceResultOutput> Note: This function is named LookupNamespace in the Go SDK.
public static class GetNamespace 
{
    public static Task<GetNamespaceResult> InvokeAsync(GetNamespaceArgs args, InvokeOptions? opts = null)
    public static Output<GetNamespaceResult> Invoke(GetNamespaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
public static Output<GetNamespaceResult> getNamespace(GetNamespaceArgs args, InvokeOptions options)
fn::invoke:
  function: aws:redshiftserverless/getNamespace:getNamespace
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NamespaceName string
- The name of the namespace.
- NamespaceName string
- The name of the namespace.
- namespaceName String
- The name of the namespace.
- namespaceName string
- The name of the namespace.
- namespace_name str
- The name of the namespace.
- namespaceName String
- The name of the namespace.
getNamespace Result
The following output properties are available:
- 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.
- DefaultIam stringRole Arn 
- 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 ofiam_roles.
- IamRoles List<string>
- A list of IAM roles to associate with the namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- 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, anduseractivitylog.
- NamespaceId string
- The Redshift Namespace ID.
- NamespaceName string
- 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.
- DefaultIam stringRole Arn 
- 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 ofiam_roles.
- IamRoles []string
- A list of IAM roles to associate with the namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- 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, anduseractivitylog.
- NamespaceId string
- The Redshift Namespace ID.
- NamespaceName string
- 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.
- defaultIam StringRole Arn 
- 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 ofiam_roles.
- iamRoles List<String>
- A list of IAM roles to associate with the namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- 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, anduseractivitylog.
- namespaceId String
- The Redshift Namespace ID.
- namespaceName String
- 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.
- defaultIam stringRole Arn 
- 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 ofiam_roles.
- iamRoles string[]
- A list of IAM roles to associate with the namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringId 
- 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, anduseractivitylog.
- namespaceId string
- The Redshift Namespace ID.
- namespaceName string
- 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_ strrole_ arn 
- 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 ofiam_roles.
- iam_roles Sequence[str]
- A list of IAM roles to associate with the namespace.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strid 
- 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, anduseractivitylog.
- namespace_id str
- The Redshift Namespace ID.
- namespace_name str
- 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.
- defaultIam StringRole Arn 
- 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 ofiam_roles.
- iamRoles List<String>
- A list of IAM roles to associate with the namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- 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, anduseractivitylog.
- namespaceId String
- The Redshift Namespace ID.
- namespaceName String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.