| Copyright | (c) 2013-2017 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 |
Network.AWS.Lightsail.CreateInstances
Description
Creates one or more Amazon Lightsail virtual private servers, or instances .
- createInstances :: Text -> Text -> Text -> CreateInstances
- data CreateInstances
- ciCustomImageName :: Lens' CreateInstances (Maybe Text)
- ciUserData :: Lens' CreateInstances (Maybe Text)
- ciKeyPairName :: Lens' CreateInstances (Maybe Text)
- ciInstanceNames :: Lens' CreateInstances [Text]
- ciAvailabilityZone :: Lens' CreateInstances Text
- ciBlueprintId :: Lens' CreateInstances Text
- ciBundleId :: Lens' CreateInstances Text
- createInstancesResponse :: Int -> CreateInstancesResponse
- data CreateInstancesResponse
- cirsOperations :: Lens' CreateInstancesResponse [Operation]
- cirsResponseStatus :: Lens' CreateInstancesResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateInstances |
Creates a value of CreateInstances with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ciCustomImageName- (Deprecated) The name for your custom image.ciUserData- A launch script you can create that configures a server with additional user data. For example, you might want to runapt-get –y update.ciKeyPairName- The name of your key pair.ciInstanceNames- The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example:[MyFirstInstance,MySecondInstance]ciAvailabilityZone- The Availability Zone in which to create your instance. Use the following format:us-east-1a(case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add theinclude availability zonesparameter to your request.ciBlueprintId- The ID for a virtual private server image (e.g.,app_wordpress_4_4orapp_lamp_7_0). Use the get blueprints operation to return a list of available images (or blueprints ).ciBundleId- The bundle of specification information for your virtual private server (or instance ), including the pricing plan (e.g.,micro_1_0).
data CreateInstances Source #
See: createInstances smart constructor.
Instances
Request Lenses
ciCustomImageName :: Lens' CreateInstances (Maybe Text) Source #
(Deprecated) The name for your custom image.
ciUserData :: Lens' CreateInstances (Maybe Text) Source #
A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get –y update .
ciKeyPairName :: Lens' CreateInstances (Maybe Text) Source #
The name of your key pair.
ciInstanceNames :: Lens' CreateInstances [Text] Source #
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: [MyFirstInstance,MySecondInstance]
ciAvailabilityZone :: Lens' CreateInstances Text Source #
The Availability Zone in which to create your instance. Use the following format: us-east-1a (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.
ciBlueprintId :: Lens' CreateInstances Text Source #
The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0 ). Use the get blueprints operation to return a list of available images (or blueprints ).
ciBundleId :: Lens' CreateInstances 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
createInstancesResponse Source #
Arguments
| :: Int | |
| -> CreateInstancesResponse |
Creates a value of CreateInstancesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cirsOperations- An array of key-value pairs containing information about the results of your create instances request.cirsResponseStatus- -- | The response status code.
data CreateInstancesResponse Source #
See: createInstancesResponse smart constructor.
Response Lenses
cirsOperations :: Lens' CreateInstancesResponse [Operation] Source #
An array of key-value pairs containing information about the results of your create instances request.
cirsResponseStatus :: Lens' CreateInstancesResponse Int Source #
- - | The response status code.