describe_blue_green_deployments
async
¶
describe_blue_green_deployments(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
blue_green_deployment_identifier: Optional[BlueGreenDeploymentIdentifier] = None,
filters: Optional[FilterList] = None,
marker: Optional[String] = None,
max_records: Optional[MaxRecords] = None,
) -> DescribeBlueGreenDeploymentsResponse
Describes one or more blue/green deployments.
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 blue/green deployment identifier. If you specify this parameter, the response only includes information about the specific blue/green deployment. This parameter isn't case-sensitive.
Constraints:
-
Must match an existing blue/green deployment identifier.
-
-
filters(Optional[FilterList], default:None) –A filter that specifies one or more blue/green deployments to describe.
Valid Values:
-
blue-green-deployment-identifier- Accepts system-generated identifiers for blue/green deployments. The results list only includes information about the blue/green deployments with the specified identifiers. -
blue-green-deployment-name- Accepts user-supplied names for blue/green deployments. The results list only includes information about the blue/green deployments with the specified names. -
source- Accepts source databases for a blue/green deployment. The results list only includes information about the blue/green deployments with the specified source databases. -
target- Accepts target databases for a blue/green deployment. The results list only includes information about the blue/green deployments with the specified target databases.
-
-
marker(Optional[String], default:None) –An optional pagination token provided by a previous
DescribeBlueGreenDeploymentsrequest. If you specify this parameter, the response only includes records beyond the marker, up to the value specified byMaxRecords. -
max_records(Optional[MaxRecords], default:None) –The maximum number of records to include in the response. If more records exist than the specified
MaxRecordsvalue, a pagination token called a marker is included in the response so you can retrieve the remaining results.Default: 100
Constraints:
-
Must be a minimum of 20.
-
Can't exceed 100.
-
Raises:
-
BlueGreenDeploymentNotFoundFault–BlueGreenDeploymentIdentifierdoesn't refer to an existing blue/green deployment. -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a blue/green deployment of an RDS DB instance after creation completes The following example retrieves the details of a blue/green deployment after creation completes.
>>> await client.describe_blue_green_deployments(blue_green_deployment_identifier='bgd-v53303651eexfake')
To describe a blue/green deployment for an Aurora MySQL DB cluster
The following example retrieves the details of a blue/green deployment.
>>> await client.describe_blue_green_deployments(blue_green_deployment_identifier='bgd-wi89nwzglccsfake')
To describe a blue/green deployment for an Aurora MySQL cluster after switchover
The following example retrieves the details about a blue/green deployment after the green environment is promoted to be the production environment.
>>> await client.describe_blue_green_deployments(blue_green_deployment_identifier='bgd-wi89nwzglccsfake')
Source code in docs_src/capo_rds/_services/async_rds.py
5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 | |