v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465272236.5 KB

Updates a namespace with the specified settings. Unless required, you can't update multiple parameters in one request. For example, you must specify both <code>adminUsername</code> and <code>adminUserPassword</code> to update either field, but you can't update both <code>kmsKeyId</code> and <code>logExports</code> in a single request.

post/#X-Amz-Target=RedshiftServerless.UpdateNamespace

Headers

X-Amz-Target'RedshiftServerless.UpdateNamespace' required

Request body

adminPasswordSecretKmsKeyIdstring

The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. You can only use this parameter if <code>manageAdminPassword</code> is true.

adminUserPasswordstring password
<p>The password of the administrator for the first database created in the namespace. This parameter must be updated together with <code>adminUsername</code>.</p> <p>You can't use <code>adminUserPassword</code> if <code>manageAdminPassword</code> is true. </p>
adminUsernamestring password

The username of the administrator for the first database created in the namespace. This parameter must be updated together with <code>adminUserPassword</code>.

defaultIamRoleArnstring

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. This parameter must be updated together with <code>iamRoles</code>.

iamRolesIamRoleArn[]

A list of IAM roles to associate with the namespace. This parameter must be updated together with <code>defaultIamRoleArn</code>.

kmsKeyIdstring

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

logExportsLogExport[]

The types of logs the namespace can export. The export types are <code>userlog</code>, <code>connectionlog</code>, and <code>useractivitylog</code>.

manageAdminPasswordboolean

If <code>true</code>, Amazon Redshift uses Secrets Manager to manage the namespace's admin credentials. You can't use <code>adminUserPassword</code> if <code>manageAdminPassword</code> is true. If <code>manageAdminPassword</code> is false or not set, Amazon Redshift uses <code>adminUserPassword</code> for the admin user account's password.

namespaceNamestring required

The name of the namespace to update. You can't update the name of a namespace once it is created.

Response

Success