« blib/lib/Paws/EC2/WithdrawByoipCidrResult.pm
↑ Summary
blib/lib/Paws/EC2InstanceConnect/SendSSHPublicKey.pm »
| 1 | package Paws::EC2InstanceConnect; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'ec2-instance-connect' } | ||
| 4 | sub signing_name { 'ec2-instance-connect' } | ||
| 5 | sub version { '2018-04-02' } | ||
| 6 | sub target_prefix { 'AWSEC2InstanceConnectService' } | ||
| 7 | sub json_version { "1.1" } | ||
| 8 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 9 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 10 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 11 | }); | ||
| 12 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 13 | ] }); | ||
| 14 | |||
| 15 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; | ||
| 16 | |||
| 17 | |||
| 18 | sub SendSerialConsoleSSHPublicKey { | ||
| 19 | my $self = shift; | ||
| 20 | my $call_object = $self->new_with_coercions('Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKey', @_); | ||
| 21 | return $self->caller->do_call($self, $call_object); | ||
| 22 | } | ||
| 23 | sub SendSSHPublicKey { | ||
| 24 | my $self = shift; | ||
| 25 | my $call_object = $self->new_with_coercions('Paws::EC2InstanceConnect::SendSSHPublicKey', @_); | ||
| 26 | return $self->caller->do_call($self, $call_object); | ||
| 27 | } | ||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | sub operations { qw/SendSerialConsoleSSHPublicKey SendSSHPublicKey / } | ||
| 32 | |||
| 33 | 1; | ||
| 34 | |||
| 35 | ### main pod documentation begin ### | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | Paws::EC2InstanceConnect - Perl Interface to AWS AWS EC2 Instance Connect | ||
| 40 | |||
| 41 | =head1 SYNOPSIS | ||
| 42 | |||
| 43 | use Paws; | ||
| 44 | |||
| 45 | my $obj = Paws->service('EC2InstanceConnect'); | ||
| 46 | my $res = $obj->Method( | ||
| 47 | Arg1 => $val1, | ||
| 48 | Arg2 => [ 'V1', 'V2' ], | ||
| 49 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 50 | # of the arguments type | ||
| 51 | Arg3 => { Att1 => 'Val1' }, | ||
| 52 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 53 | # the constructor of the arguments type | ||
| 54 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 55 | ); | ||
| 56 | |||
| 57 | =head1 DESCRIPTION | ||
| 58 | |||
| 59 | Amazon EC2 Instance Connect enables system administrators to publish | ||
| 60 | one-time use SSH public keys to EC2, providing users a simple and | ||
| 61 | secure way to connect to their instances. | ||
| 62 | |||
| 63 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02> | ||
| 64 | |||
| 65 | |||
| 66 | =head1 METHODS | ||
| 67 | |||
| 68 | =head2 SendSerialConsoleSSHPublicKey | ||
| 69 | |||
| 70 | =over | ||
| 71 | |||
| 72 | =item InstanceId => Str | ||
| 73 | |||
| 74 | =item SSHPublicKey => Str | ||
| 75 | |||
| 76 | =item [SerialPort => Int] | ||
| 77 | |||
| 78 | |||
| 79 | =back | ||
| 80 | |||
| 81 | Each argument is described in detail in: L<Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKey> | ||
| 82 | |||
| 83 | Returns: a L<Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKeyResponse> instance | ||
| 84 | |||
| 85 | Pushes an SSH public key to the specified EC2 instance. The key remains | ||
| 86 | for 60 seconds, which gives you 60 seconds to establish a serial | ||
| 87 | console connection to the instance using SSH. For more information, see | ||
| 88 | EC2 Serial Console | ||
| 89 | (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-serial-console.html) | ||
| 90 | in the I<Amazon EC2 User Guide>. | ||
| 91 | |||
| 92 | |||
| 93 | =head2 SendSSHPublicKey | ||
| 94 | |||
| 95 | =over | ||
| 96 | |||
| 97 | =item AvailabilityZone => Str | ||
| 98 | |||
| 99 | =item InstanceId => Str | ||
| 100 | |||
| 101 | =item InstanceOSUser => Str | ||
| 102 | |||
| 103 | =item SSHPublicKey => Str | ||
| 104 | |||
| 105 | |||
| 106 | =back | ||
| 107 | |||
| 108 | Each argument is described in detail in: L<Paws::EC2InstanceConnect::SendSSHPublicKey> | ||
| 109 | |||
| 110 | Returns: a L<Paws::EC2InstanceConnect::SendSSHPublicKeyResponse> instance | ||
| 111 | |||
| 112 | Pushes an SSH public key to the specified EC2 instance for use by the | ||
| 113 | specified user. The key remains for 60 seconds. For more information, | ||
| 114 | see Connect to your Linux instance using EC2 Instance Connect | ||
| 115 | (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html) | ||
| 116 | in the I<Amazon EC2 User Guide>. | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head1 PAGINATORS | ||
| 122 | |||
| 123 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | =head1 SEE ALSO | ||
| 129 | |||
| 130 | This service class forms part of L<Paws> | ||
| 131 | |||
| 132 | =head1 BUGS and CONTRIBUTIONS | ||
| 133 | |||
| 134 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 135 | |||
| 136 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 137 | |||
| 138 | =cut | ||
| 139 |