| 1 | package App::STS; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Data::Dumper; | ||
| 7 | use English qw(no_match_vars); | ||
| 8 | |||
| 9 | use Role::Tiny::With; | ||
| 10 | with 'App::AWS'; | ||
| 11 | |||
| 12 | use parent qw(App::Command); | ||
| 13 | |||
| 14 | __PACKAGE__->follow_best_practice; | ||
| 15 | __PACKAGE__->mk_accessors(qw(profile region)); | ||
| 16 | |||
| 17 | ######################################################################## | ||
| 18 | sub get_caller_identity { | ||
| 19 | ######################################################################## | ||
| 20 | my ( $self, $query ) = @_; | ||
| 21 | |||
| 22 | return $self->command( 'get-caller-identity', [ $query ? ( '--query' => $query ) : () ] ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 1; |