| 1 | |||
| 2 | package Paws::Pricing::GetAttributeValues; | ||
| 3 | use Moose; | ||
| 4 | has AttributeName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has MaxResults => (is => 'ro', isa => 'Int'); | ||
| 6 | has NextToken => (is => 'ro', isa => 'Str'); | ||
| 7 | has ServiceCode => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetAttributeValues'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pricing::GetAttributeValuesResponse'); | ||
| 13 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::Pricing::GetAttributeValues - Arguments for method GetAttributeValues on L<Paws::Pricing> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method GetAttributeValues on the | ||
| 25 | L<AWS Price List Service|Paws::Pricing> service. Use the attributes of this class | ||
| 26 | as arguments to method GetAttributeValues. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetAttributeValues. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $api.pricing = Paws->service('Pricing'); | ||
| 33 | # To retrieve a list of attribute values | ||
| 34 | # This operation returns a list of values available for the given attribute. | ||
| 35 | my $GetAttributeValuesResponse = $api | ||
| 36 | . pricing->GetAttributeValues( | ||
| 37 | 'AttributeName' => 'volumeType', | ||
| 38 | 'MaxResults' => 2, | ||
| 39 | 'ServiceCode' => 'AmazonEC2' | ||
| 40 | ); | ||
| 41 | |||
| 42 | # Results: | ||
| 43 | my $AttributeValues = $GetAttributeValuesResponse->AttributeValues; | ||
| 44 | my $NextToken = $GetAttributeValuesResponse->NextToken; | ||
| 45 | |||
| 46 | # Returns a L<Paws::Pricing::GetAttributeValuesResponse> object. | ||
| 47 | |||
| 48 | 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. | ||
| 49 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.pricing/GetAttributeValues> | ||
| 50 | |||
| 51 | =head1 ATTRIBUTES | ||
| 52 | |||
| 53 | |||
| 54 | =head2 B<REQUIRED> AttributeName => Str | ||
| 55 | |||
| 56 | The name of the attribute that you want to retrieve the values for, | ||
| 57 | such as C<volumeType>. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head2 MaxResults => Int | ||
| 62 | |||
| 63 | The maximum number of results to return in response. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 NextToken => Str | ||
| 68 | |||
| 69 | The pagination token that indicates the next set of results that you | ||
| 70 | want to retrieve. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> ServiceCode => Str | ||
| 75 | |||
| 76 | The service code for the service whose attributes you want to retrieve. | ||
| 77 | For example, if you want the retrieve an EC2 attribute, use | ||
| 78 | C<AmazonEC2>. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head1 SEE ALSO | ||
| 84 | |||
| 85 | This class forms part of L<Paws>, documenting arguments for method GetAttributeValues in L<Paws::Pricing> | ||
| 86 | |||
| 87 | =head1 BUGS and CONTRIBUTIONS | ||
| 88 | |||
| 89 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 90 | |||
| 91 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 92 | |||
| 93 | =cut | ||
| 94 |