Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Bundles an Amazon instance store-backed Windows instance.
During bundling, only the root device volume (C:\) is bundled. Data on other instance store volumes is not preserved.
This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.
For more information, see Creating an Instance Store-Backed Windows AMI.
See: AWS API Reference for BundleInstance.
- bundleInstance :: Text -> Storage -> BundleInstance
- data BundleInstance
- biDryRun :: Lens' BundleInstance (Maybe Bool)
- biInstanceId :: Lens' BundleInstance Text
- biStorage :: Lens' BundleInstance Storage
- bundleInstanceResponse :: Int -> BundleInstanceResponse
- data BundleInstanceResponse
- birsBundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask)
- birsResponseStatus :: Lens' BundleInstanceResponse Int
Creating a Request
Creates a value of BundleInstance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BundleInstance Source
See: bundleInstance
smart constructor.
Request Lenses
biDryRun :: Lens' BundleInstance (Maybe Bool) Source
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
biInstanceId :: Lens' BundleInstance Text Source
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
biStorage :: Lens' BundleInstance Storage Source
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.
Destructuring the Response
Creates a value of BundleInstanceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BundleInstanceResponse Source
See: bundleInstanceResponse
smart constructor.
Response Lenses
birsBundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask) Source
Information about the bundle task.
birsResponseStatus :: Lens' BundleInstanceResponse Int Source
The response status code.