« blib/lib/Paws/EC2/PurchaseRequest.pm
↑ Summary
blib/lib/Paws/EC2/PurchaseReservedInstancesOfferingResult.pm »
| 1 | |||
| 2 | package Paws::EC2::PurchaseReservedInstancesOffering; | ||
| 3 | use Moose; | ||
| 4 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | ||
| 5 | has InstanceCount => (is => 'ro', isa => 'Int', required => 1); | ||
| 6 | has LimitPrice => (is => 'ro', isa => 'Paws::EC2::ReservedInstanceLimitPrice', traits => ['NameInRequest'], request_name => 'limitPrice' ); | ||
| 7 | has PurchaseTime => (is => 'ro', isa => 'Str'); | ||
| 8 | has ReservedInstancesOfferingId => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PurchaseReservedInstancesOffering'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::PurchaseReservedInstancesOfferingResult'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::EC2::PurchaseReservedInstancesOffering - Arguments for method PurchaseReservedInstancesOffering on L<Paws::EC2> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method PurchaseReservedInstancesOffering on the | ||
| 26 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 27 | as arguments to method PurchaseReservedInstancesOffering. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PurchaseReservedInstancesOffering. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $ec2 = Paws->service('EC2'); | ||
| 34 | my $PurchaseReservedInstancesOfferingResult = | ||
| 35 | $ec2->PurchaseReservedInstancesOffering( | ||
| 36 | InstanceCount => 1, | ||
| 37 | ReservedInstancesOfferingId => 'MyReservedInstancesOfferingId', | ||
| 38 | DryRun => 1, # OPTIONAL | ||
| 39 | LimitPrice => { | ||
| 40 | Amount => 1, # OPTIONAL | ||
| 41 | CurrencyCode => 'USD', # values: USD; OPTIONAL | ||
| 42 | }, # OPTIONAL | ||
| 43 | PurchaseTime => '1970-01-01T01:00:00', # OPTIONAL | ||
| 44 | ); | ||
| 45 | |||
| 46 | # Results: | ||
| 47 | my $ReservedInstancesId = | ||
| 48 | $PurchaseReservedInstancesOfferingResult->ReservedInstancesId; | ||
| 49 | |||
| 50 | # Returns a L<Paws::EC2::PurchaseReservedInstancesOfferingResult> object. | ||
| 51 | |||
| 52 | 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. | ||
| 53 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/PurchaseReservedInstancesOffering> | ||
| 54 | |||
| 55 | =head1 ATTRIBUTES | ||
| 56 | |||
| 57 | |||
| 58 | =head2 DryRun => Bool | ||
| 59 | |||
| 60 | Checks whether you have the required permissions for the action, | ||
| 61 | without actually making the request, and provides an error response. If | ||
| 62 | you have the required permissions, the error response is | ||
| 63 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> InstanceCount => Int | ||
| 68 | |||
| 69 | The number of Reserved Instances to purchase. | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | =head2 LimitPrice => L<Paws::EC2::ReservedInstanceLimitPrice> | ||
| 74 | |||
| 75 | Specified for Reserved Instance Marketplace offerings to limit the | ||
| 76 | total order and ensure that the Reserved Instances are not purchased at | ||
| 77 | unexpected prices. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 PurchaseTime => Str | ||
| 82 | |||
| 83 | The time at which to purchase the Reserved Instance, in UTC format (for | ||
| 84 | example, I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 B<REQUIRED> ReservedInstancesOfferingId => Str | ||
| 89 | |||
| 90 | The ID of the Reserved Instance offering to purchase. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | =head1 SEE ALSO | ||
| 96 | |||
| 97 | This class forms part of L<Paws>, documenting arguments for method PurchaseReservedInstancesOffering in L<Paws::EC2> | ||
| 98 | |||
| 99 | =head1 BUGS and CONTRIBUTIONS | ||
| 100 | |||
| 101 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 102 | |||
| 103 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 104 | |||
| 105 | =cut | ||
| 106 |