Skip to content

get_account_password_policy

Operation

get_account_password_policy

get_account_password_policy(request: GetAccountPasswordPolicyInput | GetAccountPasswordPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetAccountPasswordPolicyInputDict]) -> GetAccountPasswordPolicyOutput

Retrieves the password policy for the Amazon Web Services account. This tells you the complexity requirements and mandatory rotation periods for the IAM user passwords in your account. For more information about using a password policy, see Managing an IAM password policy.

Parameters:

Name Type Description Default
request GetAccountPasswordPolicyInput | GetAccountPasswordPolicyInputDict | 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[GetAccountPasswordPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetAccountPasswordPolicyOutput

An instance of GetAccountPasswordPolicyOutput.

get_account_password_policy async

get_account_password_policy(request: GetAccountPasswordPolicyInput | GetAccountPasswordPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetAccountPasswordPolicyInputDict]) -> GetAccountPasswordPolicyOutput

Retrieves the password policy for the Amazon Web Services account. This tells you the complexity requirements and mandatory rotation periods for the IAM user passwords in your account. For more information about using a password policy, see Managing an IAM password policy.

Parameters:

Name Type Description Default
request GetAccountPasswordPolicyInput | GetAccountPasswordPolicyInputDict | 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[GetAccountPasswordPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetAccountPasswordPolicyOutput

An instance of GetAccountPasswordPolicyOutput.

Input

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

GetAccountPasswordPolicyInputDict

Bases: TypedDict

Dictionary form of GetAccountPasswordPolicyInput.

GetAccountPasswordPolicyInput dataclass

Bases: _SerdeShape

Dataclass for GetAccountPasswordPolicyInput structure.

Output

GetAccountPasswordPolicyOutput dataclass

Bases: _SerdeShape

Contains the response to a successful GetAccountPasswordPolicy request.

Attributes

password_policy instance-attribute
password_policy: PasswordPolicy

A structure that contains details about the account's password policy.

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.