Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRuleCommand

Creates a Recycle Bin retention rule. For more information, see Create Recycle Bin retention rules in the Amazon Elastic Compute Cloud User Guide.

example

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

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

CreateRuleCommandInput for command's input shape.

see

CreateRuleCommandOutput for command's response shape.

see

config for RbinClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateRuleCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateRuleCommandInput, CreateRuleCommandOutput>