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 |
Synopsis
Documentation
data ControlScope Source #
A framework consists of one or more controls. Each control has its own control scope. The control 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. If no scope is specified, evaluations for the rule are triggered when any resource in your recording group changes in configuration.
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.
ControlScope' | |
|
Instances
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:complianceResourceIds:ControlScope'
, controlScope_complianceResourceIds
- The ID of the only Amazon Web Services resource that you want your
control scope to contain.
$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
- The tag key-value pair applied to those Amazon Web Services resources
that you want to trigger an evaluation for a rule. A maximum of one
key-value pair can be provided. The tag value is optional, but it cannot
be an empty string. The structure to assign a tag is:
[{"Key":"string","Value":"string"}]
.
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.
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 #
The tag key-value pair applied to those Amazon Web Services resources
that you want to trigger an evaluation for a rule. A maximum of one
key-value pair can be provided. The tag value is optional, but it cannot
be an empty string. The structure to assign a tag is:
[{"Key":"string","Value":"string"}]
.