Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data BundleInstance = BundleInstance' {}
- newBundleInstance :: Text -> Storage -> BundleInstance
- bundleInstance_dryRun :: Lens' BundleInstance (Maybe Bool)
- bundleInstance_instanceId :: Lens' BundleInstance Text
- bundleInstance_storage :: Lens' BundleInstance Storage
- data BundleInstanceResponse = BundleInstanceResponse' {}
- newBundleInstanceResponse :: Int -> BundleInstanceResponse
- bundleInstanceResponse_bundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask)
- bundleInstanceResponse_httpStatus :: Lens' BundleInstanceResponse Int
Creating a Request
data BundleInstance Source #
Contains the parameters for BundleInstance.
See: newBundleInstance
smart constructor.
BundleInstance' | |
|
Instances
Create a value of BundleInstance
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:BundleInstance'
, bundleInstance_dryRun
- 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
.
BundleInstance
, bundleInstance_instanceId
- The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
BundleInstance
, bundleInstance_storage
- 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.
Request Lenses
bundleInstance_dryRun :: 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
.
bundleInstance_instanceId :: Lens' BundleInstance Text Source #
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
bundleInstance_storage :: 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
data BundleInstanceResponse Source #
Contains the output of BundleInstance.
See: newBundleInstanceResponse
smart constructor.
BundleInstanceResponse' | |
|
Instances
newBundleInstanceResponse Source #
Create a value of BundleInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bundleTask:BundleInstanceResponse'
, bundleInstanceResponse_bundleTask
- Information about the bundle task.
$sel:httpStatus:BundleInstanceResponse'
, bundleInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
bundleInstanceResponse_bundleTask :: Lens' BundleInstanceResponse (Maybe BundleTask) Source #
Information about the bundle task.
bundleInstanceResponse_httpStatus :: Lens' BundleInstanceResponse Int Source #
The response's http status code.