# @trivikr-test/client-macie-esm-wrapper

> AWS SDK for JavaScript Macie Client for Node.js, Browser and React Native

Latest version **3.67.0** (published 2022-04-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @trivikr-test/client-macie-esm-wrapper
pnpm add @trivikr-test/client-macie-esm-wrapper
yarn add @trivikr-test/client-macie-esm-wrapper
bun add @trivikr-test/client-macie-esm-wrapper
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.67.0 |
| Published | 2022-04-13 |
| First published | 2022-04-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 33 |
| Unpacked size | 288.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3670 |
| Author | AWS SDK for JavaScript Team |
| Maintainers | trivikr |

## Links

- npm: https://www.npmjs.com/package/@trivikr-test/client-macie-esm-wrapper
- Repository: https://github.com/aws/aws-sdk-js-v3
- Homepage: https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-macie
- Issues: https://github.com/aws/aws-sdk-js-v3/issues
- npm.io page: https://npm.io/package/@trivikr-test/client-macie-esm-wrapper

## Dependencies (33)

- [tslib](https://npm.io/package/tslib.md) ^2.3.1
- [@aws-crypto/sha256-js](https://npm.io/package/@aws-crypto/sha256-js.md) 2.0.0
- [@aws-crypto/sha256-browser](https://npm.io/package/@aws-crypto/sha256-browser.md) 2.0.0
- [@trivikr-test/types-esm-wrapper](https://npm.io/package/@trivikr-test/types-esm-wrapper.md) 3.55.0
- [@trivikr-test/hash-node-esm-wrapper](https://npm.io/package/@trivikr-test/hash-node-esm-wrapper.md) 3.55.0
- [@trivikr-test/client-sts-esm-wrapper](https://npm.io/package/@trivikr-test/client-sts-esm-wrapper.md) 3.67.0
- [@trivikr-test/url-parser-esm-wrapper](https://npm.io/package/@trivikr-test/url-parser-esm-wrapper.md) 3.55.0
- [@trivikr-test/protocol-http-esm-wrapper](https://npm.io/package/@trivikr-test/protocol-http-esm-wrapper.md) 3.58.0
- [@trivikr-test/smithy-client-esm-wrapper](https://npm.io/package/@trivikr-test/smithy-client-esm-wrapper.md) 3.55.0
- [@trivikr-test/util-utf8-node-esm-wrapper](https://npm.io/package/@trivikr-test/util-utf8-node-esm-wrapper.md) 3.55.0
- [@trivikr-test/config-resolver-esm-wrapper](https://npm.io/package/@trivikr-test/config-resolver-esm-wrapper.md) 3.58.0
- [@trivikr-test/middleware-retry-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-retry-esm-wrapper.md) 3.58.0
- [@trivikr-test/middleware-serde-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-serde-esm-wrapper.md) 3.55.0
- [@trivikr-test/middleware-stack-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-stack-esm-wrapper.md) 3.55.0
- [@trivikr-test/util-base64-node-esm-wrapper](https://npm.io/package/@trivikr-test/util-base64-node-esm-wrapper.md) 3.55.0
- [@trivikr-test/middleware-logger-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-logger-esm-wrapper.md) 3.55.0
- [@trivikr-test/node-http-handler-esm-wrapper](https://npm.io/package/@trivikr-test/node-http-handler-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-utf8-browser-esm-wrapper](https://npm.io/package/@trivikr-test/util-utf8-browser-esm-wrapper.md) 3.55.0
- [@trivikr-test/fetch-http-handler-esm-wrapper](https://npm.io/package/@trivikr-test/fetch-http-handler-esm-wrapper.md) 3.58.0
- [@trivikr-test/invalid-dependency-esm-wrapper](https://npm.io/package/@trivikr-test/invalid-dependency-esm-wrapper.md) 3.55.0
- [@trivikr-test/middleware-signing-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-signing-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-base64-browser-esm-wrapper](https://npm.io/package/@trivikr-test/util-base64-browser-esm-wrapper.md) 3.58.0
- [@trivikr-test/node-config-provider-esm-wrapper](https://npm.io/package/@trivikr-test/node-config-provider-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-user-agent-node-esm-wrapper](https://npm.io/package/@trivikr-test/util-user-agent-node-esm-wrapper.md) 3.58.0
- [@trivikr-test/middleware-user-agent-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-user-agent-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-body-length-node-esm-wrapper](https://npm.io/package/@trivikr-test/util-body-length-node-esm-wrapper.md) 3.55.0
- [@trivikr-test/middleware-host-header-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-host-header-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-defaults-mode-node-esm-wrapper](https://npm.io/package/@trivikr-test/util-defaults-mode-node-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-user-agent-browser-esm-wrapper](https://npm.io/package/@trivikr-test/util-user-agent-browser-esm-wrapper.md) 3.58.0
- [@trivikr-test/credential-provider-node-esm-wrapper](https://npm.io/package/@trivikr-test/credential-provider-node-esm-wrapper.md) 3.67.0
- [@trivikr-test/util-body-length-browser-esm-wrapper](https://npm.io/package/@trivikr-test/util-body-length-browser-esm-wrapper.md) 3.55.0
- [@trivikr-test/middleware-content-length-esm-wrapper](https://npm.io/package/@trivikr-test/middleware-content-length-esm-wrapper.md) 3.58.0
- [@trivikr-test/util-defaults-mode-browser-esm-wrapper](https://npm.io/package/@trivikr-test/util-defaults-mode-browser-esm-wrapper.md) 3.55.0

## Recent versions

- 3.67.0 (latest) — 2022-04-13

## README

# @aws-sdk/client-macie

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-macie/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-macie)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-macie.svg)](https://www.npmjs.com/package/@aws-sdk/client-macie)

## Description

AWS SDK for JavaScript Macie Client for Node.js, Browser and React Native.

<fullname>Amazon Macie Classic</fullname>

<p>Amazon Macie Classic has been discontinued and is no longer available.</p>

<p>A new Amazon Macie is now available with significant design improvements and additional
features, at a lower price and in most Amazon Web Services Regions. We encourage you to take advantage of the
new and improved features, and benefit from the reduced cost. To learn about features and pricing for the new Macie, see <a href="http://aws.amazon.com/macie/">Amazon Macie</a>. To learn how to use the new Macie, see the <a href="https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html">Amazon Macie User
Guide</a>.</p>

## Installing

To install the this package, simply type add or install @aws-sdk/client-macie
using your favorite package manager:

- `npm install @aws-sdk/client-macie`
- `yarn add @aws-sdk/client-macie`
- `pnpm add @aws-sdk/client-macie`

## Getting Started

### Import

The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the `MacieClient` and
the commands you need, for example `AssociateMemberAccountCommand`:

```js
// ES5 example
const { MacieClient, AssociateMemberAccountCommand } = require("@aws-sdk/client-macie");
```

```ts
// ES6+ example
import { MacieClient, AssociateMemberAccountCommand } from "@aws-sdk/client-macie";
```

### Usage

To send a request, you:

- Initiate client with configuration (e.g. credentials, region).
- Initiate command with input parameters.
- Call `send` operation on client with command object as input.
- If you are using a custom http handler, you may call `destroy()` to close open connections.

```js
// a client can be shared by different commands.
const client = new MacieClient({ region: "REGION" });

const params = {
  /** input parameters */
};
const command = new AssociateMemberAccountCommand(params);
```

#### Async/await

We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
operator to wait for the promise returned by send operation as follows:

```js
// async/await.
try {
  const data = await client.send(command);
  // process data.
} catch (error) {
  // error handling.
} finally {
  // finally.
}
```

Async-await is clean, concise, intuitive, easy to debug and has better error handling
as compared to using Promise chains or callbacks.

#### Promises

You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
to execute send operation.

```js
client.send(command).then(
  (data) => {
    // process data.
  },
  (error) => {
    // error handling.
  }
);
```

Promises can also be called using `.catch()` and `.finally()` as follows:

```js
client
  .send(command)
  .then((data) => {
    // process data.
  })
  .catch((error) => {
    // error handling.
  })
  .finally(() => {
    // finally.
  });
```

#### Callbacks

We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
but they are supported by the send operation.

```js
// callbacks.
client.send(command, (err, data) => {
  // process err and data.
});
```

#### v2 compatible style

The client can also send requests using v2 compatible style.
However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)

```ts
import * as AWS from "@aws-sdk/client-macie";
const client = new AWS.Macie({ region: "REGION" });

// async/await.
try {
  const data = await client.associateMemberAccount(params);
  // process data.
} catch (error) {
  // error handling.
}

// Promises.
client
  .associateMemberAccount(params)
  .then((data) => {
    // process data.
  })
  .catch((error) => {
    // error handling.
  });

// callbacks.
client.associateMemberAccount(params, (err, data) => {
  // process err and data.
});
```

### Troubleshooting

When the service returns an exception, the error will include the exception information,
as well as response metadata (e.g. request id).

```js
try {
  const data = await client.send(command);
  // process data.
} catch (error) {
  const { requestId, cfId, extendedRequestId } = error.$metadata;
  console.log({ requestId, cfId, extendedRequestId });
  /**
   * The keys within exceptions are also parsed.
   * You can access them by specifying exception names:
   * if (error.name === 'SomeServiceException') {
   *     const value = error.specialKeyInException;
   * }
   */
}
```

## Getting Help

Please use these community resources for getting help.
We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.

- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
  or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
  on AWS Developer Blog.
- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).

To test your universal JavaScript code in Node.js, browser and react-native environments,
visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).

## Contributing

This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-macie` package is updated.
To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).

## License

This SDK is distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
see LICENSE for more information.

---
_Source: https://npm.io/package/@trivikr-test/client-macie-esm-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
