| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Config.Types.Scope
Description
Documentation
Defines which resources trigger an evaluation for an Config rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.
See: newScope smart constructor.
Constructors
| Scope' | |
Fields
| |
Instances
| FromJSON Scope Source # | |
| ToJSON Scope Source # | |
Defined in Amazonka.Config.Types.Scope | |
| Generic Scope Source # | |
| Read Scope Source # | |
| Show Scope Source # | |
| NFData Scope Source # | |
Defined in Amazonka.Config.Types.Scope | |
| Eq Scope Source # | |
| Hashable Scope Source # | |
Defined in Amazonka.Config.Types.Scope | |
| type Rep Scope Source # | |
Defined in Amazonka.Config.Types.Scope type Rep Scope = D1 ('MetaData "Scope" "Amazonka.Config.Types.Scope" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "Scope'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "complianceResourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "complianceResourceTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "tagKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tagValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) | |
Create a value of Scope 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:complianceResourceId:Scope', scope_complianceResourceId - The ID of the only Amazon Web Services resource that you want to trigger
an evaluation for the rule. If you specify a resource ID, you must
specify one resource type for ComplianceResourceTypes.
$sel:complianceResourceTypes:Scope', scope_complianceResourceTypes - The resource types of only those Amazon Web Services resources that you
want to trigger an evaluation for the rule. You can only specify one
type if you also specify a resource ID for ComplianceResourceId.
$sel:tagKey:Scope', scope_tagKey - The tag key that is applied to only those Amazon Web Services resources
that you want to trigger an evaluation for the rule.
$sel:tagValue:Scope', scope_tagValue - The tag value applied to only those Amazon Web Services resources that
you want to trigger an evaluation for the rule. If you specify a value
for TagValue, you must also specify a value for TagKey.
scope_complianceResourceId :: Lens' Scope (Maybe Text) Source #
The ID of the only Amazon Web Services resource that you want to trigger
an evaluation for the rule. If you specify a resource ID, you must
specify one resource type for ComplianceResourceTypes.
scope_complianceResourceTypes :: Lens' Scope (Maybe [Text]) Source #
The resource types of only those Amazon Web Services resources that you
want to trigger an evaluation for the rule. You can only specify one
type if you also specify a resource ID for ComplianceResourceId.