diff --git a/aws/codegen/objmodels/ec2.json b/aws/codegen/objmodels/ec2.json new file mode 100644 index 0000000000..b8a6005847 --- /dev/null +++ b/aws/codegen/objmodels/ec2.json @@ -0,0 +1,2788 @@ +{ + "packages" : [ + { + "name" : "amazondevpay", + "commands" : [ + { + "parameters" : [ + { + "desc" : "The product code to confirm.", + "name" : "ProductCode", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The instance to confirm.", + "name" : "InstanceId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.amazondevpay.ConfirmProductInstance", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.amazondevpay.ConfirmProductInstanceHandler", + "example" : "

Example Response

<ConfirmProductInstanceResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n  <ownerId>254933287430</ownerId>\n</ConfirmProductInstanceResponse>
\n", + "awsType" : "ConfirmProductInstanceHandler", + "package" : "org.jclouds.aws.ec2.xml.amazondevpay", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ConfirmProductInstanceResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.amazondevpay.ConfirmProductInstanceResponse", + "fields" : [ + { + "desc" : "The instance owner's account ID. Only present if the product code is attached to the instance.", + "name" : "ownerId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : " Returns true if the product code is attached to the instance; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "ConfirmProductInstanceResponse", + "javaType" : "ConfirmProductInstanceResponse", + "package" : "org.jclouds.aws.ec2.commands.response.amazondevpay", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ConfirmProductInstanceResponse.html" + ] + }, + "awsType" : "ConfirmProductInstance", + "package" : "org.jclouds.aws.ec2.commands.amazondevpay", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ConfirmProductInstance.html", + "DescribeInstances", + "RunInstances" + ] + } + ] + }, + { + "name" : "amis", + "commands" : [ + { + "parameters" : [ + { + "desc" : "Unique ID of the AMI which was assigned during registration. To register an AMI, use RegisterImage. To view the AMI IDs of AMIs that belong to your account. use DescribeImages.", + "name" : "ImageId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.amis.DeregisterImage", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.amis.DeregisterImageHandler", + "example" : "

Example Response

<DeregisterImageResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</DeregisterImageResponse>
\n", + "awsType" : "DeregisterImageHandler", + "package" : "org.jclouds.aws.ec2.xml.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeregisterImageResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.amis.DeregisterImageResponse", + "fields" : [ + { + "desc" : " Returns true if deregistration succeeded; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "DeregisterImageResponse", + "javaType" : "DeregisterImageResponse", + "package" : "org.jclouds.aws.ec2.commands.response.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeregisterImageResponse.html" + ] + }, + "awsType" : "DeregisterImage", + "package" : "org.jclouds.aws.ec2.commands.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeregisterImage.html", + "RegisterImage", + "DescribeImages" + ] + }, + { + "parameters" : [ + { + "desc" : "The ID of the AMI for which an attribute will be described.", + "name" : "ImageId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Describes the launch permissions of the AMI.", + "name" : "LaunchPermission", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Describes the product code associated with the AMI.", + "name" : "ProductCodes", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Describes the ID of the kernel associated with the AMI.", + "name" : "Kernel", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Describes the ID of the RAM disk associated with the AMI.", + "name" : "Ramdisk", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Describes the mapping that defines native device names to use when exposing virtual devices.", + "name" : "BlockDeviceMapping", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Describes the operating system platform.", + "name" : "Platform", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.amis.DescribeImageAttribute", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.amis.DescribeImageAttributeHandler", + "example" : "

Example Response

<DescribeImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <imageId>ami-61a54008</imageId>\n  <launchPermission>\n    <item>\n      <group>all</group>\n    </item>\n    <item>\n      <userId>495219933132</userId>\n    </item>\n  </launchPermission>\n</DescribeImageAttributeResponse>
\n", + "awsType" : "DescribeImageAttributeHandler", + "package" : "org.jclouds.aws.ec2.xml.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeImageAttributeResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.amis.DescribeImageAttributeResponse", + "fields" : [ + { + "desc" : "Block device mapping set.", + "name" : "blockDeviceMapping", + "type" : "BlockDeviceMappingType", + "javaType" : "BlockDeviceMapping" + }, + { + "desc" : "The ID of the AMI.", + "name" : "imageId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Kernel set.", + "name" : "kernel", + "type" : "NullableAttributeValueType", + "javaType" : "NullableAttributeValue" + }, + { + "desc" : "Launch permissions set.", + "name" : "launchPermission", + "type" : "LaunchPermissionListType", + "javaType" : "LaunchPermissionList" + }, + { + "desc" : "Product codes set.", + "name" : "productCodes", + "type" : "ProductCodeListType", + "javaType" : "ProductCodeList" + }, + { + "desc" : "RAM disk set.", + "name" : "ramdisk", + "type" : "NullableAttributeValueType", + "javaType" : "NullableAttributeValue" + } + ], + "awsType" : "DescribeImageAttributeResponse", + "javaType" : "DescribeImageAttributeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeImageAttributeResponse.html" + ] + }, + "awsType" : "DescribeImageAttribute", + "package" : "org.jclouds.aws.ec2.commands.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeImageAttribute.html", + "DescribeImages", + "ModifyImageAttribute", + "ResetImageAttribute" + ] + }, + { + "className" : "org.jclouds.aws.ec2.commands.amis.DescribeImages", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.amis.DescribeImagesHandler", + "example" : "

Example Response

<DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <imagesSet>\n    <item>\n      <imageId>ami-be3adfd7</imageId>\n      <imageLocation>ec2-public-images/fedora-8-i386-base-v1.04.manifest.xml\n      </imageLocation>\n      <imageState>available</imageState>\n      <imageOwnerId>206029621532</imageOwnerId>\n      <isPublic>false</isPublic>\n      <architecture>i386</architecture>\n      <imageType>machine</imageType>\n      <kernelId>aki-4438dd2d</kernelId>\n      <ramdiskId>ari-4538dd2c</ramdiskId>\n    </item>\n  </imagesSet>\n</DescribeImagesResponse>
\n", + "awsType" : "DescribeImagesHandler", + "package" : "org.jclouds.aws.ec2.xml.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeImagesResponse.html" + ] + }, + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.amis.DescribeImagesOptions", + "parameters" : [ + { + "desc" : "Returns AMIs for which the specified user has explicit launch permissions. The user ID can be a user's account ID, self to return AMIs for which the sender of the request has explicit launch permissions, or all to return AMIs with public launch permissions.", + "name" : "User", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "AMI IDs to describe.", + "name" : "ImageId", + "type" : "String", + "param" : "Returns all AMIs.", + "javaType" : "String" + }, + { + "desc" : "Returns AMIs owned by the specified owner. Multiple owners can be specified. The IDs amazon, self, and explicit can be used to include AMIs owned by Amazon, AMIs owned by the user, and AMIs for which the user has explicit launch permissions, respectively.", + "name" : "Owner", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes the ami-be3adfd7 AMI.

https://ec2.amazonaws.com/?Action=DescribeImages&ImageId.1=ami-be3adfd7&AuthParams
\n", + "awsType" : "DescribeImagesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeImages.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.amis.DescribeImagesResponse", + "fields" : [ + { + "desc" : "Image set.", + "name" : "imagesSet", + "type" : "DescribeImagesResponseInfoType", + "javaType" : "DescribeImagesResponseInfo" + } + ], + "awsType" : "DescribeImagesResponse", + "javaType" : "DescribeImagesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeImagesResponse.html" + ] + }, + "awsType" : "DescribeImages", + "package" : "org.jclouds.aws.ec2.commands.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeImages.html", + "DescribeInstances", + "DescribeImageAttribute" + ] + }, + { + "parameters" : [ + { + "desc" : "The AMI ID.", + "name" : "ImageId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "User IDs associated with the launchPermission attribute.", + "name" : "UserId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Security groups associated with the launchPermission attribute. You can specify the ", + "name" : "Group.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "User IDs associated with the launchPermission attribute.", + "name" : "UserId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Security groups associated with the launchPermission attribute. You can specify the ", + "name" : "Group.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Amazon DevPay product code. Currently only one product code can be associated with an AMI. Once set, the product code cannot be changed or reset.", + "name" : "ProductCode.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.amis.ModifyImageAttribute", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.amis.ModifyImageAttributeHandler", + "example" : "

Example Response

<ModifyImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</ModifyImageAttributeResponse>
\n", + "awsType" : "ModifyImageAttributeHandler", + "package" : "org.jclouds.aws.ec2.xml.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ModifyImageAttributeResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.amis.ModifyImageAttributeResponse", + "fields" : [ + { + "desc" : " Returns true if successful; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "ModifyImageAttributeResponse", + "javaType" : "ModifyImageAttributeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ModifyImageAttributeResponse.html" + ] + }, + "awsType" : "ModifyImageAttribute", + "package" : "org.jclouds.aws.ec2.commands.amis", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyImageAttribute.html", + "ResetImageAttribute", + "DescribeImageAttribute" + ] + } + ] + }, + { + "name" : "availabilityzonesandregions", + "commands" : [ + { + "className" : "org.jclouds.aws.ec2.commands.availabilityzonesandregions.DescribeAvailabilityZones", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.availabilityzonesandregions.DescribeAvailabilityZonesHandler", + "example" : "

Example Response

<DescribeAvailabilityZonesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <availabilityZoneInfo>\n    <item>\n      <zoneName>us-east-1a</zoneName>\n      <zoneState>available</zoneState>\n    </item>\n    <item>\n      <zoneName>us-east-1b</zoneName>\n      <zoneState>available</zoneState>\n    </item>\n    <item>\n      <zoneName>us-east-1c</zoneName>\n      <zoneState>available</zoneState>\n    </item>\n  </availabilityZoneInfo>\n</DescribeAvailabilityZonesResponse>
\n", + "awsType" : "DescribeAvailabilityZonesHandler", + "package" : "org.jclouds.aws.ec2.xml.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeAvailabilityZonesResponse.html" + ] + }, + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.availabilityzonesandregions.DescribeAvailabilityZonesOptions", + "parameters" : [ + { + "desc" : "Availability Zone name.", + "name" : "ZoneName", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example displays information about Availability Zones that are available to the account.

https://ec2.amazonaws.com/?Action=DescribeAvailabilityZones&ZoneName.0=us-east-1a&ZoneName.1=us-east-1b&ZoneName.1=us-east-1c&AuthParams
\n", + "awsType" : "DescribeAvailabilityZonesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeAvailabilityZones.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.availabilityzonesandregions.DescribeAvailabilityZonesResponse", + "fields" : [ + { + "desc" : "Availability Zone information.", + "name" : "availabilityZoneInfo", + "type" : "AvailabilityZoneSetType", + "javaType" : "AvailabilityZone" + } + ], + "awsType" : "DescribeAvailabilityZonesResponse", + "javaType" : "DescribeAvailabilityZonesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeAvailabilityZonesResponse.html" + ] + }, + "awsType" : "DescribeAvailabilityZones", + "package" : "org.jclouds.aws.ec2.commands.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeAvailabilityZones.html", + "RunInstances", + "DescribeRegions" + ] + }, + { + "className" : "org.jclouds.aws.ec2.commands.availabilityzonesandregions.DescribeRegions", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.availabilityzonesandregions.DescribeRegionsHandler", + "example" : "

Example Response

<DescribeRegionsResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <regionInfo>\n    <item>\n      <regionName>us-east-1</regionName>\n      <regionEndpoint>us-east-1.ec2.amazonaws.com</regionEndpoint>\n    </item>\n    <item>\n      <regionName>eu-west-1</regionName>\n      <regionUrl>eu-west-1.ec2.amazonaws.com</regionUrl>\n    </item>\n  </regionInfo>\n</DescribeRegionsResponse>
\n", + "awsType" : "DescribeRegionsHandler", + "package" : "org.jclouds.aws.ec2.xml.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeRegionsResponse.html" + ] + }, + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.availabilityzonesandregions.DescribeRegionsOptions", + "parameters" : [ + { + "desc" : "Name of a region.", + "name" : "Region.n", + "type" : "String", + "param" : "Describes all regions available to the account.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example displays regions that are available to the account.

https://ec2.amazonaws.com/?Action=DescribeRegions&RegionName.0=us-east-1&RegionName.1=eu-west-1&AuthParams
\n", + "awsType" : "DescribeRegionsOptions", + "package" : "org.jclouds.aws.ec2.commands.options.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeRegions.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.availabilityzonesandregions.DescribeRegionsResponse", + "fields" : [ + { + "desc" : "Region set.", + "name" : "regionInfo", + "type" : "RegionSetType", + "javaType" : "Region" + } + ], + "awsType" : "DescribeRegionsResponse", + "javaType" : "DescribeRegionsResponse", + "package" : "org.jclouds.aws.ec2.commands.response.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeRegionsResponse.html" + ] + }, + "awsType" : "DescribeRegions", + "package" : "org.jclouds.aws.ec2.commands.availabilityzonesandregions", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeRegions.html", + "DescribeAvailabilityZones", + "RunInstances" + ] + } + ] + }, + { + "name" : "elasticblockstore", + "commands" : [ + { + "parameters" : [ + { + "desc" : "The ID of the Amazon EBS volume. The volume and instance must be within the same Availability Zone and the instance must be running.", + "name" : "VolumeId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The ID of the instance to which the volume attaches. The volume and instance must be within the same Availability Zone and the instance must be running.", + "name" : "InstanceId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Specifies how the device is exposed to the instance (e.g., /dev/sdh).", + "name" : "Device", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.AttachVolume", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.AttachVolumeHandler", + "example" : "

Example Response

<AttachVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <volumeId>vol-4d826724</volumeId>\n  <instanceId>i-6058a509</instanceId>\n  <device>/dev/sdh</device>\n  <status>attaching</status>\n  <attachTime>2008-05-07T11:51:50.000Z</attachTime>\n</AttachVolumeResponse>
\n", + "awsType" : "AttachVolumeHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AttachVolumeResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.AttachVolumeResponse", + "fields" : [ + { + "desc" : "Time stamp when the attachment was initiated.", + "name" : "attachTime", + "type" : "xsd:dateTime", + "javaType" : "DateTime" + }, + { + "desc" : "The device as it is exposed to the instance.", + "name" : "device", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the instance.", + "name" : "instanceId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Volume state (e.g., attaching, attached).", + "name" : "status", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the volume.", + "name" : "volumeId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "AttachVolumeResponse", + "javaType" : "AttachVolumeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AttachVolumeResponse.html" + ] + }, + "awsType" : "AttachVolume", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AttachVolume.html", + "CreateVolume", + "DeleteVolume", + "DescribeVolumes", + "DetachVolume" + ] + }, + { + "parameters" : [ + { + "desc" : "The ID of the Amazon EBS volume to take a snapshot of.", + "name" : "VolumeId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.CreateSnapshot", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.CreateSnapshotHandler", + "example" : "

Example Response

<CreateSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <snapshotId>snap-78a54011</snapshotId>\n  <volumeId>vol-4d826724</volumeId>\n  <status>pending</status>\n  <startTime>2008-05-07T12:51:50.000Z</startTime>\n  <progress>60%</progress>\n</CreateSnapshotResponse>
\n", + "awsType" : "CreateSnapshotHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateSnapshotResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.CreateSnapshotResponse", + "fields" : [ + { + "desc" : "The progress of the snapshot, in percentage.", + "name" : "progress", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the snapshot.", + "name" : "snapshotId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Time stamp when the snapshot was initiated.", + "name" : "startTime", + "type" : "xsd:dateTime", + "javaType" : "DateTime" + }, + { + "desc" : "Snapshot state (e.g., pending, completed)", + "name" : "status", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the volume.", + "name" : "volumeId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "CreateSnapshotResponse", + "javaType" : "CreateSnapshotResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateSnapshotResponse.html" + ] + }, + "awsType" : "CreateSnapshot", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSnapshot.html", + "DeleteSnapshot", + "DescribeSnapshots" + ] + }, + { + "parameters" : [ + { + "desc" : "Valid Values: 1 -1024", + "name" : "Size", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The snapshot from which to create the new volume.", + "name" : "SnapshotId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The Availability Zone in which to create the new volume.", + "name" : "AvailabilityZone", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.CreateVolume", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.CreateVolumeHandler", + "example" : "

Example Response

<CreateVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <volumeId>vol-4d826724</volumeId>\n  <size>800</size>\n  <status>creating</status>\n  <createTime>2008-05-07T11:51:50.000Z</createTime>\n  <availabilityZone>us-east-1a</availabilityZone>\n  <snapshotId></snapshotId>\n</CreateVolumeResponse>
\n", + "awsType" : "CreateVolumeHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateVolumeResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.CreateVolumeResponse", + "fields" : [ + { + "desc" : "Availability Zone in which the volume was created.", + "name" : "availabilityZone", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Time stamp when volume creation was initiated.", + "name" : "createTime", + "type" : "xsd:dateTime", + "javaType" : "DateTime" + }, + { + "desc" : "The size of the volume, in GiBs.", + "name" : "size", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Snapshot from which the volume was created, if applicable.", + "name" : "snapshotId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Volume state (e.g., creating, available)", + "name" : "status", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the volume.", + "name" : "volumeId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "CreateVolumeResponse", + "javaType" : "CreateVolumeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateVolumeResponse.html" + ] + }, + "awsType" : "CreateVolume", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVolume.html", + "DeleteVolume", + "DescribeVolumes", + "AttachVolume", + "DetachVolume", + "DescribeAvailabilityZones" + ] + }, + { + "parameters" : [ + { + "desc" : "The ID of the Amazon EBS snapshot to delete.", + "name" : "SnapshotId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.DeleteSnapshot", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.DeleteSnapshotHandler", + "example" : "

Example Response

<DeleteSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</DeleteSnapshotResponse>
\n", + "awsType" : "DeleteSnapshotHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteSnapshotResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.DeleteSnapshotResponse", + "fields" : [ + { + "desc" : " Returns true if deletion succeeded; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "DeleteSnapshotResponse", + "javaType" : "DeleteSnapshotResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteSnapshotResponse.html" + ] + }, + "awsType" : "DeleteSnapshot", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteSnapshot.html", + "CreateSnapshot", + "DescribeSnapshots" + ] + }, + { + "parameters" : [ + { + "desc" : "The ID of the volume to delete.", + "name" : "VolumeId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.DeleteVolume", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.DeleteVolumeHandler", + "example" : "

Example Response

<DeleteVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</DeleteVolumeResponse>
\n", + "awsType" : "DeleteVolumeHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteVolumeResponse.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.DeleteVolumeResponse", + "fields" : [ + { + "desc" : " Returns true if deletion succeeded; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "DeleteVolumeResponse", + "javaType" : "DeleteVolumeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteVolumeResponse.html" + ] + }, + "awsType" : "DeleteVolume", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteVolume.html", + "CreateVolume", + "DescribeVolumes", + "AttachVolume", + "DetachVolume" + ] + }, + { + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.DescribeSnapshots", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.DescribeSnapshotsHandler", + "example" : "

Example Response

<DescribeSnapshotsResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <snapshotSet>\n    <item>\n      <snapshotId>snap-78a54011</snapshotId>\n      <volumeId>vol-4d826724</volumeId>\n      <status>pending</status>\n      <startTime>2008-05-07T12:51:50.000Z</startTime>\n      <progress>80%</progress>\n    </item>\n  </snapshotSet>\n</DescribeSnapshotsResponse>
\n", + "awsType" : "DescribeSnapshotsHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeSnapshotsResponse.html" + ] + }, + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.elasticblockstore.DescribeSnapshotsOptions", + "parameters" : [ + { + "desc" : "The ID of the Amazon EBS snapshot.", + "name" : "SnapshotId.n", + "type" : "String", + "param" : "Describes all snapshots that you own.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes snapshot snap-78a54011.

https://ec2.amazonaws.com/?Action=DescribeSnapshots&SnapshotId=snap-78a54011&AuthParams
\n", + "awsType" : "DescribeSnapshotsOptions", + "package" : "org.jclouds.aws.ec2.commands.options.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeSnapshots.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.DescribeSnapshotsResponse", + "fields" : [ + { + "desc" : "Snapshot set.", + "name" : "snapshotSet", + "type" : "DescribeSnapshotsSetResponseType", + "javaType" : "DescribeSnapshotResponse" + } + ], + "awsType" : "DescribeSnapshotsResponse", + "javaType" : "DescribeSnapshotsResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeSnapshotsResponse.html" + ] + }, + "awsType" : "DescribeSnapshots", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html", + "CreateSnapshot", + "DeleteSnapshot" + ] + }, + { + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.DescribeVolumes", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.DescribeVolumesHandler", + "example" : "

Example Response

<DescribeVolumesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n<volumeSet>\n  <item>\n    <volumeId>vol-4282672b</volumeId>\n    <size>800</size>\n    <snapshotId/>\n    <availabilityZone>us-east-1a</availabilityZone>\n    <status>in-use</status>\n    <createTime>2008-05-07T11:51:50.000Z</createTime>\n    <attachmentSet>\n      <item>\n        <volumeId>vol-4282672b</volumeId>\n        <instanceId>i-6058a509</instanceId>\n        <device>/dev/sdh</device>\n        <status>attached</status>\n        <attachTime>2008-05-07T12:51:50.000Z</attachTime>\n      </item>\n    </attachmentSet>\n  </item>\n</DescribeVolumesResponse>
\n", + "awsType" : "DescribeVolumesHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeVolumesResponse.html" + ] + }, + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.elasticblockstore.DescribeVolumesOptions", + "parameters" : [ + { + "desc" : "The ID of the volume to list.", + "name" : "VolumeId", + "type" : "String", + "param" : "Describes all volumes that you own.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes all volumes associated with your account.

https://ec2.amazonaws.com/?Action=DescribeVolumes&AuthParams
\n", + "awsType" : "DescribeVolumesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeVolumes.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.DescribeVolumesResponse", + "fields" : [ + { + "desc" : "Volume set.", + "name" : "volumeSet", + "type" : "DescribeVolumesSetResponseType", + "javaType" : "DescribeVolumeResponse" + } + ], + "awsType" : "DescribeVolumesResponse", + "javaType" : "DescribeVolumesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeVolumesResponse.html" + ] + }, + "awsType" : "DescribeVolumes", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeVolumes.html", + "CreateSnapshot", + "DeleteSnapshot" + ] + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.elasticblockstore.DetachVolumeOptions", + "parameters" : [ + { + "desc" : "The ID of the instance.", + "name" : "InstanceId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The device name.", + "name" : "Device", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Forces detachment if the previous detachment attempt did not occur cleanly (logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance will not have an opportunity to flush file system caches nor file system meta data.", + "name" : "Force", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example detaches volume vol-4d826724.

https://ec2.amazonaws.com/?Action=DetachVolume&VolumeId=vol-4d826724\n&InstanceId=i-6058a509&AuthParams
\n", + "awsType" : "DetachVolumeOptions", + "package" : "org.jclouds.aws.ec2.commands.options.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DetachVolume.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticblockstore.DetachVolumeResponse", + "fields" : [ + { + "desc" : "Time stamp when the association was created.", + "name" : "attachTime", + "type" : "xsd:dateTime", + "javaType" : "DateTime" + }, + { + "desc" : "The device as it is exposed to the instance.", + "name" : "device", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the instance.", + "name" : "instanceId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Attachment state (e.g., attaching, attached, detaching, or detached).", + "name" : "status", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The ID of the volume.", + "name" : "volumeId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "DetachVolumeResponse", + "javaType" : "DetachVolumeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DetachVolumeResponse.html" + ] + }, + "awsType" : "DetachVolume", + "package" : "org.jclouds.aws.ec2.commands.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DetachVolume.html", + "CreateVolume", + "DeleteVolume", + "DescribeVolumes", + "AttachVolume" + ], + "className" : "org.jclouds.aws.ec2.commands.elasticblockstore.DetachVolume", + "parameters" : [ + { + "desc" : "The ID of the volume.", + "name" : "VolumeId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticblockstore.DetachVolumeHandler", + "example" : "

Example Response

<DetachVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <volumeId>vol-4d826724</volumeId>\n  <instanceId>i-6058a509</instanceId>\n  <device>/dev/sdh</device>\n  <status>detaching</status>\n  <attachTime>2008-05-08T11:51:50.000Z</attachTime>\n</DetachVolumeResponse>
\n", + "awsType" : "DetachVolumeHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticblockstore", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DetachVolumeResponse.html" + ] + } + } + ] + }, + { + "name" : "elasticipaddresses", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses.AllocateAddressResponse", + "fields" : [ + { + "name" : "publicIp", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "AllocateAddressResponse", + "javaType" : "AllocateAddressResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AllocateAddressResponse.html" + ] + }, + "awsType" : "AllocateAddress", + "package" : "org.jclouds.aws.ec2.commands.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AllocateAddress.html", + "DescribeAddresses", + "ReleaseAddress", + "AssociateAddress", + "DisassociateAddress" + ], + "className" : "org.jclouds.aws.ec2.commands.elasticipaddresses.AllocateAddress", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticipaddresses.AllocateAddressHandler", + "example" : "

Example Response

<AllocateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <publicIp>67.202.55.255</publicIp>\n</AllocateAddressResponse>
\n", + "awsType" : "AllocateAddressHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AllocateAddressResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses.AssociateAddressResponse", + "fields" : [ + { + "desc" : "IP address.", + "name" : "publicIp", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : " Returns true if instance and IP address successfully associated; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "AssociateAddressResponse", + "javaType" : "AssociateAddressResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AssociateAddressResponse.html" + ] + }, + "awsType" : "AssociateAddress", + "package" : "org.jclouds.aws.ec2.commands.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AssociateAddress.html", + "AllocateAddress", + "DescribeAddresses", + "ReleaseAddress", + "DisassociateAddress" + ], + "parameters" : [ + { + "desc" : "The instance to associate with the IP address.", + "name" : "InstanceId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "IP address that you are assigning to the instance.", + "name" : "PublicIp", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticipaddresses.AssociateAddress", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticipaddresses.AssociateAddressHandler", + "example" : "

Example Response

<AssociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</AssociateAddressResponse>
\n", + "awsType" : "AssociateAddressHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AssociateAddressResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.elasticipaddresses.DescribeAddressesOptions", + "parameters" : [ + { + "desc" : "Elastic IP address to describe.", + "name" : "PublicIp.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes elastic IP addresses assigned to the account. Amazon EC2 returns 67.202.55.255 which is assigned to instance i-f15ebb98 and 67.202.55.233 which is not assigned to an instance.

https://ec2.amazonaws.com/?Action=DescribeAddresses&PublicIp.1=67.202.55.255\n&PublicIp.1=67.202.55.233&AuthParams
\n", + "awsType" : "DescribeAddressesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeAddresses.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses.DescribeAddressesResponse", + "fields" : [ + { + "name" : "addressesSet", + "type" : "DescribeAddressesResponseInfoType", + "javaType" : "DescribeAddressesResponseInfo" + } + ], + "awsType" : "DescribeAddressesResponse", + "javaType" : "DescribeAddressesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeAddressesResponse.html" + ] + }, + "awsType" : "DescribeAddresses", + "package" : "org.jclouds.aws.ec2.commands.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeAddresses.html", + "AllocateAddress", + "ReleaseAddress" + ], + "className" : "org.jclouds.aws.ec2.commands.elasticipaddresses.DescribeAddresses", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticipaddresses.DescribeAddressesHandler", + "example" : "

Example Response

<DescribeAddressesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <addressesSet>\n    <item>\n      <instanceId>i-f15ebb98</instanceId>\n      <publicIp>67.202.55.255</publicIp>\n    </item>\n    <item>\n      <publicIp>67.202.55.233</publicIp>\n    </item>\n  </addressesSet>\n\t\t\t\t\t\t</DescribeAddressesResponse>
\n", + "awsType" : "DescribeAddressesHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeAddressesResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses.DisassociateAddressResponse", + "fields" : [ + { + "desc" : " Returns true if the IP address is disassociated from the instance. Otherwise, false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "DisassociateAddressResponse", + "javaType" : "DisassociateAddressResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DisassociateAddressResponse.html" + ] + }, + "awsType" : "DisassociateAddress", + "package" : "org.jclouds.aws.ec2.commands.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DisassociateAddress.html", + "AllocateAddress", + "DescribeAddresses", + "ReleaseAddress", + "AssociateAddress" + ], + "parameters" : [ + { + "desc" : "IP address that you are disassociating from the instance.", + "name" : "PublicIp", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticipaddresses.DisassociateAddress", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticipaddresses.DisassociateAddressHandler", + "example" : "

Example Response

<DisassociateAddressResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</DisassociateAddressResponse>
\n", + "awsType" : "DisassociateAddressHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DisassociateAddressResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses.ReleaseAddressResponse", + "fields" : [ + { + "desc" : " Returns true if successful; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "ReleaseAddressResponse", + "javaType" : "ReleaseAddressResponse", + "package" : "org.jclouds.aws.ec2.commands.response.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ReleaseAddressResponse.html" + ] + }, + "awsType" : "ReleaseAddress", + "package" : "org.jclouds.aws.ec2.commands.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ReleaseAddress.html", + "AllocateAddress", + "DescribeAddresses", + "AssociateAddress", + "DisassociateAddress" + ], + "parameters" : [ + { + "desc" : "The IP address that you are releasing from your account.", + "name" : "PublicIp", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.elasticipaddresses.ReleaseAddress", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.elasticipaddresses.ReleaseAddressHandler", + "example" : "

Example Response

<ReleaseAddressResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</ReleaseAddressResponse>
\n", + "awsType" : "ReleaseAddressHandler", + "package" : "org.jclouds.aws.ec2.xml.elasticipaddresses", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ReleaseAddressResponse.html" + ] + } + } + ] + }, + { + "name" : "general", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.general.GetConsoleOutputResponse", + "fields" : [ + { + "desc" : "The instance ID.", + "name" : "instanceId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The console output, Base64 encoded.", + "name" : "output", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The time the output was last updated.", + "name" : "timestamp", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "GetConsoleOutputResponse", + "javaType" : "GetConsoleOutputResponse", + "package" : "org.jclouds.aws.ec2.commands.response.general", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-GetConsoleOutputResponse.html" + ] + }, + "awsType" : "GetConsoleOutput", + "package" : "org.jclouds.aws.ec2.commands.general", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-GetConsoleOutput.html", + "RunInstances" + ], + "parameters" : [ + { + "desc" : "ID of the instance for which you want console output.", + "name" : "InstanceId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.general.GetConsoleOutput", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.general.GetConsoleOutputHandler", + "example" : "

Example Response

<GetConsoleOutputResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <instanceId>i-28a64341</instanceId>\n  <timestamp>2007-01-03 15:00:00</timestamp>\n  <output>TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj\nYyB2ZXJzaW9uIDQuMC4xIDIwMDUwNzI3IChSZWQgSGF0IDQuMC4xLTUpKSAjMSBTTVAgVGh1IE9j\ndCAyNiAwODo0MToyNiBTQVNUIDIwMDYKQklPUy1wcm92aWRlZCBwaHlzaWNhbCBSQU0gbWFwOgpY\nZW46IDAwMDAwMDAwMDAwMDAwMDAgLSAwMDAwMDAwMDZhNDAwMDAwICh1c2FibGUpCjk4ME1CIEhJ\nR0hNRU0gYXZhaWxhYmxlLgo3MjdNQiBMT1dNRU0gYXZhaWxhYmxlLgpOWCAoRXhlY3V0ZSBEaXNh\nYmxlKSBwcm90ZWN0aW9uOiBhY3RpdmUKSVJRIGxvY2t1cCBkZXRlY3Rpb24gZGlzYWJsZWQKQnVp\nbHQgMSB6b25lbGlzdHMKS2VybmVsIGNvbW1hbmQgbGluZTogcm9vdD0vZGV2L3NkYTEgcm8gNApF\nbmFibGluZyBmYXN0IEZQVSBzYXZlIGFuZCByZXN0b3JlLi4uIGRvbmUuCg==</output>\n</GetConsoleOutputResponse>
\n", + "awsType" : "GetConsoleOutputHandler", + "package" : "org.jclouds.aws.ec2.xml.general", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-GetConsoleOutputResponse.html" + ] + } + } + ] + }, + { + "name" : "images", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.images.RegisterImageResponse", + "fields" : [ + { + "desc" : "Unique ID of the newly registered machine image.", + "name" : "imageId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "RegisterImageResponse", + "javaType" : "RegisterImageResponse", + "package" : "org.jclouds.aws.ec2.commands.response.images", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RegisterImageResponse.html" + ] + }, + "awsType" : "RegisterImage", + "package" : "org.jclouds.aws.ec2.commands.images", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RegisterImage.html", + "DescribeImages", + "DeregisterImage" + ], + "parameters" : [ + { + "desc" : "Full path to your AMI manifest in Amazon S3 storage.", + "name" : "ImageLocation", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.images.RegisterImage", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.images.RegisterImageHandler", + "example" : "

Example Response

<RegisterImageResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <imageId>ami-61a54008</imageId>\n</RegisterImageResponse>
\n", + "awsType" : "RegisterImageHandler", + "package" : "org.jclouds.aws.ec2.xml.images", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RegisterImageResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.images.ResetImageAttributeResponse", + "fields" : [ + { + "desc" : "Unique ID of the newly registered machine image.", + "name" : "imageId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "ResetImageAttributeResponse", + "javaType" : "ResetImageAttributeResponse", + "package" : "org.jclouds.aws.ec2.commands.response.images", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ResetImageAttributeResponse.html" + ] + }, + "awsType" : "ResetImageAttribute", + "package" : "org.jclouds.aws.ec2.commands.images", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ResetImageAttribute.html", + "ModifyImageAttribute", + "DescribeImageAttribute" + ], + "parameters" : [ + { + "desc" : "ID of the AMI on which the attribute will be reset.", + "name" : "ImageId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.images.ResetImageAttribute", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.images.ResetImageAttributeHandler", + "example" : "

Example Response

<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</ResetImageAttributeResponse>
\n", + "awsType" : "ResetImageAttributeHandler", + "package" : "org.jclouds.aws.ec2.xml.images", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-ResetImageAttributeResponse.html" + ] + } + } + ] + }, + { + "name" : "instances", + "commands" : [ + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.instances.DescribeInstancesOptions", + "parameters" : [ + { + "desc" : "Instance IDs to describe.", + "name" : "InstanceId.n", + "type" : "String", + "param" : "Returns all instances.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes the current state of the instances owned by this user.

https://ec2.amazonaws.com/?Action=DescribeInstances&AuthParams
\n", + "awsType" : "DescribeInstancesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeInstances.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.instances.DescribeInstancesResponse", + "fields" : [ + { + "desc" : "Reservation set.", + "name" : "reservationSet", + "type" : "ReservationSetType", + "javaType" : "Reservation" + } + ], + "awsType" : "DescribeInstancesResponse", + "javaType" : "DescribeInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeInstancesResponse.html" + ] + }, + "awsType" : "DescribeInstances", + "package" : "org.jclouds.aws.ec2.commands.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstances.html", + "RunInstances", + "TerminateInstances" + ], + "className" : "org.jclouds.aws.ec2.commands.instances.DescribeInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.instances.DescribeInstancesHandler", + "example" : "

Example Response

<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <reservationSet>\n    <item>\n      <reservationId>r-44a5402d</reservationId>\n      <ownerId>UYY3TLBUXIEON5NQVUUX6OMPWBZIQNFM</ownerId>\n      <groupSet>\n        <item>\n          <groupId>default</groupId>\n        </item>\n      </groupSet>\n      <instancesSet>\n        <item>\n          <instanceId>i-28a64341</instanceId>\n          <imageId>ami-6ea54007</imageId>\n          <instanceState>\n            <code>0</code>\n            <name>running</name>\n          </instanceState>\n          <privateDnsName>10-251-50-132.ec2.internal</privateDnsName>\n          <dnsName>ec2-72-44-33-4.compute-1.amazonaws.com</dnsName>\n          <keyName>example-key-name</keyName>\n          <amiLaunchIndex>23</amiLaunchIndex>\n          <productCodesSet>\n            <item><productCode>774F4FF8</productCode></item>\n          </productCodesSet>\n          <instanceType>m1.large</instanceType>\n          <launchTime>2007-08-07T11:54:42.000Z</launchTime>\n          <placement>\n\t\t\t  <availabilityZone>us-east-1b</availabilityZone>\n\t  </placement>\n\t  <kernelId>aki-ba3adfd3</kernelId>\n\t  <ramdiskId>ari-badbad00</ramdiskId>\n        </item>\n        <item>\n          <instanceId>i-28a64435</instanceId>\n          <imageId>ami-6ea54007</imageId>\n          <instanceState>\n            <code>0</code>\n            <name>running</name>\n          </instanceState>\n          <privateDnsName>10-251-50-134.ec2.internal</privateDnsName>\n          <dnsName>ec2-72-44-33-6.compute-1.amazonaws.com</dnsName>\n          <keyName>example-key-name</keyName>\n          <amiLaunchIndex>23</amiLaunchIndex>\n          <productCodesSet>\n            <item><productCode>774F4FF8</productCode></item>\n          </productCodesSet>\n          <instanceType>m1.large</instanceType>\n          <launchTime>2007-08-07T11:54:42.000Z</launchTime>\n          <placement>\n\t\t\t  <availabilityZone>us-east-1b</availabilityZone>\n\t  </placement>\n\t  <kernelId>aki-ba3adfd3</kernelId>\n\t  <ramdiskId>ari-badbad00</ramdiskId>\n        </item>\n      </instancesSet>\n    </item>\n  </reservationSet>\n</DescribeInstancesResponse>
\n", + "awsType" : "DescribeInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeInstancesResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.instances.RebootInstancesResponse", + "fields" : [ + { + "desc" : " Returns true if successful; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "RebootInstancesResponse", + "javaType" : "RebootInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RebootInstancesResponse.html" + ] + }, + "awsType" : "RebootInstances", + "package" : "org.jclouds.aws.ec2.commands.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RebootInstances.html", + "RunInstances" + ], + "parameters" : [ + { + "desc" : "One or more instance IDs.", + "name" : "InstanceId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.instances.RebootInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.instances.RebootInstancesHandler", + "example" : "

Example Response

<RebootInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</RebootInstancesResponse>
\n", + "awsType" : "RebootInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RebootInstancesResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.instances.RunInstancesOptions", + "parameters" : [ + { + "desc" : "The name of the key pair.", + "name" : "KeyName", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Name of the security group.", + "name" : "groupId", + "type" : "String", + "param" : "default", + "javaType" : "String" + }, + { + "desc" : "The user data.", + "name" : "Data", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Deprecated.", + "name" : "AddressingType", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Valid Values: m1.small | m1.large | m1.xlarge | c1.medium | c1.xlarge", + "name" : "InstanceType", + "type" : "String", + "param" : "m1.small", + "javaType" : "String" + }, + { + "desc" : "Specifies the placement constraints (Availability Zones) for launching the instances.", + "name" : "AvailabilityZone", + "type" : "String", + "param" : "Amazon EC2 selects an Availability Zone.", + "javaType" : "String" + }, + { + "desc" : "The ID of the kernel with which to launch the instance.", + "name" : "KernelId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.", + "name" : "RamdiskId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The virtual name.", + "name" : "VirtualName", + "type" : "String", + "param" : "None ", + "javaType" : "String" + }, + { + "desc" : "The device name (e.g., /dev/sdh).", + "name" : "DeviceName", + "type" : "String", + "param" : "None ", + "javaType" : "String" + }, + { + "desc" : "Enables monitoring for the instance.", + "name" : "Monitoring.Enabled", + "type" : "Boolean", + "param" : "Disabled", + "javaType" : "Boolean" + } + ], + "example" : "

