Skip to content

Scope

Source code in docs_src/capo_config_service/types/scope.py
class Scope(TypedDict, closed=True):
    compliance_resource_types: NotRequired[
        "capo_config_service.types.compliance_resource_types.ComplianceResourceTypes"
    ]
    """<p>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 <code>ComplianceResourceId</code>.</p>"""
    tag_key: NotRequired[
        "capo_config_service.types.string_with_char_limit128.StringWithCharLimit128"
    ]
    """<p>The tag key that is applied to only those Amazon Web Services resources that you want to trigger an evaluation for the rule.</p>"""
    tag_value: NotRequired[
        "capo_config_service.types.string_with_char_limit256.StringWithCharLimit256"
    ]
    """<p>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 <code>TagValue</code>, you must also specify a value for <code>TagKey</code>.</p>"""
    compliance_resource_id: NotRequired[
        "capo_config_service.types.base_resource_id.BaseResourceId"
    ]
    """<p>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 <code>ComplianceResourceTypes</code>.</p>"""
    service_principals: NotRequired[
        "capo_config_service.types.service_principals.ServicePrincipals"
    ]
    """<p>The service principals of the Amazon Web Services services for the rule.</p> <note> <p>The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.</p> </note>"""

compliance_resource_id instance-attribute

compliance_resource_id: NotRequired[BaseResourceId]

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.

compliance_resource_types instance-attribute

compliance_resource_types: NotRequired[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.

service_principals instance-attribute

service_principals: NotRequired[ServicePrincipals]

The service principals of the Amazon Web Services services for the rule.

The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.

tag_key instance-attribute

tag_key: NotRequired[StringWithCharLimit128]

The tag key that is applied to only those Amazon Web Services resources that you want to trigger an evaluation for the rule.

tag_value instance-attribute

tag_value: NotRequired[StringWithCharLimit256]

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.