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 |
Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.
Synopsis
- createInstancesFromSnapshot :: Text -> Text -> Text -> CreateInstancesFromSnapshot
- data CreateInstancesFromSnapshot
- cifsUserData :: Lens' CreateInstancesFromSnapshot (Maybe Text)
- cifsKeyPairName :: Lens' CreateInstancesFromSnapshot (Maybe Text)
- cifsAttachedDiskMapping :: Lens' CreateInstancesFromSnapshot (HashMap Text [DiskMap])
- cifsInstanceNames :: Lens' CreateInstancesFromSnapshot [Text]
- cifsAvailabilityZone :: Lens' CreateInstancesFromSnapshot Text
- cifsInstanceSnapshotName :: Lens' CreateInstancesFromSnapshot Text
- cifsBundleId :: Lens' CreateInstancesFromSnapshot Text
- createInstancesFromSnapshotResponse :: Int -> CreateInstancesFromSnapshotResponse
- data CreateInstancesFromSnapshotResponse
- cifsrsOperations :: Lens' CreateInstancesFromSnapshotResponse [Operation]
- cifsrsResponseStatus :: Lens' CreateInstancesFromSnapshotResponse Int
Creating a Request
createInstancesFromSnapshot Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateInstancesFromSnapshot |
Creates a value of CreateInstancesFromSnapshot
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cifsUserData
- You can create a launch script that configures a server with additional user data. For example,apt-get -y update
.cifsKeyPairName
- The name for your key pair.cifsAttachedDiskMapping
- An object containing information about one or more disk mappings.cifsInstanceNames
- The names for your new instances.cifsAvailabilityZone
- The Availability Zone where you want to create your instances. Use the following formatting:us-east-2a
(case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add theinclude availability zones
parameter to your request.cifsInstanceSnapshotName
- The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.cifsBundleId
- The bundle of specification information for your virtual private server (or instance ), including the pricing plan (e.g.,micro_1_0
).
data CreateInstancesFromSnapshot Source #
See: createInstancesFromSnapshot
smart constructor.
Instances
Request Lenses
cifsUserData :: Lens' CreateInstancesFromSnapshot (Maybe Text) Source #
You can create a launch script that configures a server with additional user data. For example, apt-get -y update
.
cifsKeyPairName :: Lens' CreateInstancesFromSnapshot (Maybe Text) Source #
The name for your key pair.
cifsAttachedDiskMapping :: Lens' CreateInstancesFromSnapshot (HashMap Text [DiskMap]) Source #
An object containing information about one or more disk mappings.
cifsInstanceNames :: Lens' CreateInstancesFromSnapshot [Text] Source #
The names for your new instances.
cifsAvailabilityZone :: Lens' CreateInstancesFromSnapshot Text Source #
The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a
(case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add the include availability zones
parameter to your request.
cifsInstanceSnapshotName :: Lens' CreateInstancesFromSnapshot Text Source #
The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.
cifsBundleId :: Lens' CreateInstancesFromSnapshot Text Source #
The bundle of specification information for your virtual private server (or instance ), including the pricing plan (e.g., micro_1_0
).
Destructuring the Response
createInstancesFromSnapshotResponse Source #
Creates a value of CreateInstancesFromSnapshotResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cifsrsOperations
- An array of key-value pairs containing information about the results of your create instances from snapshot request.cifsrsResponseStatus
- -- | The response status code.
data CreateInstancesFromSnapshotResponse Source #
See: createInstancesFromSnapshotResponse
smart constructor.
Instances
Response Lenses
cifsrsOperations :: Lens' CreateInstancesFromSnapshotResponse [Operation] Source #
An array of key-value pairs containing information about the results of your create instances from snapshot request.
cifsrsResponseStatus :: Lens' CreateInstancesFromSnapshotResponse Int Source #
- - | The response status code.