Example Request

This example launches three instances of the ami-60a54009 AMI.

https://ec2.amazonaws.com/?Action=RunInstances&ImageId=ami-60a54009&MaxCount=3&MinCount=1&Placement.AvailabilityZone=us-east-1a&Monitoring.Enabled=true&AuthParams
\n", + "awsType" : "RunInstancesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RunInstances.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.instances.RunInstancesResponse", + "fields" : [ + { + "desc" : "Group set. ", + "name" : "groupSet", + "type" : "GroupSetType", + "javaType" : "Group" + }, + { + "desc" : "Instance set. ", + "name" : "instancesSet", + "type" : "RunningInstancesSetType", + "javaType" : "Set" + }, + { + "desc" : "AWS Access Key ID of the user who owns the reservation.", + "name" : "ownerId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : " ID of the requester.", + "name" : "requesterId", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "Unique ID of the reservation.", + "name" : "reservationId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "RunInstancesResponse", + "javaType" : "RunInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RunInstancesResponse.html" + ] + }, + "awsType" : "RunInstances", + "package" : "org.jclouds.aws.ec2.commands.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html", + "DescribeInstances", + "TerminateInstances", + "AuthorizeSecurityGroupIngress", + "RevokeSecurityGroupIngress", + "DescribeSecurityGroups", + "CreateSecurityGroup", + "CreateKeyPair" + ], + "parameters" : [ + { + "desc" : "Unique ID of a machine image, returned by a call to RegisterImage.", + "name" : "ImageId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Constraints: Between 1 and the maximum number allowed for your account (default: 20).", + "name" : "MinCount", + "type" : "Integer", + "param" : "None", + "javaType" : "int" + }, + { + "desc" : "Constraints: Between 1 and the maximum number allowed for your account (default: 20).", + "name" : "MaxCount", + "type" : "Integer", + "param" : "None", + "javaType" : "int" + }, + { + "desc" : "The version.", + "name" : "Version", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The encoding.", + "name" : "Encoding", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.instances.RunInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.instances.RunInstancesHandler", + "example" : "

