2020-05-12 14:58:35 +01:00
|
|
|
import json
|
2023-11-30 07:55:51 -08:00
|
|
|
|
|
|
|
from moto.core import BackendDict, BaseBackend
|
2020-05-12 14:58:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Ec2InstanceConnectBackend(BaseBackend):
|
2023-02-17 10:36:30 -01:00
|
|
|
def send_ssh_public_key(self) -> str:
|
2020-05-12 14:58:35 +01:00
|
|
|
return json.dumps(
|
|
|
|
{"RequestId": "example-2a47-4c91-9700-e37e85162cb6", "Success": True}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-12-24 20:02:45 -01:00
|
|
|
ec2instanceconnect_backends = BackendDict(Ec2InstanceConnectBackend, "ec2")
|