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   856 use Moose;
  1         5  
  1         13  
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   10300 use MooseX::ClassAttribute;
  1         7  
  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
57              
58             Valid values are: C<"NewDeployment">, C<"Redeployment">
59              
60             =head2 B<REQUIRED> GroupId => Str
61              
62             The unique Id of the AWS Greengrass Group
63              
64              
65              
66             =head2 GroupVersionId => Str
67              
68             Group Version you wish to deploy.
69              
70              
71              
72              
73             =head1 SEE ALSO
74              
75             This class forms part of L<Paws>, documenting arguments for method CreateDeployment in L<Paws::Greengrass>
76              
77             =head1 BUGS and CONTRIBUTIONS
78              
79             The source code is located here: https://github.com/pplu/aws-sdk-perl
80              
81             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
82              
83             =cut
84