« blib/lib/Paws/EC2/CreatePlacementGroupResult.pm
↑ Summary
blib/lib/Paws/EC2/CreateReservedInstancesListingResult.pm »
| 1 | |||
| 2 | package Paws::EC2::CreateReservedInstancesListing; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken' , required => 1); | |
| 5 | 1 | has InstanceCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'instanceCount' , required => 1); | |
| 6 | 1 | has PriceSchedules => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PriceScheduleSpecification]', traits => ['NameInRequest'], request_name => 'priceSchedules' , required => 1); | |
| 7 | 1 | has ReservedInstancesId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'reservedInstancesId' , required => 1); | |
| 8 | |||
| 9 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateReservedInstancesListing'); | |
| 12 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateReservedInstancesListingResult'); | |
| 13 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 14 | 1 | 1; | |
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::EC2::CreateReservedInstancesListing - Arguments for method CreateReservedInstancesListing on L<Paws::EC2> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method CreateReservedInstancesListing on the | ||
| 25 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 26 | as arguments to method CreateReservedInstancesListing. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateReservedInstancesListing. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $ec2 = Paws->service('EC2'); | ||
| 33 | my $CreateReservedInstancesListingResult = | ||
| 34 | $ec2->CreateReservedInstancesListing( | ||
| 35 | ClientToken => 'MyString', | ||
| 36 | InstanceCount => 1, | ||
| 37 | PriceSchedules => [ | ||
| 38 | { | ||
| 39 | CurrencyCode => 'USD', # values: USD; OPTIONAL | ||
| 40 | Price => 1, # OPTIONAL | ||
| 41 | Term => 1, # OPTIONAL | ||
| 42 | }, | ||
| 43 | ... | ||
| 44 | ], | ||
| 45 | ReservedInstancesId => 'MyReservationId', | ||
| 46 | |||
| 47 | ); | ||
| 48 | |||
| 49 | # Results: | ||
| 50 | my $ReservedInstancesListings = | ||
| 51 | $CreateReservedInstancesListingResult->ReservedInstancesListings; | ||
| 52 | |||
| 53 | # Returns a L<Paws::EC2::CreateReservedInstancesListingResult> object. | ||
| 54 | |||
| 55 | 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. | ||
| 56 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateReservedInstancesListing> | ||
| 57 | |||
| 58 | =head1 ATTRIBUTES | ||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> ClientToken => Str | ||
| 62 | |||
| 63 | Unique, case-sensitive identifier you provide to ensure idempotency of | ||
| 64 | your listings. This helps avoid duplicate listings. For more | ||
| 65 | information, see Ensuring Idempotency | ||
| 66 | (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 B<REQUIRED> InstanceCount => Int | ||
| 71 | |||
| 72 | The number of instances that are a part of a Reserved Instance account | ||
| 73 | to be listed in the Reserved Instance Marketplace. This number should | ||
| 74 | be less than or equal to the instance count associated with the | ||
| 75 | Reserved Instance ID specified in this call. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> PriceSchedules => ArrayRef[L<Paws::EC2::PriceScheduleSpecification>] | ||
| 80 | |||
| 81 | A list specifying the price of the Standard Reserved Instance for each | ||
| 82 | month remaining in the Reserved Instance term. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head2 B<REQUIRED> ReservedInstancesId => Str | ||
| 87 | |||
| 88 | The ID of the active Standard Reserved Instance. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head1 SEE ALSO | ||
| 94 | |||
| 95 | This class forms part of L<Paws>, documenting arguments for method CreateReservedInstancesListing in L<Paws::EC2> | ||
| 96 | |||
| 97 | =head1 BUGS and CONTRIBUTIONS | ||
| 98 | |||
| 99 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 100 | |||
| 101 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 102 | |||
| 103 | =cut | ||
| 104 | |||