Class: Aws::Backup::Types::ControlScope
- Inherits:
-
Struct
- Object
- Struct
- Aws::Backup::Types::ControlScope
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-backup/types.rb
Overview
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.
<note markdown=“1”> To set a control scope that includes all of a particular resource, leave the ‘ControlScope` empty or do not pass it when calling `CreateFramework`.
</note>
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#compliance_resource_ids ⇒ Array<String>
The ID of the only Amazon Web Services resource that you want your control scope to contain.
-
#compliance_resource_types ⇒ Array<String>
Describes whether the control scope includes one or more types of resources, such as ‘EFS` or `RDS`.
-
#tags ⇒ Hash<String,String>
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule.
Instance Attribute Details
#compliance_resource_ids ⇒ Array<String>
The ID of the only Amazon Web Services resource that you want your control scope to contain.
1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/aws-sdk-backup/types.rb', line 1256 class ControlScope < Struct.new( :compliance_resource_ids, :compliance_resource_types, :tags) SENSITIVE = [] include Aws::Structure end |
#compliance_resource_types ⇒ Array<String>
Describes whether the control scope includes one or more types of resources, such as ‘EFS` or `RDS`.
1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/aws-sdk-backup/types.rb', line 1256 class ControlScope < Struct.new( :compliance_resource_ids, :compliance_resource_types, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Hash<String,String>
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 if you are creating or editing a framework from the console (though the value can be an empty string when included in a CloudFormation template).
The structure to assign a tag is: ‘[“Key”:“string”,“Value”:“string”]`.
1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/aws-sdk-backup/types.rb', line 1256 class ControlScope < Struct.new( :compliance_resource_ids, :compliance_resource_types, :tags) SENSITIVE = [] include Aws::Structure end |