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 |
Creates a blue/green deployment.
A blue/green deployment creates a staging environment that copies the production environment. In a blue/green deployment, the blue environment is the current production environment. The green environment is the staging environment. The staging environment stays in sync with the current production environment using logical replication.
You can make changes to the databases in the green environment without affecting production workloads. For example, you can upgrade the major or minor DB engine version, change database parameters, or make schema changes in the staging environment. You can thoroughly test changes in the green environment. When ready, you can switch over the environments to promote the green environment to be the new production environment. The switchover typically takes under a minute.
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 CreateBlueGreenDeployment = CreateBlueGreenDeployment' {}
- newCreateBlueGreenDeployment :: Text -> Text -> CreateBlueGreenDeployment
- createBlueGreenDeployment_tags :: Lens' CreateBlueGreenDeployment (Maybe [Tag])
- createBlueGreenDeployment_targetDBClusterParameterGroupName :: Lens' CreateBlueGreenDeployment (Maybe Text)
- createBlueGreenDeployment_targetDBParameterGroupName :: Lens' CreateBlueGreenDeployment (Maybe Text)
- createBlueGreenDeployment_targetEngineVersion :: Lens' CreateBlueGreenDeployment (Maybe Text)
- createBlueGreenDeployment_blueGreenDeploymentName :: Lens' CreateBlueGreenDeployment Text
- createBlueGreenDeployment_source :: Lens' CreateBlueGreenDeployment Text
- data CreateBlueGreenDeploymentResponse = CreateBlueGreenDeploymentResponse' {}
- newCreateBlueGreenDeploymentResponse :: Int -> CreateBlueGreenDeploymentResponse
- createBlueGreenDeploymentResponse_blueGreenDeployment :: Lens' CreateBlueGreenDeploymentResponse (Maybe BlueGreenDeployment)
- createBlueGreenDeploymentResponse_httpStatus :: Lens' CreateBlueGreenDeploymentResponse Int
Creating a Request
data CreateBlueGreenDeployment Source #
See: newCreateBlueGreenDeployment
smart constructor.
CreateBlueGreenDeployment' | |
|
Instances
newCreateBlueGreenDeployment Source #
Create a value of CreateBlueGreenDeployment
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:tags:CreateBlueGreenDeployment'
, createBlueGreenDeployment_tags
- Tags to assign to the blue/green deployment.
$sel:targetDBClusterParameterGroupName:CreateBlueGreenDeployment'
, createBlueGreenDeployment_targetDBClusterParameterGroupName
- The DB cluster parameter group associated with the Aurora DB cluster in
the green environment.
To test parameter changes, specify a DB cluster parameter group that is different from the one associated with the source DB cluster.
$sel:targetDBParameterGroupName:CreateBlueGreenDeployment'
, createBlueGreenDeployment_targetDBParameterGroupName
- The DB parameter group associated with the DB instance in the green
environment.
To test parameter changes, specify a DB parameter group that is different from the one associated with the source DB instance.
$sel:targetEngineVersion:CreateBlueGreenDeployment'
, createBlueGreenDeployment_targetEngineVersion
- The engine version of the database in the green environment.
Specify the engine version to upgrade to in the green environment.
CreateBlueGreenDeployment
, createBlueGreenDeployment_blueGreenDeploymentName
- The name of the blue/green deployment.
Constraints:
- Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region.
CreateBlueGreenDeployment
, createBlueGreenDeployment_source
- The Amazon Resource Name (ARN) of the source production database.
Specify the database that you want to clone. The blue/green deployment creates this database in the green environment. You can make updates to the database in the green environment, such as an engine version upgrade. When you are ready, you can switch the database in the green environment to be the production database.
Request Lenses
createBlueGreenDeployment_tags :: Lens' CreateBlueGreenDeployment (Maybe [Tag]) Source #
Tags to assign to the blue/green deployment.
createBlueGreenDeployment_targetDBClusterParameterGroupName :: Lens' CreateBlueGreenDeployment (Maybe Text) Source #
The DB cluster parameter group associated with the Aurora DB cluster in the green environment.
To test parameter changes, specify a DB cluster parameter group that is different from the one associated with the source DB cluster.
createBlueGreenDeployment_targetDBParameterGroupName :: Lens' CreateBlueGreenDeployment (Maybe Text) Source #
The DB parameter group associated with the DB instance in the green environment.
To test parameter changes, specify a DB parameter group that is different from the one associated with the source DB instance.
createBlueGreenDeployment_targetEngineVersion :: Lens' CreateBlueGreenDeployment (Maybe Text) Source #
The engine version of the database in the green environment.
Specify the engine version to upgrade to in the green environment.
createBlueGreenDeployment_blueGreenDeploymentName :: Lens' CreateBlueGreenDeployment Text Source #
The name of the blue/green deployment.
Constraints:
- Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region.
createBlueGreenDeployment_source :: Lens' CreateBlueGreenDeployment Text Source #
The Amazon Resource Name (ARN) of the source production database.
Specify the database that you want to clone. The blue/green deployment creates this database in the green environment. You can make updates to the database in the green environment, such as an engine version upgrade. When you are ready, you can switch the database in the green environment to be the production database.
Destructuring the Response
data CreateBlueGreenDeploymentResponse Source #
See: newCreateBlueGreenDeploymentResponse
smart constructor.
CreateBlueGreenDeploymentResponse' | |
|
Instances
Generic CreateBlueGreenDeploymentResponse Source # | |
Read CreateBlueGreenDeploymentResponse Source # | |
Show CreateBlueGreenDeploymentResponse Source # | |
Defined in Amazonka.RDS.CreateBlueGreenDeployment | |
NFData CreateBlueGreenDeploymentResponse Source # | |
Defined in Amazonka.RDS.CreateBlueGreenDeployment rnf :: CreateBlueGreenDeploymentResponse -> () # | |
Eq CreateBlueGreenDeploymentResponse Source # | |
type Rep CreateBlueGreenDeploymentResponse Source # | |
Defined in Amazonka.RDS.CreateBlueGreenDeployment type Rep CreateBlueGreenDeploymentResponse = D1 ('MetaData "CreateBlueGreenDeploymentResponse" "Amazonka.RDS.CreateBlueGreenDeployment" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "CreateBlueGreenDeploymentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "blueGreenDeployment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BlueGreenDeployment)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateBlueGreenDeploymentResponse Source #
Create a value of CreateBlueGreenDeploymentResponse
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:CreateBlueGreenDeploymentResponse'
, createBlueGreenDeploymentResponse_blueGreenDeployment
- Undocumented member.
$sel:httpStatus:CreateBlueGreenDeploymentResponse'
, createBlueGreenDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
createBlueGreenDeploymentResponse_blueGreenDeployment :: Lens' CreateBlueGreenDeploymentResponse (Maybe BlueGreenDeployment) Source #
Undocumented member.
createBlueGreenDeploymentResponse_httpStatus :: Lens' CreateBlueGreenDeploymentResponse Int Source #
The response's http status code.