« blib/lib/Paws/KMS/GetParametersForImportResponse.pm
↑ Summary
blib/lib/Paws/KMS/GetPublicKeyResponse.pm »
| 1 | |||
| 2 | package Paws::KMS::GetPublicKey; | ||
| 3 | use Moose; | ||
| 4 | has GrantTokens => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 5 | has KeyId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetPublicKey'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KMS::GetPublicKeyResponse'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::KMS::GetPublicKey - Arguments for method GetPublicKey on L<Paws::KMS> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method GetPublicKey on the | ||
| 23 | L<AWS Key Management Service|Paws::KMS> service. Use the attributes of this class | ||
| 24 | as arguments to method GetPublicKey. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetPublicKey. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $kms = Paws->service('KMS'); | ||
| 31 | my $GetPublicKeyResponse = $kms->GetPublicKey( | ||
| 32 | KeyId => 'MyKeyIdType', | ||
| 33 | GrantTokens => [ | ||
| 34 | 'MyGrantTokenType', ... # min: 1, max: 8192 | ||
| 35 | ], # OPTIONAL | ||
| 36 | ); | ||
| 37 | |||
| 38 | # Results: | ||
| 39 | my $CustomerMasterKeySpec = $GetPublicKeyResponse->CustomerMasterKeySpec; | ||
| 40 | my $EncryptionAlgorithms = $GetPublicKeyResponse->EncryptionAlgorithms; | ||
| 41 | my $KeyId = $GetPublicKeyResponse->KeyId; | ||
| 42 | my $KeyUsage = $GetPublicKeyResponse->KeyUsage; | ||
| 43 | my $PublicKey = $GetPublicKeyResponse->PublicKey; | ||
| 44 | my $SigningAlgorithms = $GetPublicKeyResponse->SigningAlgorithms; | ||
| 45 | |||
| 46 | # Returns a L<Paws::KMS::GetPublicKeyResponse> object. | ||
| 47 | |||
| 48 | 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. | ||
| 49 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kms/GetPublicKey> | ||
| 50 | |||
| 51 | =head1 ATTRIBUTES | ||
| 52 | |||
| 53 | |||
| 54 | =head2 GrantTokens => ArrayRef[Str|Undef] | ||
| 55 | |||
| 56 | A list of grant tokens. | ||
| 57 | |||
| 58 | Use a grant token when your permission to call this operation comes | ||
| 59 | from a new grant that has not yet achieved I<eventual consistency>. For | ||
| 60 | more information, see Grant token | ||
| 61 | (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) | ||
| 62 | in the I<AWS Key Management Service Developer Guide>. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 B<REQUIRED> KeyId => Str | ||
| 67 | |||
| 68 | Identifies the asymmetric CMK that includes the public key. | ||
| 69 | |||
| 70 | To specify a CMK, use its key ID, key ARN, alias name, or alias ARN. | ||
| 71 | When using an alias name, prefix it with C<"alias/">. To specify a CMK | ||
| 72 | in a different AWS account, you must use the key ARN or alias ARN. | ||
| 73 | |||
| 74 | For example: | ||
| 75 | |||
| 76 | =over | ||
| 77 | |||
| 78 | =item * | ||
| 79 | |||
| 80 | Key ID: C<1234abcd-12ab-34cd-56ef-1234567890ab> | ||
| 81 | |||
| 82 | =item * | ||
| 83 | |||
| 84 | Key ARN: | ||
| 85 | C<arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab> | ||
| 86 | |||
| 87 | =item * | ||
| 88 | |||
| 89 | Alias name: C<alias/ExampleAlias> | ||
| 90 | |||
| 91 | =item * | ||
| 92 | |||
| 93 | Alias ARN: C<arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias> | ||
| 94 | |||
| 95 | =back | ||
| 96 | |||
| 97 | To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. | ||
| 98 | To get the alias name and alias ARN, use ListAliases. | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head1 SEE ALSO | ||
| 104 | |||
| 105 | This class forms part of L<Paws>, documenting arguments for method GetPublicKey in L<Paws::KMS> | ||
| 106 | |||
| 107 | =head1 BUGS and CONTRIBUTIONS | ||
| 108 | |||
| 109 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 110 | |||
| 111 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 112 | |||
| 113 | =cut | ||
| 114 |