import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateScheduleInput, UpdateScheduleOutput } from "../models/models_0"; import type { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchedulerClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateScheduleCommand}. */ export interface UpdateScheduleCommandInput extends UpdateScheduleInput { } /** * @public * * The output of {@link UpdateScheduleCommand}. */ export interface UpdateScheduleCommandOutput extends UpdateScheduleOutput, __MetadataBearer { } declare const UpdateScheduleCommand_base: { new (input: UpdateScheduleCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateScheduleCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

* Updates the specified schedule. When you call UpdateSchedule, EventBridge Scheduler uses all values, including empty values, specified in the request and * overrides the existing schedule. This is by design. This means that if you do not set an optional field in your request, that field will be set to * its system-default value after the update. *

*

* Before calling this operation, we recommend that you call the GetSchedule API operation and make a note of all optional parameters * for your UpdateSchedule call. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler"; // ES Modules import * // const { SchedulerClient, UpdateScheduleCommand } = require("@aws-sdk/client-scheduler"); // CommonJS import * // import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler"; * const config = {}; // type is SchedulerClientConfig * const client = new SchedulerClient(config); * const input = { // UpdateScheduleInput * Name: "STRING_VALUE", // required * GroupName: "STRING_VALUE", * ScheduleExpression: "STRING_VALUE", // required * StartDate: new Date("TIMESTAMP"), * EndDate: new Date("TIMESTAMP"), * Description: "STRING_VALUE", * ScheduleExpressionTimezone: "STRING_VALUE", * State: "STRING_VALUE", * KmsKeyArn: "STRING_VALUE", * Target: { // Target * Arn: "STRING_VALUE", // required * RoleArn: "STRING_VALUE", // required * DeadLetterConfig: { // DeadLetterConfig * Arn: "STRING_VALUE", * }, * RetryPolicy: { // RetryPolicy * MaximumEventAgeInSeconds: Number("int"), * MaximumRetryAttempts: Number("int"), * }, * Input: "STRING_VALUE", * EcsParameters: { // EcsParameters * TaskDefinitionArn: "STRING_VALUE", // required * TaskCount: Number("int"), * LaunchType: "STRING_VALUE", * NetworkConfiguration: { // NetworkConfiguration * awsvpcConfiguration: { // AwsVpcConfiguration * Subnets: [ // Subnets // required * "STRING_VALUE", * ], * SecurityGroups: [ // SecurityGroups * "STRING_VALUE", * ], * AssignPublicIp: "STRING_VALUE", * }, * }, * PlatformVersion: "STRING_VALUE", * Group: "STRING_VALUE", * CapacityProviderStrategy: [ // CapacityProviderStrategy * { // CapacityProviderStrategyItem * capacityProvider: "STRING_VALUE", // required * weight: Number("int"), * base: Number("int"), * }, * ], * EnableECSManagedTags: true || false, * EnableExecuteCommand: true || false, * PlacementConstraints: [ // PlacementConstraints * { // PlacementConstraint * type: "STRING_VALUE", * expression: "STRING_VALUE", * }, * ], * PlacementStrategy: [ // PlacementStrategies * { // PlacementStrategy * type: "STRING_VALUE", * field: "STRING_VALUE", * }, * ], * PropagateTags: "STRING_VALUE", * ReferenceId: "STRING_VALUE", * Tags: [ // Tags * { // TagMap * "": "STRING_VALUE", * }, * ], * }, * EventBridgeParameters: { // EventBridgeParameters * DetailType: "STRING_VALUE", // required * Source: "STRING_VALUE", // required * }, * KinesisParameters: { // KinesisParameters * PartitionKey: "STRING_VALUE", // required * }, * SageMakerPipelineParameters: { // SageMakerPipelineParameters * PipelineParameterList: [ // SageMakerPipelineParameterList * { // SageMakerPipelineParameter * Name: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }, * SqsParameters: { // SqsParameters * MessageGroupId: "STRING_VALUE", * }, * }, * FlexibleTimeWindow: { // FlexibleTimeWindow * Mode: "STRING_VALUE", // required * MaximumWindowInMinutes: Number("int"), * }, * ClientToken: "STRING_VALUE", * ActionAfterCompletion: "STRING_VALUE", * }; * const command = new UpdateScheduleCommand(input); * const response = await client.send(command); * // { // UpdateScheduleOutput * // ScheduleArn: "STRING_VALUE", // required * // }; * * ``` * * @param UpdateScheduleCommandInput - {@link UpdateScheduleCommandInput} * @returns {@link UpdateScheduleCommandOutput} * @see {@link UpdateScheduleCommandInput} for command's `input` shape. * @see {@link UpdateScheduleCommandOutput} for command's `response` shape. * @see {@link SchedulerClientResolvedConfig | config} for SchedulerClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

Updating or deleting the resource can cause an inconsistent state.

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

Unexpected error encountered while processing the request.

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

The request references a resource which does not exist.

* * @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 AWS service.

* * @throws {@link SchedulerServiceException} *

Base exception class for all service exceptions from Scheduler service.

* * * @public */ export declare class UpdateScheduleCommand extends UpdateScheduleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateScheduleInput; output: UpdateScheduleOutput; }; sdk: { input: UpdateScheduleCommandInput; output: UpdateScheduleCommandOutput; }; }; }