Skip to content

CreateKeyPairRequest

Source code in docs_src/capo_ec2/types/create_key_pair_request.py
class CreateKeyPairRequest(TypedDict, closed=True):
    key_name: NotRequired["capo_ec2.types.string.String"]
    """<p>A unique name for the key pair.</p> <p>Constraints: Up to 255 ASCII characters</p>"""
    key_type: NotRequired["capo_ec2.types.key_type.KeyType"]
    """<p>The type of key pair. Note that ED25519 keys are not supported for Windows instances.</p> <p>Default: <code>rsa</code> </p>"""
    tag_specifications: NotRequired[
        "capo_ec2.types.tag_specification_list.TagSpecificationList"
    ]
    """<p>The tags to apply to the new key pair.</p>"""
    key_format: NotRequired["capo_ec2.types.key_format.KeyFormat"]
    """<p>The format of the key pair.</p> <p>Default: <code>pem</code> </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_format instance-attribute

key_format: NotRequired[KeyFormat]

The format of the key pair.

Default: pem

key_name instance-attribute

key_name: NotRequired[String]

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

key_type instance-attribute

key_type: NotRequired[KeyType]

The type of key pair. Note that ED25519 keys are not supported for Windows instances.

Default: rsa

tag_specifications instance-attribute

tag_specifications: NotRequired[TagSpecificationList]

The tags to apply to the new key pair.