NAME

Paws::EC2::PurchaseReservedInstancesOffering - Arguments for method PurchaseReservedInstancesOffering on Paws::EC2

DESCRIPTION

This class represents the parameters used for calling the method PurchaseReservedInstancesOffering on the Amazon Elastic Compute Cloud service. Use the attributes of this class as arguments to method PurchaseReservedInstancesOffering.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PurchaseReservedInstancesOffering.

SYNOPSIS

my $ec2 = Paws->service('EC2');
my $PurchaseReservedInstancesOfferingResult =
  $ec2->PurchaseReservedInstancesOffering(
  InstanceCount               => 1,
  ReservedInstancesOfferingId => 'MyReservedInstancesOfferingId',
  DryRun                      => 1,                               # OPTIONAL
  LimitPrice                  => {
    Amount       => 1,        # OPTIONAL
    CurrencyCode => 'USD',    # values: USD; OPTIONAL
  },    # OPTIONAL
  PurchaseTime => '1970-01-01T01:00:00',    # OPTIONAL
  );

# Results:
my $ReservedInstancesId =
  $PurchaseReservedInstancesOfferingResult->ReservedInstancesId;

# Returns a L<Paws::EC2::PurchaseReservedInstancesOfferingResult> object.

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. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/ec2/PurchaseReservedInstancesOffering

ATTRIBUTES

DryRun => Bool

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

REQUIRED InstanceCount => Int

The number of Reserved Instances to purchase.

LimitPrice => Paws::EC2::ReservedInstanceLimitPrice

Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

PurchaseTime => Str

The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

REQUIRED ReservedInstancesOfferingId => Str

The ID of the Reserved Instance offering to purchase.

SEE ALSO

This class forms part of Paws, documenting arguments for method PurchaseReservedInstancesOffering in Paws::EC2

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues