-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathlightsail-wrapper.js
More file actions
25 lines (23 loc) · 982 Bytes
/
lightsail-wrapper.js
File metadata and controls
25 lines (23 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { LightsailClient, CreateDiskCommand, CreateInstancesCommand, DeleteDiskCommand, DeleteInstanceCommand, GetInstanceCommand } from "@aws-sdk/client-lightsail";
export const createInstances = async (client, params) => {
const command = new CreateInstancesCommand(params);
return client.send(command);
};
export const createDisk = async (client, params) => {
const command = new CreateDiskCommand(params);
return client.send(command);
};
export const getInstance = async (client, params) => {
const command = new GetInstanceCommand(params);
return client.send(command);
};
export const deleteInstance = async (client, params) => {
const command = new DeleteInstanceCommand(params);
return client.send(command);
};
export const deleteDisk = async (client, params) => {
const command = new DeleteDiskCommand(params);
return client.send(command);
};