blib/lib/Paws/AppConfig/CreateEnvironment.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppConfig::CreateEnvironment;
3 use Moose;
4 has ApplicationId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'ApplicationId', required => 1);
5 has Description => (is => 'ro', isa => 'Str');
6 has Monitors => (is => 'ro', isa => 'ArrayRef[Paws::AppConfig::Monitor]');
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::AppConfig::TagMap');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEnvironment');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/applications/{ApplicationId}/environments');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppConfig::Environment');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::AppConfig::CreateEnvironment - Arguments for method CreateEnvironment on L<Paws::AppConfig>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateEnvironment on the
27 L<Amazon AppConfig|Paws::AppConfig> service. Use the attributes of this class
28 as arguments to method CreateEnvironment.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEnvironment.
31  
32 =head1 SYNOPSIS
33  
34 my $appconfig = Paws->service('AppConfig');
35 my $Environment = $appconfig->CreateEnvironment(
36 ApplicationId => 'MyId',
37 Name => 'MyName',
38 Description => 'MyDescription', # OPTIONAL
39 Monitors => [
40 {
41 AlarmArn => 'MyArn', # min: 20, max: 2048; OPTIONAL
42 AlarmRoleArn => 'MyRoleArn', # min: 20, max: 2048; OPTIONAL
43 },
44 ...
45 ], # OPTIONAL
46 Tags => {
47 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
48 }, # OPTIONAL
49 );
50  
51 # Results:
52 my $ApplicationId = $Environment->ApplicationId;
53 my $Description = $Environment->Description;
54 my $Id = $Environment->Id;
55 my $Monitors = $Environment->Monitors;
56 my $Name = $Environment->Name;
57 my $State = $Environment->State;
58  
59 # Returns a L<Paws::AppConfig::Environment> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/appconfig/CreateEnvironment>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 B<REQUIRED> ApplicationId => Str
68  
69 The application ID.
70  
71  
72  
73 =head2 Description => Str
74  
75 A description of the environment.
76  
77  
78  
79 =head2 Monitors => ArrayRef[L<Paws::AppConfig::Monitor>]
80  
81 Amazon CloudWatch alarms to monitor during the deployment process.
82  
83  
84  
85 =head2 B<REQUIRED> Name => Str
86  
87 A name for the environment.
88  
89  
90  
91 =head2 Tags => L<Paws::AppConfig::TagMap>
92  
93 Metadata to assign to the environment. Tags help organize and
94 categorize your AppConfig resources. Each tag consists of a key and an
95 optional value, both of which you define.
96  
97  
98  
99  
100 =head1 SEE ALSO
101  
102 This class forms part of L<Paws>, documenting arguments for method CreateEnvironment in L<Paws::AppConfig>
103  
104 =head1 BUGS and CONTRIBUTIONS
105  
106 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
107  
108 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
109  
110 =cut
111