File Coverage

blib/lib/Paws/Credential/Explicit.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Paws::Credential::Explicit;
2 1     1   40273 use Moose;
  1         3  
  1         10  
3              
4             has access_key => (is => 'ro', isa => 'Str', required => 1);
5             has secret_key => (is => 'ro', isa => 'Str', required => 1);
6             has session_token => (is => 'ro', isa => 'Str');
7              
8             with 'Paws::Credential';
9              
10 1     1   6994 no Moose;
  1         2  
  1         4  
11             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