Interface CfnFramework.ControlScopeProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnFramework.ControlScopeProperty.Jsii$Proxy
Enclosing class:
CfnFramework

@Stability(Stable) public static interface CfnFramework.ControlScopeProperty extends software.amazon.jsii.JsiiSerializable
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 .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.backup.*;
 ControlScopeProperty controlScopeProperty = ControlScopeProperty.builder()
         .complianceResourceIds(List.of("complianceResourceIds"))
         .complianceResourceTypes(List.of("complianceResourceTypes"))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also: