diff --git a/clients/client-sns/README.md b/clients/client-sns/README.md index 5d14dccc3ef9..83fee2f4271a 100644 --- a/clients/client-sns/README.md +++ b/clients/client-sns/README.md @@ -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 @@ -62,18 +62,12 @@ To send a request, you: ```js // a client can be shared by different commands. -const client = new SNSClient({ region: "" }); - -const message = { - hello":"world" -} +const client = new SNSClient({ region: "REGION" }); const params = { - Message: JSON.stringify(message), - TopicArn: 'arn:aws:sns:::' + /** input parameters */ }; - -const command = new PublishCommand(params); +const command = new AddPermissionCommand(params); ``` #### Async/await diff --git a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json index 04fa32c0fb24..8e4476b35bf4 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json +++ b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json @@ -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": {}, @@ -6041,6 +6043,7 @@ "deprecated": true, "hostname": "emr-serverless-fips.us-west-2.amazonaws.com" }, + "sa-east-1": {}, "us-east-1": { "variants": [ { @@ -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": {}