| 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.UpdateNamespace
Description
Updates a namespace with the specified settings.
Synopsis
- data UpdateNamespace = UpdateNamespace' {
- adminUserPassword :: Maybe (Sensitive Text)
- adminUsername :: Maybe (Sensitive Text)
- defaultIamRoleArn :: Maybe Text
- iamRoles :: Maybe [Text]
- kmsKeyId :: Maybe Text
- logExports :: Maybe [LogExport]
- namespaceName :: Text
- newUpdateNamespace :: Text -> UpdateNamespace
- updateNamespace_adminUserPassword :: Lens' UpdateNamespace (Maybe Text)
- updateNamespace_adminUsername :: Lens' UpdateNamespace (Maybe Text)
- updateNamespace_defaultIamRoleArn :: Lens' UpdateNamespace (Maybe Text)
- updateNamespace_iamRoles :: Lens' UpdateNamespace (Maybe [Text])
- updateNamespace_kmsKeyId :: Lens' UpdateNamespace (Maybe Text)
- updateNamespace_logExports :: Lens' UpdateNamespace (Maybe [LogExport])
- updateNamespace_namespaceName :: Lens' UpdateNamespace Text
- data UpdateNamespaceResponse = UpdateNamespaceResponse' {
- httpStatus :: Int
- namespace :: Namespace
- newUpdateNamespaceResponse :: Int -> Namespace -> UpdateNamespaceResponse
- updateNamespaceResponse_httpStatus :: Lens' UpdateNamespaceResponse Int
- updateNamespaceResponse_namespace :: Lens' UpdateNamespaceResponse Namespace
Creating a Request
data UpdateNamespace Source #
See: newUpdateNamespace smart constructor.
Constructors
| UpdateNamespace' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateNamespace |
Create a value of UpdateNamespace 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:UpdateNamespace', updateNamespace_adminUserPassword - The password of the administrator for the first database created in the
namespace.
UpdateNamespace, updateNamespace_adminUsername - The username of the administrator for the first database created in the
namespace.
UpdateNamespace, updateNamespace_defaultIamRoleArn - The Amazon Resource Name (ARN) of the IAM role to set as a default in
the namespace.
UpdateNamespace, updateNamespace_iamRoles - A list of IAM roles to associate with the namespace.
UpdateNamespace, updateNamespace_kmsKeyId - The ID of the Amazon Web Services Key Management Service key used to
encrypt your data.
UpdateNamespace, updateNamespace_logExports - The types of logs the namespace can export. The export types are
userlog, connectionlog, and useractivitylog.
UpdateNamespace, updateNamespace_namespaceName - The name of the namespace.
Request Lenses
updateNamespace_adminUserPassword :: Lens' UpdateNamespace (Maybe Text) Source #
The password of the administrator for the first database created in the namespace.
updateNamespace_adminUsername :: Lens' UpdateNamespace (Maybe Text) Source #
The username of the administrator for the first database created in the namespace.
updateNamespace_defaultIamRoleArn :: Lens' UpdateNamespace (Maybe Text) Source #
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
updateNamespace_iamRoles :: Lens' UpdateNamespace (Maybe [Text]) Source #
A list of IAM roles to associate with the namespace.
updateNamespace_kmsKeyId :: Lens' UpdateNamespace (Maybe Text) Source #
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
updateNamespace_logExports :: Lens' UpdateNamespace (Maybe [LogExport]) Source #
The types of logs the namespace can export. The export types are
userlog, connectionlog, and useractivitylog.
updateNamespace_namespaceName :: Lens' UpdateNamespace Text Source #
The name of the namespace.
Destructuring the Response
data UpdateNamespaceResponse Source #
See: newUpdateNamespaceResponse smart constructor.
Constructors
| UpdateNamespaceResponse' | |
Fields
| |
Instances
newUpdateNamespaceResponse Source #
Arguments
| :: Int | |
| -> Namespace | |
| -> UpdateNamespaceResponse |
Create a value of UpdateNamespaceResponse 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:httpStatus:UpdateNamespaceResponse', updateNamespaceResponse_httpStatus - The response's http status code.
$sel:namespace:UpdateNamespaceResponse', updateNamespaceResponse_namespace - A list of tag instances.
Response Lenses
updateNamespaceResponse_httpStatus :: Lens' UpdateNamespaceResponse Int Source #
The response's http status code.
updateNamespaceResponse_namespace :: Lens' UpdateNamespaceResponse Namespace Source #
A list of tag instances.