« blib/lib/Paws/EC2InstanceConnect/SendSSHPublicKeyResponse.pm
↑ Summary
blib/lib/Paws/EC2InstanceConnect/SendSerialConsoleSSHPublicKeyResponse.pm »
| 1 | |||
| 2 | package Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKey; | ||
| 3 | use Moose; | ||
| 4 | has InstanceId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has SerialPort => (is => 'ro', isa => 'Int'); | ||
| 6 | has SSHPublicKey => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendSerialConsoleSSHPublicKey'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKeyResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKey - Arguments for method SendSerialConsoleSSHPublicKey on L<Paws::EC2InstanceConnect> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method SendSerialConsoleSSHPublicKey on the | ||
| 24 | L<AWS EC2 Instance Connect|Paws::EC2InstanceConnect> service. Use the attributes of this class | ||
| 25 | as arguments to method SendSerialConsoleSSHPublicKey. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendSerialConsoleSSHPublicKey. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $ec2-instance-connect = Paws->service('EC2InstanceConnect'); | ||
| 32 | my $SendSerialConsoleSSHPublicKeyResponse = | ||
| 33 | $ec2 -instance-connect->SendSerialConsoleSSHPublicKey( | ||
| 34 | InstanceId => 'MyInstanceId', | ||
| 35 | SSHPublicKey => 'MySSHPublicKey', | ||
| 36 | SerialPort => 1, # OPTIONAL | ||
| 37 | ); | ||
| 38 | |||
| 39 | # Results: | ||
| 40 | my $RequestId = $SendSerialConsoleSSHPublicKeyResponse->RequestId; | ||
| 41 | my $Success = $SendSerialConsoleSSHPublicKeyResponse->Success; | ||
| 42 | |||
| 43 | # Returns a L<Paws::EC2InstanceConnect::SendSerialConsoleSSHPublicKeyResponse> object. | ||
| 44 | |||
| 45 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 46 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect/SendSerialConsoleSSHPublicKey> | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 B<REQUIRED> InstanceId => Str | ||
| 52 | |||
| 53 | The ID of the EC2 instance. | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | =head2 SerialPort => Int | ||
| 58 | |||
| 59 | The serial port of the EC2 instance. Currently only port 0 is | ||
| 60 | supported. | ||
| 61 | |||
| 62 | Default: 0 | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 B<REQUIRED> SSHPublicKey => Str | ||
| 67 | |||
| 68 | The public key material. To use the public key, you must have the | ||
| 69 | matching private key. For information about the supported key formats | ||
| 70 | and lengths, see Requirements for key pairs | ||
| 71 | (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws) | ||
| 72 | in the I<Amazon EC2 User Guide>. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head1 SEE ALSO | ||
| 78 | |||
| 79 | This class forms part of L<Paws>, documenting arguments for method SendSerialConsoleSSHPublicKey in L<Paws::EC2InstanceConnect> | ||
| 80 | |||
| 81 | =head1 BUGS and CONTRIBUTIONS | ||
| 82 | |||
| 83 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 84 | |||
| 85 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 86 | |||
| 87 | =cut | ||
| 88 |