Copyright | (c) 2013-2021 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 |
Creates an AWS CloudFormation stack, which creates a new Amazon EC2
instance from an exported Amazon Lightsail snapshot. This operation
results in a CloudFormation stack record that can be used to track the
AWS CloudFormation stack created. Use the
get cloud formation stack records
operation to get a list of the
CloudFormation stacks created.
Wait until after your new Amazon EC2 instance is created before running
the create cloud formation stack
operation again with the same export
snapshot record.
Synopsis
- data CreateCloudFormationStack = CreateCloudFormationStack' {
- instances :: [InstanceEntry]
- newCreateCloudFormationStack :: CreateCloudFormationStack
- createCloudFormationStack_instances :: Lens' CreateCloudFormationStack [InstanceEntry]
- data CreateCloudFormationStackResponse = CreateCloudFormationStackResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newCreateCloudFormationStackResponse :: Int -> CreateCloudFormationStackResponse
- createCloudFormationStackResponse_operations :: Lens' CreateCloudFormationStackResponse (Maybe [Operation])
- createCloudFormationStackResponse_httpStatus :: Lens' CreateCloudFormationStackResponse Int
Creating a Request
data CreateCloudFormationStack Source #
See: newCreateCloudFormationStack
smart constructor.
CreateCloudFormationStack' | |
|
Instances
newCreateCloudFormationStack :: CreateCloudFormationStack Source #
Create a value of CreateCloudFormationStack
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:instances:CreateCloudFormationStack'
, createCloudFormationStack_instances
- An array of parameters that will be used to create the new Amazon EC2
instance. You can only pass one instance entry at a time in this array.
You will get an invalid parameter error if you pass more than one
instance entry in this array.
Request Lenses
createCloudFormationStack_instances :: Lens' CreateCloudFormationStack [InstanceEntry] Source #
An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.
Destructuring the Response
data CreateCloudFormationStackResponse Source #
See: newCreateCloudFormationStackResponse
smart constructor.
CreateCloudFormationStackResponse' | |
|
Instances
Eq CreateCloudFormationStackResponse Source # | |
Read CreateCloudFormationStackResponse Source # | |
Show CreateCloudFormationStackResponse Source # | |
Generic CreateCloudFormationStackResponse Source # | |
NFData CreateCloudFormationStackResponse Source # | |
Defined in Amazonka.Lightsail.CreateCloudFormationStack rnf :: CreateCloudFormationStackResponse -> () # | |
type Rep CreateCloudFormationStackResponse Source # | |
Defined in Amazonka.Lightsail.CreateCloudFormationStack type Rep CreateCloudFormationStackResponse = D1 ('MetaData "CreateCloudFormationStackResponse" "Amazonka.Lightsail.CreateCloudFormationStack" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateCloudFormationStackResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateCloudFormationStackResponse Source #
Create a value of CreateCloudFormationStackResponse
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:operations:CreateCloudFormationStackResponse'
, createCloudFormationStackResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:CreateCloudFormationStackResponse'
, createCloudFormationStackResponse_httpStatus
- The response's http status code.
Response Lenses
createCloudFormationStackResponse_operations :: Lens' CreateCloudFormationStackResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
createCloudFormationStackResponse_httpStatus :: Lens' CreateCloudFormationStackResponse Int Source #
The response's http status code.