paws.compute (version 0.1.0)

ec2_delete_key_pair: Deletes the specified key pair, by removing the public key from Amazon EC2

Description

Deletes the specified key pair, by removing the public key from Amazon EC2.

Usage

ec2_delete_key_pair(KeyName, DryRun)

Arguments

KeyName

[required] The name of the key pair.

DryRun

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.

Request syntax

svc$delete_key_pair(
  KeyName = "string",
  DryRun = TRUE|FALSE
)

Examples

Run this code
# NOT RUN {
# This example deletes the specified key pair.
# }
# NOT RUN {
svc$delete_key_pair(
  KeyName = "my-key-pair"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab