Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRoleCommand

Creates a new role for your Amazon Web Services account. For more information about roles, see IAM roles. For information about quotas for role names and the number of roles you can create, see IAM and STS quotas in the IAM User Guide.

example

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

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

CreateRoleCommandInput for command's input shape.

see

CreateRoleCommandOutput for command's response shape.

see

config for IAMClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateRoleCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateRoleCommandInput, CreateRoleCommandOutput>

Methods

Static getEndpointParameterInstructions