File Coverage

blib/lib/Paws/ApiGateway/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::ApiGateway::CreateDeployment;
3 1     1   583 use Moose;
  1         3  
  1         7  
4             has CacheClusterEnabled => (is => 'ro', isa => 'Bool');
5             has CacheClusterSize => (is => 'ro', isa => 'Str');
6             has Description => (is => 'ro', isa => 'Str');
7             has RestApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'restApiId' , required => 1);
8             has StageDescription => (is => 'ro', isa => 'Str');
9             has StageName => (is => 'ro', isa => 'Str');
10             has Variables => (is => 'ro', isa => 'Paws::ApiGateway::MapOfStringToString');
11              
12 1     1   6017 use MooseX::ClassAttribute;
  1         3  
  1         8  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDeployment');
15             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/restapis/{restapi_id}/deployments');
16             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApiGateway::Deployment');
18             class_has _result_key => (isa => 'Str', is => 'ro');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::ApiGateway::CreateDeployment - Arguments for method CreateDeployment on Paws::ApiGateway
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method CreateDeployment on the
30             Amazon API Gateway service. Use the attributes of this class
31             as arguments to method CreateDeployment.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDeployment.
34              
35             As an example:
36              
37             $service_obj->CreateDeployment(Att1 => $value1, Att2 => $value2, ...);
38              
39             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.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 CacheClusterEnabled => Bool
45              
46             Enables a cache cluster for the Stage resource specified in the input.
47              
48              
49              
50             =head2 CacheClusterSize => Str
51              
52             Specifies the cache cluster size for the Stage resource specified in
53             the input, if a cache cluster is enabled.
54              
55             Valid values are: C<"0.5">, C<"1.6">, C<"6.1">, C<"13.5">, C<"28.4">, C<"58.2">, C<"118">, C<"237">
56              
57             =head2 Description => Str
58              
59             The description for the Deployment resource to create.
60              
61              
62              
63             =head2 B<REQUIRED> RestApiId => Str
64              
65             The string identifier of the associated RestApi.
66              
67              
68              
69             =head2 StageDescription => Str
70              
71             The description of the Stage resource for the Deployment resource to
72             create.
73              
74              
75              
76             =head2 StageName => Str
77              
78             The name of the Stage resource for the Deployment resource to create.
79              
80              
81              
82             =head2 Variables => L<Paws::ApiGateway::MapOfStringToString>
83              
84             A map that defines the stage variables for the Stage resource that is
85             associated with the new deployment. Variable names can have
86             alphanumeric and underscore characters, and the values must match
87             C<[A-Za-z0-9-._~:/?&num;&=,]+>.
88              
89              
90              
91              
92             =head1 SEE ALSO
93              
94             This class forms part of L<Paws>, documenting arguments for method CreateDeployment in L<Paws::ApiGateway>
95              
96             =head1 BUGS and CONTRIBUTIONS
97              
98             The source code is located here: https://github.com/pplu/aws-sdk-perl
99              
100             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
101              
102             =cut
103