File Coverage

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