import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteBlueGreenDeploymentCommand}. */ export interface DeleteBlueGreenDeploymentCommandInput extends DeleteBlueGreenDeploymentRequest { } /** * @public * * The output of {@link DeleteBlueGreenDeploymentCommand}. */ export interface DeleteBlueGreenDeploymentCommandOutput extends DeleteBlueGreenDeploymentResponse, __MetadataBearer { } declare const DeleteBlueGreenDeploymentCommand_base: { new (input: DeleteBlueGreenDeploymentCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteBlueGreenDeploymentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Deletes a blue/green deployment.

For more information, see Using Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS User Guide and Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, DeleteBlueGreenDeploymentCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, DeleteBlueGreenDeploymentCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // DeleteBlueGreenDeploymentRequest * BlueGreenDeploymentIdentifier: "STRING_VALUE", // required * DeleteTarget: true || false, * }; * const command = new DeleteBlueGreenDeploymentCommand(input); * const response = await client.send(command); * // { // DeleteBlueGreenDeploymentResponse * // BlueGreenDeployment: { // BlueGreenDeployment * // BlueGreenDeploymentIdentifier: "STRING_VALUE", * // BlueGreenDeploymentName: "STRING_VALUE", * // Source: "STRING_VALUE", * // Target: "STRING_VALUE", * // SwitchoverDetails: [ // SwitchoverDetailList * // { // SwitchoverDetail * // SourceMember: "STRING_VALUE", * // TargetMember: "STRING_VALUE", * // Status: "STRING_VALUE", * // }, * // ], * // Tasks: [ // BlueGreenDeploymentTaskList * // { // BlueGreenDeploymentTask * // Name: "STRING_VALUE", * // Status: "STRING_VALUE", * // }, * // ], * // Status: "STRING_VALUE", * // StatusDetails: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // DeleteTime: new Date("TIMESTAMP"), * // TagList: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param DeleteBlueGreenDeploymentCommandInput - {@link DeleteBlueGreenDeploymentCommandInput} * @returns {@link DeleteBlueGreenDeploymentCommandOutput} * @see {@link DeleteBlueGreenDeploymentCommandInput} for command's `input` shape. * @see {@link DeleteBlueGreenDeploymentCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link BlueGreenDeploymentNotFoundFault} (client fault) *

BlueGreenDeploymentIdentifier doesn't refer to an existing blue/green deployment.

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

The blue/green deployment can't be switched over or deleted because there is an invalid configuration in the green environment.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To delete resources in green environment for an RDS for MySQL DB instance * ```javascript * // The following example deletes the resources in a green environment for an RDS for MySQL DB instance. * const input = { * BlueGreenDeploymentIdentifier: "bgd-v53303651eexfake", * DeleteTarget: true * }; * const command = new DeleteBlueGreenDeploymentCommand(input); * const response = await client.send(command); * /* response is * { * BlueGreenDeployment: { * BlueGreenDeploymentIdentifier: "bgd-v53303651eexfake", * BlueGreenDeploymentName: "bgd-cli-test-instance", * CreateTime: "2022-02-25T21:18:51.183Z", * DeleteTime: "2022-02-25T22:25:31.331Z", * Source: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance", * Status: "DELETING", * SwitchoverDetails: [ * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-green-rkfbpe" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-1-green-j382ha" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-2-green-ejv4ao" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-replica-3-green-vlpz3t" * } * ], * Target: "arn:aws:rds:us-east-1:123456789012:db:my-db-instance-green-rkfbpe", * Tasks: [ * { * Name: "CREATING_READ_REPLICA_OF_SOURCE", * Status: "COMPLETED" * }, * { * Name: "DB_ENGINE_VERSION_UPGRADE", * Status: "COMPLETED" * }, * { * Name: "CONFIGURE_BACKUPS", * Status: "COMPLETED" * }, * { * Name: "CREATING_TOPOLOGY_OF_SOURCE", * Status: "COMPLETED" * } * ] * } * } * *\/ * ``` * * @example To delete resources in green environment for an Aurora MySQL DB cluster * ```javascript * // The following example deletes the resources in a green environment for an Aurora MySQL DB cluster. * const input = { * BlueGreenDeploymentIdentifier: "bgd-wi89nwzglccsfake", * DeleteTarget: true * }; * const command = new DeleteBlueGreenDeploymentCommand(input); * const response = await client.send(command); * /* response is * { * BlueGreenDeployment: { * BlueGreenDeploymentIdentifier: "bgd-wi89nwzglccsfake", * BlueGreenDeploymentName: "my-blue-green-deployment", * CreateTime: "2022-02-25T21:12:00.288Z", * DeleteTime: "2022-02-25T22:29:11.336Z", * Source: "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster", * Status: "DELETING", * SwitchoverDetails: [ * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-1-green-gpmaxf" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-2-green-j2oajq" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:db:my-aurora-mysql-cluster-3-green-mkxies" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-excluded-member-endpoint-green-4sqjrq" * }, * { * SourceMember: "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint", * Status: "AVAILABLE", * TargetMember: "arn:aws:rds:us-east-1:123456789012:cluster-endpoint:my-reader-endpoint-green-gwwzlg" * } * ], * Target: "arn:aws:rds:us-east-1:123456789012:cluster:my-aurora-mysql-cluster-green-3rnukl", * Tasks: [ * { * Name: "CREATING_READ_REPLICA_OF_SOURCE", * Status: "COMPLETED" * }, * { * Name: "DB_ENGINE_VERSION_UPGRADE", * Status: "COMPLETED" * }, * { * Name: "CREATE_DB_INSTANCES_FOR_CLUSTER", * Status: "COMPLETED" * }, * { * Name: "CREATE_CUSTOM_ENDPOINTS", * Status: "COMPLETED" * } * ] * } * } * *\/ * ``` * * @public */ export declare class DeleteBlueGreenDeploymentCommand extends DeleteBlueGreenDeploymentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteBlueGreenDeploymentRequest; output: DeleteBlueGreenDeploymentResponse; }; sdk: { input: DeleteBlueGreenDeploymentCommandInput; output: DeleteBlueGreenDeploymentCommandOutput; }; }; }