blib/lib/Paws/LocationService/CreateTracker.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::LocationService::CreateTracker;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has KmsKeyId => (is => 'ro', isa => 'Str');
6 has PricingPlan => (is => 'ro', isa => 'Str', required => 1);
7 has PricingPlanDataSource => (is => 'ro', isa => 'Str');
8 has Tags => (is => 'ro', isa => 'Paws::LocationService::TagMap');
9 has TrackerName => (is => 'ro', isa => 'Str', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTracker');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/tracking/v0/trackers');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LocationService::CreateTrackerResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::LocationService::CreateTracker - Arguments for method CreateTracker on L<Paws::LocationService>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateTracker on the
28 L<Amazon Location Service|Paws::LocationService> service. Use the attributes of this class
29 as arguments to method CreateTracker.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTracker.
32  
33 =head1 SYNOPSIS
34  
35 my $geo = Paws->service('LocationService');
36 my $CreateTrackerResponse = $geo->CreateTracker(
37 PricingPlan => 'RequestBasedUsage',
38 TrackerName => 'MyResourceName',
39 Description => 'MyResourceDescription', # OPTIONAL
40 KmsKeyId => 'MyKmsKeyId', # OPTIONAL
41 PricingPlanDataSource => 'MyString', # OPTIONAL
42 Tags => {
43 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
44 }, # OPTIONAL
45 );
46  
47 # Results:
48 my $CreateTime = $CreateTrackerResponse->CreateTime;
49 my $TrackerArn = $CreateTrackerResponse->TrackerArn;
50 my $TrackerName = $CreateTrackerResponse->TrackerName;
51  
52 # Returns a L<Paws::LocationService::CreateTrackerResponse> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/geo/CreateTracker>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 Description => Str
61  
62 An optional description for the tracker resource.
63  
64  
65  
66 =head2 KmsKeyId => Str
67  
68 A key identifier for an AWS KMS customer managed key
69 (https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html).
70 Enter a key ID, key ARN, alias name, or alias ARN.
71  
72  
73  
74 =head2 B<REQUIRED> PricingPlan => Str
75  
76 Specifies the pricing plan for the tracker resource.
77  
78 For additional details and restrictions on each pricing plan option,
79 see the Amazon Location Service pricing page
80 (https://aws.amazon.com/location/pricing/).
81  
82 Valid values are: C<"RequestBasedUsage">, C<"MobileAssetTracking">, C<"MobileAssetManagement">
83  
84 =head2 PricingPlanDataSource => Str
85  
86 Specifies the data provider for the tracker resource.
87  
88 =over
89  
90 =item *
91  
92 Required value for the following pricing plans: C<MobileAssetTracking
93 >| C<MobileAssetManagement>
94  
95 =back
96  
97 For more information about Data Providers
98 (https://aws.amazon.com/location/data-providers/), and Pricing plans
99 (https://aws.amazon.com/location/pricing/), see the Amazon Location
100 Service product page.
101  
102 Amazon Location Service only uses C<PricingPlanDataSource> to calculate
103 billing for your tracker resource. Your data will not be shared with
104 the data provider, and will remain in your AWS account or Region unless
105 you move it.
106  
107 Valid Values: C<Esri> | C<Here>
108  
109  
110  
111 =head2 Tags => L<Paws::LocationService::TagMap>
112  
113 Applies one or more tags to the tracker resource. A tag is a key-value
114 pair helps manage, identify, search, and filter your resources by
115 labelling them.
116  
117 Format: C<"key" : "value">
118  
119 Restrictions:
120  
121 =over
122  
123 =item *
124  
125 Maximum 50 tags per resource
126  
127 =item *
128  
129 Each resource tag must be unique with a maximum of one value.
130  
131 =item *
132  
133 Maximum key length: 128 Unicode characters in UTF-8
134  
135 =item *
136  
137 Maximum value length: 256 Unicode characters in UTF-8
138  
139 =item *
140  
141 Can use alphanumeric characters (AE<ndash>Z, aE<ndash>z, 0E<ndash>9),
142 and the following characters: + - = . _ : / @.
143  
144 =back
145  
146  
147  
148  
149 =head2 B<REQUIRED> TrackerName => Str
150  
151 The name for the tracker resource.
152  
153 Requirements:
154  
155 =over
156  
157 =item *
158  
159 Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-),
160 periods (.), and underscores (_).
161  
162 =item *
163  
164 Must be a unique tracker resource name.
165  
166 =item *
167  
168 No spaces allowed. For example, C<ExampleTracker>.
169  
170 =back
171  
172  
173  
174  
175  
176 =head1 SEE ALSO
177  
178 This class forms part of L<Paws>, documenting arguments for method CreateTracker in L<Paws::LocationService>
179  
180 =head1 BUGS and CONTRIBUTIONS
181  
182 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
183  
184 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
185  
186 =cut
187