Skip to content

CreateRuleResponse

Source code in docs_src/capo_rbin/types/create_rule_response.py
class CreateRuleResponse(TypedDict, closed=True):
    identifier: NotRequired["capo_rbin.types.rule_identifier.RuleIdentifier"]
    """<p>The unique ID of the retention rule.</p>"""
    retention_period: NotRequired["capo_rbin.types.retention_period.RetentionPeriod"]
    description: NotRequired["capo_rbin.types.description.Description"]
    """<p>The retention rule description.</p>"""
    tags: NotRequired["capo_rbin.types.tag_list.TagList"]
    """<p>Information about the tags assigned to the retention rule.</p>"""
    resource_type: NotRequired["capo_rbin.types.resource_type.ResourceType"]
    """<p>The resource type retained by the retention rule.</p>"""
    resource_tags: NotRequired["capo_rbin.types.resource_tags.ResourceTags"]
    """<p>[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.</p>"""
    status: NotRequired["capo_rbin.types.rule_status.RuleStatus"]
    """<p>The state of the retention rule. Only retention rules that are in the <code>available</code> state retain resources.</p>"""
    lock_configuration: NotRequired[
        "capo_rbin.types.lock_configuration.LockConfiguration"
    ]
    """<p>Information about the retention rule lock configuration.</p>"""
    lock_state: NotRequired["capo_rbin.types.lock_state.LockState"]
    """<p>[Region-level retention rules only] The lock state for the retention rule.</p> <ul> <li> <p> <code>locked</code> - The retention rule is locked and can't be modified or deleted.</p> </li> <li> <p> <code>pending_unlock</code> - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.</p> </li> <li> <p> <code>unlocked</code> - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.</p> </li> <li> <p> <code>null</code> - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the <code>locked</code> and <code>unlocked</code> states only; it can never transition back to <code>null</code>.</p> </li> </ul>"""
    rule_arn: NotRequired["capo_rbin.types.rule_arn.RuleArn"]
    """<p>The Amazon Resource Name (ARN) of the retention rule.</p>"""
    exclude_resource_tags: NotRequired[
        "capo_rbin.types.exclude_resource_tags.ExcludeResourceTags"
    ]
    """<p>[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.</p>"""

description instance-attribute

description: NotRequired[Description]

The retention rule description.

exclude_resource_tags instance-attribute

exclude_resource_tags: NotRequired[ExcludeResourceTags]

[Region-level retention rules only] Information about the exclusion tags used to identify resources that are to be excluded, or ignored, by the retention rule.

identifier instance-attribute

identifier: NotRequired[RuleIdentifier]

The unique ID of the retention rule.

lock_configuration instance-attribute

lock_configuration: NotRequired[LockConfiguration]

Information about the retention rule lock configuration.

lock_state instance-attribute

lock_state: NotRequired[LockState]

[Region-level retention rules only] The lock state for the retention rule.

  • locked - The retention rule is locked and can't be modified or deleted.

  • pending_unlock - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.

  • unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.

  • null - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the locked and unlocked states only; it can never transition back to null.

resource_tags instance-attribute

resource_tags: NotRequired[ResourceTags]

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

resource_type instance-attribute

resource_type: NotRequired[ResourceType]

The resource type retained by the retention rule.

retention_period instance-attribute

retention_period: NotRequired[RetentionPeriod]

rule_arn instance-attribute

rule_arn: NotRequired[RuleArn]

The Amazon Resource Name (ARN) of the retention rule.

status instance-attribute

status: NotRequired[RuleStatus]

The state of the retention rule. Only retention rules that are in the available state retain resources.

tags instance-attribute

tags: NotRequired[TagList]

Information about the tags assigned to the retention rule.