![]() |
![]()
| ![]() |
![]()
NAMEPaws::EC2::CreateCapacityReservation - Arguments for method CreateCapacityReservation on Paws::EC2 DESCRIPTIONThis 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. SYNOPSISmy $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> ATTRIBUTESAvailabilityZone => StrThe Availability Zone in which to create the Capacity Reservation. AvailabilityZoneId => StrThe ID of the Availability Zone in which to create the Capacity Reservation. ClientToken => StrUnique, 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 => BoolChecks 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 => BoolIndicates 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 => StrThe 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 => StrIndicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
Valid values are: "unlimited", "limited" EphemeralStorage => BoolIndicates whether the Capacity Reservation supports instances with temporary, block-level storage. REQUIRED InstanceCount => IntThe number of instances for which to reserve capacity. InstanceMatchCriteria => StrIndicates the type of instance launches that the Capacity Reservation accepts. The options include:
Default: "open" Valid values are: "open", "targeted" REQUIRED InstancePlatform => StrThe 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 => StrThe 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 => StrThe 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 => StrIndicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
Valid values are: "default", "dedicated" SEE ALSOThis class forms part of Paws, documenting arguments for method CreateCapacityReservation in Paws::EC2 BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|