Example Response

<RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <reservationId>r-47a5402e</reservationId>\n  <ownerId>AIDADH4IGTRXXKCD</ownerId>\n  <groupSet>\n    <item>\n      <groupId>default</groupId>\n    </item>\n  </groupSet>\n  <instancesSet>\n    <item>\n      <instanceId>i-2ba64342</instanceId>\n      <imageId>ami-60a54009</imageId>\n      <instanceState>\n        <code>0</code>\n        <name>pending</name>\n      </instanceState>\n      <privateDnsName></privateDnsName>\n      <dnsName></dnsName>\n      <keyName>example-key-name</keyName>\n      <amiLaunchIndex>0</amiLaunchIndex>\n      <instanceType>m1.small</instanceType>\n      <launchTime>2007-08-07T11:51:50.000Z</launchTime>\n      <placement>\n        <availabilityZone>us-east-1b</availabilityZone>\n      </placement>\n      <monitoring>\n        <enabled>true</enabled>\n      </monitoring>\n\n    </item>\n    <item>\n      <instanceId>i-2bc64242</instanceId>\n      <imageId>ami-60a54009</imageId>\n      <instanceState>\n        <code>0</code>\n        <name>pending</name>\n      </instanceState>\n      <privateDnsName></privateDnsName>\n      <dnsName></dnsName>\n      <keyName>example-key-name</keyName>\n      <amiLaunchIndex>1</amiLaunchIndex>\n      <instanceType>m1.small</instanceType>\n      <launchTime>2007-08-07T11:51:50.000Z</launchTime>\n      <placement>\n\t\t  <availabilityZone>us-east-1b</availabilityZone>\n      </placement>\n      <monitoring>\n        <enabled>true</enabled>\n      </monitoring>\n    </item>\n    <item>\n      <instanceId>i-2be64332</instanceId>\n      <imageId>ami-60a54009</imageId>\n      <instanceState>\n        <code>0</code>\n        <name>pending</name>\n      </instanceState>\n      <privateDnsName></privateDnsName>\n      <dnsName></dnsName>\n      <keyName>example-key-name</keyName>\n      <amiLaunchIndex>2</amiLaunchIndex>\n      <instanceType>m1.small</instanceType>\n      <launchTime>2007-08-07T11:51:50.000Z</launchTime>\n      <placement>\n\t\t  <availabilityZone>us-east-1b</availabilityZone>\n      </placement>\n      <monitoring>\n        <enabled>true</enabled>\n      </monitoring>\n    </item>\n  </instancesSet>\n</RunInstancesResponse>
\n", + "awsType" : "RunInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RunInstancesResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.instances.TerminateInstancesResponse", + "fields" : [ + { + "desc" : "Instances set.", + "name" : "instancesSet", + "type" : "TerminateInstancesResponseInfoType", + "javaType" : "TerminateInstancesResponseInfo" + } + ], + "awsType" : "TerminateInstancesResponse", + "javaType" : "TerminateInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-TerminateInstancesResponse.html" + ] + }, + "awsType" : "TerminateInstances", + "package" : "org.jclouds.aws.ec2.commands.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-TerminateInstances.html", + "DescribeInstances" + ], + "parameters" : [ + { + "desc" : "Instance ID to terminate.", + "name" : "InstanceId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.instances.TerminateInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.instances.TerminateInstancesHandler", + "example" : "

