blib/lib/Paws/CostExplorer/CreateAnomalyMonitor.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CostExplorer::CreateAnomalyMonitor;
3 use Moose;
4 has AnomalyMonitor => (is => 'ro', isa => 'Paws::CostExplorer::AnomalyMonitor', required => 1);
5  
6 use MooseX::ClassAttribute;
7  
8 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAnomalyMonitor');
9 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CostExplorer::CreateAnomalyMonitorResponse');
10 class_has _result_key => (isa => 'Str', is => 'ro');
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::CostExplorer::CreateAnomalyMonitor - Arguments for method CreateAnomalyMonitor on L<Paws::CostExplorer>
18  
19 =head1 DESCRIPTION
20  
21 This class represents the parameters used for calling the method CreateAnomalyMonitor on the
22 L<AWS Cost Explorer Service|Paws::CostExplorer> service. Use the attributes of this class
23 as arguments to method CreateAnomalyMonitor.
24  
25 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAnomalyMonitor.
26  
27 =head1 SYNOPSIS
28  
29 my $ce = Paws->service('CostExplorer');
30 my $CreateAnomalyMonitorResponse = $ce->CreateAnomalyMonitor(
31 AnomalyMonitor => {
32 MonitorName => 'MyGenericString', # max: 1024
33 MonitorType => 'DIMENSIONAL', # values: DIMENSIONAL, CUSTOM
34 CreationDate => 'MyYearMonthDay', # max: 40; OPTIONAL
35 DimensionalValueCount => 1, # OPTIONAL
36 LastEvaluatedDate => 'MyYearMonthDay', # max: 40; OPTIONAL
37 LastUpdatedDate => 'MyYearMonthDay', # max: 40; OPTIONAL
38 MonitorArn => 'MyGenericString', # max: 1024
39 MonitorDimension => 'SERVICE', # values: SERVICE; OPTIONAL
40 MonitorSpecification => {
41 And => [ <Expression>, ... ], # OPTIONAL
42 CostCategories => {
43 Key => 'MyCostCategoryName', # min: 1, max: 50; OPTIONAL
44 MatchOptions => [
45 'EQUALS',
46 ... # values: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
47 ], # OPTIONAL
48 Values => [
49 'MyValue', ... # max: 1024
50 ], # OPTIONAL
51 }, # OPTIONAL
52 Dimensions => {
53 Key => 'AZ'
54 , # values: AZ, INSTANCE_TYPE, LINKED_ACCOUNT, LINKED_ACCOUNT_NAME, OPERATION, PURCHASE_TYPE, REGION, SERVICE, SERVICE_CODE, USAGE_TYPE, USAGE_TYPE_GROUP, RECORD_TYPE, OPERATING_SYSTEM, TENANCY, SCOPE, PLATFORM, SUBSCRIPTION_ID, LEGAL_ENTITY_NAME, DEPLOYMENT_OPTION, DATABASE_ENGINE, CACHE_ENGINE, INSTANCE_TYPE_FAMILY, BILLING_ENTITY, RESERVATION_ID, RESOURCE_ID, RIGHTSIZING_TYPE, SAVINGS_PLANS_TYPE, SAVINGS_PLAN_ARN, PAYMENT_OPTION, AGREEMENT_END_DATE_TIME_AFTER, AGREEMENT_END_DATE_TIME_BEFORE; OPTIONAL
55 MatchOptions => [
56 'EQUALS',
57 ... # values: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
58 ], # OPTIONAL
59 Values => [
60 'MyValue', ... # max: 1024
61 ], # OPTIONAL
62 }, # OPTIONAL
63 Not => <Expression>,
64 Or => [ <Expression>, ... ], # OPTIONAL
65 Tags => {
66 Key => 'MyTagKey', # max: 1024; OPTIONAL
67 MatchOptions => [
68 'EQUALS',
69 ... # values: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
70 ], # OPTIONAL
71 Values => [
72 'MyValue', ... # max: 1024
73 ], # OPTIONAL
74 }, # OPTIONAL
75 }, # OPTIONAL
76 },
77  
78 );
79  
80 # Results:
81 my $MonitorArn = $CreateAnomalyMonitorResponse->MonitorArn;
82  
83 # Returns a L<Paws::CostExplorer::CreateAnomalyMonitorResponse> object.
84  
85 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.
86 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ce/CreateAnomalyMonitor>
87  
88 =head1 ATTRIBUTES
89  
90  
91 =head2 B<REQUIRED> AnomalyMonitor => L<Paws::CostExplorer::AnomalyMonitor>
92  
93 The cost anomaly detection monitor object that you want to create.
94  
95  
96  
97  
98 =head1 SEE ALSO
99  
100 This class forms part of L<Paws>, documenting arguments for method CreateAnomalyMonitor in L<Paws::CostExplorer>
101  
102 =head1 BUGS and CONTRIBUTIONS
103  
104 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
105  
106 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
107  
108 =cut
109