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

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CostExplorer::CreateCostCategoryDefinition;
3 use Moose;
4 has DefaultValue => (is => 'ro', isa => 'Str');
5 has Name => (is => 'ro', isa => 'Str', required => 1);
6 has Rules => (is => 'ro', isa => 'ArrayRef[Paws::CostExplorer::CostCategoryRule]', required => 1);
7 has RuleVersion => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateCostCategoryDefinition');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CostExplorer::CreateCostCategoryDefinitionResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::CostExplorer::CreateCostCategoryDefinition - Arguments for method CreateCostCategoryDefinition on L<Paws::CostExplorer>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateCostCategoryDefinition on the
25 L<AWS Cost Explorer Service|Paws::CostExplorer> service. Use the attributes of this class
26 as arguments to method CreateCostCategoryDefinition.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCostCategoryDefinition.
29  
30 =head1 SYNOPSIS
31  
32 my $ce = Paws->service('CostExplorer');
33 my $CreateCostCategoryDefinitionResponse =
34 $ce->CreateCostCategoryDefinition(
35 Name => 'MyCostCategoryName',
36 RuleVersion => 'CostCategoryExpression.v1',
37 Rules => [
38 {
39 InheritedValue => {
40 DimensionKey => 'MyGenericString', # max: 1024; OPTIONAL
41 DimensionName => 'LINKED_ACCOUNT_NAME'
42 , # values: LINKED_ACCOUNT_NAME, TAG; OPTIONAL
43 }, # OPTIONAL
44 Rule => {
45 And => [ <Expression>, ... ], # OPTIONAL
46 CostCategories => {
47 Key => 'MyCostCategoryName', # min: 1, max: 50
48 MatchOptions => [
49 'EQUALS',
50 ... # values: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
51 ], # OPTIONAL
52 Values => [
53 'MyValue', ... # max: 1024
54 ], # OPTIONAL
55 }, # OPTIONAL
56 Dimensions => {
57 Key => 'AZ'
58 , # 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
59 MatchOptions => [
60 'EQUALS',
61 ... # values: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
62 ], # OPTIONAL
63 Values => [
64 'MyValue', ... # max: 1024
65 ], # OPTIONAL
66 }, # OPTIONAL
67 Not => <Expression>,
68 Or => [ <Expression>, ... ], # OPTIONAL
69 Tags => {
70 Key => 'MyTagKey', # max: 1024; OPTIONAL
71 MatchOptions => [
72 'EQUALS',
73 ... # values: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE
74 ], # OPTIONAL
75 Values => [
76 'MyValue', ... # max: 1024
77 ], # OPTIONAL
78 }, # OPTIONAL
79 }, # OPTIONAL
80 Type => 'REGULAR', # values: REGULAR, INHERITED_VALUE; OPTIONAL
81 Value => 'MyCostCategoryValue', # min: 1, max: 50; OPTIONAL
82 },
83 ...
84 ],
85 DefaultValue => 'MyCostCategoryValue', # OPTIONAL
86 );
87  
88 # Results:
89 my $CostCategoryArn =
90 $CreateCostCategoryDefinitionResponse->CostCategoryArn;
91 my $EffectiveStart = $CreateCostCategoryDefinitionResponse->EffectiveStart;
92  
93 # Returns a L<Paws::CostExplorer::CreateCostCategoryDefinitionResponse> object.
94  
95 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.
96 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ce/CreateCostCategoryDefinition>
97  
98 =head1 ATTRIBUTES
99  
100  
101 =head2 DefaultValue => Str
102  
103  
104  
105  
106  
107 =head2 B<REQUIRED> Name => Str
108  
109  
110  
111  
112  
113 =head2 B<REQUIRED> Rules => ArrayRef[L<Paws::CostExplorer::CostCategoryRule>]
114  
115 The Cost Category rules used to categorize costs. For more information,
116 see CostCategoryRule
117 (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html).
118  
119  
120  
121 =head2 B<REQUIRED> RuleVersion => Str
122  
123  
124  
125 Valid values are: C<"CostCategoryExpression.v1">
126  
127  
128 =head1 SEE ALSO
129  
130 This class forms part of L<Paws>, documenting arguments for method CreateCostCategoryDefinition in L<Paws::CostExplorer>
131  
132 =head1 BUGS and CONTRIBUTIONS
133  
134 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
135  
136 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
137  
138 =cut
139