delete_role_policy¶
Operation¶
delete_role_policy
async
¶
delete_role_policy(request: DeleteRolePolicyInput | DeleteRolePolicyInputDict, /, *, plugins: list[Plugin] | None = None) -> DeleteRolePolicyOutput
delete_role_policy(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteRolePolicyInputDict]) -> DeleteRolePolicyOutput
Deletes the specified inline policy that is embedded in the specified IAM role.
A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.
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 |
|---|---|
DeleteRolePolicyOutput
|
An instance of |
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¶
DeleteRolePolicyInput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteRolePolicyInput structure.
Attributes¶
policy_name
class-attribute
instance-attribute
¶
policy_name: str | None = ...
The name of the inline policy to delete from the specified IAM role.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
role_name
class-attribute
instance-attribute
¶
role_name: str | None = ...
The name (friendly name, not ARN) identifying the role that the policy is embedded in.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Dictionaries¶
DeleteRolePolicyInputDict
¶
Bases: TypedDict
Dictionary form of DeleteRolePolicyInput.
Attributes¶
policy_name
instance-attribute
¶
The name of the inline policy to delete from the specified IAM role.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
role_name
instance-attribute
¶
The name (friendly name, not ARN) identifying the role that the policy is embedded in.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Output¶
DeleteRolePolicyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteRolePolicyOutput structure.