tcec2manager/tcec2manager.go
func (eC2Manager *EC2Manager) EnsureKeyPair(name string, payload *SSHPublicKey) error {
	cd := tcclient.Client(*eC2Manager)
	_, _, err := (&cd).APICall(payload, "GET", "/key-pairs/"+url.QueryEscape(name), nil, nil)
	return err
}
func (eC2Manager *EC2Manager) EnsureKeyPair(name string, payload *SSHPublicKey) error {
	cd := tcclient.Client(*eC2Manager)
	_, _, err := (&cd).APICall(payload, "GET", "/key-pairs/"+url.QueryEscape(name), nil, nil)
	return err
}
// Stability: *** EXPERIMENTAL ***
//
// Idempotently ensure that a keypair of a given name exists
//
// Required scopes:
//   ec2-manager:manage-key-pairs:<name>
//
// See https://docs.taskcluster.net/reference/core/ec2-manager/api-docs#ensureKeyPair