Skip to content

DeleteAccountPolicyRequest

Source code in docs_src/capo_cloudwatch_logs/types/delete_account_policy_request.py
class DeleteAccountPolicyRequest(TypedDict, closed=True):
    policy_name: "capo_cloudwatch_logs.types.policy_name.PolicyName"
    """<p>The name of the policy to delete.</p>"""
    policy_type: "capo_cloudwatch_logs.types.policy_type.PolicyType"
    """<p>The type of policy to delete.</p>"""
    dry_run: NotRequired["capo_cloudwatch_logs.types.dry_run.DryRun"]
    """<p>Specifies whether to preview the impact of deleting the policy without deleting it. If you specify <code>true</code>, CloudWatch Logs does not delete the policy and returns the estimated impact in <code>dryRunResult</code>. The default is <code>false</code>.</p> <p>Specifying <code>dryRun</code> is valid only when you specify <code>RETENTION_POLICY</code> for <code>policyType</code>. Only one dry run can be in progress for an account at a time.</p>"""

dry_run instance-attribute

dry_run: NotRequired[DryRun]

Specifies whether to preview the impact of deleting the policy without deleting it. If you specify true, CloudWatch Logs does not delete the policy and returns the estimated impact in dryRunResult. The default is false.

Specifying dryRun is valid only when you specify RETENTION_POLICY for policyType. Only one dry run can be in progress for an account at a time.

policy_name instance-attribute

policy_name: PolicyName

The name of the policy to delete.

policy_type instance-attribute

policy_type: PolicyType

The type of policy to delete.