From 8b8ea3c10ef77d3df3d554afef339b6b93420a9c Mon Sep 17 00:00:00 2001 From: Artem Zaytsev Date: Wed, 17 Apr 2024 15:40:34 +0300 Subject: [PATCH] ec2: add RenameKeyPair request --- botocore/data/ec2/2016-11-15/service-2.json | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/botocore/data/ec2/2016-11-15/service-2.json b/botocore/data/ec2/2016-11-15/service-2.json index 8ba360ac60..afc732b4b1 100644 --- a/botocore/data/ec2/2016-11-15/service-2.json +++ b/botocore/data/ec2/2016-11-15/service-2.json @@ -4099,6 +4099,16 @@ "output":{"shape":"ReleaseHostsResult"}, "documentation":"

When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

Released hosts still appear in a DescribeHosts response.

" }, + "RenameKeyPair":{ + "name":"RenameKeyPair", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RenameKeyPairRequest"}, + "output":{"shape":"KeyPair"}, + "documentation":"

Update name of key pair.

" + }, "ReplaceIamInstanceProfileAssociation":{ "name":"ReplaceIamInstanceProfileAssociation", "http":{ @@ -34031,6 +34041,19 @@ } } }, + "RenameKeyPairRequest":{ + "type":"structure", + "members":{ + "KeyName":{ + "shape":"String", + "documentation":"

The name of the key pair.

" + }, + "NewName":{ + "shape":"String", + "documentation":"

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

" + } + } + }, "RemovePrefixListEntries":{ "type":"list", "member":{"shape":"RemovePrefixListEntry"},