libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.CreateCloudFormationStack

Description

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

Creating a Request

data CreateCloudFormationStack Source #

See: newCreateCloudFormationStack smart constructor.

Constructors

CreateCloudFormationStack' 

Fields

  • instances :: [InstanceEntry]

    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.

Instances

Instances details
Eq CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Read CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Show CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Generic CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Associated Types

type Rep CreateCloudFormationStack :: Type -> Type #

NFData CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Hashable CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

ToJSON CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

AWSRequest CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

ToHeaders CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

ToPath CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

ToQuery CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

type Rep CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

type Rep CreateCloudFormationStack = D1 ('MetaData "CreateCloudFormationStack" "Amazonka.Lightsail.CreateCloudFormationStack" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateCloudFormationStack'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [InstanceEntry])))
type AWSResponse CreateCloudFormationStack Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

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.

Constructors

CreateCloudFormationStackResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateCloudFormationStackResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Read CreateCloudFormationStackResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Show CreateCloudFormationStackResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Generic CreateCloudFormationStackResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

Associated Types

type Rep CreateCloudFormationStackResponse :: Type -> Type #

NFData CreateCloudFormationStackResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateCloudFormationStack

type Rep CreateCloudFormationStackResponse Source # 
Instance details

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.