Skip to content

ImportKeyPairRequest

Source code in docs_src/capo_ec2/types/import_key_pair_request.py
class ImportKeyPairRequest(TypedDict, closed=True):
    tag_specifications: NotRequired[
        "capo_ec2.types.tag_specification_list.TagSpecificationList"
    ]
    """<p>The tags to apply to the imported 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>"""
    key_name: NotRequired["capo_ec2.types.string.String"]
    """<p>A unique name for the key pair.</p>"""
    public_key_material: NotRequired["capo_ec2.types.blob.Blob"]
    """<p>The public key.</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[String]

A unique name for the key pair.

public_key_material instance-attribute

public_key_material: NotRequired[Blob]

The public key.

tag_specifications instance-attribute

tag_specifications: NotRequired[TagSpecificationList]

The tags to apply to the imported key pair.