Example Response

<TerminateInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <instancesSet>\n    <item>\n      <instanceId>i-3ea74257</instanceId>\n      <shutdownState>\n        <code>32</code>\n        <name>shutting-down</name>\n      </shutdownState>\n      <previousState>\n        <code>16</code>\n        <name>running</name>\n      </previousState>\n    </item>\n  </instancesSet>\n</TerminateInstancesResponse>
\n", + "awsType" : "TerminateInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.instances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-TerminateInstancesResponse.html" + ] + } + } + ] + }, + { + "name" : "keypairs", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.keypairs.CreateKeyPairResponse", + "fields" : [ + { + "desc" : "A SHA-1 digest of the DER encoded private key.", + "name" : "keyFingerprint", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "An unencrypted PEM encoded RSA private key.", + "name" : "keyMaterial", + "type" : "xsd:string", + "javaType" : "String" + }, + { + "desc" : "The key pair name provided in the original request.", + "name" : "keyName", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "CreateKeyPairResponse", + "javaType" : "CreateKeyPairResponse", + "package" : "org.jclouds.aws.ec2.commands.response.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateKeyPairResponse.html" + ] + }, + "awsType" : "CreateKeyPair", + "package" : "org.jclouds.aws.ec2.commands.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateKeyPair.html", + "RunInstances", + "DescribeKeyPairs", + "DeleteKeyPair" + ], + "parameters" : [ + { + "desc" : "Constraints: Accepts alphanumeric characters, spaces, dashes, and underscores.", + "name" : "KeyName", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.keypairs.CreateKeyPair", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.keypairs.CreateKeyPairHandler", + "example" : "

Example Response

<CreateKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <keyName>gsg-keypair</keyName>\n  <keyFingerprint>1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f</keyFingerprint>\n  <keyMaterial>-----BEGIN RSA PRIVATE KEY-----\nMIIEoQIBAAKCAQBuLFg5ujHrtm1jnutSuoO8Xe56LlT+HM8v/xkaa39EstM3/aFxTHgElQiJLChp\nHungXQ29VTc8rc1bW0lkdi23OH5eqkMHGhvEwqa0HWASUMll4o3o/IX+0f2UcPoKCOVUR+jx71Sg\n5AU52EQfanIn3ZQ8lFW7Edp5a3q4DhjGlUKToHVbicL5E+g45zfB95wIyywWZfeW/UUF3LpGZyq/\nebIUlq1qTbHkLbCC2r7RTn8vpQWp47BGVYGtGSBMpTRP5hnbzzuqj3itkiLHjU39S2sJCJ0TrJx5\ni8BygR4s3mHKBj8l+ePQxG1kGbF6R4yg6sECmXn17MRQVXODNHZbAgMBAAECggEAY1tsiUsIwDl5\n91CXirkYGuVfLyLflXenxfI50mDFms/mumTqloHO7tr0oriHDR5K7wMcY/YY5YkcXNo7mvUVD1pM\nZNUJs7rw9gZRTrf7LylaJ58kOcyajw8TsC4e4LPbFaHwS1d6K8rXh64o6WgW4SrsB6ICmr1kGQI7\n3wcfgt5ecIu4TZf0OE9IHjn+2eRlsrjBdeORi7KiUNC/pAG23I6MdDOFEQRcCSigCj+4/mciFUSA\nSWS4dMbrpb9FNSIcf9dcLxVM7/6KxgJNfZc9XWzUw77Jg8x92Zd0fVhHOux5IZC+UvSKWB4dyfcI\ntE8C3p9bbU9VGyY5vLCAiIb4qQKBgQDLiO24GXrIkswF32YtBBMuVgLGCwU9h9HlO9mKAc2m8Cm1\njUE5IpzRjTedc9I2qiIMUTwtgnw42auSCzbUeYMURPtDqyQ7p6AjMujp9EPemcSVOK9vXYL0Ptco\nxW9MC0dtV6iPkCN7gOqiZXPRKaFbWADp16p8UAIvS/a5XXk5jwKBgQCKkpHi2EISh1uRkhxljyWC\niDCiK6JBRsMvpLbc0v5dKwP5alo1fmdR5PJaV2qvZSj5CYNpMAy1/EDNTY5OSIJU+0KFmQbyhsbm\nrdLNLDL4+TcnT7c62/aH01ohYaf/VCbRhtLlBfqGoQc7+sAc8vmKkesnF7CqCEKDyF/dhrxYdQKB\ngC0iZzzNAapayz1+JcVTwwEid6j9JqNXbBc+Z2YwMi+T0Fv/P/hwkX/ypeOXnIUcw0Ih/YtGBVAC\nDQbsz7LcY1HqXiHKYNWNvXgwwO+oiChjxvEkSdsTTIfnK4VSCvU9BxDbQHjdiNDJbL6oar92UN7V\nrBYvChJZF7LvUH4YmVpHAoGAbZ2X7XvoeEO+uZ58/BGKOIGHByHBDiXtzMhdJr15HTYjxK7OgTZm\ngK+8zp4L9IbvLGDMJO8vft32XPEWuvI8twCzFH+CsWLQADZMZKSsBasOZ/h1FwhdMgCMcY+Qlzd4\nJZKjTSu3i7vhvx6RzdSedXEMNTZWN4qlIx3kR5aHcukCgYA9T+Zrvm1F0seQPbLknn7EqhXIjBaT\nP8TTvW/6bdPi23ExzxZn7KOdrfclYRph1LHMpAONv/x2xALIf91UB+v5ohy1oDoasL0gij1houRe\n2ERKKdwz0ZL9SWq6VTdhr/5G994CK72fy5WhyERbDjUIdHaK3M849JJuf8cSrvSb4g==\n-----END RSA PRIVATE KEY-----</keyMaterial>\n</CreateKeyPairResponse>
\n", + "awsType" : "CreateKeyPairHandler", + "package" : "org.jclouds.aws.ec2.xml.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateKeyPairResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.keypairs.DeleteKeyPairResponse", + "fields" : [ + { + "desc" : " Returns true if deletion succeeded; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "DeleteKeyPairResponse", + "javaType" : "DeleteKeyPairResponse", + "package" : "org.jclouds.aws.ec2.commands.response.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteKeyPairResponse.html" + ] + }, + "awsType" : "DeleteKeyPair", + "package" : "org.jclouds.aws.ec2.commands.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteKeyPair.html", + "CreateKeyPair", + "DescribeKeyPairs" + ], + "parameters" : [ + { + "desc" : "Name of the key pair to delete.", + "name" : "KeyName", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.keypairs.DeleteKeyPair", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.keypairs.DeleteKeyPairHandler", + "example" : "

Example Response

<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</DeleteKeyPairResponse>
\n", + "awsType" : "DeleteKeyPairHandler", + "package" : "org.jclouds.aws.ec2.xml.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteKeyPairResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.keypairs.DescribeKeyPairsOptions", + "parameters" : [ + { + "desc" : "Key pair to describe.", + "name" : "KeyName.n", + "type" : "String", + "param" : "Describes all key pairs available to the account.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes the state of the gsg-keypair key.

https://ec2.amazonaws.com/?Action=DescribeKeyPairs&KeyName.1=gsg-keypair&AuthParams
\n", + "awsType" : "DescribeKeyPairsOptions", + "package" : "org.jclouds.aws.ec2.commands.options.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeKeyPairs.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.keypairs.DescribeKeyPairsResponse", + "fields" : [ + { + "desc" : "Information for a key pair.", + "name" : "keySet", + "type" : "DescribeKeyPairsResponseInfoType", + "javaType" : "DescribeKeyPairsResponseInfo" + } + ], + "awsType" : "DescribeKeyPairsResponse", + "javaType" : "DescribeKeyPairsResponse", + "package" : "org.jclouds.aws.ec2.commands.response.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeKeyPairsResponse.html" + ] + }, + "awsType" : "DescribeKeyPairs", + "package" : "org.jclouds.aws.ec2.commands.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeKeyPairs.html", + "DescribeAvailabilityZones", + "RunInstances" + ], + "className" : "org.jclouds.aws.ec2.commands.keypairs.DescribeKeyPairs", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.keypairs.DescribeKeyPairsHandler", + "example" : "

Example Response

<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <keySet>\n    <item>\n      <keyName>gsg-keypair</keyName>\n      <keyFingerprint>1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f</keyFingerprint>\n    </item>\n  </keySet>\n</DescribeKeyPairsResponse>
\n", + "awsType" : "DescribeKeyPairsHandler", + "package" : "org.jclouds.aws.ec2.xml.keypairs", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeKeyPairsResponse.html" + ] + } + } + ] + }, + { + "name" : "monitoring", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.monitoring.MonitorInstancesResponse", + "fields" : [ + { + "desc" : "Monitor instance response set.", + "name" : "instancesSet", + "type" : "MonitorInstancesResponseSetType", + "javaType" : "MonitorInstancesResponse" + } + ], + "awsType" : "MonitorInstancesResponse", + "javaType" : "MonitorInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.monitoring", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-MonitorInstancesResponse.html" + ] + }, + "awsType" : "MonitorInstances", + "package" : "org.jclouds.aws.ec2.commands.monitoring", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-MonitorInstances.html", + "UnmonitorInstances", + "RunInstances" + ], + "parameters" : [ + { + "desc" : "Instance ID.", + "name" : "InstanceId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.monitoring.MonitorInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.monitoring.MonitorInstancesHandler", + "example" : "

