libZSservicesZSamazonka-rdsZSamazonka-rds
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.RDS.ModifyDBSnapshotAttribute

Description

Adds an attribute and values to, or removes an attribute and values from, a manual DB snapshot.

To share a manual DB snapshot with other Amazon Web Services accounts, specify restore as the AttributeName and use the ValuesToAdd parameter to add a list of IDs of the Amazon Web Services accounts that are authorized to restore the manual DB snapshot. Uses the value all to make the manual DB snapshot public, which means it can be copied or restored by all Amazon Web Services accounts.

Don't add the all value for any manual DB snapshots that contain private information that you don't want available to all Amazon Web Services accounts.

If the manual DB snapshot is encrypted, it can be shared, but only by specifying a list of authorized Amazon Web Services account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.

To view which Amazon Web Services accounts have access to copy or restore a manual DB snapshot, or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes API action. The accounts are returned as values for the restore attribute.

Synopsis

Creating a Request

data ModifyDBSnapshotAttribute Source #

See: newModifyDBSnapshotAttribute smart constructor.

Constructors

ModifyDBSnapshotAttribute' 

Fields

  • valuesToAdd :: Maybe [Text]

    A list of DB snapshot attributes to add to the attribute specified by AttributeName.

    To authorize other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all Amazon Web Services accounts.

  • valuesToRemove :: Maybe [Text]

    A list of DB snapshot attributes to remove from the attribute specified by AttributeName.

    To remove authorization for other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot.

  • dbSnapshotIdentifier :: Text

    The identifier for the DB snapshot to modify the attributes for.

  • attributeName :: Text

    The name of the DB snapshot attribute to modify.

    To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB snapshot, set this value to restore.

    To view the list of attributes available to modify, use the DescribeDBSnapshotAttributes API action.

Instances

Instances details
Eq ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Read ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Show ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Generic ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Associated Types

type Rep ModifyDBSnapshotAttribute :: Type -> Type #

NFData ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Hashable ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

AWSRequest ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

ToHeaders ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

ToPath ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

ToQuery ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

type Rep ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

type Rep ModifyDBSnapshotAttribute = D1 ('MetaData "ModifyDBSnapshotAttribute" "Amazonka.RDS.ModifyDBSnapshotAttribute" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "ModifyDBSnapshotAttribute'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "valuesToAdd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "valuesToRemove") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "dbSnapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ModifyDBSnapshotAttribute Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

newModifyDBSnapshotAttribute Source #

Create a value of ModifyDBSnapshotAttribute 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:valuesToAdd:ModifyDBSnapshotAttribute', modifyDBSnapshotAttribute_valuesToAdd - A list of DB snapshot attributes to add to the attribute specified by AttributeName.

To authorize other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all Amazon Web Services accounts.

$sel:valuesToRemove:ModifyDBSnapshotAttribute', modifyDBSnapshotAttribute_valuesToRemove - A list of DB snapshot attributes to remove from the attribute specified by AttributeName.

To remove authorization for other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot.

$sel:dbSnapshotIdentifier:ModifyDBSnapshotAttribute', modifyDBSnapshotAttribute_dbSnapshotIdentifier - The identifier for the DB snapshot to modify the attributes for.

$sel:attributeName:ModifyDBSnapshotAttribute', modifyDBSnapshotAttribute_attributeName - The name of the DB snapshot attribute to modify.

To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB snapshot, set this value to restore.

To view the list of attributes available to modify, use the DescribeDBSnapshotAttributes API action.

Request Lenses

modifyDBSnapshotAttribute_valuesToAdd :: Lens' ModifyDBSnapshotAttribute (Maybe [Text]) Source #

A list of DB snapshot attributes to add to the attribute specified by AttributeName.

To authorize other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account IDs, or all to make the manual DB snapshot restorable by any Amazon Web Services account. Do not add the all value for any manual DB snapshots that contain private information that you don't want available to all Amazon Web Services accounts.

modifyDBSnapshotAttribute_valuesToRemove :: Lens' ModifyDBSnapshotAttribute (Maybe [Text]) Source #

A list of DB snapshot attributes to remove from the attribute specified by AttributeName.

To remove authorization for other Amazon Web Services accounts to copy or restore a manual snapshot, set this list to include one or more Amazon Web Services account identifiers, or all to remove authorization for any Amazon Web Services account to copy or restore the DB snapshot. If you specify all, an Amazon Web Services account whose account ID is explicitly added to the restore attribute can still copy or restore the manual DB snapshot.

modifyDBSnapshotAttribute_dbSnapshotIdentifier :: Lens' ModifyDBSnapshotAttribute Text Source #

The identifier for the DB snapshot to modify the attributes for.

modifyDBSnapshotAttribute_attributeName :: Lens' ModifyDBSnapshotAttribute Text Source #

The name of the DB snapshot attribute to modify.

To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB snapshot, set this value to restore.

To view the list of attributes available to modify, use the DescribeDBSnapshotAttributes API action.

Destructuring the Response

data ModifyDBSnapshotAttributeResponse Source #

See: newModifyDBSnapshotAttributeResponse smart constructor.

Instances

Instances details
Eq ModifyDBSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Read ModifyDBSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Show ModifyDBSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Generic ModifyDBSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

Associated Types

type Rep ModifyDBSnapshotAttributeResponse :: Type -> Type #

NFData ModifyDBSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

type Rep ModifyDBSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.RDS.ModifyDBSnapshotAttribute

type Rep ModifyDBSnapshotAttributeResponse = D1 ('MetaData "ModifyDBSnapshotAttributeResponse" "Amazonka.RDS.ModifyDBSnapshotAttribute" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "ModifyDBSnapshotAttributeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSnapshotAttributesResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBSnapshotAttributesResult)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyDBSnapshotAttributeResponse Source #

Create a value of ModifyDBSnapshotAttributeResponse 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:dbSnapshotAttributesResult:ModifyDBSnapshotAttributeResponse', modifyDBSnapshotAttributeResponse_dbSnapshotAttributesResult - Undocumented member.

$sel:httpStatus:ModifyDBSnapshotAttributeResponse', modifyDBSnapshotAttributeResponse_httpStatus - The response's http status code.

Response Lenses