Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Switches over a blue/green deployment.
Before you switch over, production traffic is routed to the databases in the blue environment. After you switch over, production traffic is routed to the databases in the green environment.
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.
Synopsis
- data SwitchoverBlueGreenDeployment = SwitchoverBlueGreenDeployment' {}
- newSwitchoverBlueGreenDeployment :: Text -> SwitchoverBlueGreenDeployment
- switchoverBlueGreenDeployment_switchoverTimeout :: Lens' SwitchoverBlueGreenDeployment (Maybe Natural)
- switchoverBlueGreenDeployment_blueGreenDeploymentIdentifier :: Lens' SwitchoverBlueGreenDeployment Text
- data SwitchoverBlueGreenDeploymentResponse = SwitchoverBlueGreenDeploymentResponse' {}
- newSwitchoverBlueGreenDeploymentResponse :: Int -> SwitchoverBlueGreenDeploymentResponse
- switchoverBlueGreenDeploymentResponse_blueGreenDeployment :: Lens' SwitchoverBlueGreenDeploymentResponse (Maybe BlueGreenDeployment)
- switchoverBlueGreenDeploymentResponse_httpStatus :: Lens' SwitchoverBlueGreenDeploymentResponse Int
Creating a Request
data SwitchoverBlueGreenDeployment Source #
See: newSwitchoverBlueGreenDeployment
smart constructor.
SwitchoverBlueGreenDeployment' | |
|
Instances
newSwitchoverBlueGreenDeployment Source #
Create a value of SwitchoverBlueGreenDeployment
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:switchoverTimeout:SwitchoverBlueGreenDeployment'
, switchoverBlueGreenDeployment_switchoverTimeout
- The amount of time, in seconds, for the switchover to complete. The
default is 300.
If the switchover takes longer than the specified duration, then any changes are rolled back, and no changes are made to the environments.
SwitchoverBlueGreenDeployment
, switchoverBlueGreenDeployment_blueGreenDeploymentIdentifier
- The blue/green deployment identifier.
Constraints:
- Must match an existing blue/green deployment identifier.
Request Lenses
switchoverBlueGreenDeployment_switchoverTimeout :: Lens' SwitchoverBlueGreenDeployment (Maybe Natural) Source #
The amount of time, in seconds, for the switchover to complete. The default is 300.
If the switchover takes longer than the specified duration, then any changes are rolled back, and no changes are made to the environments.
switchoverBlueGreenDeployment_blueGreenDeploymentIdentifier :: Lens' SwitchoverBlueGreenDeployment Text Source #
The blue/green deployment identifier.
Constraints:
- Must match an existing blue/green deployment identifier.
Destructuring the Response
data SwitchoverBlueGreenDeploymentResponse Source #
See: newSwitchoverBlueGreenDeploymentResponse
smart constructor.
SwitchoverBlueGreenDeploymentResponse' | |
|
Instances
newSwitchoverBlueGreenDeploymentResponse Source #
Create a value of SwitchoverBlueGreenDeploymentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blueGreenDeployment:SwitchoverBlueGreenDeploymentResponse'
, switchoverBlueGreenDeploymentResponse_blueGreenDeployment
- Undocumented member.
$sel:httpStatus:SwitchoverBlueGreenDeploymentResponse'
, switchoverBlueGreenDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
switchoverBlueGreenDeploymentResponse_blueGreenDeployment :: Lens' SwitchoverBlueGreenDeploymentResponse (Maybe BlueGreenDeployment) Source #
Undocumented member.
switchoverBlueGreenDeploymentResponse_httpStatus :: Lens' SwitchoverBlueGreenDeploymentResponse Int Source #
The response's http status code.