AWS v6.54.0 published on Friday, Sep 27, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:redshiftserverless/getNamespace:getNamespace
arguments:
# arguments dictionary
The following arguments are supported:
- Namespace
Name string - The name of the namespace.
- Namespace
Name string - The name of the namespace.
- namespace
Name String - The name of the namespace.
- namespace
Name string - The name of the namespace.
- namespace_
name str - The name of the namespace.
- namespace
Name String - The name of the namespace.
getNamespace Result
The following output properties are available:
- Admin
Username 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.
- Db
Name string - The name of the first database created in the namespace.
- Default
Iam 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
. - Iam
Roles List<string> - A list of IAM roles to associate with the namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
- Log
Exports List<string> - The types of logs the namespace can export. Available export types are
userlog
,connectionlog
, anduseractivitylog
. - Namespace
Id string - The Redshift Namespace ID.
- Namespace
Name string
- Admin
Username 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.
- Db
Name string - The name of the first database created in the namespace.
- Default
Iam 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
. - Iam
Roles []string - A list of IAM roles to associate with the namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
- Log
Exports []string - The types of logs the namespace can export. Available export types are
userlog
,connectionlog
, anduseractivitylog
. - Namespace
Id string - The Redshift Namespace ID.
- Namespace
Name string
- admin
Username 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.
- db
Name String - The name of the first database created in the namespace.
- default
Iam 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
. - iam
Roles List<String> - A list of IAM roles to associate with the namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
- log
Exports List<String> - The types of logs the namespace can export. Available export types are
userlog
,connectionlog
, anduseractivitylog
. - namespace
Id String - The Redshift Namespace ID.
- namespace
Name String
- admin
Username 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.
- db
Name string - The name of the first database created in the namespace.
- default
Iam 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
. - iam
Roles string[] - A list of IAM roles to associate with the namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId - The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
- log
Exports string[] - The types of logs the namespace can export. Available export types are
userlog
,connectionlog
, anduseractivitylog
. - namespace
Id string - The Redshift Namespace ID.
- namespace
Name 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
- admin
Username 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.
- db
Name String - The name of the first database created in the namespace.
- default
Iam 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
. - iam
Roles List<String> - A list of IAM roles to associate with the namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
- log
Exports List<String> - The types of logs the namespace can export. Available export types are
userlog
,connectionlog
, anduseractivitylog
. - namespace
Id String - The Redshift Namespace ID.
- namespace
Name String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.