Redshift / Client / modify_account_attributes

modify_account_attributes

Redshift.Client.modify_account_attributes(**kwargs)

Modifies the account-level settings for Amazon Redshift in the current Amazon Web Services Region. Account-level settings are the default for provisioned clusters and Redshift Serverless namespaces in the Region that don’t override them.

See also: AWS API Documentation

Request Syntax

response = client.modify_account_attributes(
    IdentityConfiguration={
        'IdentityFederation': {
            'Mode': 'DEFAULT'|'FEDERATED'|'FEDERATED_WITH_GROUPS'
        },
        'SystemRolesFederation': {
            'Roles': [
                'string',
            ]
        }
    }
)
Parameters:

IdentityConfiguration (dict) –

The identity configuration to apply to the account.

  • IdentityFederation (dict) –

    The account-level identity federation setting, which controls how a TIP for IAM federated user’s login is handled.

    • Mode (string) – [REQUIRED]

      The identity federation mode for the account, which determines how a TIP for IAM federated user’s login is handled. This is the default mode for provisioned clusters and Redshift Serverless namespaces in the Region that don’t override it.

      Default: DEFAULT

      Valid values are:

      • DEFAULT – Preserves existing IAM role-based access and records the IAM federated user’s subject in STL_CONNECTION_LOG. If the IAM role has no database user, the federated user logs in as the database user with the same name, which is created if it doesn’t exist. The login fails if that database user exists but is not enabled for federation. Does not associate IdP groups with database roles.

      • FEDERATED – Logs the IAM federated user in as the database user with the same name, or creates that user if none exists. Does not associate IdP groups with database roles.

      • FEDERATED_WITH_GROUPS – Everything in FEDERATED. In addition, associates each IdP group with the existing database role with the same name. Associates a group with a system-defined role only if the system roles federation setting allows it.

  • SystemRolesFederation (dict) –

    The account-level system roles federation setting, which controls the Amazon Redshift system-defined roles that an identity provider (IdP) group can grant.

    • Roles (list) –

      The Amazon Redshift system-defined roles that an identity provider (IdP) group can grant to a TIP for IAM federated user with groups. An empty list means no system-defined roles. For the available roles, see System-defined roles in the Amazon Redshift Database Developer Guide.

      Default: no system-defined roles

      • (string) –

        An Amazon Redshift system-defined role name.

Return type:

dict

Returns:

Response Syntax

{
    'IdentityConfiguration': {
        'IdentityFederation': {
            'Mode': 'DEFAULT'|'FEDERATED'|'FEDERATED_WITH_GROUPS'
        },
        'SystemRolesFederation': {
            'Roles': [
                'string',
            ]
        }
    }
}

Response Structure

  • (dict) –

    The account-level settings after the change.

    • IdentityConfiguration (dict) –

      The account’s identity configuration after the change.

      • IdentityFederation (dict) –

        The account-level identity federation setting, which controls how a TIP for IAM federated user’s login is handled.

        • Mode (string) –

          The identity federation mode for the account, which determines how a TIP for IAM federated user’s login is handled. This is the default mode for provisioned clusters and Redshift Serverless namespaces in the Region that don’t override it.

          Default: DEFAULT

          Valid values are:

          • DEFAULT – Preserves existing IAM role-based access and records the IAM federated user’s subject in STL_CONNECTION_LOG. If the IAM role has no database user, the federated user logs in as the database user with the same name, which is created if it doesn’t exist. The login fails if that database user exists but is not enabled for federation. Does not associate IdP groups with database roles.

          • FEDERATED – Logs the IAM federated user in as the database user with the same name, or creates that user if none exists. Does not associate IdP groups with database roles.

          • FEDERATED_WITH_GROUPS – Everything in FEDERATED. In addition, associates each IdP group with the existing database role with the same name. Associates a group with a system-defined role only if the system roles federation setting allows it.

      • SystemRolesFederation (dict) –

        The account-level system roles federation setting, which controls the Amazon Redshift system-defined roles that an identity provider (IdP) group can grant.

        • Roles (list) –

          The Amazon Redshift system-defined roles that an identity provider (IdP) group can grant to a TIP for IAM federated user with groups. An empty list means no system-defined roles. For the available roles, see System-defined roles in the Amazon Redshift Database Developer Guide.

          Default: no system-defined roles

          • (string) –

            An Amazon Redshift system-defined role name.

Exceptions