blib/lib/Paws/ECS/ExecuteCommand.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ECS::ExecuteCommand;
3 use Moose;
4 has Cluster => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'cluster' );
5 has Command => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'command' , required => 1);
6 has Container => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'container' );
7 has Interactive => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'interactive' , required => 1);
8 has Task => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'task' , required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ExecuteCommand');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ECS::ExecuteCommandResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ECS::ExecuteCommand - Arguments for method ExecuteCommand on L<Paws::ECS>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ExecuteCommand on the
26 L<Amazon EC2 Container Service|Paws::ECS> service. Use the attributes of this class
27 as arguments to method ExecuteCommand.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ExecuteCommand.
30  
31 =head1 SYNOPSIS
32  
33 my $ecs = Paws->service('ECS');
34 my $ExecuteCommandResponse = $ecs->ExecuteCommand(
35 Command => 'MyString',
36 Interactive => 1,
37 Task => 'MyString',
38 Cluster => 'MyString', # OPTIONAL
39 Container => 'MyString', # OPTIONAL
40 );
41  
42 # Results:
43 my $ClusterArn = $ExecuteCommandResponse->ClusterArn;
44 my $ContainerArn = $ExecuteCommandResponse->ContainerArn;
45 my $ContainerName = $ExecuteCommandResponse->ContainerName;
46 my $Interactive = $ExecuteCommandResponse->Interactive;
47 my $Session = $ExecuteCommandResponse->Session;
48 my $TaskArn = $ExecuteCommandResponse->TaskArn;
49  
50 # Returns a L<Paws::ECS::ExecuteCommandResponse> object.
51  
52 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
53 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ecs/ExecuteCommand>
54  
55 =head1 ATTRIBUTES
56  
57  
58 =head2 Cluster => Str
59  
60 The Amazon Resource Name (ARN) or short name of the cluster the task is
61 running in. If you do not specify a cluster, the default cluster is
62 assumed.
63  
64  
65  
66 =head2 B<REQUIRED> Command => Str
67  
68 The command to run on the container.
69  
70  
71  
72 =head2 Container => Str
73  
74 The name of the container to execute the command on. A container name
75 only needs to be specified for tasks containing multiple containers.
76  
77  
78  
79 =head2 B<REQUIRED> Interactive => Bool
80  
81 Use this flag to run your command in interactive mode.
82  
83  
84  
85 =head2 B<REQUIRED> Task => Str
86  
87 The Amazon Resource Name (ARN) or ID of the task the container is part
88 of.
89  
90  
91  
92  
93 =head1 SEE ALSO
94  
95 This class forms part of L<Paws>, documenting arguments for method ExecuteCommand in L<Paws::ECS>
96  
97 =head1 BUGS and CONTRIBUTIONS
98  
99 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
100  
101 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
102  
103 =cut
104