| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
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
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: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: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: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.
$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.
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.
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.