DryRunOperation. Otherwise, it is UnauthorizedOperation.
+ undefined:
+ allOf:
+ - $ref: '#/components/schemas/Storage'
+ - description: The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
+ required:
+ - InstanceId
+ - Storage
+ title: BundleInstanceRequest
+ type: object
+ BundleInstanceResponseWrapper:
+ properties:
+ BundleInstanceResponse:
+ $ref: '#/components/schemas/BundleInstanceResult'
+ type: object
+ BundleInstanceResult:
+ description: Contains the output of BundleInstance.
+ properties:
+ bundleInstanceTask:
+ allOf:
+ - $ref: '#/components/schemas/BundleTask'
+ - description: Information about the bundle task.
+ type: object
+ BundleTask:
+ description: Describes a bundle task.
+ properties:
+ bundleId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the bundle task.
+ error:
+ allOf:
+ - $ref: '#/components/schemas/BundleTaskError'
+ - description: If the task fails, a description of the error.
+ instanceId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the instance associated with this bundle task.
+ progress:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The level of task completion, as a percent (for example, 20%).
+ startTime:
+ allOf:
+ - $ref: '#/components/schemas/DateTime'
+ - description: The time this task started.
+ state:
+ allOf:
+ - $ref: '#/components/schemas/BundleTaskState'
+ - description: The state of the task.
+ storage:
+ allOf:
+ - $ref: '#/components/schemas/Storage'
+ - description: The Amazon S3 storage locations.
+ updateTime:
+ allOf:
+ - $ref: '#/components/schemas/DateTime'
+ - description: The time of the most recent update for the task.
+ type: object
+ BundleTaskError:
+ description: Describes an error for BundleInstance.
+ properties:
+ code:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The error code.
+ message:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The error message.
+ type: object
+ BundleTaskState:
+ enum:
+ - pending
+ - waiting-for-shutdown
+ - bundling
+ - storing
+ - cancelling
+ - complete
+ - failed
+ type: string
+ CapacityReservationPreference:
+ enum:
+ - open
+ - none
+ type: string
+ CapacityReservationSpecificationResponse:
+ description: Describes the instance's Capacity Reservation targeting preferences. The action returns the capacityReservationPreference response element if the instance is configured to run in On-Demand capacity, or if it is configured in run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). The action returns the capacityReservationTarget response element if the instance explicily targets a specific Capacity Reservation or Capacity Reservation group.
+ properties:
+ capacityReservationPreference:
+ allOf:
+ - $ref: '#/components/schemas/CapacityReservationPreference'
+ - description: Describes the instance's Capacity Reservation preferences. Possible preferences include:
open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).
none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
The filters.
affinity - The affinity setting for an instance running on a Dedicated Host (default | host).
architecture - The instance architecture (i386 | x86_64 | arm64).
availability-zone - The Availability Zone of the instance.
block-device-mapping.attach-time - The attach time for an EBS volume mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
block-device-mapping.delete-on-termination - A Boolean that indicates whether the EBS volume is deleted on instance termination.
block-device-mapping.device-name - The device name specified in the block device mapping (for example, /dev/sdh or xvdh).
block-device-mapping.status - The status for the EBS volume (attaching | attached | detaching | detached).
block-device-mapping.volume-id - The volume ID of the EBS volume.
capacity-reservation-id - The ID of the Capacity Reservation into which the instance was launched.
client-token - The idempotency token you provided when you launched the instance.
dns-name - The public DNS name of the instance.
group-id - The ID of the security group for the instance. EC2-Classic only.
group-name - The name of the security group for the instance. EC2-Classic only.
hibernation-options.configured - A Boolean that indicates whether the instance is enabled for hibernation. A value of true means that the instance is enabled for hibernation.
host-id - The ID of the Dedicated Host on which the instance is running, if applicable.
hypervisor - The hypervisor type of the instance (ovm | xen). The value xen is used for both Xen and Nitro hypervisors.
iam-instance-profile.arn - The instance profile associated with the instance. Specified as an ARN.
image-id - The ID of the image used to launch the instance.
instance-id - The ID of the instance.
instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled Instance (spot | scheduled).
instance-state-code - The state of the instance, as a 16-bit unsigned integer. The high byte is used for internal purposes and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).
instance-type - The type of instance (for example, t2.micro).
instance.group-id - The ID of the security group for the instance.
instance.group-name - The name of the security group for the instance.
ip-address - The public IPv4 address of the instance.
kernel-id - The kernel ID.
key-name - The name of the key pair used when the instance was launched.
launch-index - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).
launch-time - The time when the instance was launched, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, 2021-09-29T11:04:43.305Z. You can use a wildcard (*), for example, 2021-09-29T*, which matches an entire day.
metadata-options.http-tokens - The metadata request authorization state (optional | required)
metadata-options.http-put-response-hop-limit - The http metadata request put response hop limit (integer, possible values 1 to 64)
metadata-options.http-endpoint - Enable or disable metadata access on http endpoint (enabled | disabled)
monitoring-state - Indicates whether detailed monitoring is enabled (disabled | enabled).
network-interface.addresses.private-ip-address - The private IPv4 address associated with the network interface.
network-interface.addresses.primary - Specifies whether the IPv4 address of the network interface is the primary private IPv4 address.
network-interface.addresses.association.public-ip - The ID of the association of an Elastic IP address (IPv4) with a network interface.
network-interface.addresses.association.ip-owner-id - The owner ID of the private IPv4 address associated with the network interface.
network-interface.association.public-ip - The address of the Elastic IP address (IPv4) bound to the network interface.
network-interface.association.ip-owner-id - The owner of the Elastic IP address (IPv4) associated with the network interface.
network-interface.association.allocation-id - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.
network-interface.association.association-id - The association ID returned when the network interface was associated with an IPv4 address.
network-interface.attachment.attachment-id - The ID of the interface attachment.
network-interface.attachment.instance-id - The ID of the instance to which the network interface is attached.
network-interface.attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.
network-interface.attachment.device-index - The device index to which the network interface is attached.
network-interface.attachment.status - The status of the attachment (attaching | attached | detaching | detached).
network-interface.attachment.attach-time - The time that the network interface was attached to an instance.
network-interface.attachment.delete-on-termination - Specifies whether the attachment is deleted when an instance is terminated.
network-interface.availability-zone - The Availability Zone for the network interface.
network-interface.description - The description of the network interface.
network-interface.group-id - The ID of a security group associated with the network interface.
network-interface.group-name - The name of a security group associated with the network interface.
network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated with the network interface.
network-interface.mac-address - The MAC address of the network interface.
network-interface.network-interface-id - The ID of the network interface.
network-interface.owner-id - The ID of the owner of the network interface.
network-interface.private-dns-name - The private DNS name of the network interface.
network-interface.requester-id - The requester ID for the network interface.
network-interface.requester-managed - Indicates whether the network interface is being managed by Amazon Web Services.
network-interface.status - The status of the network interface (available) | in-use).
network-interface.source-dest-check - Whether the network interface performs source/destination checking. A value of true means that checking is enabled, and false means that checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.
network-interface.subnet-id - The ID of the subnet for the network interface.
network-interface.vpc-id - The ID of the VPC for the network interface.
outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
owner-id - The Amazon Web Services account ID of the instance owner.
placement-group-name - The name of the placement group for the instance.
placement-partition-number - The partition in which the instance is located.
platform - The platform. To list only Windows instances, use windows.
private-dns-name - The private IPv4 DNS name of the instance.
private-ip-address - The private IPv4 address of the instance.
product-code - The product code associated with the AMI used to launch the instance.
product-code.type - The type of product code (devpay | marketplace).
ramdisk-id - The RAM disk ID.
reason - The reason for the current state of the instance (for example, shows "User Initiated [date]" when you stop or terminate the instance). Similar to the state-reason-code filter.
requester-id - The ID of the entity that launched the instance on your behalf (for example, Amazon Web Services Management Console, Auto Scaling, and so on).
reservation-id - The ID of the instance''s reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.
root-device-name - The device name of the root device volume (for example, /dev/sda1).
root-device-type - The type of the root device volume (ebs | instance-store).
source-dest-check - Indicates whether the instance performs source/destination checking. A value of true means that checking is enabled, and false means that checking is disabled. The value must be false for the instance to perform network address translation (NAT) in your VPC.
spot-instance-request-id - The ID of the Spot Instance request.
state-reason-code - The reason code for the state change.
state-reason-message - A message that describes the state change.
subnet-id - The ID of the subnet for the instance.
tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
tag-key - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.
tenancy - The tenancy of an instance (dedicated | default | host).
virtualization-type - The virtualization type of the instance (paravirtual | hvm).
vpc-id - The ID of the VPC that the instance is running in.
The instance IDs.
Default: Describes all your instances.
' + MaxResults: + maximum: 1000 + minimum: 5 + type: integer + dryRun: + allOf: + - $ref: '#/components/schemas/Boolean' + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ maxResults:
+ allOf:
+ - $ref: '#/components/schemas/Integer'
+ - description: The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call.
+ nextToken:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The token to request the next page of results.
+ title: DescribeInstancesRequest
+ type: object
+ DescribeInstancesResponseWrapper:
+ properties:
+ DescribeInstancesResponse:
+ $ref: '#/components/schemas/DescribeInstancesResult'
+ type: object
+ DescribeInstancesResult:
+ example: {}
+ properties:
+ nextToken:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The token to use to retrieve the next page of results. This value is null when there are no more results to return.
+ reservationSet:
+ allOf:
+ - $ref: '#/components/schemas/ReservationList'
+ - description: Information about the reservations.
+ type: object
+ DeviceType:
+ enum:
+ - ebs
+ - instance-store
+ type: string
+ DiskImage:
+ description: Describes a disk image.
+ properties:
+ undefined:
+ allOf:
+ - $ref: '#/components/schemas/VolumeDetail'
+ - description: Information about the volume.
+ type: object
+ DiskImageDescription:
+ description: Describes a disk image.
+ properties:
+ checksum:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The checksum computed for the disk image.
+ format:
+ allOf:
+ - $ref: '#/components/schemas/DiskImageFormat'
+ - description: The disk image format.
+ importManifestUrl:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: A presigned URL for the import manifest stored in Amazon S3. For information about creating a presigned URL for an Amazon S3 object, read the "Query String Request Authentication Alternative" section of the Authenticating REST Requests topic in the Amazon Simple Storage Service Developer Guide.
For information about the import manifest referenced by this API action, see VM Import Manifest.
+ size: + allOf: + - $ref: '#/components/schemas/Long' + - description: The size of the disk image, in GiB. + type: object + DiskImageFormat: + enum: + - VMDK + - RAW + - VHD + type: string + DiskImageList: + items: + $ref: '#/components/schemas/DiskImage' + type: array + DiskImageVolumeDescription: + description: Describes a disk image volume. + properties: + id: + allOf: + - $ref: '#/components/schemas/String' + - description: The volume identifier. + size: + allOf: + - $ref: '#/components/schemas/Long' + - description: The size of the volume, in GiB. + type: object + DisplayInstancesSchema: + properties: + line_items: + items: + properties: + availability_zone: + nullable: true + type: string + block_device_mappings: + nullable: true + type: object + iam_instance_profile: + nullable: true + type: object + image_id: + nullable: true + type: string + instance_id: + nullable: true + type: string + instance_type: + nullable: true + type: string + key_name: + nullable: true + type: string + launch_time: + nullable: true + type: string + monitoring: + nullable: true + type: object + network_interfaces: + nullable: true + type: object + private_dns_name: + nullable: true + type: string + private_ip_address: + nullable: true + type: string + public_dns_name: + nullable: true + type: string + public_ip_address: + nullable: true + type: string + security_groups: + nullable: true + type: object + state: + nullable: true + type: object + subnet_id: + nullable: true + type: string + tag_set: + nullable: true + type: object + vpc_id: + nullable: true + type: string + type: object + type: array + next_page_token: + nullable: true + type: string + type: object + EbsInstanceBlockDevice: + description: Describes a parameter used to set up an EBS volume in a block device mapping. + properties: + attachTime: + allOf: + - $ref: '#/components/schemas/DateTime' + - description: The time stamp when the attachment initiated. + deleteOnTermination: + allOf: + - $ref: '#/components/schemas/Boolean' + - description: Indicates whether the volume is deleted on instance termination. + status: + allOf: + - $ref: '#/components/schemas/AttachmentStatus' + - description: The attachment state. + volumeId: + allOf: + - $ref: '#/components/schemas/String' + - description: The ID of the EBS volume. + type: object + ElasticGpuAssociation: + description: Describes the association between an instance and an Elastic Graphics accelerator. + properties: + elasticGpuAssociationId: + allOf: + - $ref: '#/components/schemas/String' + - description: The ID of the association. + elasticGpuAssociationState: + allOf: + - $ref: '#/components/schemas/String' + - description: The state of the association between the instance and the Elastic Graphics accelerator. + elasticGpuAssociationTime: + allOf: + - $ref: '#/components/schemas/String' + - description: The time the Elastic Graphics accelerator was associated with the instance. + elasticGpuId: + allOf: + - $ref: '#/components/schemas/ElasticGpuId' + - description: The ID of the Elastic Graphics accelerator. + type: object + ElasticGpuAssociationList: + items: + allOf: + - $ref: '#/components/schemas/ElasticGpuAssociation' + - xml: + name: item + type: array + ElasticGpuId: + type: string + ElasticInferenceAccelerator: + description: ' Describes an elastic inference accelerator. ' + properties: + undefined: + allOf: + - $ref: '#/components/schemas/ElasticInferenceAcceleratorCount' + - description: 'The number of elastic inference accelerators to attach to the instance.
Default: 1
' + required: + - Type + type: object + ElasticInferenceAcceleratorAssociation: + description: ' Describes the association between an instance and an elastic inference accelerator. ' + properties: + elasticInferenceAcceleratorArn: + allOf: + - $ref: '#/components/schemas/String' + - description: ' The Amazon Resource Name (ARN) of the elastic inference accelerator. ' + elasticInferenceAcceleratorAssociationId: + allOf: + - $ref: '#/components/schemas/String' + - description: ' The ID of the association. ' + elasticInferenceAcceleratorAssociationState: + allOf: + - $ref: '#/components/schemas/String' + - description: ' The state of the elastic inference accelerator. ' + elasticInferenceAcceleratorAssociationTime: + allOf: + - $ref: '#/components/schemas/DateTime' + - description: ' The time at which the elastic inference accelerator is associated with an instance. ' + type: object + ElasticInferenceAcceleratorAssociationList: + items: + allOf: + - $ref: '#/components/schemas/ElasticInferenceAcceleratorAssociation' + - xml: + name: item + type: array + ElasticInferenceAcceleratorCount: + minimum: 1 + type: integer + ElasticInferenceAccelerators: + items: + allOf: + - $ref: '#/components/schemas/ElasticInferenceAccelerator' + - xml: + name: item + type: array + EnclaveOptions: + description: Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. + properties: + enabled: + allOf: + - $ref: '#/components/schemas/Boolean' + - description: If this parameter is set totrue, the instance is enabled for Amazon Web Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web Services Nitro Enclaves.
+ type: object
+ Filter:
+ description: A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.
OR, and the request returns all results that match any of the specified values.
+ undefined:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The name of the filter. Filter names are case-sensitive.
+ type: object
+ FilterList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/Filter'
+ - xml:
+ name: Filter
+ type: array
+ GroupIdentifier:
+ description: Describes a security group.
+ properties:
+ groupId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the security group.
+ groupName:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The name of the security group.
+ type: object
+ GroupIdentifierList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/GroupIdentifier'
+ - xml:
+ name: item
+ type: array
+ HibernationOptions:
+ description: Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
+ properties:
+ configured:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: If this parameter is set to true, your instance is enabled for hibernation; otherwise, it is not enabled for hibernation.
+ type: object
+ HibernationOptionsRequest:
+ description: Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
+ properties:
+ undefined:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: 'If you set this parameter to true, your instance is enabled for hibernation.
Default: false
DryRunOperation. Otherwise, it is UnauthorizedOperation.
+ launchSpecification:
+ allOf:
+ - $ref: '#/components/schemas/ImportInstanceLaunchSpecification'
+ - description: The launch specification.
+ platform:
+ allOf:
+ - $ref: '#/components/schemas/PlatformValues'
+ - description: The instance operating system.
+ required:
+ - Platform
+ title: ImportInstanceRequest
+ type: object
+ ImportInstanceResponseWrapper:
+ properties:
+ ImportInstanceResponse:
+ $ref: '#/components/schemas/ImportInstanceResult'
+ type: object
+ ImportInstanceResult:
+ properties:
+ conversionTask:
+ allOf:
+ - $ref: '#/components/schemas/ConversionTask'
+ - description: Information about the conversion task.
+ type: object
+ ImportInstanceTaskDetails:
+ description: Describes an import instance task.
+ properties:
+ description:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: A description of the task.
+ instanceId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the instance.
+ platform:
+ allOf:
+ - $ref: '#/components/schemas/PlatformValues'
+ - description: The instance operating system.
+ volumes:
+ allOf:
+ - $ref: '#/components/schemas/ImportInstanceVolumeDetailSet'
+ - description: The volumes.
+ type: object
+ ImportInstanceVolumeDetailItem:
+ description: Describes an import volume task.
+ properties:
+ availabilityZone:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The Availability Zone where the resulting instance will reside.
+ bytesConverted:
+ allOf:
+ - $ref: '#/components/schemas/Long'
+ - description: The number of bytes converted so far.
+ description:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: A description of the task.
+ image:
+ allOf:
+ - $ref: '#/components/schemas/DiskImageDescription'
+ - description: The image.
+ status:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The status of the import of this particular disk image.
+ statusMessage:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The status information or errors related to the disk image.
+ volume:
+ allOf:
+ - $ref: '#/components/schemas/DiskImageVolumeDescription'
+ - description: The volume.
+ type: object
+ ImportInstanceVolumeDetailSet:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/ImportInstanceVolumeDetailItem'
+ - xml:
+ name: item
+ type: array
+ ImportVolumeTaskDetails:
+ description: Describes an import volume task.
+ properties:
+ availabilityZone:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The Availability Zone where the resulting volume will reside.
+ bytesConverted:
+ allOf:
+ - $ref: '#/components/schemas/Long'
+ - description: The number of bytes converted so far.
+ description:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The description you provided when starting the import volume task.
+ image:
+ allOf:
+ - $ref: '#/components/schemas/DiskImageDescription'
+ - description: The image.
+ volume:
+ allOf:
+ - $ref: '#/components/schemas/DiskImageVolumeDescription'
+ - description: The volume.
+ type: object
+ Instance:
+ description: Describes an instance.
+ properties:
+ amiLaunchIndex:
+ allOf:
+ - $ref: '#/components/schemas/Integer'
+ - description: The AMI launch index, which can be used to find this instance in the launch group.
+ architecture:
+ allOf:
+ - $ref: '#/components/schemas/ArchitectureValues'
+ - description: The architecture of the image.
+ blockDeviceMapping:
+ allOf:
+ - $ref: '#/components/schemas/InstanceBlockDeviceMappingList'
+ - description: Any block device mapping entries for the instance.
+ bootMode:
+ allOf:
+ - $ref: '#/components/schemas/BootModeValues'
+ - description: The boot mode of the instance. For more information, see Boot modes in the Amazon EC2 User Guide.
+ capacityReservationId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the Capacity Reservation.
+ capacityReservationSpecification:
+ allOf:
+ - $ref: '#/components/schemas/CapacityReservationSpecificationResponse'
+ - description: Information about the Capacity Reservation targeting option.
+ clientToken:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The idempotency token you provided when you launched the instance, if applicable.
+ cpuOptions:
+ allOf:
+ - $ref: '#/components/schemas/CpuOptions'
+ - description: The CPU options for the instance.
+ dnsName:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: (IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters the running state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.
+ ebsOptimized:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: Indicates whether the instance is optimized for Amazon EBS I/O. 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.
+ elasticGpuAssociationSet:
+ allOf:
+ - $ref: '#/components/schemas/ElasticGpuAssociationList'
+ - description: The Elastic GPU associated with the instance.
+ elasticInferenceAcceleratorAssociationSet:
+ allOf:
+ - $ref: '#/components/schemas/ElasticInferenceAcceleratorAssociationList'
+ - description: ' The elastic inference accelerator associated with the instance.'
+ enaSupport:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: Specifies whether enhanced networking with ENA is enabled.
+ enclaveOptions:
+ allOf:
+ - $ref: '#/components/schemas/EnclaveOptions'
+ - description: Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
+ groupSet:
+ allOf:
+ - $ref: '#/components/schemas/GroupIdentifierList'
+ - description: The security groups for the instance.
+ hibernationOptions:
+ allOf:
+ - $ref: '#/components/schemas/HibernationOptions'
+ - description: Indicates whether the instance is enabled for hibernation.
+ hypervisor:
+ allOf:
+ - $ref: '#/components/schemas/HypervisorType'
+ - description: The hypervisor type of the instance. The value xen is used for both Xen and Nitro hypervisors.
+ iamInstanceProfile:
+ allOf:
+ - $ref: '#/components/schemas/IamInstanceProfile'
+ - description: The IAM instance profile associated with the instance, if applicable.
+ imageId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the AMI used to launch the instance.
+ instanceId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the instance.
+ instanceLifecycle:
+ allOf:
+ - $ref: '#/components/schemas/InstanceLifecycleType'
+ - description: Indicates whether this is a Spot Instance or a Scheduled Instance.
+ instanceState:
+ allOf:
+ - $ref: '#/components/schemas/InstanceState'
+ - description: The current state of the instance.
+ instanceType:
+ allOf:
+ - $ref: '#/components/schemas/InstanceType'
+ - description: The instance type.
+ ipAddress:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
+ ipv6Address: + allOf: + - $ref: '#/components/schemas/String' + - description: The IPv6 address assigned to the instance. + kernelId: + allOf: + - $ref: '#/components/schemas/String' + - description: The kernel associated with this instance, if applicable. + keyName: + allOf: + - $ref: '#/components/schemas/String' + - description: The name of the key pair, if this instance was launched with an associated key pair. + launchTime: + allOf: + - $ref: '#/components/schemas/DateTime' + - description: The time the instance was launched. + licenseSet: + allOf: + - $ref: '#/components/schemas/LicenseList' + - description: The license configurations for the instance. + maintenanceOptions: + allOf: + - $ref: '#/components/schemas/InstanceMaintenanceOptions' + - description: Provides information on the recovery and maintenance options of your instance. + metadataOptions: + allOf: + - $ref: '#/components/schemas/InstanceMetadataOptionsResponse' + - description: The metadata options for the instance. + monitoring: + allOf: + - $ref: '#/components/schemas/Monitoring' + - description: The monitoring for the instance. + networkInterfaceSet: + allOf: + - $ref: '#/components/schemas/InstanceNetworkInterfaceList' + - description: '[EC2-VPC] The network interfaces for the instance.' + outpostArn: + allOf: + - $ref: '#/components/schemas/String' + - description: The Amazon Resource Name (ARN) of the Outpost. + placement: + allOf: + - $ref: '#/components/schemas/Placement' + - description: The location where the instance launched, if applicable. + platform: + allOf: + - $ref: '#/components/schemas/PlatformValues' + - description: The value isWindows for Windows instances; otherwise blank.
+ platformDetails:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
+ privateDnsName:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running state.
[EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
+ privateDnsNameOptions: + allOf: + - $ref: '#/components/schemas/PrivateDnsNameOptionsResponse' + - description: The options for the instance hostname. + privateIpAddress: + allOf: + - $ref: '#/components/schemas/String' + - description: The private IPv4 address assigned to the instance. + productCodes: + allOf: + - $ref: '#/components/schemas/ProductCodeList' + - description: The product codes attached to this instance, if applicable. + ramdiskId: + allOf: + - $ref: '#/components/schemas/String' + - description: The RAM disk associated with this instance, if applicable. + reason: + allOf: + - $ref: '#/components/schemas/String' + - description: The reason for the most recent state transition. This might be an empty string. + rootDeviceName: + allOf: + - $ref: '#/components/schemas/String' + - description: The device name of the root device volume (for example,/dev/sda1).
+ rootDeviceType:
+ allOf:
+ - $ref: '#/components/schemas/DeviceType'
+ - description: The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
+ sourceDestCheck:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: Indicates whether source/destination checking is enabled.
+ spotInstanceRequestId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: If the request is a Spot Instance request, the ID of the request.
+ sriovNetSupport:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
+ stateReason:
+ allOf:
+ - $ref: '#/components/schemas/StateReason'
+ - description: The reason for the most recent state transition.
+ subnetId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: '[EC2-VPC] The ID of the subnet in which the instance is running.'
+ tagSet:
+ allOf:
+ - $ref: '#/components/schemas/TagList'
+ - description: Any tags assigned to the instance.
+ tpmSupport:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: If the instance is configured for NitroTPM support, the value is v2.0. For more information, see NitroTPM in the Amazon EC2 User Guide.
+ usageOperation:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
+ usageOperationUpdateTime:
+ allOf:
+ - $ref: '#/components/schemas/MillisecondDateTime'
+ - description: The time that the usage operation was last updated.
+ virtualizationType:
+ allOf:
+ - $ref: '#/components/schemas/VirtualizationType'
+ - description: The virtualization type of the instance.
+ vpcId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: '[EC2-VPC] The ID of the VPC in which the instance is running.'
+ type: object
+ InstanceAutoRecoveryState:
+ enum:
+ - disabled
+ - default
+ type: string
+ InstanceBlockDeviceMapping:
+ description: Describes a block device mapping.
+ properties:
+ deviceName:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The device name (for example, /dev/sdh or xvdh).
+ ebs:
+ allOf:
+ - $ref: '#/components/schemas/EbsInstanceBlockDevice'
+ - description: Parameters used to automatically set up EBS volumes when the instance is launched.
+ type: object
+ InstanceBlockDeviceMappingList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/InstanceBlockDeviceMapping'
+ - xml:
+ name: item
+ type: array
+ InstanceId:
+ type: string
+ InstanceIdStringList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/InstanceId'
+ - xml:
+ name: InstanceId
+ type: array
+ InstanceIpv4Prefix:
+ description: Information about an IPv4 prefix.
+ properties:
+ ipv4Prefix:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: One or more IPv4 prefixes assigned to the network interface.
+ type: object
+ InstanceIpv4PrefixList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/InstanceIpv4Prefix'
+ - xml:
+ name: item
+ type: array
+ InstanceIpv6Address:
+ description: Describes an IPv6 address.
+ properties:
+ ipv6Address:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The IPv6 address.
+ type: object
+ InstanceIpv6AddressList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/InstanceIpv6Address'
+ - xml:
+ name: item
+ type: array
+ InstanceIpv6Prefix:
+ description: Information about an IPv6 prefix.
+ properties:
+ ipv6Prefix:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: One or more IPv6 prefixes assigned to the network interface.
+ type: object
+ InstanceIpv6PrefixList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/InstanceIpv6Prefix'
+ - xml:
+ name: item
+ type: array
+ InstanceLifecycleType:
+ enum:
+ - spot
+ - scheduled
+ type: string
+ InstanceList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/Instance'
+ - xml:
+ name: item
+ type: array
+ InstanceMaintenanceOptions:
+ description: The maintenance options for the instance.
+ properties:
+ autoRecovery:
+ allOf:
+ - $ref: '#/components/schemas/InstanceAutoRecoveryState'
+ - description: Provides information on the current automatic recovery behavior of your instance.
+ type: object
+ InstanceMaintenanceOptionsRequest:
+ description: The maintenance options for the instance.
+ properties:
+ undefined:
+ allOf:
+ - $ref: '#/components/schemas/InstanceAutoRecoveryState'
+ - description: Disables the automatic recovery behavior of your instance or sets it to default. For more information, see Simplified automatic recovery.
+ type: object
+ InstanceMetadataEndpointState:
+ enum:
+ - disabled
+ - enabled
+ type: string
+ InstanceMetadataOptionsResponse:
+ description: The metadata options for the instance.
+ properties:
+ httpEndpoint:
+ allOf:
+ - $ref: '#/components/schemas/InstanceMetadataEndpointState'
+ - description: Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.
If the value is disabled, you cannot access your instance metadata.
The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.
Default: 1
Possible values: Integers from 1 to 64
' + httpTokens: + allOf: + - $ref: '#/components/schemas/HttpTokensState' + - description: 'The state of token usage for your instance metadata requests.
If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.
If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.
Default: optional
The state of the metadata option changes.
pending - The metadata options are being updated and the instance is not ready to process metadata traffic with the new selection.
applied - The metadata options have been successfully applied on the instance.
The type of network interface.
Valid values: interface | efa | trunk
The state of the instance as a 16-bit unsigned integer.
The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.
The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.
The valid values for instance-state-code will all be in the range of the low byte and they are:
0 : pending
16 : running
32 : shutting-down
48 : terminated
64 : stopping
80 : stopped
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.
' + name: + allOf: + - $ref: '#/components/schemas/InstanceStateName' + - description: The current state of the instance. + type: object + InstanceStateChange: + description: Describes an instance state change. + properties: + currentState: + allOf: + - $ref: '#/components/schemas/InstanceState' + - description: The current state of the instance. + instanceId: + allOf: + - $ref: '#/components/schemas/String' + - description: The ID of the instance. + previousState: + allOf: + - $ref: '#/components/schemas/InstanceState' + - description: The previous state of the instance. + type: object + InstanceStateChangeList: + items: + allOf: + - $ref: '#/components/schemas/InstanceStateChange' + - xml: + name: item + type: array + InstanceStateName: + enum: + - pending + - running + - shutting-down + - terminated + - stopping + - stopped + type: string + InstanceType: + enum: + - a1.medium + - a1.large + - a1.xlarge + - a1.2xlarge + - a1.4xlarge + - a1.metal + - c1.medium + - c1.xlarge + - c3.large + - c3.xlarge + - c3.2xlarge + - c3.4xlarge + - c3.8xlarge + - c4.large + - c4.xlarge + - c4.2xlarge + - c4.4xlarge + - c4.8xlarge + - c5.large + - c5.xlarge + - c5.2xlarge + - c5.4xlarge + - c5.9xlarge + - c5.12xlarge + - c5.18xlarge + - c5.24xlarge + - c5.metal + - c5a.large + - c5a.xlarge + - c5a.2xlarge + - c5a.4xlarge + - c5a.8xlarge + - c5a.12xlarge + - c5a.16xlarge + - c5a.24xlarge + - c5ad.large + - c5ad.xlarge + - c5ad.2xlarge + - c5ad.4xlarge + - c5ad.8xlarge + - c5ad.12xlarge + - c5ad.16xlarge + - c5ad.24xlarge + - c5d.large + - c5d.xlarge + - c5d.2xlarge + - c5d.4xlarge + - c5d.9xlarge + - c5d.12xlarge + - c5d.18xlarge + - c5d.24xlarge + - c5d.metal + - c5n.large + - c5n.xlarge + - c5n.2xlarge + - c5n.4xlarge + - c5n.9xlarge + - c5n.18xlarge + - c5n.metal + - c6g.medium + - c6g.large + - c6g.xlarge + - c6g.2xlarge + - c6g.4xlarge + - c6g.8xlarge + - c6g.12xlarge + - c6g.16xlarge + - c6g.metal + - c6gd.medium + - c6gd.large + - c6gd.xlarge + - c6gd.2xlarge + - c6gd.4xlarge + - c6gd.8xlarge + - c6gd.12xlarge + - c6gd.16xlarge + - c6gd.metal + - c6gn.medium + - c6gn.large + - c6gn.xlarge + - c6gn.2xlarge + - c6gn.4xlarge + - c6gn.8xlarge + - c6gn.12xlarge + - c6gn.16xlarge + - c6i.large + - c6i.xlarge + - c6i.2xlarge + - c6i.4xlarge + - c6i.8xlarge + - c6i.12xlarge + - c6i.16xlarge + - c6i.24xlarge + - c6i.32xlarge + - c6i.metal + - cc1.4xlarge + - cc2.8xlarge + - cg1.4xlarge + - cr1.8xlarge + - d2.xlarge + - d2.2xlarge + - d2.4xlarge + - d2.8xlarge + - d3.xlarge + - d3.2xlarge + - d3.4xlarge + - d3.8xlarge + - d3en.xlarge + - d3en.2xlarge + - d3en.4xlarge + - d3en.6xlarge + - d3en.8xlarge + - d3en.12xlarge + - dl1.24xlarge + - f1.2xlarge + - f1.4xlarge + - f1.16xlarge + - g2.2xlarge + - g2.8xlarge + - g3.4xlarge + - g3.8xlarge + - g3.16xlarge + - g3s.xlarge + - g4ad.xlarge + - g4ad.2xlarge + - g4ad.4xlarge + - g4ad.8xlarge + - g4ad.16xlarge + - g4dn.xlarge + - g4dn.2xlarge + - g4dn.4xlarge + - g4dn.8xlarge + - g4dn.12xlarge + - g4dn.16xlarge + - g4dn.metal + - g5.xlarge + - g5.2xlarge + - g5.4xlarge + - g5.8xlarge + - g5.12xlarge + - g5.16xlarge + - g5.24xlarge + - g5.48xlarge + - g5g.xlarge + - g5g.2xlarge + - g5g.4xlarge + - g5g.8xlarge + - g5g.16xlarge + - g5g.metal + - hi1.4xlarge + - hpc6a.48xlarge + - hs1.8xlarge + - h1.2xlarge + - h1.4xlarge + - h1.8xlarge + - h1.16xlarge + - i2.xlarge + - i2.2xlarge + - i2.4xlarge + - i2.8xlarge + - i3.large + - i3.xlarge + - i3.2xlarge + - i3.4xlarge + - i3.8xlarge + - i3.16xlarge + - i3.metal + - i3en.large + - i3en.xlarge + - i3en.2xlarge + - i3en.3xlarge + - i3en.6xlarge + - i3en.12xlarge + - i3en.24xlarge + - i3en.metal + - im4gn.large + - im4gn.xlarge + - im4gn.2xlarge + - im4gn.4xlarge + - im4gn.8xlarge + - im4gn.16xlarge + - inf1.xlarge + - inf1.2xlarge + - inf1.6xlarge + - inf1.24xlarge + - is4gen.medium + - is4gen.large + - is4gen.xlarge + - is4gen.2xlarge + - is4gen.4xlarge + - is4gen.8xlarge + - m1.small + - m1.medium + - m1.large + - m1.xlarge + - m2.xlarge + - m2.2xlarge + - m2.4xlarge + - m3.medium + - m3.large + - m3.xlarge + - m3.2xlarge + - m4.large + - m4.xlarge + - m4.2xlarge + - m4.4xlarge + - m4.10xlarge + - m4.16xlarge + - m5.large + - m5.xlarge + - m5.2xlarge + - m5.4xlarge + - m5.8xlarge + - m5.12xlarge + - m5.16xlarge + - m5.24xlarge + - m5.metal + - m5a.large + - m5a.xlarge + - m5a.2xlarge + - m5a.4xlarge + - m5a.8xlarge + - m5a.12xlarge + - m5a.16xlarge + - m5a.24xlarge + - m5ad.large + - m5ad.xlarge + - m5ad.2xlarge + - m5ad.4xlarge + - m5ad.8xlarge + - m5ad.12xlarge + - m5ad.16xlarge + - m5ad.24xlarge + - m5d.large + - m5d.xlarge + - m5d.2xlarge + - m5d.4xlarge + - m5d.8xlarge + - m5d.12xlarge + - m5d.16xlarge + - m5d.24xlarge + - m5d.metal + - m5dn.large + - m5dn.xlarge + - m5dn.2xlarge + - m5dn.4xlarge + - m5dn.8xlarge + - m5dn.12xlarge + - m5dn.16xlarge + - m5dn.24xlarge + - m5dn.metal + - m5n.large + - m5n.xlarge + - m5n.2xlarge + - m5n.4xlarge + - m5n.8xlarge + - m5n.12xlarge + - m5n.16xlarge + - m5n.24xlarge + - m5n.metal + - m5zn.large + - m5zn.xlarge + - m5zn.2xlarge + - m5zn.3xlarge + - m5zn.6xlarge + - m5zn.12xlarge + - m5zn.metal + - m6a.large + - m6a.xlarge + - m6a.2xlarge + - m6a.4xlarge + - m6a.8xlarge + - m6a.12xlarge + - m6a.16xlarge + - m6a.24xlarge + - m6a.32xlarge + - m6a.48xlarge + - m6g.metal + - m6g.medium + - m6g.large + - m6g.xlarge + - m6g.2xlarge + - m6g.4xlarge + - m6g.8xlarge + - m6g.12xlarge + - m6g.16xlarge + - m6gd.metal + - m6gd.medium + - m6gd.large + - m6gd.xlarge + - m6gd.2xlarge + - m6gd.4xlarge + - m6gd.8xlarge + - m6gd.12xlarge + - m6gd.16xlarge + - m6i.large + - m6i.xlarge + - m6i.2xlarge + - m6i.4xlarge + - m6i.8xlarge + - m6i.12xlarge + - m6i.16xlarge + - m6i.24xlarge + - m6i.32xlarge + - m6i.metal + - mac1.metal + - p2.xlarge + - p2.8xlarge + - p2.16xlarge + - p3.2xlarge + - p3.8xlarge + - p3.16xlarge + - p3dn.24xlarge + - p4d.24xlarge + - r3.large + - r3.xlarge + - r3.2xlarge + - r3.4xlarge + - r3.8xlarge + - r4.large + - r4.xlarge + - r4.2xlarge + - r4.4xlarge + - r4.8xlarge + - r4.16xlarge + - r5.large + - r5.xlarge + - r5.2xlarge + - r5.4xlarge + - r5.8xlarge + - r5.12xlarge + - r5.16xlarge + - r5.24xlarge + - r5.metal + - r5a.large + - r5a.xlarge + - r5a.2xlarge + - r5a.4xlarge + - r5a.8xlarge + - r5a.12xlarge + - r5a.16xlarge + - r5a.24xlarge + - r5ad.large + - r5ad.xlarge + - r5ad.2xlarge + - r5ad.4xlarge + - r5ad.8xlarge + - r5ad.12xlarge + - r5ad.16xlarge + - r5ad.24xlarge + - r5b.large + - r5b.xlarge + - r5b.2xlarge + - r5b.4xlarge + - r5b.8xlarge + - r5b.12xlarge + - r5b.16xlarge + - r5b.24xlarge + - r5b.metal + - r5d.large + - r5d.xlarge + - r5d.2xlarge + - r5d.4xlarge + - r5d.8xlarge + - r5d.12xlarge + - r5d.16xlarge + - r5d.24xlarge + - r5d.metal + - r5dn.large + - r5dn.xlarge + - r5dn.2xlarge + - r5dn.4xlarge + - r5dn.8xlarge + - r5dn.12xlarge + - r5dn.16xlarge + - r5dn.24xlarge + - r5dn.metal + - r5n.large + - r5n.xlarge + - r5n.2xlarge + - r5n.4xlarge + - r5n.8xlarge + - r5n.12xlarge + - r5n.16xlarge + - r5n.24xlarge + - r5n.metal + - r6g.medium + - r6g.large + - r6g.xlarge + - r6g.2xlarge + - r6g.4xlarge + - r6g.8xlarge + - r6g.12xlarge + - r6g.16xlarge + - r6g.metal + - r6gd.medium + - r6gd.large + - r6gd.xlarge + - r6gd.2xlarge + - r6gd.4xlarge + - r6gd.8xlarge + - r6gd.12xlarge + - r6gd.16xlarge + - r6gd.metal + - r6i.large + - r6i.xlarge + - r6i.2xlarge + - r6i.4xlarge + - r6i.8xlarge + - r6i.12xlarge + - r6i.16xlarge + - r6i.24xlarge + - r6i.32xlarge + - r6i.metal + - t1.micro + - t2.nano + - t2.micro + - t2.small + - t2.medium + - t2.large + - t2.xlarge + - t2.2xlarge + - t3.nano + - t3.micro + - t3.small + - t3.medium + - t3.large + - t3.xlarge + - t3.2xlarge + - t3a.nano + - t3a.micro + - t3a.small + - t3a.medium + - t3a.large + - t3a.xlarge + - t3a.2xlarge + - t4g.nano + - t4g.micro + - t4g.small + - t4g.medium + - t4g.large + - t4g.xlarge + - t4g.2xlarge + - u-6tb1.56xlarge + - u-6tb1.112xlarge + - u-9tb1.112xlarge + - u-12tb1.112xlarge + - u-6tb1.metal + - u-9tb1.metal + - u-12tb1.metal + - u-18tb1.metal + - u-24tb1.metal + - vt1.3xlarge + - vt1.6xlarge + - vt1.24xlarge + - x1.16xlarge + - x1.32xlarge + - x1e.xlarge + - x1e.2xlarge + - x1e.4xlarge + - x1e.8xlarge + - x1e.16xlarge + - x1e.32xlarge + - x2iezn.2xlarge + - x2iezn.4xlarge + - x2iezn.6xlarge + - x2iezn.8xlarge + - x2iezn.12xlarge + - x2iezn.metal + - x2gd.medium + - x2gd.large + - x2gd.xlarge + - x2gd.2xlarge + - x2gd.4xlarge + - x2gd.8xlarge + - x2gd.12xlarge + - x2gd.16xlarge + - x2gd.metal + - z1d.large + - z1d.xlarge + - z1d.2xlarge + - z1d.3xlarge + - z1d.6xlarge + - z1d.12xlarge + - z1d.metal + - x2idn.16xlarge + - x2idn.24xlarge + - x2idn.32xlarge + - x2iedn.xlarge + - x2iedn.2xlarge + - x2iedn.4xlarge + - x2iedn.8xlarge + - x2iedn.16xlarge + - x2iedn.24xlarge + - x2iedn.32xlarge + - c6a.large + - c6a.xlarge + - c6a.2xlarge + - c6a.4xlarge + - c6a.8xlarge + - c6a.12xlarge + - c6a.16xlarge + - c6a.24xlarge + - c6a.32xlarge + - c6a.48xlarge + - c6a.metal + - m6a.metal + - i4i.large + - i4i.xlarge + - i4i.2xlarge + - i4i.4xlarge + - i4i.8xlarge + - i4i.16xlarge + - i4i.32xlarge + type: string + Integer: + type: integer + LicenseConfiguration: + description: Describes a license configuration. + properties: + licenseConfigurationArn: + allOf: + - $ref: '#/components/schemas/String' + - description: The Amazon Resource Name (ARN) of the license configuration. + type: object + LicenseList: + items: + allOf: + - $ref: '#/components/schemas/LicenseConfiguration' + - xml: + name: item + type: array + Long: + type: integer + MillisecondDateTime: + format: date-time + type: string + MonitorInstancesRequest: + properties: + InstanceId: + allOf: + - $ref: '#/components/schemas/InstanceIdStringList' + - description: The IDs of the instances. + dryRun: + allOf: + - $ref: '#/components/schemas/Boolean' + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ required:
+ - InstanceIds
+ title: MonitorInstancesRequest
+ type: object
+ MonitorInstancesResponseWrapper:
+ properties:
+ MonitorInstancesResponse:
+ $ref: '#/components/schemas/MonitorInstancesResult'
+ type: object
+ MonitorInstancesResult:
+ properties:
+ instancesSet:
+ allOf:
+ - $ref: '#/components/schemas/InstanceMonitoringList'
+ - description: The monitoring information.
+ type: object
+ Monitoring:
+ description: Describes the monitoring of an instance.
+ properties:
+ state:
+ allOf:
+ - $ref: '#/components/schemas/MonitoringState'
+ - description: Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.
+ type: object
+ MonitoringState:
+ enum:
+ - disabled
+ - disabling
+ - enabled
+ - pending
+ type: string
+ NetworkInterfaceStatus:
+ enum:
+ - available
+ - associated
+ - attaching
+ - in-use
+ - detaching
+ type: string
+ Placement:
+ description: Describes the placement of an instance.
+ properties:
+ affinity:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
+ availabilityZone: + allOf: + - $ref: '#/components/schemas/String' + - description:The Availability Zone of the instance.
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported by CreateFleet.
+ groupName: + allOf: + - $ref: '#/components/schemas/PlacementGroupName' + - description: The name of the placement group the instance is in. + hostId: + allOf: + - $ref: '#/components/schemas/String' + - description:The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
+ hostResourceGroupArn: + allOf: + - $ref: '#/components/schemas/String' + - description:The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.
This parameter is not supported by CreateFleet.
+ partitionNumber: + allOf: + - $ref: '#/components/schemas/Integer' + - description:The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition.
This parameter is not supported by CreateFleet.
+ spreadDomain: + allOf: + - $ref: '#/components/schemas/String' + - description:Reserved for future use.
This parameter is not supported by CreateFleet.
+ tenancy: + allOf: + - $ref: '#/components/schemas/Tenancy' + - description:The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet.
T3 instances that use the unlimited CPU credit option do not support host tenancy.
DryRunOperation. Otherwise, it is UnauthorizedOperation.
+ required:
+ - InstanceIds
+ title: RebootInstancesRequest
+ type: object
+ Reservation:
+ description: Describes a launch request for one or more instances, and includes owner, requester, and security group information that applies to all instances in the launch request.
+ example: {}
+ properties:
+ groupSet:
+ allOf:
+ - $ref: '#/components/schemas/GroupIdentifierList'
+ - description: '[EC2-Classic only] The security groups.'
+ instancesSet:
+ allOf:
+ - $ref: '#/components/schemas/InstanceList'
+ - description: The instances.
+ ownerId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the Amazon Web Services account that owns the reservation.
+ requesterId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).
+ reservationId:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The ID of the reservation.
+ type: object
+ ReservationList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/Reservation'
+ - xml:
+ name: item
+ type: array
+ RunInstancesRequest:
+ properties:
+ BlockDeviceMapping:
+ allOf:
+ - $ref: '#/components/schemas/Integer'
+ - description: [EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
You cannot specify this option and the network interfaces option in the same request.
+ ElasticInferenceAccelerator: + allOf: + - $ref: '#/components/schemas/ElasticInferenceAccelerators' + - description:An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
+ ImageId: + type: string + InstanceType: + type: string + Ipv6Address: + allOf: + - $ref: '#/components/schemas/RamdiskId' + - description:The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go to the Amazon Web Services Resource Center and search for the kernel ID.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface.
+ TagSpecification: + allOf: + - $ref: '#/components/schemas/HibernationOptionsRequest' + - description:Indicates whether an instance is enabled for hibernation. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
+ associate_public_ip_address: + type: string + name: + type: string + security_group_id: + type: string + subnet_id: + type: string + required: [] + title: RunInstancesRequest + type: object + RunInstancesResponseWrapper: + properties: + RunInstancesResponse: + $ref: '#/components/schemas/Reservation' + type: object + RunInstancesUserData: + format: password + type: string + S3Storage: + description: Describes the storage parameters for Amazon S3 and Amazon S3 buckets for an instance store-backed AMI. + properties: + bucket: + allOf: + - $ref: '#/components/schemas/String' + - description: The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error. + prefix: + allOf: + - $ref: '#/components/schemas/String' + - description: The beginning of the file name of the AMI. + undefined: + allOf: + - $ref: '#/components/schemas/String' + - description: The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Managing Amazon Web Services Access Keys. + uploadPolicy: + allOf: + - $ref: '#/components/schemas/Blob' + - description: An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf. + uploadPolicySignature: + allOf: + - $ref: '#/components/schemas/String' + - description: The signature of the JSON document. + type: object + SecurityGroupId: + type: string + SecurityGroupIdStringList: + items: + allOf: + - $ref: '#/components/schemas/SecurityGroupId' + - xml: + name: SecurityGroupId + type: array + SecurityGroupName: + type: string + SecurityGroupStringList: + items: + allOf: + - $ref: '#/components/schemas/SecurityGroupName' + - xml: + name: SecurityGroup + type: array + ShutdownBehavior: + enum: + - stop + - terminate + type: string + StartInstancesRequest: + properties: + InstanceId: + $ref: '#/components/schemas/InstanceIdStringList' + additionalInfo: + $ref: '#/components/schemas/String' + dryRun: + allOf: + - $ref: '#/components/schemas/Boolean' + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ required:
+ - InstanceIds
+ title: StartInstancesRequest
+ type: object
+ StartInstancesResponseWrapper:
+ properties:
+ StartInstancesResponse:
+ $ref: '#/components/schemas/StartInstancesResult'
+ type: object
+ StartInstancesResult:
+ example:
+ StartingInstances:
+ - CurrentState:
+ Code: 0
+ Name: pending
+ InstanceId: i-1234567890abcdef0
+ PreviousState:
+ Code: 80
+ Name: stopped
+ properties:
+ instancesSet:
+ allOf:
+ - $ref: '#/components/schemas/InstanceStateChangeList'
+ - description: Information about the started instances.
+ type: object
+ StateReason:
+ description: Describes a state change.
+ properties:
+ code:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The reason code for the state change.
+ message:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: 'The message for the state change.
Server.InsufficientInstanceCapacity: There was insufficient capacity available to satisfy the launch request.
Server.InternalError: An internal error caused the instance to terminate during launch.
Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
Server.SpotInstanceShutdown: The instance was stopped because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.
Server.SpotInstanceTermination: The instance was terminated because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.
Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.
Client.InstanceTerminated: The instance was terminated or rebooted during AMI creation.
Client.InternalError: A client error caused the instance to terminate during launch.
Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
Client.UserInitiatedHibernate: Hibernation was initiated on the instance.
Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API.
Client.VolumeLimitExceeded: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your account limits.
Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
DryRunOperation. Otherwise, it is UnauthorizedOperation.
+ force:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: 'Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.
' + type: object + TagList: + items: + allOf: + - $ref: '#/components/schemas/Tag' + - xml: + name: item + type: array + Tenancy: + enum: + - default + - dedicated + - host + type: string + TerminateInstancesRequest: + properties: + InstanceId: + allOf: + - $ref: '#/components/schemas/InstanceIdStringList' + - description: 'The IDs of the instances.
Constraints: Up to 1000 instance IDs. We recommend breaking up this request into smaller batches.
' + dryRun: + allOf: + - $ref: '#/components/schemas/Boolean' + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ required:
+ - InstanceId
+ title: TerminateInstancesRequest
+ type: object
+ TerminateInstancesResponseWrapper:
+ properties:
+ TerminateInstancesResponse:
+ $ref: '#/components/schemas/TerminateInstancesResult'
+ type: object
+ TerminateInstancesResult:
+ example:
+ TerminatingInstances:
+ - CurrentState:
+ Code: 32
+ Name: shutting-down
+ InstanceId: i-1234567890abcdef0
+ PreviousState:
+ Code: 16
+ Name: running
+ properties:
+ instancesSet:
+ allOf:
+ - $ref: '#/components/schemas/InstanceStateChangeList'
+ - description: Information about the terminated instances.
+ type: object
+ UnmonitorInstancesRequest:
+ properties:
+ InstanceId:
+ allOf:
+ - $ref: '#/components/schemas/InstanceIdStringList'
+ - description: The IDs of the instances.
+ dryRun:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: 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:
+ - InstanceIds
+ title: UnmonitorInstancesRequest
+ type: object
+ UnmonitorInstancesResponseWrapper:
+ properties:
+ UnmonitorInstancesResponse:
+ $ref: '#/components/schemas/UnmonitorInstancesResult'
+ type: object
+ UnmonitorInstancesResult:
+ properties:
+ instancesSet:
+ allOf:
+ - $ref: '#/components/schemas/InstanceMonitoringList'
+ - description: The monitoring information.
+ type: object
+ UserData:
+ description: Describes the user data for an instance.
+ properties:
+ data:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: The user data. If you are using an Amazon Web Services SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
+ type: object
+ ValueStringList:
+ items:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - xml:
+ name: item
+ type: array
+ VirtualizationType:
+ enum:
+ - hvm
+ - paravirtual
+ type: string
+ VolumeDetail:
+ description: Describes an EBS volume.
+ properties:
+ size:
+ description: The size of the volume, in GiB.
+ type: integer
+ required:
+ - Size
+ type: object
+ securitySchemes:
+ hmac:
+ description: Amazon Signature authorization v4
+ in: header
+ name: Authorization
+ type: apiKey
+ x-amazon-apigateway-authtype: awsSigv4
+ x-stackQL-resources:
+ instances:
+ id: aws.ec2.instances
+ methods:
+ bundle:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=BundleInstance&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/BundleInstanceRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=BundleInstance&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ describe:
+ config:
+ pagination:
+ requestToken:
+ key: NextToken
+ location: body
+ responseToken:
+ key: $.next_page_token
+ location: body
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=DescribeInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/DescribeInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=DescribeInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ objectKey: $.line_items
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ schema_override:
+ $ref: '#/components/schemas/DisplayInstancesSchema'
+ transform:
+ body: |
+ {
+ {{- $resp := . -}}
+ {{- with index . "DescribeInstancesResponse" -}}
+ {{- $resp = . -}}
+ {{- end -}}
+
+ "next_page_token":
+ {{- with index $resp "nextToken" -}}{{ toJson . }}{{- else -}}null{{- end -}},
+
+ "line_items": [
+ {{- $first := true -}}
+
+ {{- with index $resp "reservationSet" "item" -}}
+
+ {{- if eq (printf "%T" .) "map[string]interface {}" -}}
+ {{- $res := . -}}
+ {{- with index $res "instancesSet" "item" -}}
+
+ {{- if eq (printf "%T" .) "map[string]interface {}" -}}
+ {{- if not $first }},{{ end -}}{{- $first = false -}}
+ {{ template "item" . }}
+ {{- else -}}
+ {{- range . -}}
+ {{- if not $first }},{{ end -}}{{- $first = false -}}
+ {{ template "item" . }}
+ {{- end -}}
+ {{- end -}}
+
+ {{- end -}}
+ {{- else -}}
+ {{- range . -}}
+ {{- $res := . -}}
+ {{- with index $res "instancesSet" "item" -}}
+
+ {{- if eq (printf "%T" .) "map[string]interface {}" -}}
+ {{- if not $first }},{{ end -}}{{- $first = false -}}
+ {{ template "item" . }}
+ {{- else -}}
+ {{- range . -}}
+ {{- if not $first }},{{ end -}}{{- $first = false -}}
+ {{ template "item" . }}
+ {{- end -}}
+ {{- end -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- end -}}
+ ]
+ }
+
+ {{- define "item" -}}
+ {
+ "instance_id": {{ with index . "instanceId" }}{{ toJson . }}{{ else }}null{{ end }},
+ "reservation_id": {{ with index . "reservationId" }}{{ toJson . }}{{ else }}null{{ end }},
+ "owner_id": {{ with index . "ownerId" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "image_id": {{ with index . "imageId" }}{{ toJson . }}{{ else }}null{{ end }},
+ "instance_type": {{ with index . "instanceType" }}{{ toJson . }}{{ else }}null{{ end }},
+ "ami_launch_index": {{ with index . "amiLaunchIndex" }}{{ toJson . }}{{ else }}null{{ end }},
+ "key_name": {{ with index . "keyName" }}{{ toJson . }}{{ else }}null{{ end }},
+ "client_token": {{ with index . "clientToken" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "state": {{ with index . "instanceState" }}{{ toJson . }}{{ else }}null{{ end }},
+ "launch_time": {{ with index . "launchTime" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "private_dns_name": {{ with index . "privateDnsName" }}{{ toJson . }}{{ else }}null{{ end }},
+ "public_dns_name": {{ with index . "dnsName" }}{{ toJson . }}{{ else }}null{{ end }},
+ "private_ip_address": {{ with index . "privateIpAddress" }}{{ toJson . }}{{ else }}null{{ end }},
+ "public_ip_address": {{ with index . "ipAddress" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "subnet_id": {{ with index . "subnetId" }}{{ toJson . }}{{ else }}null{{ end }},
+ "vpc_id": {{ with index . "vpcId" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "availability_zone": {{ with index . "placement" "availabilityZone" }}{{ toJson . }}{{ else }}null{{ end }},
+ "placement": {{ with index . "placement" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "monitoring": {{ with index . "monitoring" }}{{ toJson . }}{{ else }}null{{ end }},
+ "source_dest_check": {{ with index . "sourceDestCheck" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "architecture": {{ with index . "architecture" }}{{ toJson . }}{{ else }}null{{ end }},
+ "hypervisor": {{ with index . "hypervisor" }}{{ toJson . }}{{ else }}null{{ end }},
+ "virtualization_type": {{ with index . "virtualizationType" }}{{ toJson . }}{{ else }}null{{ end }},
+ "platform_details": {{ with index . "platformDetails" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "root_device_type": {{ with index . "rootDeviceType" }}{{ toJson . }}{{ else }}null{{ end }},
+ "root_device_name": {{ with index . "rootDeviceName" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "ebs_optimized": {{ with index . "ebsOptimized" }}{{ toJson . }}{{ else }}null{{ end }},
+ "ena_support": {{ with index . "enaSupport" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "cpu_options": {{ with index . "cpuOptions" }}{{ toJson . }}{{ else }}null{{ end }},
+ "metadata_options": {{ with index . "metadataOptions" }}{{ toJson . }}{{ else }}null{{ end }},
+ "maintenance_options": {{ with index . "maintenanceOptions" }}{{ toJson . }}{{ else }}null{{ end }},
+ "hibernation_options": {{ with index . "hibernationOptions" }}{{ toJson . }}{{ else }}null{{ end }},
+ "enclave_options": {{ with index . "enclaveOptions" }}{{ toJson . }}{{ else }}null{{ end }},
+ "network_performance_options": {{ with index . "networkPerformanceOptions" }}{{ toJson . }}{{ else }}null{{ end }},
+ "capacity_reservation_specification": {{ with index . "capacityReservationSpecification" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "security_groups": {{ with index . "groupSet" }}{{ toJson . }}{{ else }}null{{ end }},
+ "block_device_mappings": {{ with index . "blockDeviceMapping" }}{{ toJson . }}{{ else }}null{{ end }},
+ "network_interfaces": {{ with index . "networkInterfaceSet" }}{{ toJson . }}{{ else }}null{{ end }},
+
+ "tag_set": {{ with index . "tagSet" }}{{ toJson . }}{{ else }}null{{ end }}
+ }
+ {{- end -}}
+ type: golang_template_mxj_v0.2.0
+ import:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=ImportInstance&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/ImportInstanceRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=ImportInstance&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ objectKey: $.line_items
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ schema_override:
+ $ref: '#/components/schemas/DisplayInstancesSchema'
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ monitor:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=MonitorInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/MonitorInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=MonitorInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ reboot:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=RebootInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/RebootInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=RebootInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ run:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=RunInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/RunInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=RunInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else if and (ne $k "subnet_id") (ne $k "security_group_id") (ne $k "associate_public_ip_address") (ne $k "name") -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- if and (not (index $body "MaxCount")) (not (index $body "MinCount")) -}}
+ {{- $query = printf "%s&MaxCount=1&MinCount=1" $query -}}
+ {{- end -}}
+ {{- if and (index $body "subnet_id") (index $body "security_group_id") (index $body "associate_public_ip_address") -}}
+ {{- $query = printf "%s&NetworkInterface.1.DeviceIndex=0&NetworkInterface.1.SubnetId=%s&NetworkInterface.1.AssociatePublicIpAddress=%s&NetworkInterface.1.SecurityGroupId.1=%s" $query $body.subnet_id $body.associate_public_ip_address $body.security_group_id -}}
+ {{- end -}}
+ {{- if index $body "name" -}}
+ {{- $query = printf "%s&TagSpecification.1.ResourceType=instance&TagSpecification.1.Tag.1.Key=Name&TagSpecification.1.Tag.1.Value=%s" $query $body.name -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ start:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=StartInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/StartInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=StartInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ stop:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=StopInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/StopInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=StopInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ terminate:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=TerminateInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/TerminateInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=TerminateInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ unmonitor:
+ config:
+ requestBodyTranslate:
+ algorithm: naive
+ requestTranslate:
+ algorithm: drop_double_underscore_params
+ operation:
+ $ref: '#/paths/~1?__Action=UnmonitorInstances&__Version=2016-11-15/post'
+ request:
+ mediaType: application/x-www-form-urlencoded
+ schema_override:
+ $ref: '#/components/schemas/UnmonitorInstancesRequest'
+ transform:
+ body: |-
+ {{- $ctx := . -}}
+ {{- if or (not $ctx) (eq (len $ctx) 0) -}}
+ {{- $ctx = "{}" -}}
+ {{- end -}}
+ {{- $body := jsonMapFromString $ctx -}}
+ {{- $query := "Action=UnmonitorInstances&Version=2016-11-15" -}}
+ {{- range $k, $v := $body -}}
+ {{- if eq (kindOf $v) "slice" -}}
+ {{- range $i, $sub := $v -}}
+ {{- $query = printf "%s&%s.%d=%s" $query $k (plus1 $i) (urlquery $sub) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- $query = printf "%s&%s=%s" $query $k (urlquery $v) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $query -}}
+ type: golang_template_text_v0.3.0
+ response:
+ mediaType: text/xml
+ openAPIDocKey: "200"
+ overrideMediaType: application/json
+ transform:
+ body: '{{ toJson . }}'
+ type: golang_template_mxj_v0.2.0
+ name: instances
+ sqlVerbs:
+ delete:
+ - $ref: '#/components/x-stackQL-resources/instances/methods/terminate'
+ exec:
+ - $ref: '#/components/x-stackQL-resources/instances/methods/bundle'
+ - $ref: '#/components/x-stackQL-resources/instances/methods/import'
+ - $ref: '#/components/x-stackQL-resources/instances/methods/monitor'
+ - $ref: '#/components/x-stackQL-resources/instances/methods/reboot'
+ - $ref: '#/components/x-stackQL-resources/instances/methods/start'
+ - $ref: '#/components/x-stackQL-resources/instances/methods/stop'
+ - $ref: '#/components/x-stackQL-resources/instances/methods/unmonitor'
+ insert:
+ - $ref: '#/components/x-stackQL-resources/instances/methods/run'
+ select:
+ - $ref: '#/components/x-stackQL-resources/instances/methods/describe'
+ update: []
+ title: instances
+externalDocs:
+ description: Amazon Web Services documentation
+ url: https://docs.aws.amazon.com/ec2/
+info:
+ contact:
+ email: mike.ralphson@gmail.com
+ name: Mike Ralphson
+ url: https://github.com/mermade/aws2openapi
+ x-twitter: PermittedSoc
+ description: Native EC2 API operations
+ license:
+ name: Apache 2.0 License
+ url: http://www.apache.org/licenses/
+ termsOfService: https://aws.amazon.com/service-terms/
+ title: ec2
+ version: "2016-11-15"
+ x-apiClientRegistration:
+ url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct
+ x-apisguru-categories:
+ - cloud
+ x-logo:
+ backgroundColor: '#FFFFFF'
+ url: https://twitter.com/awscloud/profile_image?size=original
+ x-origin:
+ - contentType: application/json
+ converter:
+ url: https://github.com/mermade/aws2openapi
+ version: 1.0.0
+ url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/ec2-2016-11-15.normal.json
+ x-apisguru-driver: external
+ x-preferred: true
+ x-providerName: amazonaws.com
+ x-release: v4
+ x-serviceName: ec2
+openapi: 3.0.0
+paths:
+ /?__Action=BundleInstance&__Version=2016-11-15:
+ post:
+ description: Bundles an Amazon instance store-backed Windows instance.
During bundling, only the root device volume (C:\) is bundled. Data on other instance store volumes is not preserved.
This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
' + in: query + name: InstanceId + required: true + schema: + type: string + - description: The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error. + in: query + name: Storage + required: true + schema: + description: Describes the storage location for an instance store-backed AMI. + properties: + undefined: + allOf: + - $ref: '#/components/schemas/S3Storage' + - description: An Amazon S3 storage location. + type: object + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/BundleInstanceResponseWrapper'
+ description: Success
+ x-aws-operation-name: BundleInstance
+ /?__Action=DescribeInstances&__Version=2016-11-15:
+ post:
+ description: Describes the specified instances or all instances.
If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.
Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.
+ operationId: GET_DescribeInstances + parameters: + - description: 'The filters.
affinity - The affinity setting for an instance running on a Dedicated Host (default | host).
architecture - The instance architecture (i386 | x86_64 | arm64).
availability-zone - The Availability Zone of the instance.
block-device-mapping.attach-time - The attach time for an EBS volume mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
block-device-mapping.delete-on-termination - A Boolean that indicates whether the EBS volume is deleted on instance termination.
block-device-mapping.device-name - The device name specified in the block device mapping (for example, /dev/sdh or xvdh).
block-device-mapping.status - The status for the EBS volume (attaching | attached | detaching | detached).
block-device-mapping.volume-id - The volume ID of the EBS volume.
capacity-reservation-id - The ID of the Capacity Reservation into which the instance was launched.
client-token - The idempotency token you provided when you launched the instance.
dns-name - The public DNS name of the instance.
group-id - The ID of the security group for the instance. EC2-Classic only.
group-name - The name of the security group for the instance. EC2-Classic only.
hibernation-options.configured - A Boolean that indicates whether the instance is enabled for hibernation. A value of true means that the instance is enabled for hibernation.
host-id - The ID of the Dedicated Host on which the instance is running, if applicable.
hypervisor - The hypervisor type of the instance (ovm | xen). The value xen is used for both Xen and Nitro hypervisors.
iam-instance-profile.arn - The instance profile associated with the instance. Specified as an ARN.
image-id - The ID of the image used to launch the instance.
instance-id - The ID of the instance.
instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled Instance (spot | scheduled).
instance-state-code - The state of the instance, as a 16-bit unsigned integer. The high byte is used for internal purposes and should be ignored. The low byte is set based on the state represented. The valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and 80 (stopped).
instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped).
instance-type - The type of instance (for example, t2.micro).
instance.group-id - The ID of the security group for the instance.
instance.group-name - The name of the security group for the instance.
ip-address - The public IPv4 address of the instance.
kernel-id - The kernel ID.
key-name - The name of the key pair used when the instance was launched.
launch-index - When launching multiple instances, this is the index for the instance in the launch group (for example, 0, 1, 2, and so on).
launch-time - The time when the instance was launched, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, 2021-09-29T11:04:43.305Z. You can use a wildcard (*), for example, 2021-09-29T*, which matches an entire day.
metadata-options.http-tokens - The metadata request authorization state (optional | required)
metadata-options.http-put-response-hop-limit - The http metadata request put response hop limit (integer, possible values 1 to 64)
metadata-options.http-endpoint - Enable or disable metadata access on http endpoint (enabled | disabled)
monitoring-state - Indicates whether detailed monitoring is enabled (disabled | enabled).
network-interface.addresses.private-ip-address - The private IPv4 address associated with the network interface.
network-interface.addresses.primary - Specifies whether the IPv4 address of the network interface is the primary private IPv4 address.
network-interface.addresses.association.public-ip - The ID of the association of an Elastic IP address (IPv4) with a network interface.
network-interface.addresses.association.ip-owner-id - The owner ID of the private IPv4 address associated with the network interface.
network-interface.association.public-ip - The address of the Elastic IP address (IPv4) bound to the network interface.
network-interface.association.ip-owner-id - The owner of the Elastic IP address (IPv4) associated with the network interface.
network-interface.association.allocation-id - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.
network-interface.association.association-id - The association ID returned when the network interface was associated with an IPv4 address.
network-interface.attachment.attachment-id - The ID of the interface attachment.
network-interface.attachment.instance-id - The ID of the instance to which the network interface is attached.
network-interface.attachment.instance-owner-id - The owner ID of the instance to which the network interface is attached.
network-interface.attachment.device-index - The device index to which the network interface is attached.
network-interface.attachment.status - The status of the attachment (attaching | attached | detaching | detached).
network-interface.attachment.attach-time - The time that the network interface was attached to an instance.
network-interface.attachment.delete-on-termination - Specifies whether the attachment is deleted when an instance is terminated.
network-interface.availability-zone - The Availability Zone for the network interface.
network-interface.description - The description of the network interface.
network-interface.group-id - The ID of a security group associated with the network interface.
network-interface.group-name - The name of a security group associated with the network interface.
network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated with the network interface.
network-interface.mac-address - The MAC address of the network interface.
network-interface.network-interface-id - The ID of the network interface.
network-interface.owner-id - The ID of the owner of the network interface.
network-interface.private-dns-name - The private DNS name of the network interface.
network-interface.requester-id - The requester ID for the network interface.
network-interface.requester-managed - Indicates whether the network interface is being managed by Amazon Web Services.
network-interface.status - The status of the network interface (available) | in-use).
network-interface.source-dest-check - Whether the network interface performs source/destination checking. A value of true means that checking is enabled, and false means that checking is disabled. The value must be false for the network interface to perform network address translation (NAT) in your VPC.
network-interface.subnet-id - The ID of the subnet for the network interface.
network-interface.vpc-id - The ID of the VPC for the network interface.
outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
owner-id - The Amazon Web Services account ID of the instance owner.
placement-group-name - The name of the placement group for the instance.
placement-partition-number - The partition in which the instance is located.
platform - The platform. To list only Windows instances, use windows.
private-dns-name - The private IPv4 DNS name of the instance.
private-ip-address - The private IPv4 address of the instance.
product-code - The product code associated with the AMI used to launch the instance.
product-code.type - The type of product code (devpay | marketplace).
ramdisk-id - The RAM disk ID.
reason - The reason for the current state of the instance (for example, shows "User Initiated [date]" when you stop or terminate the instance). Similar to the state-reason-code filter.
requester-id - The ID of the entity that launched the instance on your behalf (for example, Amazon Web Services Management Console, Auto Scaling, and so on).
reservation-id - The ID of the instance''s reservation. A reservation ID is created any time you launch an instance. A reservation ID has a one-to-one relationship with an instance launch request, but can be associated with more than one instance if you launch multiple instances using the same launch request. For example, if you launch one instance, you get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.
root-device-name - The device name of the root device volume (for example, /dev/sda1).
root-device-type - The type of the root device volume (ebs | instance-store).
source-dest-check - Indicates whether the instance performs source/destination checking. A value of true means that checking is enabled, and false means that checking is disabled. The value must be false for the instance to perform network address translation (NAT) in your VPC.
spot-instance-request-id - The ID of the Spot Instance request.
state-reason-code - The reason code for the state change.
state-reason-message - A message that describes the state change.
subnet-id - The ID of the subnet for the instance.
tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
tag-key - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.
tenancy - The tenancy of an instance (dedicated | default | host).
virtualization-type - The virtualization type of the instance (paravirtual | hvm).
vpc-id - The ID of the VPC that the instance is running in.
The instance IDs.
Default: Describes all your instances.
' + in: query + name: InstanceId + required: false + schema: + items: + allOf: + - $ref: '#/components/schemas/InstanceId' + - xml: + name: InstanceId + type: array + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ - description: The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call.
+ in: query
+ name: MaxResults
+ required: false
+ schema:
+ type: integer
+ - description: The token to request the next page of results.
+ in: query
+ name: NextToken
+ required: false
+ schema:
+ type: string
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/DescribeInstancesResponseWrapper'
+ description: Success
+ x-aws-operation-name: DescribeInstances
+ /?__Action=ImportInstance&__Version=2016-11-15:
+ post:
+ description: Creates an import instance task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
+ operationId: GET_ImportInstance + parameters: + - description: A description for the instance being imported. + in: query + name: Description + required: false + schema: + type: string + - description: The disk image. + in: query + name: DiskImage + required: false + schema: + items: + $ref: '#/components/schemas/DiskImage' + type: array + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ - description: The launch specification.
+ in: query
+ name: LaunchSpecification
+ required: false
+ schema:
+ description: Describes the launch specification for VM import.
+ properties:
+ GroupId:
+ allOf:
+ - $ref: '#/components/schemas/SecurityGroupIdStringList'
+ - description: The security group IDs.
+ GroupName:
+ allOf:
+ - $ref: '#/components/schemas/SecurityGroupStringList'
+ - description: The security group names.
+ additionalInfo:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: Reserved.
+ architecture:
+ allOf:
+ - $ref: '#/components/schemas/ArchitectureValues'
+ - description: The architecture of the instance.
+ instanceInitiatedShutdownBehavior:
+ allOf:
+ - $ref: '#/components/schemas/ShutdownBehavior'
+ - description: Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
+ instanceType:
+ allOf:
+ - $ref: '#/components/schemas/InstanceType'
+ - description: The instance type. For more information about the instance types that you can import, see Instance Types in the VM Import/Export User Guide.
+ monitoring:
+ allOf:
+ - $ref: '#/components/schemas/Boolean'
+ - description: Indicates whether monitoring is enabled.
+ placement:
+ allOf:
+ - $ref: '#/components/schemas/Placement'
+ - description: The placement information for the instance.
+ privateIpAddress:
+ allOf:
+ - $ref: '#/components/schemas/String'
+ - description: '[EC2-VPC] An available IP address from the IP address range of the subnet.'
+ subnetId:
+ allOf:
+ - $ref: '#/components/schemas/SubnetId'
+ - description: '[EC2-VPC] The ID of the subnet in which to launch the instance.'
+ userData:
+ allOf:
+ - $ref: '#/components/schemas/UserData'
+ - description: The Base64-encoded user data to make available to the instance.
+ type: object
+ - description: The instance operating system.
+ in: query
+ name: Platform
+ required: true
+ schema:
+ enum:
+ - Windows
+ type: string
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/ImportInstanceResponseWrapper'
+ description: Success
+ x-aws-operation-name: ImportInstance
+ /?__Action=MonitorInstances&__Version=2016-11-15:
+ post:
+ description: Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.
To disable detailed monitoring, see UnmonitorInstances.
+ operationId: GET_MonitorInstances + parameters: + - description: The IDs of the instances. + in: query + name: InstanceId + required: true + schema: + items: + allOf: + - $ref: '#/components/schemas/InstanceId' + - xml: + name: InstanceId + type: array + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/MonitorInstancesResponseWrapper'
+ description: Success
+ x-aws-operation-name: MonitorInstances
+ /?__Action=RebootInstances&__Version=2016-11-15:
+ post:
+ description: Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.
For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.
+ operationId: GET_RebootInstances + parameters: + - description: The instance IDs. + in: query + name: InstanceId + required: true + schema: + items: + allOf: + - $ref: '#/components/schemas/InstanceId' + - xml: + name: InstanceId + type: array + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ responses:
+ "200":
+ description: Success
+ x-aws-operation-name: RebootInstances
+ /?__Action=RunInstances&__Version=2016-11-15:
+ post:
+ operationId: GET_RunInstances
+ parameters: []
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/RunInstancesResponseWrapper'
+ description: Success
+ x-aws-operation-name: RunInstances
+ /?__Action=StartInstances&__Version=2016-11-15:
+ post:
+ description: Starts an Amazon EBS-backed instance that you've previously stopped.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.
Performing this operation on an instance that uses an instance store as its root device returns an error.
If you attempt to start a T3 instance with host tenancy and the unlimted CPU credit option, the request fails. The unlimited CPU credit option is not supported on Dedicated Hosts. Before you start the instance, either change its CPU credit option to standard, or change its tenancy to default or dedicated.
For more information, see Stop and start your instance in the Amazon EC2 User Guide.
+ operationId: GET_StartInstances + parameters: + - description: The IDs of the instances. + in: query + name: InstanceId + required: true + schema: + items: + $ref: '#/components/schemas/InstanceId' + type: array + - description: Reserved. + in: query + name: AdditionalInfo + required: false + schema: + type: string + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/StartInstancesResponseWrapper'
+ description: Success
+ x-aws-operation-name: StartInstances
+ /?__Action=StopInstances&__Version=2016-11-15:
+ post:
+ description: Stops an Amazon EBS-backed instance. For more information, see Stop and start your instance in the Amazon EC2 User Guide.
You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.
You can't stop or hibernate instance store-backed instances. You can't use the Stop action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate Spot Instances when they are interrupted. For more information, see Hibernating interrupted Spot Instances in the Amazon EC2 User Guide.
When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.
Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.
When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshoot stopping your instance in the Amazon EC2 User Guide.
+ operationId: GET_StopInstances + parameters: + - description: The IDs of the instances. + in: query + name: InstanceId + required: true + schema: + items: + allOf: + - $ref: '#/components/schemas/InstanceId' + - xml: + name: InstanceId + type: array + - description: 'Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
Default: false
DryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ - description: 'Forces the instances to stop. The instances do not have an opportunity to flush file system caches or file system metadata. If you use this option, you must perform file system check and repair procedures. This option is not recommended for Windows instances.
Default: false
Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.
If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.
If you terminate multiple instances across multiple Availability Zones, and one or more of the specified instances are enabled for termination protection, the request fails with the following results:
The specified instances that are in the same Availability Zone as the protected instance are not terminated.
The specified instances that are in different Availability Zones, where no other specified instances are protected, are successfully terminated.
For example, say you have the following instances:
Instance A: us-east-1a; Not protected
Instance B: us-east-1a; Not protected
Instance C: us-east-1b; Protected
Instance D: us-east-1b; not protected
If you attempt to terminate all of these instances in the same request, the request reports failure with the following results:
Instance A and Instance B are successfully terminated because none of the specified instances in us-east-1a are enabled for termination protection.
Instance C and Instance D fail to terminate because at least one of the specified instances in us-east-1b (Instance C) is enabled for termination protection.
Terminated instances remain visible after termination (for approximately one hour).
By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.
You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.
For more information about troubleshooting, see Troubleshooting terminating your instance in the Amazon EC2 User Guide.
' + operationId: GET_TerminateInstances + parameters: [] + responses: + "200": + content: + text/xml: + schema: + $ref: '#/components/schemas/TerminateInstancesResponseWrapper' + description: Success + x-aws-operation-name: TerminateInstances + /?__Action=UnmonitorInstances&__Version=2016-11-15: + post: + description: Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide. + operationId: GET_UnmonitorInstances + parameters: + - description: The IDs of the instances. + in: query + name: InstanceId + required: true + schema: + items: + allOf: + - $ref: '#/components/schemas/InstanceId' + - xml: + name: InstanceId + type: array + - description: 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 isDryRunOperation. Otherwise, it is UnauthorizedOperation.
+ in: query
+ name: DryRun
+ required: false
+ schema:
+ type: boolean
+ responses:
+ "200":
+ content:
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/UnmonitorInstancesResponseWrapper'
+ description: Success
+ x-aws-operation-name: UnmonitorInstances
+security:
+ - hmac: []
+servers:
+ - description: The Amazon EC2 multi-region endpoint
+ url: http://localhost:5000
+ variables:
+ region:
+ default: us-east-1
+ description: The AWS region
+ enum:
+ - us-east-1
+ - us-east-2
+ - us-west-1
+ - us-west-2
+ - us-gov-west-1
+ - us-gov-east-1
+ - ca-central-1
+ - eu-north-1
+ - eu-west-1
+ - eu-west-2
+ - eu-west-3
+ - eu-central-1
+ - eu-south-1
+ - af-south-1
+ - ap-northeast-1
+ - ap-northeast-2
+ - ap-northeast-3
+ - ap-southeast-1
+ - ap-southeast-2
+ - ap-east-1
+ - ap-south-1
+ - sa-east-1
+ - me-south-1
+ - description: The general Amazon EC2 endpoint for US East (N. Virginia)
+ url: http://localhost:5000
+ variables: {}
+ - description: The Amazon EC2 endpoint for China (Beijing) and China (Ningxia)
+ url: http://localhost:5000
+ variables:
+ region:
+ default: cn-north-1
+ description: The AWS region
+ enum:
+ - cn-north-1
+ - cn-northwest-1
diff --git a/test/robot/auto-mocks/auto_mocks.robot b/test/robot/auto-mocks/auto_mocks.robot
new file mode 100644
index 0000000..a1e5a8e
--- /dev/null
+++ b/test/robot/auto-mocks/auto_mocks.robot
@@ -0,0 +1,3 @@
+*** Variables ***
+${REPOSITORY_ROOT} ${CURDIR}${/}..${/}..${/}..${/}..
+${LOCAL_LIB_HOME} ${REPOSITORY_ROOT}${/}test${/}python
\ No newline at end of file
diff --git a/test/robot/cli/aot/aot_adhoc.robot b/test/robot/cli/aot/aot_adhoc.robot
index 1a01bf7..5da5931 100644
--- a/test/robot/cli/aot/aot_adhoc.robot
+++ b/test/robot/cli/aot/aot_adhoc.robot
@@ -117,7 +117,7 @@ AOT Resource Level Analysis AWS EC2 volumes_post_naively_presented with CLI
Should Contain ${result.stdout}
... "warning_count": 2
Should Contain ${result.stdout}
- ... sample_response
+ ... ec2.volumes_post_naively_presented
Should Be Equal As Strings ${result.rc} 0
AOT Method Level Analysis AWS EC2 volumes_post_naively_presented describeVolumes with CLI
@@ -167,7 +167,58 @@ AOT Method Level Analysis AWS EC2 volumes_post_naively_presented describeVolumes
Should Contain ${result.stdout}
... "missing-semantics"
Should Contain ${result.stdout}
- ... "method": "describeVolumes"
+ ... ec2.volumes_post_naively_presented
+ Should Be Equal As Strings ${result.rc} 0
+
+Closure Generation AWS EC2 volumes_post_naively_presented with Rewrite
+ [Documentation] Test closure generation with server URL rewrite produces valid minimal service doc
+ [Tags] cli closure
+ ${result} = Run Process
+ ... ${CLI_EXE}
+ ... closure
+ ... \./test/registry
+ ... \./test/registry/src/aws/v0\.1\.0/provider\.yaml
+ ... ec2
+ ... \-\-provider
+ ... aws
+ ... \-\-resource
+ ... volumes_post_naively_presented
+ ... \-\-rewrite-url
+ ... http://localhost:1091
+ ... cwd=${CWD_FOR_EXEC}
+ ... stdout=${CURDIR}${/}/tmp${/}Closure-Generation-AWS-EC2-with-CLI.yaml
+ ... stderr=${CURDIR}${/}/tmp${/}Closure-Generation-AWS-EC2-with-CLI_stderr.txt
+ Log Stderr = ${result.stderr}
+ Log Stdout = ${result.stdout}
+ Log RC = ${result.rc}
+ # stdout: valid YAML closure with only the target resource
+ Should Contain ${result.stdout}
+ ... x-stackQL-resources
+ Should Contain ${result.stdout}
+ ... volumes_post_naively_presented
+ # Only the POST path for DescribeVolumes should be present
+ Should Contain ${result.stdout}
+ ... Action=DescribeVolumes
+ # Transitive schemas included
+ Should Contain ${result.stdout}
+ ... DescribeVolumesOutput
+ Should Contain ${result.stdout}
+ ... DescribeVolumesRequest
+ Should Contain ${result.stdout}
+ ... DescribeVolumesResult
+ # Server URLs rewritten
+ Should Contain ${result.stdout}
+ ... http://localhost:1091
+ # Original server URLs absent (check the url: field pattern, not metadata like x-providerName)
+ Should Not Contain ${result.stdout}
+ ... ec2.{region}.amazonaws.com
+ # Other resources from ec2.yaml absent
+ Should Not Contain ${result.stdout}
+ ... volumes_presented
+ # Security schemes preserved
+ Should Contain ${result.stdout}
+ ... securitySchemes
+ # Method transform config survives round-trip
Should Contain ${result.stdout}
- ... sample_response
+ ... toJson
Should Be Equal As Strings ${result.rc} 0