Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Modify a setting for an Amazon Aurora global cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.
This action only applies to Aurora DB clusters.
Synopsis
- data ModifyGlobalCluster = ModifyGlobalCluster' {}
- newModifyGlobalCluster :: ModifyGlobalCluster
- modifyGlobalCluster_engineVersion :: Lens' ModifyGlobalCluster (Maybe Text)
- modifyGlobalCluster_deletionProtection :: Lens' ModifyGlobalCluster (Maybe Bool)
- modifyGlobalCluster_globalClusterIdentifier :: Lens' ModifyGlobalCluster (Maybe Text)
- modifyGlobalCluster_allowMajorVersionUpgrade :: Lens' ModifyGlobalCluster (Maybe Bool)
- modifyGlobalCluster_newGlobalClusterIdentifier :: Lens' ModifyGlobalCluster (Maybe Text)
- data ModifyGlobalClusterResponse = ModifyGlobalClusterResponse' {}
- newModifyGlobalClusterResponse :: Int -> ModifyGlobalClusterResponse
- modifyGlobalClusterResponse_globalCluster :: Lens' ModifyGlobalClusterResponse (Maybe GlobalCluster)
- modifyGlobalClusterResponse_httpStatus :: Lens' ModifyGlobalClusterResponse Int
Creating a Request
data ModifyGlobalCluster Source #
See: newModifyGlobalCluster
smart constructor.
ModifyGlobalCluster' | |
|
Instances
newModifyGlobalCluster :: ModifyGlobalCluster Source #
Create a value of ModifyGlobalCluster
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:engineVersion:ModifyGlobalCluster'
, modifyGlobalCluster_engineVersion
- The version number of the database engine to which you want to upgrade.
Changing this parameter results in an outage. The change is applied
during the next maintenance window unless ApplyImmediately
is enabled.
To list all of the available engine versions for aurora
(for MySQL
5.6-compatible Aurora), use the following command:
aws rds describe-db-engine-versions --engine aurora --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'
To list all of the available engine versions for aurora-mysql
(for
MySQL 5.7-compatible Aurora), use the following command:
aws rds describe-db-engine-versions --engine aurora-mysql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'
To list all of the available engine versions for aurora-postgresql
,
use the following command:
aws rds describe-db-engine-versions --engine aurora-postgresql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'
$sel:deletionProtection:ModifyGlobalCluster'
, modifyGlobalCluster_deletionProtection
- Indicates if the global database cluster has deletion protection
enabled. The global database cluster can't be deleted when deletion
protection is enabled.
$sel:globalClusterIdentifier:ModifyGlobalCluster'
, modifyGlobalCluster_globalClusterIdentifier
- The DB cluster identifier for the global cluster being modified. This
parameter isn't case-sensitive.
Constraints:
- Must match the identifier of an existing global database cluster.
$sel:allowMajorVersionUpgrade:ModifyGlobalCluster'
, modifyGlobalCluster_allowMajorVersionUpgrade
- A value that indicates whether major version upgrades are allowed.
Constraints: You must allow major version upgrades when specifying a
value for the EngineVersion
parameter that is a different major
version than the DB cluster's current version.
If you upgrade the major version of a global database, the cluster and DB instance parameter groups are set to the default parameter groups for the new version. Apply any custom parameter groups after completing the upgrade.
$sel:newGlobalClusterIdentifier':ModifyGlobalCluster'
, modifyGlobalCluster_newGlobalClusterIdentifier
- The new cluster identifier for the global database cluster when
modifying a global database cluster. This value is stored as a lowercase
string.
Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens
- The first character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example: my-cluster2
Request Lenses
modifyGlobalCluster_engineVersion :: Lens' ModifyGlobalCluster (Maybe Text) Source #
The version number of the database engine to which you want to upgrade.
Changing this parameter results in an outage. The change is applied
during the next maintenance window unless ApplyImmediately
is enabled.
To list all of the available engine versions for aurora
(for MySQL
5.6-compatible Aurora), use the following command:
aws rds describe-db-engine-versions --engine aurora --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'
To list all of the available engine versions for aurora-mysql
(for
MySQL 5.7-compatible Aurora), use the following command:
aws rds describe-db-engine-versions --engine aurora-mysql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'
To list all of the available engine versions for aurora-postgresql
,
use the following command:
aws rds describe-db-engine-versions --engine aurora-postgresql --query '*[]|[?SupportsGlobalDatabases == `true`].[EngineVersion]'
modifyGlobalCluster_deletionProtection :: Lens' ModifyGlobalCluster (Maybe Bool) Source #
Indicates if the global database cluster has deletion protection enabled. The global database cluster can't be deleted when deletion protection is enabled.
modifyGlobalCluster_globalClusterIdentifier :: Lens' ModifyGlobalCluster (Maybe Text) Source #
The DB cluster identifier for the global cluster being modified. This parameter isn't case-sensitive.
Constraints:
- Must match the identifier of an existing global database cluster.
modifyGlobalCluster_allowMajorVersionUpgrade :: Lens' ModifyGlobalCluster (Maybe Bool) Source #
A value that indicates whether major version upgrades are allowed.
Constraints: You must allow major version upgrades when specifying a
value for the EngineVersion
parameter that is a different major
version than the DB cluster's current version.
If you upgrade the major version of a global database, the cluster and DB instance parameter groups are set to the default parameter groups for the new version. Apply any custom parameter groups after completing the upgrade.
modifyGlobalCluster_newGlobalClusterIdentifier :: Lens' ModifyGlobalCluster (Maybe Text) Source #
The new cluster identifier for the global database cluster when modifying a global database cluster. This value is stored as a lowercase string.
Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens
- The first character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example: my-cluster2
Destructuring the Response
data ModifyGlobalClusterResponse Source #
See: newModifyGlobalClusterResponse
smart constructor.
ModifyGlobalClusterResponse' | |
|
Instances
newModifyGlobalClusterResponse Source #
Create a value of ModifyGlobalClusterResponse
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:globalCluster:ModifyGlobalClusterResponse'
, modifyGlobalClusterResponse_globalCluster
- Undocumented member.
$sel:httpStatus:ModifyGlobalClusterResponse'
, modifyGlobalClusterResponse_httpStatus
- The response's http status code.
Response Lenses
modifyGlobalClusterResponse_globalCluster :: Lens' ModifyGlobalClusterResponse (Maybe GlobalCluster) Source #
Undocumented member.
modifyGlobalClusterResponse_httpStatus :: Lens' ModifyGlobalClusterResponse Int Source #
The response's http status code.