blib/lib/Paws/LocationService/CreateMap.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LocationService::CreateMap;
3 use Moose;
4 has Configuration => (is => 'ro', isa => 'Paws::LocationService::MapConfiguration', required => 1);
5 has Description => (is => 'ro', isa => 'Str');
6 has MapName => (is => 'ro', isa => 'Str', required => 1);
7 has PricingPlan => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::LocationService::TagMap');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateMap');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/maps/v0/maps');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LocationService::CreateMapResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::LocationService::CreateMap - Arguments for method CreateMap on L<Paws::LocationService>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateMap on the
27 L<Amazon Location Service|Paws::LocationService> service. Use the attributes of this class
28 as arguments to method CreateMap.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateMap.
31  
32 =head1 SYNOPSIS
33  
34 my $geo = Paws->service('LocationService');
35 my $CreateMapResponse = $geo->CreateMap(
36 Configuration => {
37 Style => 'MyMapStyle', # min: 1, max: 100
38  
39 },
40 MapName => 'MyResourceName',
41 PricingPlan => 'RequestBasedUsage',
42 Description => 'MyResourceDescription', # OPTIONAL
43 Tags => {
44 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
45 }, # OPTIONAL
46 );
47  
48 # Results:
49 my $CreateTime = $CreateMapResponse->CreateTime;
50 my $MapArn = $CreateMapResponse->MapArn;
51 my $MapName = $CreateMapResponse->MapName;
52  
53 # Returns a L<Paws::LocationService::CreateMapResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/geo/CreateMap>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> Configuration => L<Paws::LocationService::MapConfiguration>
62  
63 Specifies the map style selected from an available data provider.
64  
65  
66  
67 =head2 Description => Str
68  
69 An optional description for the map resource.
70  
71  
72  
73 =head2 B<REQUIRED> MapName => Str
74  
75 The name for the map resource.
76  
77 Requirements:
78  
79 =over
80  
81 =item *
82  
83 Must contain only alphanumeric characters (AE<ndash>Z, aE<ndash>z,
84 0E<ndash>9), hyphens (-), periods (.), and underscores (_).
85  
86 =item *
87  
88 Must be a unique map resource name.
89  
90 =item *
91  
92 No spaces allowed. For example, C<ExampleMap>.
93  
94 =back
95  
96  
97  
98  
99 =head2 B<REQUIRED> PricingPlan => Str
100  
101 Specifies the pricing plan for your map resource.
102  
103 For additional details and restrictions on each pricing plan option,
104 see the Amazon Location Service pricing page
105 (https://aws.amazon.com/location/pricing/).
106  
107 Valid values are: C<"RequestBasedUsage">, C<"MobileAssetTracking">, C<"MobileAssetManagement">
108  
109 =head2 Tags => L<Paws::LocationService::TagMap>
110  
111 Applies one or more tags to the map resource. A tag is a key-value pair
112 helps manage, identify, search, and filter your resources by labelling
113 them.
114  
115 Format: C<"key" : "value">
116  
117 Restrictions:
118  
119 =over
120  
121 =item *
122  
123 Maximum 50 tags per resource
124  
125 =item *
126  
127 Each resource tag must be unique with a maximum of one value.
128  
129 =item *
130  
131 Maximum key length: 128 Unicode characters in UTF-8
132  
133 =item *
134  
135 Maximum value length: 256 Unicode characters in UTF-8
136  
137 =item *
138  
139 Can use alphanumeric characters (AE<ndash>Z, aE<ndash>z, 0E<ndash>9),
140 and the following characters: + - = . _ : / @.
141  
142 =back
143  
144  
145  
146  
147  
148 =head1 SEE ALSO
149  
150 This class forms part of L<Paws>, documenting arguments for method CreateMap in L<Paws::LocationService>
151  
152 =head1 BUGS and CONTRIBUTIONS
153  
154 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
155  
156 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
157  
158 =cut
159