@Override
    public CreateCloudFormationStackResult createCloudFormationStack(CreateCloudFormationStackRequest request) {
        request = beforeClientExecution(request);
        return executeCreateCloudFormationStack(request);
    }
<p>
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 <code>get cloud formation stack records</code> operation to get a list of
the CloudFormation stacks created.
</p>
<important>
<p>
Wait until after your new Amazon EC2 instance is created before running the
<code>create cloud formation stack</code> operation again with the same export snapshot record.
</p>
</important>

@param createCloudFormationStackRequest
@return Result of the CreateCloudFormationStack operation returned by the service.
@throws ServiceException
        A general service exception.
@throws InvalidInputException
        Lightsail throws this exception when user input does not conform to the validation rules of an input
        field.</p> <note>
        <p>
        Domain and distribution APIs are only available in the N. Virginia (<code>us-east-1</code>) Amazon Web
        Services Region. Please set your Amazon Web Services Region configuration to <code>us-east-1</code> to
        create, view, or edit these resources.
        </p>
@throws NotFoundException
        Lightsail throws this exception when it cannot find a resource.
@throws OperationFailureException
        Lightsail throws this exception when an operation fails to execute.
@throws AccessDeniedException
        Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to
        access a resource.
@throws AccountSetupInProgressException
        Lightsail throws this exception when an account is still in the setup in progress state.
@throws UnauthenticatedException
        Lightsail throws this exception when the user has not been authenticated.
@sample AmazonLightsail.CreateCloudFormationStack
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateCloudFormationStack"
     target="_top">AWS API Documentation</a>
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/AmazonLightsailClient.java