amazonka-accessanalyzer-2.0: Amazon Access Analyzer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

Description

 
Synopsis

Documentation

data EbsSnapshotConfiguration Source #

The proposed access control configuration for an Amazon EBS volume snapshot. You can propose a configuration for a new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by specifying the user IDs, groups, and optional KMS encryption key. For more information, see ModifySnapshotAttribute.

See: newEbsSnapshotConfiguration smart constructor.

Constructors

EbsSnapshotConfiguration' 

Fields

  • groups :: Maybe [Text]

    The groups that have access to the Amazon EBS volume snapshot. If the value all is specified, then the Amazon EBS volume snapshot is public.

    • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups, then the access preview uses the existing shared groups for the snapshot.
    • If the access preview is for a new resource and you do not specify the groups, then the access preview considers the snapshot without any groups.
    • To propose deletion of existing shared groups, you can specify an empty list for groups.
  • kmsKeyId :: Maybe Text

    The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

    • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot.
    • If the access preview is for a new resource and you do not specify the kmsKeyId, the access preview considers the snapshot as unencrypted.
  • userIds :: Maybe [Text]

    The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.

    • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the userIds, then the access preview uses the existing shared userIds for the snapshot.
    • If the access preview is for a new resource and you do not specify the userIds, then the access preview considers the snapshot without any userIds.
    • To propose deletion of existing shared accountIds, you can specify an empty list for userIds.

Instances

Instances details
FromJSON EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

ToJSON EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

Generic EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

Associated Types

type Rep EbsSnapshotConfiguration :: Type -> Type #

Read EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

Show EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

NFData EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

Eq EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

Hashable EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

type Rep EbsSnapshotConfiguration Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration

type Rep EbsSnapshotConfiguration = D1 ('MetaData "EbsSnapshotConfiguration" "Amazonka.AccessAnalyzer.Types.EbsSnapshotConfiguration" "amazonka-accessanalyzer-2.0-A0JZirwj4a95MolJaaBere" 'False) (C1 ('MetaCons "EbsSnapshotConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "userIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))

newEbsSnapshotConfiguration :: EbsSnapshotConfiguration Source #

Create a value of EbsSnapshotConfiguration 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:groups:EbsSnapshotConfiguration', ebsSnapshotConfiguration_groups - The groups that have access to the Amazon EBS volume snapshot. If the value all is specified, then the Amazon EBS volume snapshot is public.

  • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups, then the access preview uses the existing shared groups for the snapshot.
  • If the access preview is for a new resource and you do not specify the groups, then the access preview considers the snapshot without any groups.
  • To propose deletion of existing shared groups, you can specify an empty list for groups.

$sel:kmsKeyId:EbsSnapshotConfiguration', ebsSnapshotConfiguration_kmsKeyId - The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

  • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot.
  • If the access preview is for a new resource and you do not specify the kmsKeyId, the access preview considers the snapshot as unencrypted.

$sel:userIds:EbsSnapshotConfiguration', ebsSnapshotConfiguration_userIds - The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.

  • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the userIds, then the access preview uses the existing shared userIds for the snapshot.
  • If the access preview is for a new resource and you do not specify the userIds, then the access preview considers the snapshot without any userIds.
  • To propose deletion of existing shared accountIds, you can specify an empty list for userIds.

ebsSnapshotConfiguration_groups :: Lens' EbsSnapshotConfiguration (Maybe [Text]) Source #

The groups that have access to the Amazon EBS volume snapshot. If the value all is specified, then the Amazon EBS volume snapshot is public.

  • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups, then the access preview uses the existing shared groups for the snapshot.
  • If the access preview is for a new resource and you do not specify the groups, then the access preview considers the snapshot without any groups.
  • To propose deletion of existing shared groups, you can specify an empty list for groups.

ebsSnapshotConfiguration_kmsKeyId :: Lens' EbsSnapshotConfiguration (Maybe Text) Source #

The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

  • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot.
  • If the access preview is for a new resource and you do not specify the kmsKeyId, the access preview considers the snapshot as unencrypted.

ebsSnapshotConfiguration_userIds :: Lens' EbsSnapshotConfiguration (Maybe [Text]) Source #

The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.

  • If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the userIds, then the access preview uses the existing shared userIds for the snapshot.
  • If the access preview is for a new resource and you do not specify the userIds, then the access preview considers the snapshot without any userIds.
  • To propose deletion of existing shared accountIds, you can specify an empty list for userIds.