amazonka-redshift-serverless-2.0: Amazon Redshift Serverless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RedshiftServerLess.CreateNamespace

Description

Creates a namespace in Amazon Redshift Serverless.

Synopsis

Creating a Request

data CreateNamespace Source #

See: newCreateNamespace smart constructor.

Constructors

CreateNamespace' 

Fields

Instances

Instances details
ToJSON CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

ToHeaders CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

ToPath CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

ToQuery CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

AWSRequest CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

Associated Types

type AWSResponse CreateNamespace #

Generic CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

Associated Types

type Rep CreateNamespace :: Type -> Type #

Show CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

NFData CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

Methods

rnf :: CreateNamespace -> () #

Eq CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

Hashable CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

type AWSResponse CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

type Rep CreateNamespace Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

newCreateNamespace Source #

Create a value of CreateNamespace with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:adminUserPassword:CreateNamespace', createNamespace_adminUserPassword - The password of the administrator for the first database created in the namespace.

CreateNamespace, createNamespace_adminUsername - The username of the administrator for the first database created in the namespace.

CreateNamespace, createNamespace_dbName - The name of the first database created in the namespace.

CreateNamespace, createNamespace_defaultIamRoleArn - The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

CreateNamespace, createNamespace_iamRoles - A list of IAM roles to associate with the namespace.

CreateNamespace, createNamespace_kmsKeyId - The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

CreateNamespace, createNamespace_logExports - The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.

$sel:tags:CreateNamespace', createNamespace_tags - A list of tag instances.

CreateNamespace, createNamespace_namespaceName - The name of the namespace.

Request Lenses

createNamespace_adminUserPassword :: Lens' CreateNamespace (Maybe Text) Source #

The password of the administrator for the first database created in the namespace.

createNamespace_adminUsername :: Lens' CreateNamespace (Maybe Text) Source #

The username of the administrator for the first database created in the namespace.

createNamespace_dbName :: Lens' CreateNamespace (Maybe Text) Source #

The name of the first database created in the namespace.

createNamespace_defaultIamRoleArn :: Lens' CreateNamespace (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

createNamespace_iamRoles :: Lens' CreateNamespace (Maybe [Text]) Source #

A list of IAM roles to associate with the namespace.

createNamespace_kmsKeyId :: Lens' CreateNamespace (Maybe Text) Source #

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

createNamespace_logExports :: Lens' CreateNamespace (Maybe [LogExport]) Source #

The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.

createNamespace_tags :: Lens' CreateNamespace (Maybe [Tag]) Source #

A list of tag instances.

Destructuring the Response

data CreateNamespaceResponse Source #

See: newCreateNamespaceResponse smart constructor.

Constructors

CreateNamespaceResponse' 

Fields

Instances

Instances details
Generic CreateNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

Associated Types

type Rep CreateNamespaceResponse :: Type -> Type #

Show CreateNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

NFData CreateNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

Methods

rnf :: CreateNamespaceResponse -> () #

Eq CreateNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

type Rep CreateNamespaceResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.CreateNamespace

type Rep CreateNamespaceResponse = D1 ('MetaData "CreateNamespaceResponse" "Amazonka.RedshiftServerLess.CreateNamespace" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "CreateNamespaceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Namespace)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateNamespaceResponse Source #

Create a value of CreateNamespaceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:namespace:CreateNamespaceResponse', createNamespaceResponse_namespace - The created namespace object.

$sel:httpStatus:CreateNamespaceResponse', createNamespaceResponse_httpStatus - The response's http status code.

Response Lenses