« blib/lib/Paws/CostExplorer/UpdateAnomalySubscriptionResponse.pm
↑ Summary
blib/lib/Paws/CostExplorer/UpdateCostCategoryDefinitionResponse.pm »
| 1 | |||
| 2 | package Paws::CostExplorer::UpdateCostCategoryDefinition; | ||
| 3 | use Moose; | ||
| 4 | has CostCategoryArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has DefaultValue => (is => 'ro', isa => 'Str'); | ||
| 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 => 'UpdateCostCategoryDefinition'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CostExplorer::UpdateCostCategoryDefinitionResponse'); | ||
| 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::UpdateCostCategoryDefinition - Arguments for method UpdateCostCategoryDefinition on L<Paws::CostExplorer> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method UpdateCostCategoryDefinition on the | ||
| 25 | L<AWS Cost Explorer Service|Paws::CostExplorer> service. Use the attributes of this class | ||
| 26 | as arguments to method UpdateCostCategoryDefinition. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateCostCategoryDefinition. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $ce = Paws->service('CostExplorer'); | ||
| 33 | my $UpdateCostCategoryDefinitionResponse = | ||
| 34 | $ce->UpdateCostCategoryDefinition( | ||
| 35 | CostCategoryArn => 'MyArn', | ||
| 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; OPTIONAL | ||
| 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 | $UpdateCostCategoryDefinitionResponse->CostCategoryArn; | ||
| 91 | my $EffectiveStart = $UpdateCostCategoryDefinitionResponse->EffectiveStart; | ||
| 92 | |||
| 93 | # Returns a L<Paws::CostExplorer::UpdateCostCategoryDefinitionResponse> 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/UpdateCostCategoryDefinition> | ||
| 97 | |||
| 98 | =head1 ATTRIBUTES | ||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> CostCategoryArn => Str | ||
| 102 | |||
| 103 | The unique identifier for your Cost Category. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 DefaultValue => Str | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head2 B<REQUIRED> Rules => ArrayRef[L<Paws::CostExplorer::CostCategoryRule>] | ||
| 114 | |||
| 115 | The C<Expression> object used to categorize costs. For more | ||
| 116 | information, 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 UpdateCostCategoryDefinition 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 |