Skip to content

DeleteKeyPairRequest

Source code in docs_src/capo_ec2/types/delete_key_pair_request.py
class DeleteKeyPairRequest(TypedDict, closed=True):
    key_name: NotRequired[
        "capo_ec2.types.key_pair_name_with_resolver.KeyPairNameWithResolver"
    ]
    """<p>The name of the key pair.</p>"""
    key_pair_id: NotRequired["capo_ec2.types.key_pair_id.KeyPairId"]
    """<p>The ID of the key pair.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

key_name instance-attribute

key_name: NotRequired[KeyPairNameWithResolver]

The name of the key pair.

key_pair_id instance-attribute

key_pair_id: NotRequired[KeyPairId]

The ID of the key pair.