import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateRotationRequest, CreateRotationResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateRotationCommand}. */ export interface CreateRotationCommandInput extends CreateRotationRequest { } /** * @public * * The output of {@link CreateRotationCommand}. */ export interface CreateRotationCommandOutput extends CreateRotationResult, __MetadataBearer { } declare const CreateRotationCommand_base: { new (input: CreateRotationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateRotationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a rotation in an on-call schedule.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMContactsClient, CreateRotationCommand } from "@aws-sdk/client-ssm-contacts"; // ES Modules import * // const { SSMContactsClient, CreateRotationCommand } = require("@aws-sdk/client-ssm-contacts"); // CommonJS import * // import type { SSMContactsClientConfig } from "@aws-sdk/client-ssm-contacts"; * const config = {}; // type is SSMContactsClientConfig * const client = new SSMContactsClient(config); * const input = { // CreateRotationRequest * Name: "STRING_VALUE", // required * ContactIds: [ // RotationContactsArnList // required * "STRING_VALUE", * ], * StartTime: new Date("TIMESTAMP"), * TimeZoneId: "STRING_VALUE", // required * Recurrence: { // RecurrenceSettings * MonthlySettings: [ // MonthlySettings * { // MonthlySetting * DayOfMonth: Number("int"), // required * HandOffTime: { // HandOffTime * HourOfDay: Number("int"), // required * MinuteOfHour: Number("int"), // required * }, * }, * ], * WeeklySettings: [ // WeeklySettings * { // WeeklySetting * DayOfWeek: "MON" || "TUE" || "WED" || "THU" || "FRI" || "SAT" || "SUN", // required * HandOffTime: { * HourOfDay: Number("int"), // required * MinuteOfHour: Number("int"), // required * }, * }, * ], * DailySettings: [ // DailySettings * { * HourOfDay: Number("int"), // required * MinuteOfHour: Number("int"), // required * }, * ], * NumberOfOnCalls: Number("int"), // required * ShiftCoverages: { // ShiftCoveragesMap * "": [ // CoverageTimes * { // CoverageTime * Start: "", * End: "", * }, * ], * }, * RecurrenceMultiplier: Number("int"), // required * }, * Tags: [ // TagsList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * IdempotencyToken: "STRING_VALUE", * }; * const command = new CreateRotationCommand(input); * const response = await client.send(command); * // { // CreateRotationResult * // RotationArn: "STRING_VALUE", // required * // }; * * ``` * * @param CreateRotationCommandInput - {@link CreateRotationCommandInput} * @returns {@link CreateRotationCommandOutput} * @see {@link CreateRotationCommandInput} for command's `input` shape. * @see {@link CreateRotationCommandOutput} for command's `response` shape. * @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient access to perform this operation.

* * @throws {@link InternalServerException} (server fault) *

Unexpected error occurred while processing the request.

* * @throws {@link ResourceNotFoundException} (client fault) *

Request references a resource that doesn't exist.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

Request would cause a service quota to be exceeded.

* * @throws {@link ThrottlingException} (client fault) *

The request was denied due to request throttling.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints specified by an Amazon Web Services * service.

* * @throws {@link SSMContactsServiceException} *

Base exception class for all service exceptions from SSMContacts service.

* * * @public */ export declare class CreateRotationCommand extends CreateRotationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateRotationRequest; output: CreateRotationResult; }; sdk: { input: CreateRotationCommandInput; output: CreateRotationCommandOutput; }; }; }