| 1 | package App::SecretsManager; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use English qw(-no_match_vars); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | with 'App::AWS'; | |
| 12 | |||
| 13 | 1 | ▶ | use parent qw(App::Command); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 1 | __PACKAGE__->mk_accessors(qw(profile region)); | |
| 16 | |||
| 17 | ######################################################################## | ||
| 18 | 0 | ▶ | sub find_secret_arn { |
|
Subroutine
find_secret_arn: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | ######################################################################## | ||
| 20 | 0 | my ( $self, $secret_name ) = @_; | |
| 21 | |||
| 22 | 0 | my $result = $self->command( | |
| 23 | 'list-secrets' => [ | ||
| 24 | '--filters' => 'Key=name,Values=' . $secret_name, | ||
| 25 | '--query' => 'SecretList[].{ARN:ARN}', | ||
| 26 | '--output' => 'text' | ||
| 27 | ] | ||
| 28 | ); | ||
| 29 | |||
| 30 | 0 | return $result; | |
| 31 | } | ||
| 32 | |||
| 33 | 1 | 1; | |