Example Response

<MonitorInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n    <instancesSet>\n      <item>\n        <instanceId>i-43a4412a</instanceId>\n        <monitoring>\n          <state>pending</state>\n        </monitoring>\n    </item>\n    <item>\n      <instanceId>i-23a3397d</instanceId>\n        <monitoring>\n          <state>pending</state>\n        </monitoring>\n      </item>\n    </instancesSet>\n</MonitorInstancesResponse>
\n", + "awsType" : "MonitorInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.monitoring", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-MonitorInstancesResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.monitoring.UnmonitorInstancesResponse", + "fields" : [ + { + "desc" : "Monitor instance response set.", + "name" : "instancesSet", + "type" : "MonitorInstancesResponseSetType", + "javaType" : "MonitorInstancesResponse" + } + ], + "awsType" : "UnmonitorInstancesResponse", + "javaType" : "UnmonitorInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.monitoring", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-UnmonitorInstancesResponse.html" + ] + }, + "awsType" : "UnmonitorInstances", + "package" : "org.jclouds.aws.ec2.commands.monitoring", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-UnmonitorInstances.html", + "MonitorInstances", + "RunInstances" + ], + "parameters" : [ + { + "desc" : "Instance ID.", + "name" : "InstanceId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.monitoring.UnmonitorInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.monitoring.UnmonitorInstancesHandler", + "example" : "

Example Response

<UnmonitorInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n    <instancesSet>\n\t  <item>\n\t    <instanceId> i-43a4412a</instanceId>\n\t    <monitoring>\n\t      <state>pending</state>\n\t    </monitoring>\n\t  </item>\n\t  <item>\n\t    <instanceId>i-23a3397d</instanceId>\n\t    <monitoring>\n\t      <state>pending</state>\n\t    </monitoring>\n\t  </item>\n    </instancesSet>\n</UnmonitorInstancesResponse>
\n", + "awsType" : "UnmonitorInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.monitoring", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-UnmonitorInstancesResponse.html" + ] + } + } + ] + }, + { + "name" : "reservedinstances", + "commands" : [ + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.reservedinstances.DescribeReservedInstancesOptions", + "parameters" : [ + { + "desc" : "IDs of the Reserved Instance to describe.", + "name" : "ReservedInstancesId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes Reserved Instances owned by the account.

https://ec2.amazonaws.com/?Action=DescribeReservedInstances&AuthParams
\n", + "awsType" : "DescribeReservedInstancesOptions", + "package" : "org.jclouds.aws.ec2.commands.options.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeReservedInstances.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.reservedinstances.DescribeReservedInstancesResponse", + "fields" : [ + { + "desc" : "Reserved Instances set.", + "name" : "reservedInstancesSet", + "type" : "DescribeReservedInstancesResponseSetType", + "javaType" : "DescribeReservedInstancesResponse" + } + ], + "awsType" : "DescribeReservedInstancesResponse", + "javaType" : "DescribeReservedInstancesResponse", + "package" : "org.jclouds.aws.ec2.commands.response.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeReservedInstancesResponse.html" + ] + }, + "awsType" : "DescribeReservedInstances", + "package" : "org.jclouds.aws.ec2.commands.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeReservedInstances.html", + "PurchaseReservedInstancesOffering", + "DescribeReservedInstancesOfferings" + ], + "className" : "org.jclouds.aws.ec2.commands.reservedinstances.DescribeReservedInstances", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.reservedinstances.DescribeReservedInstancesHandler", + "example" : "

Example Response

<DescribeReservedInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <reservedInstancesSet>\n    <item>\n      <reservedInstancesId>4b2293b4-5813-4cc8-9ce3-1957fc1dcfc8</reservedInstancesId>\n      <instanceType>m1.small</instanceType>\n      <availabilityZone>us-east-1a</availabilityZone>\n      <duration>12</duration>\n      <usagePrice>0.00</usagePrice>\n      <fixedPrice>0.00</fixedPrice>\n      <instanceCount>19</instanceCount>\n      <productDescription>m1.small offering in us-east-1a</productDescription>\n      <state>Active</state>\n    </item>\n  </reservedInstancesSet>\n\t\t\t\t\t\t</DescribeReservedInstancesResponse>
\n", + "awsType" : "DescribeReservedInstancesHandler", + "package" : "org.jclouds.aws.ec2.xml.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeReservedInstancesResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.reservedinstances.DescribeReservedInstancesOfferingsOptions", + "parameters" : [ + { + "desc" : "ID of the Reserved Instances to describe.", + "name" : "ReservedInstancesOfferingId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The instance type on which the Reserved Instance can be used.", + "name" : "InstanceType", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The Availability Zone in which the Reserved Instance can be used.", + "name" : "AvailabilityZone", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The Reserved Instance description.", + "name" : "ProductDescription", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes available Reserved Instance offerings.

https://ec2.amazonaws.com/?Action=DescribeReservedInstancesOfferings&AuthParams
\n", + "awsType" : "DescribeReservedInstancesOfferingsOptions", + "package" : "org.jclouds.aws.ec2.commands.options.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeReservedInstancesOfferings.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.reservedinstances.DescribeReservedInstancesOfferingsResponse", + "fields" : [ + { + "desc" : "Reserved Instances offerings set.", + "name" : "reservedInstancesOfferingsSet", + "type" : "DescribeReservedInstancesOfferingsResponseSetType", + "javaType" : "DescribeReservedInstancesOfferingsResponse" + } + ], + "awsType" : "DescribeReservedInstancesOfferingsResponse", + "javaType" : "DescribeReservedInstancesOfferingsResponse", + "package" : "org.jclouds.aws.ec2.commands.response.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeReservedInstancesOfferingsResponse.html" + ] + }, + "awsType" : "DescribeReservedInstancesOfferings", + "package" : "org.jclouds.aws.ec2.commands.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeReservedInstancesOfferings.html", + "PurchaseReservedInstancesOffering", + "DescribeReservedInstances" + ], + "className" : "org.jclouds.aws.ec2.commands.reservedinstances.DescribeReservedInstancesOfferings", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.reservedinstances.DescribeReservedInstancesOfferingsHandler", + "example" : "

Example Response

<DescribeReservedInstancesOfferingsResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <reservedInstancesOfferingsSet>\n    <item>\n      <reservedInstancesOfferingId>4b2293b4-5813-4cc8-9ce3-1957fc1dcfc8</reservedInstancesOfferingId>\n      <instanceType>m1.small</instanceType>\n      <availabilityZone>us-east-1a</availabilityZone>\n      <duration>12</duration>\n      <fixedPrice>0.00</fixedPrice>\n      <usagePrice>0.00</usagePrice>\n      <productDescription>m1.small offering in us-east-1a</productDescription>\n    </item>\n  </reservedInstancesOfferingsSet>\n\t\t\t\t\t\t</DescribeReservedInstancesOfferingsResponse>
\n", + "awsType" : "DescribeReservedInstancesOfferingsHandler", + "package" : "org.jclouds.aws.ec2.xml.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeReservedInstancesOfferingsResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.reservedinstances.PurchaseReservedInstancesOfferingOptions", + "parameters" : [ + { + "desc" : "The number of Reserved Instances to purchase.", + "name" : "InstanceCount.n", + "type" : "Integer", + "param" : "1", + "javaType" : "int" + } + ], + "example" : "

Example Request

This example purchases Reserved Instances.

https://ec2.amazonaws.com/?Action=PurchaseReservedInstancesOffering&OfferingId.1=offering-12345678&instanceCount.1=2&AuthParams
\n", + "awsType" : "PurchaseReservedInstancesOfferingOptions", + "package" : "org.jclouds.aws.ec2.commands.options.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-PurchaseReservedInstancesOffering.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.reservedinstances.PurchaseReservedInstancesOfferingResponse", + "fields" : [ + { + "desc" : "The IDs of the purchased Reserved Instances.", + "name" : "reservedInstancesId", + "type" : "xsd:string", + "javaType" : "String" + } + ], + "awsType" : "PurchaseReservedInstancesOfferingResponse", + "javaType" : "PurchaseReservedInstancesOfferingResponse", + "package" : "org.jclouds.aws.ec2.commands.response.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-PurchaseReservedInstancesOfferingResponse.html" + ] + }, + "awsType" : "PurchaseReservedInstancesOffering", + "package" : "org.jclouds.aws.ec2.commands.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-PurchaseReservedInstancesOffering.html", + "DescribeReservedInstancesOfferings", + "DescribeReservedInstances" + ], + "parameters" : [ + { + "desc" : "The offering ID of the Reserved Instance to purchase.", + "name" : "ReservedInstancesOfferingId.n", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.reservedinstances.PurchaseReservedInstancesOffering", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.reservedinstances.PurchaseReservedInstancesOfferingHandler", + "example" : "

Example Response

<PurchaseReservedInstancesOfferingResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n   <reservedInstancesId>reservation-1001001</reservedInstancesId>\n\t\t\t\t\t\t</PurchaseReservedInstancesOfferingResponse>
\n", + "awsType" : "PurchaseReservedInstancesOfferingHandler", + "package" : "org.jclouds.aws.ec2.xml.reservedinstances", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-PurchaseReservedInstancesOfferingResponse.html" + ] + } + } + ] + }, + { + "name" : "securitygroups", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.securitygroups.AuthorizeSecurityGroupIngressResponse", + "fields" : [ + { + "desc" : " Returns true if request is successful; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "AuthorizeSecurityGroupIngressResponse", + "javaType" : "AuthorizeSecurityGroupIngressResponse", + "package" : "org.jclouds.aws.ec2.commands.response.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AuthorizeSecurityGroupIngressResponse.html" + ] + }, + "awsType" : "AuthorizeSecurityGroupIngress", + "package" : "org.jclouds.aws.ec2.commands.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AuthorizeSecurityGroupIngress.html", + "CreateSecurityGroup", + "DescribeSecurityGroups", + "RevokeSecurityGroupIngress", + "DeleteSecurityGroup" + ], + "parameters" : [ + { + "desc" : "AWS Access Key ID.", + "name" : "UserId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Name of the group to modify. The name must be valid and belong to the account", + "name" : "GroupName", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Valid Values: tcp | udp | icmp", + "name" : "IpProtocol", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number).", + "name" : "FromPort", + "type" : "Integer", + "param" : "None", + "javaType" : "int" + }, + { + "desc" : "End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).", + "name" : "ToPort", + "type" : "Integer", + "param" : "None", + "javaType" : "int" + }, + { + "desc" : "AWS User ID of an account.", + "name" : "UserId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Name of the security group.", + "name" : "GroupName", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Constraints: Valid CIDR IP address range.", + "name" : "CidrIp", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.securitygroups.AuthorizeSecurityGroupIngress", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.securitygroups.AuthorizeSecurityGroupIngressHandler", + "example" : "

Example Response

<AuthorizeSecurityGroupIngressResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</AuthorizeSecurityGroupIngressResponse>
\n", + "awsType" : "AuthorizeSecurityGroupIngressHandler", + "package" : "org.jclouds.aws.ec2.xml.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-AuthorizeSecurityGroupIngressResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.securitygroups.CreateSecurityGroupResponse", + "fields" : [ + { + "desc" : " Returns true if creation succeeded; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "CreateSecurityGroupResponse", + "javaType" : "CreateSecurityGroupResponse", + "package" : "org.jclouds.aws.ec2.commands.response.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateSecurityGroupResponse.html" + ] + }, + "awsType" : "CreateSecurityGroup", + "package" : "org.jclouds.aws.ec2.commands.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSecurityGroup.html", + "RunInstances", + "DescribeSecurityGroups", + "AuthorizeSecurityGroupIngress", + "RevokeSecurityGroupIngress", + "DeleteSecurityGroup" + ], + "parameters" : [ + { + "desc" : "Constraints: Accepts alphanumeric characters, spaces, dashes, and underscores.", + "name" : "GroupName", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Constraints: Accepts alphanumeric characters, spaces, dashes, and underscores.", + "name" : "GroupDescription", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.securitygroups.CreateSecurityGroup", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.securitygroups.CreateSecurityGroupHandler", + "example" : "

Example Response

<CreateSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</CreateSecurityGroupResponse>
\n", + "awsType" : "CreateSecurityGroupHandler", + "package" : "org.jclouds.aws.ec2.xml.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CreateSecurityGroupResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.securitygroups.DeleteSecurityGroupResponse", + "fields" : [ + { + "desc" : " Returns true if deletion succeeded; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "DeleteSecurityGroupResponse", + "javaType" : "DeleteSecurityGroupResponse", + "package" : "org.jclouds.aws.ec2.commands.response.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteSecurityGroupResponse.html" + ] + }, + "awsType" : "DeleteSecurityGroup", + "package" : "org.jclouds.aws.ec2.commands.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteSecurityGroup.html", + "CreateSecurityGroup", + "DescribeSecurityGroups", + "AuthorizeSecurityGroupIngress", + "RevokeSecurityGroupIngress" + ], + "parameters" : [ + { + "desc" : "Name of the security group to delete.", + "name" : "GroupName", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.securitygroups.DeleteSecurityGroup", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.securitygroups.DeleteSecurityGroupHandler", + "example" : "

Example Response

<DeleteSecurityGroupResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</DeleteSecurityGroupResponse>
\n", + "awsType" : "DeleteSecurityGroupHandler", + "package" : "org.jclouds.aws.ec2.xml.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DeleteSecurityGroupResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.securitygroups.DescribeSecurityGroupsOptions", + "parameters" : [ + { + "desc" : "Name of the security group.", + "name" : "GroupName.n", + "type" : "String", + "param" : "Describes all groups within the account.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example returns information about two security groups that are configured for the account.

https://ec2.amazonaws.com/?Action=DescribeSecurityGroups&GroupName.1=WebServers&GroupName.2=RangedPortsBySource&AuthParams
\n", + "awsType" : "DescribeSecurityGroupsOptions", + "package" : "org.jclouds.aws.ec2.commands.options.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeSecurityGroups.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.securitygroups.DescribeSecurityGroupsResponse", + "fields" : [ + { + "desc" : "Security group set.", + "name" : "securityGroupInfo", + "type" : "SecurityGroupSetType", + "javaType" : "SecurityGroup" + } + ], + "awsType" : "DescribeSecurityGroupsResponse", + "javaType" : "DescribeSecurityGroupsResponse", + "package" : "org.jclouds.aws.ec2.commands.response.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeSecurityGroupsResponse.html" + ] + }, + "awsType" : "DescribeSecurityGroups", + "package" : "org.jclouds.aws.ec2.commands.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSecurityGroups.html", + "CreateSecurityGroup", + "AuthorizeSecurityGroupIngress", + "RevokeSecurityGroupIngress", + "DeleteSecurityGroup" + ], + "className" : "org.jclouds.aws.ec2.commands.securitygroups.DescribeSecurityGroups", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.securitygroups.DescribeSecurityGroupsHandler", + "example" : "

Example Response

<DescribeSecurityGroupsResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <securityGroupInfo>\n    <item>\n      <ownerId>UYY3TLBUXIEON5NQVUUX6OMPWBZIQNFM</ownerId>\n      <groupName>WebServers</groupName>\n      <groupDescription>Web Servers</groupDescription>\n      <ipPermissions>\n        <item>\n  \t  <ipProtocol>tcp</ipProtocol>\n\t  <fromPort>80</fromPort>\n\t  <toPort>80</toPort>\n\t  <groups/>\n\t  <ipRanges>\n\t    <item>\n\t      <cidrIp>0.0.0.0/0</cidrIp>\n\t    </item>\n\t  </ipRanges>\n         </item>\n      </ipPermissions>\n    </item>\n    <item>\n      <ownerId>UYY3TLBUXIEON5NQVUUX6OMPWBZIQNFM</ownerId>\n      <groupName>RangedPortsBySource</groupName>\n      <groupDescription>Group A</groupDescription>\n      <ipPermissions>\n \t<item>\n\t  <ipProtocol>tcp</ipProtocol>\n\t  <fromPort>6000</fromPort>\n\t  <toPort>7000</toPort>\n\t  <groups/>\n\t  <ipRanges/>\n\t</item>\n      </ipPermissions>\n    </item>\n  </securityGroupInfo>\n</DescribeSecurityGroupsResponse>
\n", + "awsType" : "DescribeSecurityGroupsHandler", + "package" : "org.jclouds.aws.ec2.xml.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeSecurityGroupsResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.securitygroups.RevokeSecurityGroupIngressResponse", + "fields" : [ + { + "desc" : " Returns true if the request is successful; otherwise false.", + "name" : "return", + "type" : "xsd:boolean", + "javaType" : "boolean" + } + ], + "awsType" : "RevokeSecurityGroupIngressResponse", + "javaType" : "RevokeSecurityGroupIngressResponse", + "package" : "org.jclouds.aws.ec2.commands.response.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RevokeSecurityGroupIngressResponse.html" + ] + }, + "awsType" : "RevokeSecurityGroupIngress", + "package" : "org.jclouds.aws.ec2.commands.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html", + "CreateSecurityGroup", + "DescribeSecurityGroups", + "AuthorizeSecurityGroupIngress", + "DeleteSecurityGroup" + ], + "parameters" : [ + { + "desc" : "AWS Access Key ID.", + "name" : "UserId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Name of the group to modify.", + "name" : "GroupName", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Valid Values: tcp | udp | icmp", + "name" : "IpProtocol", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number).", + "name" : "FromPort", + "type" : "Integer", + "param" : "None", + "javaType" : "int" + }, + { + "desc" : "End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).", + "name" : "ToPort", + "type" : "Integer", + "param" : "None", + "javaType" : "int" + }, + { + "desc" : "AWS User ID of an account.", + "name" : "UserId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Name of the security group.", + "name" : "GroupName", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Constraints: Valid CIDR IP address range.", + "name" : "CidrIp", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.securitygroups.RevokeSecurityGroupIngress", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.securitygroups.RevokeSecurityGroupIngressHandler", + "example" : "

