Skip to content

put_account_data_retention

Operation

put_account_data_retention

put_account_data_retention(request: PutAccountDataRetentionInput | PutAccountDataRetentionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutAccountDataRetentionInputDict]) -> PutAccountDataRetentionOutput

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

Parameters:

Name Type Description Default
request PutAccountDataRetentionInput | PutAccountDataRetentionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[PutAccountDataRetentionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
PutAccountDataRetentionOutput

An instance of PutAccountDataRetentionOutput.

put_account_data_retention async

put_account_data_retention(request: PutAccountDataRetentionInput | PutAccountDataRetentionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutAccountDataRetentionInputDict]) -> PutAccountDataRetentionOutput

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

Parameters:

Name Type Description Default
request PutAccountDataRetentionInput | PutAccountDataRetentionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[PutAccountDataRetentionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
PutAccountDataRetentionOutput

An instance of PutAccountDataRetentionOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

PutAccountDataRetentionInputDict

Bases: TypedDict

Dictionary form of PutAccountDataRetentionInput.

Attributes

mode instance-attribute
mode: Required[str]

The data retention mode to set for the account.

PutAccountDataRetentionInput dataclass

Bases: _SerdeShape

Dataclass for PutAccountDataRetentionInput structure.

Attributes

mode class-attribute instance-attribute
mode: str | None = ...

The data retention mode to set for the account.

Output

PutAccountDataRetentionOutput dataclass

Bases: _SerdeShape

Dataclass for PutAccountDataRetentionOutput structure.

Attributes

mode instance-attribute
mode: str

The data retention mode set for the account.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

updated_at class-attribute instance-attribute
updated_at: datetime | None = ...

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