1. Packages
  2. AWS
  3. API Docs
  4. redshiftserverless
  5. getNamespace
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.redshiftserverless.getNamespace

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:redshiftserverless/getNamespace:getNamespace
      arguments:
        # arguments dictionary

    The 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.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    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
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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

    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
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi