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
4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 | |