Skip to content

IAM  >  Operations  >  put_account_properties

put_account_properties

Operation

put_account_properties async

put_account_properties(request: PutAccountPropertiesInput | PutAccountPropertiesInputDict, /, *, plugins: list[Plugin] | None = None) -> PutAccountPropertiesOutput
put_account_properties(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutAccountPropertiesInputDict]) -> PutAccountPropertiesOutput

Sets account-level properties for the caller's Amazon Web Services account. Account properties are configuration settings that control account-wide IAM features such as Role Manager.

Specify properties as key-value pairs in Namespace/PropertyName format. All properties in a single request must belong to the same namespace. Use GetAccountProperties to view the current properties.

Parameters:

Name Type Description Default
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

Returns:

Type Description
PutAccountPropertiesOutput

An instance of PutAccountPropertiesOutput.

Input

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

Model

PutAccountPropertiesInput dataclass

Bases: _SerdeShape

Dataclass for PutAccountPropertiesInput structure.

Attributes
properties class-attribute instance-attribute
properties: dict[str, str] | None = ...

A map of property key-value pairs to set. All keys must belong to the same namespace.

Each key uses the format Namespace/PropertyName. The key must contain exactly one / separating the namespace from the property name, and cannot start or end with /.

The service validates each value based on the property key's expected type. For example, boolean properties expect true or false.

Dictionaries

PutAccountPropertiesInputDict

Bases: TypedDict

Dictionary form of PutAccountPropertiesInput.

Attributes
properties instance-attribute
properties: Required[Mapping[str, str]]

A map of property key-value pairs to set. All keys must belong to the same namespace.

Each key uses the format Namespace/PropertyName. The key must contain exactly one / separating the namespace from the property name, and cannot start or end with /.

The service validates each value based on the property key's expected type. For example, boolean properties expect true or false.

Output

PutAccountPropertiesOutput dataclass

Bases: _SerdeShape

Dataclass for PutAccountPropertiesOutput structure.

Attributes

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.