Example Response

<RevokeSecurityGroupIngressResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <return>true</return>\n</RevokeSecurityGroupIngressResponse>
\n", + "awsType" : "RevokeSecurityGroupIngressHandler", + "package" : "org.jclouds.aws.ec2.xml.securitygroups", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-RevokeSecurityGroupIngressResponse.html" + ] + } + } + ] + }, + { + "name" : "windows", + "commands" : [ + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.windows.BundleInstanceResponse", + "fields" : [ + { + "desc" : "Bundle task.", + "name" : "bundleInstanceTask", + "type" : "BundleInstanceTaskType", + "javaType" : "BundleInstanceTask" + } + ], + "awsType" : "BundleInstanceResponse", + "javaType" : "BundleInstanceResponse", + "package" : "org.jclouds.aws.ec2.commands.response.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-BundleInstanceResponse.html" + ] + }, + "awsType" : "BundleInstance", + "package" : "org.jclouds.aws.ec2.commands.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-BundleInstance.html", + "CancelBundleTask", + "DescribeBundleTasks" + ], + "parameters" : [ + { + "desc" : "The ID of the instance to bundle.", + "name" : "InstanceId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "The Access Key ID of the owner of the Amazon S3 bucket.", + "name" : "Storage.S3.AWSAccessKeyId", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : " 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.", + "name" : "Storage.S3.Bucket", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "Specifies the beginning of the file name of the AMI.", + "name" : "Storage.S3.Prefix", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : "An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on the user's behalf. For more information on bundling in Windows, go to the Amazon Elastic Compute Cloud Developer Guide and Amazon Elastic Compute Cloud Getting Started Guide.", + "name" : "Storage.S3.UploadPolicy", + "type" : "String", + "param" : "None", + "javaType" : "String" + }, + { + "desc" : " The signature of the Base64 encoded JSON document.", + "name" : "Storage.S3.UploadPolicySignature", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.windows.BundleInstance", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.windows.BundleInstanceHandler", + "example" : "

Example Response

<BundleInstanceResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <requestId>bun-c1a540a8</requestId>\n  <bundleInstanceTask>\n      <instanceId>i-12345678</instanceId>\n      <bundleId>bun-c1a540a8</bundleId>\n      <state>bundling</state>\n      <startTime>2008-10-07T11:41:50.000Z</startTime>\n      <updateTime>2008-10-07T11:51:50.000Z</updateTime>\n      <progress>70%</progress>\n      <storage>\n        <S3>\n          <bucket>my-bucket</bucket>\n          <prefix>winami</prefix>\n        </S3>\n      </storage>\n  </bundleInstanceTask>\n</BundleInstanceResponse>
\n", + "awsType" : "BundleInstanceHandler", + "package" : "org.jclouds.aws.ec2.xml.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-BundleInstanceResponse.html" + ] + } + }, + { + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.windows.CancelBundleTaskResponse", + "fields" : [ + { + "desc" : "Bundle task to cancel.", + "name" : "bundleInstanceTask", + "type" : "BundleInstanceTaskType", + "javaType" : "BundleInstanceTask" + } + ], + "awsType" : "CancelBundleTaskResponse", + "javaType" : "CancelBundleTaskResponse", + "package" : "org.jclouds.aws.ec2.commands.response.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CancelBundleTaskResponse.html" + ] + }, + "awsType" : "CancelBundleTask", + "package" : "org.jclouds.aws.ec2.commands.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CancelBundleTask.html", + "BundleInstance", + "DescribeBundleTasks" + ], + "parameters" : [ + { + "desc" : "The ID of the bundle task to cancel.", + "name" : "BundleId", + "type" : "String", + "param" : "None", + "javaType" : "String" + } + ], + "className" : "org.jclouds.aws.ec2.commands.windows.CancelBundleTask", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.windows.CancelBundleTaskHandler", + "example" : "

