Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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.
For more information, see Creating an Instance Store-Backed Windows AMI .
- 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:
biDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.biInstanceId
- The ID of the instance to bundle. Type: String Default: None Required: YesbiStorage
- 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.
data BundleInstance Source #
Contains the parameters for BundleInstance.
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
bundleInstanceResponse Source #
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:
birsBundleTask
- Information about the bundle task.birsResponseStatus
- -- | The response status code.
data BundleInstanceResponse Source #
Contains the output of BundleInstance.
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.