import * as core from "@terrascript/core"; export interface NamespaceArgs extends core.ResourceArgs { /** * (Optional) The password of the administrator for the first database created in the namespace. */ adminUserPassword?: string | core.StringOut; /** * (Optional) The username of the administrator for the first database created in the namespace. */ adminUsername?: string | core.StringOut; /** * (Optional) The name of the first database created in the namespace. */ dbName?: string | core.StringOut; /** * (Optional) The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. */ defaultIamRoleArn?: string | core.StringOut; /** * (Optional) A list of IAM roles to associate with the namespace. */ iamRoles?: core.Array | core.ArrayOut; /** * (Optional) The ARN of the Amazon Web Services Key Management Service key used to encrypt your data. */ kmsKeyId?: string | core.StringOut; /** * (Optional) The types of logs the namespace can export. Available export types are `userlog`, `connec * tionlog`, and `useractivitylog`. */ logExports?: core.Array | core.ArrayOut; /** * (Required) The name of the namespace. */ namespaceName: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Namespace extends core.Resource { /** * (Optional) The password of the administrator for the first database created in the namespace. */ @core.attr(String) public adminUserPassword?: string | core.StringOut; /** * (Optional) The username of the administrator for the first database created in the namespace. */ @core.attr(String, { computed: true }) public adminUsername?: string | core.StringOut; /** * Amazon Resource Name (ARN) of the Redshift Serverless Namespace. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The name of the first database created in the namespace. */ @core.attr(String, { computed: true }) public dbName?: string | core.StringOut; /** * (Optional) The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. */ @core.attr(String) public defaultIamRoleArn?: string | core.StringOut; /** * (Optional) A list of IAM roles to associate with the namespace. */ @core.attr(String, { computed: true, kind: "array" }) public iamRoles?: core.Array | core.ArrayOut; /** * The Redshift Namespace Name. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ARN of the Amazon Web Services Key Management Service key used to encrypt your data. */ @core.attr(String, { computed: true }) public kmsKeyId?: string | core.StringOut; /** * (Optional) The types of logs the namespace can export. Available export types are `userlog`, `connec * tionlog`, and `useractivitylog`. */ @core.attr(String, { kind: "array" }) public logExports?: core.Array | core.ArrayOut; /** * The Redshift Namespace ID. */ @core.attr(String, { computed: true }) public namespaceId!: string | core.StringOut; /** * (Required) The name of the namespace. */ @core.attr(String) public namespaceName!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: NamespaceArgs) { super(name, "aws_redshiftserverless_namespace", args); } public override getNamespace(): string { return "aws_redshiftserverless"; } }