| 1 | package Paws::Credential::Explicit; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | has access_key => (is => 'ro', isa => 'Str', required => 1); | |
| 5 | 1 | has secret_key => (is => 'ro', isa => 'Str', required => 1); | |
| 6 | 1 | has session_token => (is => 'ro', isa => 'Str'); | |
| 7 | |||
| 8 | 1 | with 'Paws::Credential'; | |
| 9 | |||
| 10 | 1 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | 1; | |
| 12 | ### main pod documentation begin ### | ||
| 13 | |||
| 14 | =encoding UTF-8 | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::Credential::Explicit | ||
| 19 | |||
| 20 | =head1 SYNOPSIS | ||
| 21 | |||
| 22 | use Paws::Credential::Explicit; | ||
| 23 | |||
| 24 | my $paws = Paws->new(config => { | ||
| 25 | credentials => Paws::Credential::Explicit->new( | ||
| 26 | access_key => $ak, | ||
| 27 | secret_key => $sk, | ||
| 28 | session_token => $st, | ||
| 29 | ) | ||
| 30 | }); | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | The Explicit provider is used to specify credentials inside your code. | ||
| 35 | |||
| 36 | It's bad practice to hard-code credentials inside your code. Please do not hard-code credentials inside your | ||
| 37 | code, and instead use other credential providers, or roll out you own. | ||
| 38 | |||
| 39 | =head2 access_key: Str | ||
| 40 | |||
| 41 | A string with an AWS access_key | ||
| 42 | |||
| 43 | =head2 secret_key: Str | ||
| 44 | |||
| 45 | A string with an AWS secret_key | ||
| 46 | |||
| 47 | =head2 session_token: Str (optional) | ||
| 48 | |||
| 49 | A string with an AWS session_token (if applies) | ||
| 50 | |||
| 51 | =cut | ||