-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathglacierClient.js
More file actions
22 lines (19 loc) · 896 Bytes
/
glacierClient.js
File metadata and controls
22 lines (19 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
/*
ABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Developer Guide' at
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/glacier-examples.html.
Purpose:
glacierClient.js is a helper function that creates an Amazon Glacier service client.
Inputs (replace in code):
- REGION
*/
// snippet-start:[glacier.JavaScript.createclientv3]
const { GlacierClient } = require("@aws-sdk/client-glacier");
// Set the AWS Region.
const REGION = "REGION";
//Set the Redshift Service Object
const glacierClient = new GlacierClient({ region: REGION });
export { glacierClient };
// snippet-end:[glacier.JavaScript.createclientv3]