| 1 | package Paws::Signin; | ||
| 2 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use JSON::MaybeXS; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use URI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use Paws::Net::APIResponse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | ▶ | sub service { 'signin' } |
|
Subroutine
service: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 0 | ▶ | sub version { '2010-05-08' } |
|
Subroutine
version: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | ▶ | sub flattened_arrays { 0 } |
|
Subroutine
flattened_arrays: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 9 | 3 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | |
| 10 | 3 | ▶ | has retry => (is => 'ro', isa => 'HashRef', default => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 11 | 3 | { base => 'rand', type => 'exponential', growth_factor => 2 } | |
| 12 | 3 | }); | |
| 13 | 3 | ▶ | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 14 | 3 | ] }); | |
| 15 | |||
| 16 | |||
| 17 | 3 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::NoSignature', 'Paws::Net::SigninCaller'; | |
| 18 | |||
| 19 | 3 | ▶ | has '+region_rules' => (default => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 20 | 3 | my $regioninfo; | |
| 21 | 3 | $regioninfo = [ | |
| 22 | { | ||
| 23 | uri => 'https://signin.aws.amazon.com' | ||
| 24 | } | ||
| 25 | ]; | ||
| 26 | 3 | return $regioninfo; | |
| 27 | 3 | }); | |
| 28 | |||
| 29 | 0 | ▶ | sub operations { qw/GetSigninToken Login/ } |
|
Subroutine
operations: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 30 | |||
| 31 | 1 | ▶ | sub GetSigninToken { |
|
Subroutine
GetSigninToken: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | 1 | my $self = shift; | |
| 33 | 1 | my $call_object = $self->new_with_coercions('Paws::Signin::GetSigninToken', @_); | |
| 34 | 1 | return $self->caller->do_call($self, $call_object); | |
| 35 | } | ||
| 36 | |||
| 37 | # This method doesn't do an HTTP call. It uses prepare_request_for_call to get a requestObj | ||
| 38 | # that is manipulated to construct the URL in Step6 of | ||
| 39 | # http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html | ||
| 40 | 1 | ▶ | sub Login { |
|
Subroutine
Login: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 41 | 1 | my $self = shift; | |
| 42 | 1 | my $call_object = $self->new_with_coercions('Paws::Signin::Login', @_); | |
| 43 | |||
| 44 | 1 | my $params = { | |
| 45 | Action => $call_object->_api_call, | ||
| 46 | Destination => $call_object->Destination, | ||
| 47 | Issuer => $call_object->Issuer, | ||
| 48 | SigninToken => $call_object->SigninToken | ||
| 49 | }; | ||
| 50 | |||
| 51 | 1 | my $url = URI->new($self->endpoint); | |
| 52 | 1 | $url->path('/federation'); | |
| 53 | 1 | $url->query_form($params); | |
| 54 | |||
| 55 | 1 | my $response = Paws::Net::APIResponse->new( | |
| 56 | status => 200, | ||
| 57 | content => encode_json({ URL => $url->as_string }), | ||
| 58 | headers => {}, | ||
| 59 | ); | ||
| 60 | 1 | return $self->response_to_object->process($call_object, $response); | |
| 61 | } | ||
| 62 | |||
| 63 | 3 | 1; | |
| 64 | |||
| 65 | ### main pod documentation begin ### | ||
| 66 | |||
| 67 | =head1 NAME | ||
| 68 | |||
| 69 | Paws::Signin - Perl Interface to AWS Console Signin service | ||
| 70 | |||
| 71 | =head1 SYNOPSIS | ||
| 72 | |||
| 73 | use Paws; | ||
| 74 | |||
| 75 | my $obj = Paws->service('...'); | ||
| 76 | my $res = $obj->Method(Arg1 => $val1, Arg2 => $val2); | ||
| 77 | |||
| 78 | =cut | ||