Example Response

<CancelBundleTaskResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <bundleInstanceTask>\n      <instanceId>i-12345678</instanceId>\n      <bundleId>bun-cla322b9</bundleId>\n      <state>canceling</state>\n      <startTime>2008-10-07T11:41:50.000Z</startTime>\n      <updateTime>2008-10-07T11:51:50.000Z</updateTime>\n      <progress>20%</progress>\n      <storage>\n        <S3>\n          <bucket>my-bucket</bucket>\n          <prefix>my-new-image</prefix>\n        </S3>\n      </storage>\n  </bundleInstanceTask>\n</CancelBundleTaskResponse>
\n", + "awsType" : "CancelBundleTaskHandler", + "package" : "org.jclouds.aws.ec2.xml.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-CancelBundleTaskResponse.html" + ] + } + }, + { + "options" : { + "className" : "org.jclouds.aws.ec2.commands.options.windows.DescribeBundleTasksOptions", + "parameters" : [ + { + "desc" : "The ID of the bundle task to describe.", + "name" : "BundleId", + "type" : "String", + "param" : "If no ID is specified, all bundle tasks are described.", + "javaType" : "String" + } + ], + "example" : "

Example Request

This example describes the status of the bun-57a5403e bundle task.

https://ec2.amazonaws.com/?Action=DescribeBundleTasks&bundleId.0=bun-c1a540a8&AuthParams
\n", + "awsType" : "DescribeBundleTasksOptions", + "package" : "org.jclouds.aws.ec2.commands.options.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeBundleTasks.html" + ] + }, + "response" : { + "className" : "org.jclouds.aws.ec2.commands.response.windows.DescribeBundleTasksResponse", + "fields" : [ + { + "desc" : "Bundle task set.", + "name" : "bundleInstanceTasksSet", + "type" : "BundleInstanceTasksSetType", + "javaType" : "Set" + } + ], + "awsType" : "DescribeBundleTasksResponse", + "javaType" : "DescribeBundleTasksResponse", + "package" : "org.jclouds.aws.ec2.commands.response.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeBundleTasksResponse.html" + ] + }, + "awsType" : "DescribeBundleTasks", + "package" : "org.jclouds.aws.ec2.commands.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeBundleTasks.html", + "BundleInstance", + "CancelBundleTask" + ], + "className" : "org.jclouds.aws.ec2.commands.windows.DescribeBundleTasks", + "handler" : { + "className" : "org.jclouds.aws.ec2.xml.windows.DescribeBundleTasksHandler", + "example" : "

