NAME
Paws::EC2::CreateCapacityReservation - Arguments for method CreateCapacityReservation on Paws::EC2
DESCRIPTION
This class represents the parameters used for calling the method CreateCapacityReservation on the Amazon Elastic Compute Cloud service. Use the attributes of this class as arguments to method CreateCapacityReservation.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateCapacityReservation.
SYNOPSIS
my $ec2 = Paws->service('EC2');
my $CreateCapacityReservationResult = $ec2->CreateCapacityReservation(
InstanceCount => 1,
InstancePlatform => 'Linux/UNIX',
InstanceType => 'MyString',
AvailabilityZone => 'MyString', # OPTIONAL
AvailabilityZoneId => 'MyString', # OPTIONAL
ClientToken => 'MyString', # OPTIONAL
DryRun => 1, # OPTIONAL
EbsOptimized => 1, # OPTIONAL
EndDate => '1970-01-01T01:00:00', # OPTIONAL
EndDateType => 'unlimited', # OPTIONAL
EphemeralStorage => 1, # OPTIONAL
InstanceMatchCriteria => 'open', # OPTIONAL
OutpostArn => 'MyOutpostArn', # OPTIONAL
TagSpecifications => [
{
ResourceType => 'client-vpn-endpoint'
, # values: client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log; OPTIONAL
Tags => [
{
Key => 'MyString',
Value => 'MyString',
},
...
], # OPTIONAL
},
...
], # OPTIONAL
Tenancy => 'default', # OPTIONAL
);
# Results:
my $CapacityReservation =
$CreateCapacityReservationResult->CapacityReservation;
# Returns a L<Paws::EC2::CreateCapacityReservationResult> 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/CreateCapacityReservation
ATTRIBUTES
AvailabilityZone => Str
The Availability Zone in which to create the Capacity Reservation.
AvailabilityZoneId => Str
The ID of the Availability Zone in which to create the Capacity Reservation.
ClientToken => Str
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
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
.
EbsOptimized => Bool
Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.
EndDate => Str
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
EndDateType => Str
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide anEndDate
if theEndDateType
isunlimited
.limited
- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDate
value if theEndDateType
value islimited
.
Valid values are: "unlimited"
, "limited"
EphemeralStorage => Bool
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
REQUIRED InstanceCount => Int
The number of instances for which to reserve capacity.
InstanceMatchCriteria => Str
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity Reservation automatically without specifying any additional parameters.targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.
Default: open
Valid values are: "open"
, "targeted"
REQUIRED InstancePlatform => Str
The type of operating system for which to reserve capacity.
Valid values are: "Linux/UNIX"
, "Red Hat Enterprise Linux"
, "SUSE Linux"
, "Windows"
, "Windows with SQL Server"
, "Windows with SQL Server Enterprise"
, "Windows with SQL Server Standard"
, "Windows with SQL Server Web"
, "Linux with SQL Server Standard"
, "Linux with SQL Server Web"
, "Linux with SQL Server Enterprise"
REQUIRED InstanceType => Str
The instance type for which to reserve capacity. For more information, see Instance types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the Amazon EC2 User Guide.
OutpostArn => Str
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
TagSpecifications => ArrayRef[Paws::EC2::TagSpecification]
The tags to apply to the Capacity Reservation during launch.
Tenancy => Str
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other accounts.dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a single account.
Valid values are: "default"
, "dedicated"
SEE ALSO
This class forms part of Paws, documenting arguments for method CreateCapacityReservation 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