File Coverage

blib/lib/Paws/Greengrass/CreateDeployment.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              
2             package Paws::Greengrass::CreateDeployment;
3 1     1   572 use Moose;
  1         3  
  1         10  
4             has AmznClientToken => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amzn-Client-Token' );
5             has DeploymentId => (is => 'ro', isa => 'Str');
6             has DeploymentType => (is => 'ro', isa => 'Str');
7             has GroupId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'GroupId' , required => 1);
8             has GroupVersionId => (is => 'ro', isa => 'Str');
9              
10 1     1   7777 use MooseX::ClassAttribute;
  1         6  
  1         15  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDeployment');
13             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/greengrass/groups/{GroupId}/deployments');
14             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Greengrass::CreateDeploymentResponse');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::Greengrass::CreateDeployment - Arguments for method CreateDeployment on Paws::Greengrass
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateDeployment on the
28             AWS Greengrass service. Use the attributes of this class
29             as arguments to method CreateDeployment.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDeployment.
32              
33             As an example:
34              
35             $service_obj->CreateDeployment(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 AmznClientToken => Str
43              
44             The client token used to request idempotent operations.
45              
46              
47              
48             =head2 DeploymentId => Str
49              
50             Id of the deployment if you wish to redeploy a previous deployment.
51              
52              
53              
54             =head2 DeploymentType => Str
55              
56             Type of deployment. When used in CreateDeployment, only NewDeployment
57             and Redeployment are valid.
58              
59             Valid values are: C<"NewDeployment">, C<"Redeployment">, C<"ResetDeployment">, C<"ForceResetDeployment">
60              
61             =head2 B<REQUIRED> GroupId => Str
62              
63             The unique Id of the AWS Greengrass Group
64              
65              
66              
67             =head2 GroupVersionId => Str
68              
69             Group Version you wish to deploy.
70              
71              
72              
73              
74             =head1 SEE ALSO
75              
76             This class forms part of L<Paws>, documenting arguments for method CreateDeployment in L<Paws::Greengrass>
77              
78             =head1 BUGS and CONTRIBUTIONS
79              
80             The source code is located here: https://github.com/pplu/aws-sdk-perl
81              
82             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
83              
84             =cut
85