libZSservicesZSamazonka-backupZSamazonka-backup
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.Backup.Types.ControlScope

Description

 
Synopsis

Documentation

data ControlScope Source #

A framework consists of one or more controls. Each control has its own control scope. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.

To set a control scope that includes all of a particular resource, leave the ControlScope empty or do not pass it when calling CreateFramework.

See: newControlScope smart constructor.

Constructors

ControlScope' 

Fields

Instances

Instances details
Eq ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

Read ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

Show ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

Generic ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

Associated Types

type Rep ControlScope :: Type -> Type #

NFData ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

Methods

rnf :: ControlScope -> () #

Hashable ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

ToJSON ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

FromJSON ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

type Rep ControlScope Source # 
Instance details

Defined in Amazonka.Backup.Types.ControlScope

type Rep ControlScope = D1 ('MetaData "ControlScope" "Amazonka.Backup.Types.ControlScope" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "ControlScope'" 'PrefixI 'True) (S1 ('MetaSel ('Just "complianceResourceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "complianceResourceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))))))

newControlScope :: ControlScope Source #

Create a value of ControlScope 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:complianceResourceTypes:ControlScope', controlScope_complianceResourceTypes - Describes whether the control scope includes one or more types of resources, such as EFS or RDS.

$sel:tags:ControlScope', controlScope_tags - Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.

$sel:complianceResourceIds:ControlScope', controlScope_complianceResourceIds - The ID of the only Amazon Web Services resource that you want your control scope to contain.

controlScope_complianceResourceTypes :: Lens' ControlScope (Maybe [Text]) Source #

Describes whether the control scope includes one or more types of resources, such as EFS or RDS.

controlScope_tags :: Lens' ControlScope (Maybe (HashMap Text Text)) Source #

Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.

controlScope_complianceResourceIds :: Lens' ControlScope (Maybe (NonEmpty Text)) Source #

The ID of the only Amazon Web Services resource that you want your control scope to contain.