Skip to content

IAM  >  Operations  >  delete_group_policy

delete_group_policy

Operation

delete_group_policy async

delete_group_policy(input: DeleteGroupPolicyInput, plugins: list[Plugin] | None = None) -> DeleteGroupPolicyOutput

Deletes the specified inline policy that is embedded in the specified IAM group.

A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.

Parameters:

Name Type Description Default
input DeleteGroupPolicyInput

An instance of DeleteGroupPolicyInput.

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
DeleteGroupPolicyOutput

An instance of DeleteGroupPolicyOutput.

Input

DeleteGroupPolicyInput dataclass

Bases: _SerdeShape

Dataclass for DeleteGroupPolicyInput structure.

Attributes

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

The name (friendly name, not ARN) identifying the group 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: _+=,.@-

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

The name identifying the policy document to delete.

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

DeleteGroupPolicyOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteGroupPolicyOutput 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.