set_default_policy_version¶
Operation¶
set_default_policy_version
async
¶
set_default_policy_version(input: SetDefaultPolicyVersionInput, plugins: list[Plugin] | None = None) -> SetDefaultPolicyVersionOutput
Sets the specified version of the specified policy as the policy's default (operative) version.
This operation affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use ListEntitiesForPolicy.
For information about managed policies, see Managed policies and inline policies in the IAM User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
SetDefaultPolicyVersionInput
|
An instance of |
required |
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 |
|---|---|
SetDefaultPolicyVersionOutput
|
An instance of |
Input¶
SetDefaultPolicyVersionInput
dataclass
¶
Bases: _SerdeShape
Dataclass for SetDefaultPolicyVersionInput structure.
Attributes¶
policy_arn
class-attribute
instance-attribute
¶
policy_arn: str | None = ...
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
version_id
class-attribute
instance-attribute
¶
version_id: str | None = ...
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
Output¶
SetDefaultPolicyVersionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for SetDefaultPolicyVersionOutput structure.