File Coverage

blib/lib/Paws/MarketplaceMetering/MeterUsage.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::MarketplaceMetering::MeterUsage;
3 1     1   658 use Moose;
  1         3  
  1         11  
4             has DryRun => (is => 'ro', isa => 'Bool', required => 1);
5             has ProductCode => (is => 'ro', isa => 'Str', required => 1);
6             has Timestamp => (is => 'ro', isa => 'Str', required => 1);
7             has UsageDimension => (is => 'ro', isa => 'Str', required => 1);
8             has UsageQuantity => (is => 'ro', isa => 'Int', required => 1);
9              
10 1     1   7957 use MooseX::ClassAttribute;
  1         3  
  1         15  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'MeterUsage');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MarketplaceMetering::MeterUsageResult');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::MarketplaceMetering::MeterUsage - Arguments for method MeterUsage on Paws::MarketplaceMetering
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method MeterUsage on the
26             AWSMarketplace Metering service. Use the attributes of this class
27             as arguments to method MeterUsage.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to MeterUsage.
30              
31             As an example:
32              
33             $service_obj->MeterUsage(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 B<REQUIRED> DryRun => Bool
41              
42             Checks whether you have the permissions required for the action, but
43             does not make the request. If you have the permissions, the request
44             returns DryRunOperation; otherwise, it returns UnauthorizedException.
45              
46              
47              
48             =head2 B<REQUIRED> ProductCode => Str
49              
50             Product code is used to uniquely identify a product in AWS Marketplace.
51             The product code should be the same as the one used during the
52             publishing of a new product.
53              
54              
55              
56             =head2 B<REQUIRED> Timestamp => Str
57              
58             Timestamp of the hour, recorded in UTC. The seconds and milliseconds
59             portions of the timestamp will be ignored.
60              
61              
62              
63             =head2 B<REQUIRED> UsageDimension => Str
64              
65             It will be one of the fcp dimension name provided during the publishing
66             of the product.
67              
68              
69              
70             =head2 B<REQUIRED> UsageQuantity => Int
71              
72             Consumption value for the hour.
73              
74              
75              
76              
77             =head1 SEE ALSO
78              
79             This class forms part of L<Paws>, documenting arguments for method MeterUsage in L<Paws::MarketplaceMetering>
80              
81             =head1 BUGS and CONTRIBUTIONS
82              
83             The source code is located here: https://github.com/pplu/aws-sdk-perl
84              
85             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
86              
87             =cut
88