Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteUserPolicyCommand

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

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

example

Use a bare-bones client and the command you need to make an API call.

import { IAMClient, DeleteUserPolicyCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, DeleteUserPolicyCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const command = new DeleteUserPolicyCommand(input);
const response = await client.send(command);
see

DeleteUserPolicyCommandInput for command's input shape.

see

DeleteUserPolicyCommandOutput for command's response shape.

see

config for IAMClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteUserPolicyCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions