-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from moto.core.responses import BaseResponse | ||
from .models import ec2instanceconnect_backends | ||
from .models import ec2instanceconnect_backends, Ec2InstanceConnectBackend | ||
|
||
|
||
class Ec2InstanceConnectResponse(BaseResponse): | ||
def __init__(self): | ||
def __init__(self) -> None: | ||
super().__init__(service_name="ec2-instanceconnect") | ||
|
||
@property | ||
def ec2instanceconnect_backend(self): | ||
def ec2instanceconnect_backend(self) -> Ec2InstanceConnectBackend: | ||
return ec2instanceconnect_backends[self.current_account][self.region] | ||
|
||
def send_ssh_public_key(self): | ||
def send_ssh_public_key(self) -> str: | ||
return self.ec2instanceconnect_backend.send_ssh_public_key() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters