delete_blue_green_deployment
¶
delete_blue_green_deployment(
*,
config_overrides: Optional[RDSClientConfig] = None,
blue_green_deployment_identifier: Optional[BlueGreenDeploymentIdentifier] = None,
delete_target: Optional[BooleanOptional] = None,
) -> DeleteBlueGreenDeploymentResponse
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.
Parameters:
-
blue_green_deployment_identifier(Optional[BlueGreenDeploymentIdentifier], default:None) –The unique identifier of the blue/green deployment to delete. This parameter isn't case-sensitive.
Constraints:
-
Must match an existing blue/green deployment identifier.
-
-
delete_target(Optional[BooleanOptional], default:None) –Specifies whether to delete the resources in the green environment. You can't specify this option if the blue/green deployment status is
SWITCHOVER_COMPLETED.
Raises:
-
BlueGreenDeploymentNotFoundFault–BlueGreenDeploymentIdentifierdoesn't refer to an existing blue/green deployment. -
InvalidBlueGreenDeploymentStateFault–The blue/green deployment can't be switched over or deleted because there is an invalid configuration in the green environment.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete resources in green environment for an RDS for MySQL DB instance The following example deletes the resources in a green environment for an RDS for MySQL DB instance.
>>> client.delete_blue_green_deployment(blue_green_deployment_identifier='bgd-v53303651eexfake', delete_target=True)
To delete resources in green environment for an Aurora MySQL DB cluster
The following example deletes the resources in a green environment for an Aurora MySQL DB cluster.
>>> client.delete_blue_green_deployment(blue_green_deployment_identifier='bgd-wi89nwzglccsfake', delete_target=True)
Source code in docs_src/capo_rds/_services/rds.py
4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 | |