Skip to content

Commit

Permalink
feat(clients): update client endpoints as of 2022-09-23
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Sep 23, 2022
1 parent 75acad4 commit 126c20e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
18 changes: 6 additions & 12 deletions clients/client-sns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ using your favorite package manager:

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

```js
// ES5 example
const { SNSClient, PublishCommand } = require("@aws-sdk/client-sns");
const { SNSClient, AddPermissionCommand } = require("@aws-sdk/client-sns");
```

```ts
// ES6+ example
import { SNSClient, PublishCommand } from "@aws-sdk/client-sns";
import { SNSClient, AddPermissionCommand } from "@aws-sdk/client-sns";
```

### Usage
Expand All @@ -62,18 +62,12 @@ To send a request, you:

```js
// a client can be shared by different commands.
const client = new SNSClient({ region: "<YOUR_REGION>" });

const message = {
hello":"world"
}
const client = new SNSClient({ region: "REGION" });

const params = {
Message: JSON.stringify(message),
TopicArn: 'arn:aws:sns:<YOUR_REGION>:<YOUR_ACCOUNT_ID>:<YOUR_TOPIC_NAME>'
/** input parameters */
};
const command = new PublishCommand(params);
const command = new AddPermissionCommand(params);
```

#### Async/await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6017,6 +6017,8 @@
"emr-serverless": {
"endpoints": {
"ap-northeast-1": {},
"ap-northeast-2": {},
"ap-south-1": {},
"ap-southeast-1": {},
"eu-central-1": {},
"eu-west-1": {},
Expand All @@ -6041,6 +6043,7 @@
"deprecated": true,
"hostname": "emr-serverless-fips.us-west-2.amazonaws.com"
},
"sa-east-1": {},
"us-east-1": {
"variants": [
{
Expand Down Expand Up @@ -8187,6 +8190,10 @@
},
"ivschat": {
"endpoints": {
"ap-northeast-1": {},
"ap-northeast-2": {},
"ap-south-1": {},
"eu-central-1": {},
"eu-west-1": {},
"us-east-1": {},
"us-west-2": {}
Expand Down

0 comments on commit 126c20e

Please sign in to comment.