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 DocumentDB global cluster. You can change one or more configuration parameters (for example: deletion protection), or the global cluster identifier by specifying these parameters and the new values in the request.
This action only applies to Amazon DocumentDB clusters.
Synopsis
- data ModifyGlobalCluster = ModifyGlobalCluster' {}
- newModifyGlobalCluster :: Text -> ModifyGlobalCluster
- modifyGlobalCluster_deletionProtection :: Lens' ModifyGlobalCluster (Maybe Bool)
- modifyGlobalCluster_newGlobalClusterIdentifier :: Lens' ModifyGlobalCluster (Maybe Text)
- modifyGlobalCluster_globalClusterIdentifier :: Lens' ModifyGlobalCluster Text
- data ModifyGlobalClusterResponse = ModifyGlobalClusterResponse' {}
- newModifyGlobalClusterResponse :: Int -> ModifyGlobalClusterResponse
- modifyGlobalClusterResponse_globalCluster :: Lens' ModifyGlobalClusterResponse (Maybe GlobalCluster)
- modifyGlobalClusterResponse_httpStatus :: Lens' ModifyGlobalClusterResponse Int
Creating a Request
data ModifyGlobalCluster Source #
Represents the input to ModifyGlobalCluster.
See: newModifyGlobalCluster
smart constructor.
ModifyGlobalCluster' | |
|
Instances
newModifyGlobalCluster 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:deletionProtection:ModifyGlobalCluster'
, modifyGlobalCluster_deletionProtection
- Indicates if the global cluster has deletion protection enabled. The
global cluster can't be deleted when deletion protection is enabled.
$sel:newGlobalClusterIdentifier':ModifyGlobalCluster'
, modifyGlobalCluster_newGlobalClusterIdentifier
- The new identifier for a global cluster when you modify a global
cluster. This value is stored as a lowercase string.
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
$sel:globalClusterIdentifier:ModifyGlobalCluster'
, modifyGlobalCluster_globalClusterIdentifier
- The identifier for the global cluster being modified. This parameter
isn't case-sensitive.
Constraints:
- Must match the identifier of an existing global cluster.
Request Lenses
modifyGlobalCluster_deletionProtection :: Lens' ModifyGlobalCluster (Maybe Bool) Source #
Indicates if the global cluster has deletion protection enabled. The global cluster can't be deleted when deletion protection is enabled.
modifyGlobalCluster_newGlobalClusterIdentifier :: Lens' ModifyGlobalCluster (Maybe Text) Source #
The new identifier for a global cluster when you modify a global cluster. This value is stored as a lowercase string.
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
modifyGlobalCluster_globalClusterIdentifier :: Lens' ModifyGlobalCluster Text Source #
The identifier for the global cluster being modified. This parameter isn't case-sensitive.
Constraints:
- Must match the identifier of an existing global cluster.
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.