Amazon Bedrock

2026/06/09 - Amazon Bedrock - 2 new api methods

Changes  Adds support for the Amazon Bedrock account-level data retention APIs PutAccountDataRetention and GetAccountDataRetention.

GetAccountDataRetention (new) Link ¶

Returns the account-wide data retention mode for Amazon Bedrock.

See also: AWS API Documentation

Request Syntax

client.get_account_data_retention()
rtype:

dict

returns:

Response Syntax

{
    'mode': 'default'|'none'|'provider_data_share'|'inherit',
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • mode (string) --

      The data retention mode configured for the account.

    • updatedAt (datetime) --

      The time at which the data retention mode was last updated.

PutAccountDataRetention (new) Link ¶

Sets the account-wide data retention mode for Amazon Bedrock.

See also: AWS API Documentation

Request Syntax

client.put_account_data_retention(
    mode='default'|'none'|'provider_data_share'|'inherit'
)
type mode:

string

param mode:

[REQUIRED]

The data retention mode to set for the account.

rtype:

dict

returns:

Response Syntax

{
    'mode': 'default'|'none'|'provider_data_share'|'inherit',
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • mode (string) --

      The data retention mode set for the account.

    • updatedAt (datetime) --

      The time at which the data retention mode was last updated.