libZSservicesZSamazonka-docdbZSamazonka-docdb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DocumentDB.ModifyGlobalCluster

Description

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

Creating a Request

data ModifyGlobalCluster Source #

Represents the input to ModifyGlobalCluster.

See: newModifyGlobalCluster smart constructor.

Constructors

ModifyGlobalCluster' 

Fields

  • deletionProtection :: Maybe Bool

    Indicates if the global cluster has deletion protection enabled. The global cluster can't be deleted when deletion protection is enabled.

  • newGlobalClusterIdentifier' :: Maybe Text

    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

  • globalClusterIdentifier :: Text

    The identifier for the global cluster being modified. This parameter isn't case-sensitive.

    Constraints:

    • Must match the identifier of an existing global cluster.

Instances

Instances details
Eq ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Read ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Show ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Generic ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Associated Types

type Rep ModifyGlobalCluster :: Type -> Type #

NFData ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Methods

rnf :: ModifyGlobalCluster -> () #

Hashable ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

AWSRequest ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Associated Types

type AWSResponse ModifyGlobalCluster #

ToHeaders ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

ToPath ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

ToQuery ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

type Rep ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

type Rep ModifyGlobalCluster = D1 ('MetaData "ModifyGlobalCluster" "Amazonka.DocumentDB.ModifyGlobalCluster" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "ModifyGlobalCluster'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deletionProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "newGlobalClusterIdentifier'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "globalClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ModifyGlobalCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

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.

Constructors

ModifyGlobalClusterResponse' 

Fields

Instances

Instances details
Eq ModifyGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Read ModifyGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Show ModifyGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Generic ModifyGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

Associated Types

type Rep ModifyGlobalClusterResponse :: Type -> Type #

NFData ModifyGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

type Rep ModifyGlobalClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.ModifyGlobalCluster

type Rep ModifyGlobalClusterResponse = D1 ('MetaData "ModifyGlobalClusterResponse" "Amazonka.DocumentDB.ModifyGlobalCluster" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "ModifyGlobalClusterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "globalCluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GlobalCluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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