Skip to content

/AWS1/CL_EC2=>DELETEKEYPAIR()

About DeleteKeyPair

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

Method Signature

IMPORTING

Optional arguments:

IV_KEYNAME TYPE /AWS1/EC2KEYPAIRNAME /AWS1/EC2KEYPAIRNAME

The name of the key pair.

IV_KEYPAIRID TYPE /AWS1/EC2KEYPAIRID /AWS1/EC2KEYPAIRID

The ID of the key pair.

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2DELETEKEYPAIRRSLT /AWS1/CL_EC2DELETEKEYPAIRRSLT