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
5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 | |