Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.RedshiftServerLess.CreateNamespace
Description
Creates a namespace in Amazon Redshift Serverless.
Synopsis
- data CreateNamespace = CreateNamespace' {}
- newCreateNamespace :: Text -> CreateNamespace
- createNamespace_adminUserPassword :: Lens' CreateNamespace (Maybe Text)
- createNamespace_adminUsername :: Lens' CreateNamespace (Maybe Text)
- createNamespace_dbName :: Lens' CreateNamespace (Maybe Text)
- createNamespace_defaultIamRoleArn :: Lens' CreateNamespace (Maybe Text)
- createNamespace_iamRoles :: Lens' CreateNamespace (Maybe [Text])
- createNamespace_kmsKeyId :: Lens' CreateNamespace (Maybe Text)
- createNamespace_logExports :: Lens' CreateNamespace (Maybe [LogExport])
- createNamespace_tags :: Lens' CreateNamespace (Maybe [Tag])
- createNamespace_namespaceName :: Lens' CreateNamespace Text
- data CreateNamespaceResponse = CreateNamespaceResponse' {
- namespace :: Maybe Namespace
- httpStatus :: Int
- newCreateNamespaceResponse :: Int -> CreateNamespaceResponse
- createNamespaceResponse_namespace :: Lens' CreateNamespaceResponse (Maybe Namespace)
- createNamespaceResponse_httpStatus :: Lens' CreateNamespaceResponse Int
Creating a Request
data CreateNamespace Source #
See: newCreateNamespace
smart constructor.
Constructors
CreateNamespace' | |
Fields
|
Instances
Arguments
:: Text | |
-> CreateNamespace |
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.
createNamespace_namespaceName :: Lens' CreateNamespace Text Source #
The name of the namespace.
Destructuring the Response
data CreateNamespaceResponse Source #
See: newCreateNamespaceResponse
smart constructor.
Constructors
CreateNamespaceResponse' | |
Fields
|
Instances
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
createNamespaceResponse_namespace :: Lens' CreateNamespaceResponse (Maybe Namespace) Source #
The created namespace object.
createNamespaceResponse_httpStatus :: Lens' CreateNamespaceResponse Int Source #
The response's http status code.