Example Response

<DescribeBundleTasksResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/">\n  <bundleInstanceTasksSet>\n    <item>\n        <instanceId>i-12345678</instanceId>\n        <bundleId>bun-c1a540a8</bundleId>\n        <state>canceling</state>\n        <startTime>2008-10-07T11:41:50.000Z</startTime>\n        <updateTime>2008-10-07T11:51:50.000Z</updateTime>\n        <progress>20%</progress>\n        <storage>\n          <S3>\n            <bucket>my-bucket</bucket>\n            <prefix>winami</prefix>\n          </S3>\n        </storage>\n    </item>\n  <bundleInstanceTasksSet>\n</DescribeBundleTasksResponse>
\n", + "awsType" : "DescribeBundleTasksHandler", + "package" : "org.jclouds.aws.ec2.xml.windows", + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeBundleTasksResponse.html" + ] + } + } + ] + } + ], + "see" : [ + "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/OperationList-query.html" + ] +} \ No newline at end of file diff --git a/aws/src/main/bin/parse_ec2.pl b/aws/src/main/bin/parse_ec2.pl index 9da7bbe364..d26f8dfd7e 100755 --- a/aws/src/main/bin/parse_ec2.pl +++ b/aws/src/main/bin/parse_ec2.pl @@ -26,7 +26,12 @@ # Builds an object tree used to create a REST service for the current EC2 api. # # Prerequisites: -# * download and install http://search.cpan.org/~petek/HTML-Tree/ +# * install HTML-Tree (http://search.cpan.org/~petek/HTML-Tree/) +# 1. download and extract the archive +# 2. cd to that location +# 3. perl MakeFile.PL +# 4. sudo make install +# * install JSON (http://search.cpan.org/~makamaka/JSON-2.14/lib/JSON.pm) # 1. download and extract the archive # 2. cd to that location # 3. perl MakeFile.PL @@ -43,10 +48,11 @@ use strict; use HTML::TreeBuilder 2.97; use LWP::UserAgent; use Data::Dumper; +use JSON; -#my $refUrl = "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference"; +my $refUrl = "http://docs.amazonwebservices.com/AWSEC2/latest/APIReference"; +# my $refUrl = "/tmp/scrape"; -my $refUrl = "/tmp/scrape"; my $appUrl = "${refUrl}/OperationList-query.html"; my $global_package = "org.jclouds.aws.ec2"; my $commands_package = $global_package . ".commands"; @@ -67,9 +73,9 @@ sub parse_file { sub parse { - return parse_file(shift); + # return parse_file(shift); - #return parse_url(shift); + return parse_url(shift); } sub parse_java_type { @@ -598,10 +604,13 @@ EOF # start app! my $app = build_app($appUrl); -gen_bean_code_for_domain($domain); -gen_bean_code_for_response($app); -gen_bean_code_for_command($app); +my $app_json = to_json($app, {utf8 => 1, pretty => 1}); +print $app_json -print_domain_code($domain); -print_response_code($app); -print_command_code($app); +# gen_bean_code_for_domain($domain); +# gen_bean_code_for_response($app); +# gen_bean_code_for_command($app); +# +# print_domain_code($domain); +# print_response_code($app); +# print_command_code($app);