diff --git a/clients/client-accessanalyzer/README.md b/clients/client-accessanalyzer/README.md index 4ef8be4bb2db..db71f158cf3a 100644 --- a/clients/client-accessanalyzer/README.md +++ b/clients/client-accessanalyzer/README.md @@ -31,16 +31,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 `AccessAnalyzerClient` and -the commands you need, for example `ApplyArchiveRuleCommand`: +the commands you need, for example `ListAnalyzersCommand`: ```js // ES5 example -const { AccessAnalyzerClient, ApplyArchiveRuleCommand } = require("@aws-sdk/client-accessanalyzer"); +const { AccessAnalyzerClient, ListAnalyzersCommand } = require("@aws-sdk/client-accessanalyzer"); ``` ```ts // ES6+ example -import { AccessAnalyzerClient, ApplyArchiveRuleCommand } from "@aws-sdk/client-accessanalyzer"; +import { AccessAnalyzerClient, ListAnalyzersCommand } from "@aws-sdk/client-accessanalyzer"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new AccessAnalyzerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ApplyArchiveRuleCommand(params); +const command = new ListAnalyzersCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.AccessAnalyzer({ region: "REGION" }); // async/await. try { - const data = await client.applyArchiveRule(params); + const data = await client.listAnalyzers(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .applyArchiveRule(params) + .listAnalyzers(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.applyArchiveRule(params, (err, data) => { +client.listAnalyzers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-account/README.md b/clients/client-account/README.md index 0cbb5e890d0c..efb992e0ec63 100644 --- a/clients/client-account/README.md +++ b/clients/client-account/README.md @@ -23,16 +23,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 `AccountClient` and -the commands you need, for example `DeleteAlternateContactCommand`: +the commands you need, for example `ListRegionsCommand`: ```js // ES5 example -const { AccountClient, DeleteAlternateContactCommand } = require("@aws-sdk/client-account"); +const { AccountClient, ListRegionsCommand } = require("@aws-sdk/client-account"); ``` ```ts // ES6+ example -import { AccountClient, DeleteAlternateContactCommand } from "@aws-sdk/client-account"; +import { AccountClient, ListRegionsCommand } from "@aws-sdk/client-account"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new AccountClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteAlternateContactCommand(params); +const command = new ListRegionsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Account({ region: "REGION" }); // async/await. try { - const data = await client.deleteAlternateContact(params); + const data = await client.listRegions(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .deleteAlternateContact(params) + .listRegions(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.deleteAlternateContact(params, (err, data) => { +client.listRegions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-acm-pca/README.md b/clients/client-acm-pca/README.md index 3de4ae0b313b..21970e0e5805 100644 --- a/clients/client-acm-pca/README.md +++ b/clients/client-acm-pca/README.md @@ -38,16 +38,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 `ACMPCAClient` and -the commands you need, for example `CreateCertificateAuthorityCommand`: +the commands you need, for example `ListTagsCommand`: ```js // ES5 example -const { ACMPCAClient, CreateCertificateAuthorityCommand } = require("@aws-sdk/client-acm-pca"); +const { ACMPCAClient, ListTagsCommand } = require("@aws-sdk/client-acm-pca"); ``` ```ts // ES6+ example -import { ACMPCAClient, CreateCertificateAuthorityCommand } from "@aws-sdk/client-acm-pca"; +import { ACMPCAClient, ListTagsCommand } from "@aws-sdk/client-acm-pca"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new ACMPCAClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateCertificateAuthorityCommand(params); +const command = new ListTagsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.ACMPCA({ region: "REGION" }); // async/await. try { - const data = await client.createCertificateAuthority(params); + const data = await client.listTags(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .createCertificateAuthority(params) + .listTags(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.createCertificateAuthority(params, (err, data) => { +client.listTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-acm/README.md b/clients/client-acm/README.md index fa3eb56f9bca..85174437f920 100644 --- a/clients/client-acm/README.md +++ b/clients/client-acm/README.md @@ -26,16 +26,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 `ACMClient` and -the commands you need, for example `AddTagsToCertificateCommand`: +the commands you need, for example `ListCertificatesCommand`: ```js // ES5 example -const { ACMClient, AddTagsToCertificateCommand } = require("@aws-sdk/client-acm"); +const { ACMClient, ListCertificatesCommand } = require("@aws-sdk/client-acm"); ``` ```ts // ES6+ example -import { ACMClient, AddTagsToCertificateCommand } from "@aws-sdk/client-acm"; +import { ACMClient, ListCertificatesCommand } from "@aws-sdk/client-acm"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new ACMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToCertificateCommand(params); +const command = new ListCertificatesCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.ACM({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToCertificate(params); + const data = await client.listCertificates(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .addTagsToCertificate(params) + .listCertificates(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.addTagsToCertificate(params, (err, data) => { +client.listCertificates(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-alexa-for-business/README.md b/clients/client-alexa-for-business/README.md index 3460b23cdb4d..816a094122ee 100644 --- a/clients/client-alexa-for-business/README.md +++ b/clients/client-alexa-for-business/README.md @@ -23,16 +23,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 `AlexaForBusinessClient` and -the commands you need, for example `ApproveSkillCommand`: +the commands you need, for example `ListSkillsCommand`: ```js // ES5 example -const { AlexaForBusinessClient, ApproveSkillCommand } = require("@aws-sdk/client-alexa-for-business"); +const { AlexaForBusinessClient, ListSkillsCommand } = require("@aws-sdk/client-alexa-for-business"); ``` ```ts // ES6+ example -import { AlexaForBusinessClient, ApproveSkillCommand } from "@aws-sdk/client-alexa-for-business"; +import { AlexaForBusinessClient, ListSkillsCommand } from "@aws-sdk/client-alexa-for-business"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new AlexaForBusinessClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ApproveSkillCommand(params); +const command = new ListSkillsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.AlexaForBusiness({ region: "REGION" }); // async/await. try { - const data = await client.approveSkill(params); + const data = await client.listSkills(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .approveSkill(params) + .listSkills(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.approveSkill(params, (err, data) => { +client.listSkills(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-amp/README.md b/clients/client-amp/README.md index 5a0c88cf8eaa..dbd6ddfad6d8 100644 --- a/clients/client-amp/README.md +++ b/clients/client-amp/README.md @@ -23,16 +23,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 `AmpClient` and -the commands you need, for example `CreateAlertManagerDefinitionCommand`: +the commands you need, for example `ListWorkspacesCommand`: ```js // ES5 example -const { AmpClient, CreateAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp"); +const { AmpClient, ListWorkspacesCommand } = require("@aws-sdk/client-amp"); ``` ```ts // ES6+ example -import { AmpClient, CreateAlertManagerDefinitionCommand } from "@aws-sdk/client-amp"; +import { AmpClient, ListWorkspacesCommand } from "@aws-sdk/client-amp"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new AmpClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAlertManagerDefinitionCommand(params); +const command = new ListWorkspacesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Amp({ region: "REGION" }); // async/await. try { - const data = await client.createAlertManagerDefinition(params); + const data = await client.listWorkspaces(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createAlertManagerDefinition(params) + .listWorkspaces(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createAlertManagerDefinition(params, (err, data) => { +client.listWorkspaces(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-amplify/README.md b/clients/client-amplify/README.md index 73b85500eeaa..b4303d9e1d51 100644 --- a/clients/client-amplify/README.md +++ b/clients/client-amplify/README.md @@ -28,16 +28,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 `AmplifyClient` and -the commands you need, for example `CreateAppCommand`: +the commands you need, for example `ListAppsCommand`: ```js // ES5 example -const { AmplifyClient, CreateAppCommand } = require("@aws-sdk/client-amplify"); +const { AmplifyClient, ListAppsCommand } = require("@aws-sdk/client-amplify"); ``` ```ts // ES6+ example -import { AmplifyClient, CreateAppCommand } from "@aws-sdk/client-amplify"; +import { AmplifyClient, ListAppsCommand } from "@aws-sdk/client-amplify"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new AmplifyClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAppCommand(params); +const command = new ListAppsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.Amplify({ region: "REGION" }); // async/await. try { - const data = await client.createApp(params); + const data = await client.listApps(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .createApp(params) + .listApps(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.createApp(params, (err, data) => { +client.listApps(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-amplifybackend/README.md b/clients/client-amplifybackend/README.md index 398b45eedc58..8166fb7fe0e4 100644 --- a/clients/client-amplifybackend/README.md +++ b/clients/client-amplifybackend/README.md @@ -23,16 +23,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 `AmplifyBackendClient` and -the commands you need, for example `CloneBackendCommand`: +the commands you need, for example `ListS3BucketsCommand`: ```js // ES5 example -const { AmplifyBackendClient, CloneBackendCommand } = require("@aws-sdk/client-amplifybackend"); +const { AmplifyBackendClient, ListS3BucketsCommand } = require("@aws-sdk/client-amplifybackend"); ``` ```ts // ES6+ example -import { AmplifyBackendClient, CloneBackendCommand } from "@aws-sdk/client-amplifybackend"; +import { AmplifyBackendClient, ListS3BucketsCommand } from "@aws-sdk/client-amplifybackend"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new AmplifyBackendClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CloneBackendCommand(params); +const command = new ListS3BucketsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.AmplifyBackend({ region: "REGION" }); // async/await. try { - const data = await client.cloneBackend(params); + const data = await client.listS3Buckets(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .cloneBackend(params) + .listS3Buckets(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.cloneBackend(params, (err, data) => { +client.listS3Buckets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-amplifyuibuilder/README.md b/clients/client-amplifyuibuilder/README.md index 40b450f86e1d..2475e52fcc7f 100644 --- a/clients/client-amplifyuibuilder/README.md +++ b/clients/client-amplifyuibuilder/README.md @@ -31,16 +31,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 `AmplifyUIBuilderClient` and -the commands you need, for example `CreateComponentCommand`: +the commands you need, for example `ListFormsCommand`: ```js // ES5 example -const { AmplifyUIBuilderClient, CreateComponentCommand } = require("@aws-sdk/client-amplifyuibuilder"); +const { AmplifyUIBuilderClient, ListFormsCommand } = require("@aws-sdk/client-amplifyuibuilder"); ``` ```ts // ES6+ example -import { AmplifyUIBuilderClient, CreateComponentCommand } from "@aws-sdk/client-amplifyuibuilder"; +import { AmplifyUIBuilderClient, ListFormsCommand } from "@aws-sdk/client-amplifyuibuilder"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new AmplifyUIBuilderClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateComponentCommand(params); +const command = new ListFormsCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.AmplifyUIBuilder({ region: "REGION" }); // async/await. try { - const data = await client.createComponent(params); + const data = await client.listForms(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .createComponent(params) + .listForms(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.createComponent(params, (err, data) => { +client.listForms(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-api-gateway/README.md b/clients/client-api-gateway/README.md index b6e48a9ed0fc..2b2518c23d94 100644 --- a/clients/client-api-gateway/README.md +++ b/clients/client-api-gateway/README.md @@ -25,16 +25,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 `APIGatewayClient` and -the commands you need, for example `CreateApiKeyCommand`: +the commands you need, for example `GetAccountCommand`: ```js // ES5 example -const { APIGatewayClient, CreateApiKeyCommand } = require("@aws-sdk/client-api-gateway"); +const { APIGatewayClient, GetAccountCommand } = require("@aws-sdk/client-api-gateway"); ``` ```ts // ES6+ example -import { APIGatewayClient, CreateApiKeyCommand } from "@aws-sdk/client-api-gateway"; +import { APIGatewayClient, GetAccountCommand } from "@aws-sdk/client-api-gateway"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new APIGatewayClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApiKeyCommand(params); +const command = new GetAccountCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.APIGateway({ region: "REGION" }); // async/await. try { - const data = await client.createApiKey(params); + const data = await client.getAccount(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .createApiKey(params) + .getAccount(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.createApiKey(params, (err, data) => { +client.getAccount(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-apigatewaymanagementapi/README.md b/clients/client-apigatewaymanagementapi/README.md index 2d0b0a93ab2b..d33284d519e7 100644 --- a/clients/client-apigatewaymanagementapi/README.md +++ b/clients/client-apigatewaymanagementapi/README.md @@ -23,16 +23,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 `ApiGatewayManagementApiClient` and -the commands you need, for example `DeleteConnectionCommand`: +the commands you need, for example `GetConnectionCommand`: ```js // ES5 example -const { ApiGatewayManagementApiClient, DeleteConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); +const { ApiGatewayManagementApiClient, GetConnectionCommand } = require("@aws-sdk/client-apigatewaymanagementapi"); ``` ```ts // ES6+ example -import { ApiGatewayManagementApiClient, DeleteConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; +import { ApiGatewayManagementApiClient, GetConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new ApiGatewayManagementApiClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteConnectionCommand(params); +const command = new GetConnectionCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.ApiGatewayManagementApi({ region: "REGION" }); // async/await. try { - const data = await client.deleteConnection(params); + const data = await client.getConnection(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .deleteConnection(params) + .getConnection(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.deleteConnection(params, (err, data) => { +client.getConnection(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-apigatewayv2/README.md b/clients/client-apigatewayv2/README.md index 80cad28cfcfb..01c65ba4842c 100644 --- a/clients/client-apigatewayv2/README.md +++ b/clients/client-apigatewayv2/README.md @@ -23,16 +23,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 `ApiGatewayV2Client` and -the commands you need, for example `CreateApiCommand`: +the commands you need, for example `GetApisCommand`: ```js // ES5 example -const { ApiGatewayV2Client, CreateApiCommand } = require("@aws-sdk/client-apigatewayv2"); +const { ApiGatewayV2Client, GetApisCommand } = require("@aws-sdk/client-apigatewayv2"); ``` ```ts // ES6+ example -import { ApiGatewayV2Client, CreateApiCommand } from "@aws-sdk/client-apigatewayv2"; +import { ApiGatewayV2Client, GetApisCommand } from "@aws-sdk/client-apigatewayv2"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new ApiGatewayV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApiCommand(params); +const command = new GetApisCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.ApiGatewayV2({ region: "REGION" }); // async/await. try { - const data = await client.createApi(params); + const data = await client.getApis(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createApi(params) + .getApis(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createApi(params, (err, data) => { +client.getApis(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-app-mesh/README.md b/clients/client-app-mesh/README.md index b83f164e33b1..c1f072139e99 100644 --- a/clients/client-app-mesh/README.md +++ b/clients/client-app-mesh/README.md @@ -37,16 +37,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 `AppMeshClient` and -the commands you need, for example `CreateGatewayRouteCommand`: +the commands you need, for example `ListMeshesCommand`: ```js // ES5 example -const { AppMeshClient, CreateGatewayRouteCommand } = require("@aws-sdk/client-app-mesh"); +const { AppMeshClient, ListMeshesCommand } = require("@aws-sdk/client-app-mesh"); ``` ```ts // ES6+ example -import { AppMeshClient, CreateGatewayRouteCommand } from "@aws-sdk/client-app-mesh"; +import { AppMeshClient, ListMeshesCommand } from "@aws-sdk/client-app-mesh"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new AppMeshClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateGatewayRouteCommand(params); +const command = new ListMeshesCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.AppMesh({ region: "REGION" }); // async/await. try { - const data = await client.createGatewayRoute(params); + const data = await client.listMeshes(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .createGatewayRoute(params) + .listMeshes(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.createGatewayRoute(params, (err, data) => { +client.listMeshes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-appconfig/README.md b/clients/client-appconfig/README.md index 2c0b9dd1ff1c..a39dab9c2b64 100644 --- a/clients/client-appconfig/README.md +++ b/clients/client-appconfig/README.md @@ -68,16 +68,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 `AppConfigClient` and -the commands you need, for example `CreateApplicationCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { AppConfigClient, CreateApplicationCommand } = require("@aws-sdk/client-appconfig"); +const { AppConfigClient, ListApplicationsCommand } = require("@aws-sdk/client-appconfig"); ``` ```ts // ES6+ example -import { AppConfigClient, CreateApplicationCommand } from "@aws-sdk/client-appconfig"; +import { AppConfigClient, ListApplicationsCommand } from "@aws-sdk/client-appconfig"; ``` ### Usage @@ -96,7 +96,7 @@ const client = new AppConfigClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApplicationCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -175,7 +175,7 @@ const client = new AWS.AppConfig({ region: "REGION" }); // async/await. try { - const data = await client.createApplication(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -183,7 +183,7 @@ try { // Promises. client - .createApplication(params) + .listApplications(params) .then((data) => { // process data. }) @@ -192,7 +192,7 @@ client }); // callbacks. -client.createApplication(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-appfabric/README.md b/clients/client-appfabric/README.md index 239ca2025d54..69baadb5b634 100644 --- a/clients/client-appfabric/README.md +++ b/clients/client-appfabric/README.md @@ -31,16 +31,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 `AppFabricClient` and -the commands you need, for example `BatchGetUserAccessTasksCommand`: +the commands you need, for example `ListAppBundlesCommand`: ```js // ES5 example -const { AppFabricClient, BatchGetUserAccessTasksCommand } = require("@aws-sdk/client-appfabric"); +const { AppFabricClient, ListAppBundlesCommand } = require("@aws-sdk/client-appfabric"); ``` ```ts // ES6+ example -import { AppFabricClient, BatchGetUserAccessTasksCommand } from "@aws-sdk/client-appfabric"; +import { AppFabricClient, ListAppBundlesCommand } from "@aws-sdk/client-appfabric"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new AppFabricClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetUserAccessTasksCommand(params); +const command = new ListAppBundlesCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.AppFabric({ region: "REGION" }); // async/await. try { - const data = await client.batchGetUserAccessTasks(params); + const data = await client.listAppBundles(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .batchGetUserAccessTasks(params) + .listAppBundles(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.batchGetUserAccessTasks(params, (err, data) => { +client.listAppBundles(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-appflow/README.md b/clients/client-appflow/README.md index 66f29839dbf2..7591ab01ce25 100644 --- a/clients/client-appflow/README.md +++ b/clients/client-appflow/README.md @@ -57,16 +57,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 `AppflowClient` and -the commands you need, for example `CancelFlowExecutionsCommand`: +the commands you need, for example `ListFlowsCommand`: ```js // ES5 example -const { AppflowClient, CancelFlowExecutionsCommand } = require("@aws-sdk/client-appflow"); +const { AppflowClient, ListFlowsCommand } = require("@aws-sdk/client-appflow"); ``` ```ts // ES6+ example -import { AppflowClient, CancelFlowExecutionsCommand } from "@aws-sdk/client-appflow"; +import { AppflowClient, ListFlowsCommand } from "@aws-sdk/client-appflow"; ``` ### Usage @@ -85,7 +85,7 @@ const client = new AppflowClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelFlowExecutionsCommand(params); +const command = new ListFlowsCommand(params); ``` #### Async/await @@ -164,7 +164,7 @@ const client = new AWS.Appflow({ region: "REGION" }); // async/await. try { - const data = await client.cancelFlowExecutions(params); + const data = await client.listFlows(params); // process data. } catch (error) { // error handling. @@ -172,7 +172,7 @@ try { // Promises. client - .cancelFlowExecutions(params) + .listFlows(params) .then((data) => { // process data. }) @@ -181,7 +181,7 @@ client }); // callbacks. -client.cancelFlowExecutions(params, (err, data) => { +client.listFlows(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-appintegrations/README.md b/clients/client-appintegrations/README.md index 5e3c2f282eac..f7abc89c9b4c 100644 --- a/clients/client-appintegrations/README.md +++ b/clients/client-appintegrations/README.md @@ -29,16 +29,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 `AppIntegrationsClient` and -the commands you need, for example `CreateApplicationCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { AppIntegrationsClient, CreateApplicationCommand } = require("@aws-sdk/client-appintegrations"); +const { AppIntegrationsClient, ListApplicationsCommand } = require("@aws-sdk/client-appintegrations"); ``` ```ts // ES6+ example -import { AppIntegrationsClient, CreateApplicationCommand } from "@aws-sdk/client-appintegrations"; +import { AppIntegrationsClient, ListApplicationsCommand } from "@aws-sdk/client-appintegrations"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new AppIntegrationsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApplicationCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.AppIntegrations({ region: "REGION" }); // async/await. try { - const data = await client.createApplication(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .createApplication(params) + .listApplications(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.createApplication(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-application-auto-scaling/README.md b/clients/client-application-auto-scaling/README.md index 0f78ad32f3ae..5fc8b45ba216 100644 --- a/clients/client-application-auto-scaling/README.md +++ b/clients/client-application-auto-scaling/README.md @@ -96,19 +96,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `ApplicationAutoScalingClient` and -the commands you need, for example `DeleteScalingPolicyCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example const { ApplicationAutoScalingClient, - DeleteScalingPolicyCommand, + ListTagsForResourceCommand, } = require("@aws-sdk/client-application-auto-scaling"); ``` ```ts // ES6+ example -import { ApplicationAutoScalingClient, DeleteScalingPolicyCommand } from "@aws-sdk/client-application-auto-scaling"; +import { ApplicationAutoScalingClient, ListTagsForResourceCommand } from "@aws-sdk/client-application-auto-scaling"; ``` ### Usage @@ -127,7 +127,7 @@ const client = new ApplicationAutoScalingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteScalingPolicyCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -206,7 +206,7 @@ const client = new AWS.ApplicationAutoScaling({ region: "REGION" }); // async/await. try { - const data = await client.deleteScalingPolicy(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -214,7 +214,7 @@ try { // Promises. client - .deleteScalingPolicy(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -223,7 +223,7 @@ client }); // callbacks. -client.deleteScalingPolicy(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-application-discovery-service/README.md b/clients/client-application-discovery-service/README.md index 6db8084e85c8..a4abe75c4ecf 100644 --- a/clients/client-application-discovery-service/README.md +++ b/clients/client-application-discovery-service/README.md @@ -129,13 +129,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `ApplicationDiscoveryServiceClient` and -the commands you need, for example `AssociateConfigurationItemsToApplicationCommand`: +the commands you need, for example `ListConfigurationsCommand`: ```js // ES5 example const { ApplicationDiscoveryServiceClient, - AssociateConfigurationItemsToApplicationCommand, + ListConfigurationsCommand, } = require("@aws-sdk/client-application-discovery-service"); ``` @@ -143,7 +143,7 @@ const { // ES6+ example import { ApplicationDiscoveryServiceClient, - AssociateConfigurationItemsToApplicationCommand, + ListConfigurationsCommand, } from "@aws-sdk/client-application-discovery-service"; ``` @@ -163,7 +163,7 @@ const client = new ApplicationDiscoveryServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateConfigurationItemsToApplicationCommand(params); +const command = new ListConfigurationsCommand(params); ``` #### Async/await @@ -242,7 +242,7 @@ const client = new AWS.ApplicationDiscoveryService({ region: "REGION" }); // async/await. try { - const data = await client.associateConfigurationItemsToApplication(params); + const data = await client.listConfigurations(params); // process data. } catch (error) { // error handling. @@ -250,7 +250,7 @@ try { // Promises. client - .associateConfigurationItemsToApplication(params) + .listConfigurations(params) .then((data) => { // process data. }) @@ -259,7 +259,7 @@ client }); // callbacks. -client.associateConfigurationItemsToApplication(params, (err, data) => { +client.listConfigurations(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-application-insights/README.md b/clients/client-application-insights/README.md index 93d69c064089..43af0cd1ff12 100644 --- a/clients/client-application-insights/README.md +++ b/clients/client-application-insights/README.md @@ -35,16 +35,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 `ApplicationInsightsClient` and -the commands you need, for example `AddWorkloadCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { ApplicationInsightsClient, AddWorkloadCommand } = require("@aws-sdk/client-application-insights"); +const { ApplicationInsightsClient, ListApplicationsCommand } = require("@aws-sdk/client-application-insights"); ``` ```ts // ES6+ example -import { ApplicationInsightsClient, AddWorkloadCommand } from "@aws-sdk/client-application-insights"; +import { ApplicationInsightsClient, ListApplicationsCommand } from "@aws-sdk/client-application-insights"; ``` ### Usage @@ -63,7 +63,7 @@ const client = new ApplicationInsightsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddWorkloadCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -142,7 +142,7 @@ const client = new AWS.ApplicationInsights({ region: "REGION" }); // async/await. try { - const data = await client.addWorkload(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -150,7 +150,7 @@ try { // Promises. client - .addWorkload(params) + .listApplications(params) .then((data) => { // process data. }) @@ -159,7 +159,7 @@ client }); // callbacks. -client.addWorkload(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-applicationcostprofiler/README.md b/clients/client-applicationcostprofiler/README.md index 073cb0fa2ef9..0f79cfd4399b 100644 --- a/clients/client-applicationcostprofiler/README.md +++ b/clients/client-applicationcostprofiler/README.md @@ -28,19 +28,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `ApplicationCostProfilerClient` and -the commands you need, for example `DeleteReportDefinitionCommand`: +the commands you need, for example `ListReportDefinitionsCommand`: ```js // ES5 example const { ApplicationCostProfilerClient, - DeleteReportDefinitionCommand, + ListReportDefinitionsCommand, } = require("@aws-sdk/client-applicationcostprofiler"); ``` ```ts // ES6+ example -import { ApplicationCostProfilerClient, DeleteReportDefinitionCommand } from "@aws-sdk/client-applicationcostprofiler"; +import { ApplicationCostProfilerClient, ListReportDefinitionsCommand } from "@aws-sdk/client-applicationcostprofiler"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new ApplicationCostProfilerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteReportDefinitionCommand(params); +const command = new ListReportDefinitionsCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.ApplicationCostProfiler({ region: "REGION" }); // async/await. try { - const data = await client.deleteReportDefinition(params); + const data = await client.listReportDefinitions(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .deleteReportDefinition(params) + .listReportDefinitions(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.deleteReportDefinition(params, (err, data) => { +client.listReportDefinitions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-apprunner/README.md b/clients/client-apprunner/README.md index aea6c2f6350a..ad9c3a858670 100644 --- a/clients/client-apprunner/README.md +++ b/clients/client-apprunner/README.md @@ -40,16 +40,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 `AppRunnerClient` and -the commands you need, for example `AssociateCustomDomainCommand`: +the commands you need, for example `ListConnectionsCommand`: ```js // ES5 example -const { AppRunnerClient, AssociateCustomDomainCommand } = require("@aws-sdk/client-apprunner"); +const { AppRunnerClient, ListConnectionsCommand } = require("@aws-sdk/client-apprunner"); ``` ```ts // ES6+ example -import { AppRunnerClient, AssociateCustomDomainCommand } from "@aws-sdk/client-apprunner"; +import { AppRunnerClient, ListConnectionsCommand } from "@aws-sdk/client-apprunner"; ``` ### Usage @@ -68,7 +68,7 @@ const client = new AppRunnerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateCustomDomainCommand(params); +const command = new ListConnectionsCommand(params); ``` #### Async/await @@ -147,7 +147,7 @@ const client = new AWS.AppRunner({ region: "REGION" }); // async/await. try { - const data = await client.associateCustomDomain(params); + const data = await client.listConnections(params); // process data. } catch (error) { // error handling. @@ -155,7 +155,7 @@ try { // Promises. client - .associateCustomDomain(params) + .listConnections(params) .then((data) => { // process data. }) @@ -164,7 +164,7 @@ client }); // callbacks. -client.associateCustomDomain(params, (err, data) => { +client.listConnections(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-appstream/README.md b/clients/client-appstream/README.md index bf746039b33e..bb087ab855e2 100644 --- a/clients/client-appstream/README.md +++ b/clients/client-appstream/README.md @@ -41,16 +41,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 `AppStreamClient` and -the commands you need, for example `AssociateAppBlockBuilderAppBlockCommand`: +the commands you need, for example `ListAssociatedFleetsCommand`: ```js // ES5 example -const { AppStreamClient, AssociateAppBlockBuilderAppBlockCommand } = require("@aws-sdk/client-appstream"); +const { AppStreamClient, ListAssociatedFleetsCommand } = require("@aws-sdk/client-appstream"); ``` ```ts // ES6+ example -import { AppStreamClient, AssociateAppBlockBuilderAppBlockCommand } from "@aws-sdk/client-appstream"; +import { AppStreamClient, ListAssociatedFleetsCommand } from "@aws-sdk/client-appstream"; ``` ### Usage @@ -69,7 +69,7 @@ const client = new AppStreamClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAppBlockBuilderAppBlockCommand(params); +const command = new ListAssociatedFleetsCommand(params); ``` #### Async/await @@ -148,7 +148,7 @@ const client = new AWS.AppStream({ region: "REGION" }); // async/await. try { - const data = await client.associateAppBlockBuilderAppBlock(params); + const data = await client.listAssociatedFleets(params); // process data. } catch (error) { // error handling. @@ -156,7 +156,7 @@ try { // Promises. client - .associateAppBlockBuilderAppBlock(params) + .listAssociatedFleets(params) .then((data) => { // process data. }) @@ -165,7 +165,7 @@ client }); // callbacks. -client.associateAppBlockBuilderAppBlock(params, (err, data) => { +client.listAssociatedFleets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-appsync/README.md b/clients/client-appsync/README.md index 7d89439e9c1c..9c2a400eb015 100644 --- a/clients/client-appsync/README.md +++ b/clients/client-appsync/README.md @@ -24,16 +24,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 `AppSyncClient` and -the commands you need, for example `AssociateApiCommand`: +the commands you need, for example `ListApiKeysCommand`: ```js // ES5 example -const { AppSyncClient, AssociateApiCommand } = require("@aws-sdk/client-appsync"); +const { AppSyncClient, ListApiKeysCommand } = require("@aws-sdk/client-appsync"); ``` ```ts // ES6+ example -import { AppSyncClient, AssociateApiCommand } from "@aws-sdk/client-appsync"; +import { AppSyncClient, ListApiKeysCommand } from "@aws-sdk/client-appsync"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new AppSyncClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateApiCommand(params); +const command = new ListApiKeysCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.AppSync({ region: "REGION" }); // async/await. try { - const data = await client.associateApi(params); + const data = await client.listApiKeys(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .associateApi(params) + .listApiKeys(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.associateApi(params, (err, data) => { +client.listApiKeys(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-arc-zonal-shift/README.md b/clients/client-arc-zonal-shift/README.md index 555b9813290a..761ac44e85c3 100644 --- a/clients/client-arc-zonal-shift/README.md +++ b/clients/client-arc-zonal-shift/README.md @@ -37,16 +37,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 `ARCZonalShiftClient` and -the commands you need, for example `CancelZonalShiftCommand`: +the commands you need, for example `ListZonalShiftsCommand`: ```js // ES5 example -const { ARCZonalShiftClient, CancelZonalShiftCommand } = require("@aws-sdk/client-arc-zonal-shift"); +const { ARCZonalShiftClient, ListZonalShiftsCommand } = require("@aws-sdk/client-arc-zonal-shift"); ``` ```ts // ES6+ example -import { ARCZonalShiftClient, CancelZonalShiftCommand } from "@aws-sdk/client-arc-zonal-shift"; +import { ARCZonalShiftClient, ListZonalShiftsCommand } from "@aws-sdk/client-arc-zonal-shift"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new ARCZonalShiftClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelZonalShiftCommand(params); +const command = new ListZonalShiftsCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.ARCZonalShift({ region: "REGION" }); // async/await. try { - const data = await client.cancelZonalShift(params); + const data = await client.listZonalShifts(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .cancelZonalShift(params) + .listZonalShifts(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.cancelZonalShift(params, (err, data) => { +client.listZonalShifts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-athena/README.md b/clients/client-athena/README.md index 2ee3663d6f00..e7f8473ae200 100644 --- a/clients/client-athena/README.md +++ b/clients/client-athena/README.md @@ -36,16 +36,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 `AthenaClient` and -the commands you need, for example `BatchGetNamedQueryCommand`: +the commands you need, for example `ListDataCatalogsCommand`: ```js // ES5 example -const { AthenaClient, BatchGetNamedQueryCommand } = require("@aws-sdk/client-athena"); +const { AthenaClient, ListDataCatalogsCommand } = require("@aws-sdk/client-athena"); ``` ```ts // ES6+ example -import { AthenaClient, BatchGetNamedQueryCommand } from "@aws-sdk/client-athena"; +import { AthenaClient, ListDataCatalogsCommand } from "@aws-sdk/client-athena"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new AthenaClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetNamedQueryCommand(params); +const command = new ListDataCatalogsCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.Athena({ region: "REGION" }); // async/await. try { - const data = await client.batchGetNamedQuery(params); + const data = await client.listDataCatalogs(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .batchGetNamedQuery(params) + .listDataCatalogs(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.batchGetNamedQuery(params, (err, data) => { +client.listDataCatalogs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-auditmanager/README.md b/clients/client-auditmanager/README.md index 649b79eade22..71a56122036a 100644 --- a/clients/client-auditmanager/README.md +++ b/clients/client-auditmanager/README.md @@ -58,16 +58,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 `AuditManagerClient` and -the commands you need, for example `AssociateAssessmentReportEvidenceFolderCommand`: +the commands you need, for example `ListAssessmentsCommand`: ```js // ES5 example -const { AuditManagerClient, AssociateAssessmentReportEvidenceFolderCommand } = require("@aws-sdk/client-auditmanager"); +const { AuditManagerClient, ListAssessmentsCommand } = require("@aws-sdk/client-auditmanager"); ``` ```ts // ES6+ example -import { AuditManagerClient, AssociateAssessmentReportEvidenceFolderCommand } from "@aws-sdk/client-auditmanager"; +import { AuditManagerClient, ListAssessmentsCommand } from "@aws-sdk/client-auditmanager"; ``` ### Usage @@ -86,7 +86,7 @@ const client = new AuditManagerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAssessmentReportEvidenceFolderCommand(params); +const command = new ListAssessmentsCommand(params); ``` #### Async/await @@ -165,7 +165,7 @@ const client = new AWS.AuditManager({ region: "REGION" }); // async/await. try { - const data = await client.associateAssessmentReportEvidenceFolder(params); + const data = await client.listAssessments(params); // process data. } catch (error) { // error handling. @@ -173,7 +173,7 @@ try { // Promises. client - .associateAssessmentReportEvidenceFolder(params) + .listAssessments(params) .then((data) => { // process data. }) @@ -182,7 +182,7 @@ client }); // callbacks. -client.associateAssessmentReportEvidenceFolder(params, (err, data) => { +client.listAssessments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-auto-scaling-plans/README.md b/clients/client-auto-scaling-plans/README.md index 47d381715395..4ef49b0bb936 100644 --- a/clients/client-auto-scaling-plans/README.md +++ b/clients/client-auto-scaling-plans/README.md @@ -56,16 +56,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 `AutoScalingPlansClient` and -the commands you need, for example `CreateScalingPlanCommand`: +the commands you need, for example `DescribeScalingPlansCommand`: ```js // ES5 example -const { AutoScalingPlansClient, CreateScalingPlanCommand } = require("@aws-sdk/client-auto-scaling-plans"); +const { AutoScalingPlansClient, DescribeScalingPlansCommand } = require("@aws-sdk/client-auto-scaling-plans"); ``` ```ts // ES6+ example -import { AutoScalingPlansClient, CreateScalingPlanCommand } from "@aws-sdk/client-auto-scaling-plans"; +import { AutoScalingPlansClient, DescribeScalingPlansCommand } from "@aws-sdk/client-auto-scaling-plans"; ``` ### Usage @@ -84,7 +84,7 @@ const client = new AutoScalingPlansClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateScalingPlanCommand(params); +const command = new DescribeScalingPlansCommand(params); ``` #### Async/await @@ -163,7 +163,7 @@ const client = new AWS.AutoScalingPlans({ region: "REGION" }); // async/await. try { - const data = await client.createScalingPlan(params); + const data = await client.describeScalingPlans(params); // process data. } catch (error) { // error handling. @@ -171,7 +171,7 @@ try { // Promises. client - .createScalingPlan(params) + .describeScalingPlans(params) .then((data) => { // process data. }) @@ -180,7 +180,7 @@ client }); // callbacks. -client.createScalingPlan(params, (err, data) => { +client.describeScalingPlans(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-auto-scaling/README.md b/clients/client-auto-scaling/README.md index 60529294f613..cef206ddd554 100644 --- a/clients/client-auto-scaling/README.md +++ b/clients/client-auto-scaling/README.md @@ -27,16 +27,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 `AutoScalingClient` and -the commands you need, for example `AttachInstancesCommand`: +the commands you need, for example `DescribePoliciesCommand`: ```js // ES5 example -const { AutoScalingClient, AttachInstancesCommand } = require("@aws-sdk/client-auto-scaling"); +const { AutoScalingClient, DescribePoliciesCommand } = require("@aws-sdk/client-auto-scaling"); ``` ```ts // ES6+ example -import { AutoScalingClient, AttachInstancesCommand } from "@aws-sdk/client-auto-scaling"; +import { AutoScalingClient, DescribePoliciesCommand } from "@aws-sdk/client-auto-scaling"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new AutoScalingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AttachInstancesCommand(params); +const command = new DescribePoliciesCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.AutoScaling({ region: "REGION" }); // async/await. try { - const data = await client.attachInstances(params); + const data = await client.describePolicies(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .attachInstances(params) + .describePolicies(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.attachInstances(params, (err, data) => { +client.describePolicies(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-backup-gateway/README.md b/clients/client-backup-gateway/README.md index 9bf7f0d2fdd3..4764a2370058 100644 --- a/clients/client-backup-gateway/README.md +++ b/clients/client-backup-gateway/README.md @@ -32,16 +32,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 `BackupGatewayClient` and -the commands you need, for example `AssociateGatewayToServerCommand`: +the commands you need, for example `ListGatewaysCommand`: ```js // ES5 example -const { BackupGatewayClient, AssociateGatewayToServerCommand } = require("@aws-sdk/client-backup-gateway"); +const { BackupGatewayClient, ListGatewaysCommand } = require("@aws-sdk/client-backup-gateway"); ``` ```ts // ES6+ example -import { BackupGatewayClient, AssociateGatewayToServerCommand } from "@aws-sdk/client-backup-gateway"; +import { BackupGatewayClient, ListGatewaysCommand } from "@aws-sdk/client-backup-gateway"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new BackupGatewayClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateGatewayToServerCommand(params); +const command = new ListGatewaysCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.BackupGateway({ region: "REGION" }); // async/await. try { - const data = await client.associateGatewayToServer(params); + const data = await client.listGateways(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .associateGatewayToServer(params) + .listGateways(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.associateGatewayToServer(params, (err, data) => { +client.listGateways(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-backup/README.md b/clients/client-backup/README.md index 1913206b55bb..d9dfa9017ff8 100644 --- a/clients/client-backup/README.md +++ b/clients/client-backup/README.md @@ -28,16 +28,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 `BackupClient` and -the commands you need, for example `CancelLegalHoldCommand`: +the commands you need, for example `ListBackupJobsCommand`: ```js // ES5 example -const { BackupClient, CancelLegalHoldCommand } = require("@aws-sdk/client-backup"); +const { BackupClient, ListBackupJobsCommand } = require("@aws-sdk/client-backup"); ``` ```ts // ES6+ example -import { BackupClient, CancelLegalHoldCommand } from "@aws-sdk/client-backup"; +import { BackupClient, ListBackupJobsCommand } from "@aws-sdk/client-backup"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new BackupClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelLegalHoldCommand(params); +const command = new ListBackupJobsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.Backup({ region: "REGION" }); // async/await. try { - const data = await client.cancelLegalHold(params); + const data = await client.listBackupJobs(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .cancelLegalHold(params) + .listBackupJobs(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.cancelLegalHold(params, (err, data) => { +client.listBackupJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-backupstorage/README.md b/clients/client-backupstorage/README.md index 520b61c5c004..48d9c2aae776 100644 --- a/clients/client-backupstorage/README.md +++ b/clients/client-backupstorage/README.md @@ -23,16 +23,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 `BackupStorageClient` and -the commands you need, for example `DeleteObjectCommand`: +the commands you need, for example `ListObjectsCommand`: ```js // ES5 example -const { BackupStorageClient, DeleteObjectCommand } = require("@aws-sdk/client-backupstorage"); +const { BackupStorageClient, ListObjectsCommand } = require("@aws-sdk/client-backupstorage"); ``` ```ts // ES6+ example -import { BackupStorageClient, DeleteObjectCommand } from "@aws-sdk/client-backupstorage"; +import { BackupStorageClient, ListObjectsCommand } from "@aws-sdk/client-backupstorage"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new BackupStorageClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteObjectCommand(params); +const command = new ListObjectsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.BackupStorage({ region: "REGION" }); // async/await. try { - const data = await client.deleteObject(params); + const data = await client.listObjects(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .deleteObject(params) + .listObjects(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.deleteObject(params, (err, data) => { +client.listObjects(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-batch/README.md b/clients/client-batch/README.md index 34b25b09c2ac..dab2cce8f26f 100644 --- a/clients/client-batch/README.md +++ b/clients/client-batch/README.md @@ -34,16 +34,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 `BatchClient` and -the commands you need, for example `CancelJobCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { BatchClient, CancelJobCommand } = require("@aws-sdk/client-batch"); +const { BatchClient, ListJobsCommand } = require("@aws-sdk/client-batch"); ``` ```ts // ES6+ example -import { BatchClient, CancelJobCommand } from "@aws-sdk/client-batch"; +import { BatchClient, ListJobsCommand } from "@aws-sdk/client-batch"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new BatchClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJobCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.Batch({ region: "REGION" }); // async/await. try { - const data = await client.cancelJob(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .cancelJob(params) + .listJobs(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.cancelJob(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-billingconductor/README.md b/clients/client-billingconductor/README.md index 65b22b632e1f..111a16a39a41 100644 --- a/clients/client-billingconductor/README.md +++ b/clients/client-billingconductor/README.md @@ -34,16 +34,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 `BillingconductorClient` and -the commands you need, for example `AssociateAccountsCommand`: +the commands you need, for example `ListBillingGroupsCommand`: ```js // ES5 example -const { BillingconductorClient, AssociateAccountsCommand } = require("@aws-sdk/client-billingconductor"); +const { BillingconductorClient, ListBillingGroupsCommand } = require("@aws-sdk/client-billingconductor"); ``` ```ts // ES6+ example -import { BillingconductorClient, AssociateAccountsCommand } from "@aws-sdk/client-billingconductor"; +import { BillingconductorClient, ListBillingGroupsCommand } from "@aws-sdk/client-billingconductor"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new BillingconductorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAccountsCommand(params); +const command = new ListBillingGroupsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.Billingconductor({ region: "REGION" }); // async/await. try { - const data = await client.associateAccounts(params); + const data = await client.listBillingGroups(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .associateAccounts(params) + .listBillingGroups(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.associateAccounts(params, (err, data) => { +client.listBillingGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-braket/README.md b/clients/client-braket/README.md index 91f9fcf8d02b..628e4cd46fa6 100644 --- a/clients/client-braket/README.md +++ b/clients/client-braket/README.md @@ -32,16 +32,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 `BraketClient` and -the commands you need, for example `CancelJobCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { BraketClient, CancelJobCommand } = require("@aws-sdk/client-braket"); +const { BraketClient, ListTagsForResourceCommand } = require("@aws-sdk/client-braket"); ``` ```ts // ES6+ example -import { BraketClient, CancelJobCommand } from "@aws-sdk/client-braket"; +import { BraketClient, ListTagsForResourceCommand } from "@aws-sdk/client-braket"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new BraketClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJobCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.Braket({ region: "REGION" }); // async/await. try { - const data = await client.cancelJob(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .cancelJob(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.cancelJob(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-budgets/README.md b/clients/client-budgets/README.md index 35d64a6ff340..7f414ab73311 100644 --- a/clients/client-budgets/README.md +++ b/clients/client-budgets/README.md @@ -65,16 +65,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 `BudgetsClient` and -the commands you need, for example `CreateBudgetCommand`: +the commands you need, for example `DescribeBudgetsCommand`: ```js // ES5 example -const { BudgetsClient, CreateBudgetCommand } = require("@aws-sdk/client-budgets"); +const { BudgetsClient, DescribeBudgetsCommand } = require("@aws-sdk/client-budgets"); ``` ```ts // ES6+ example -import { BudgetsClient, CreateBudgetCommand } from "@aws-sdk/client-budgets"; +import { BudgetsClient, DescribeBudgetsCommand } from "@aws-sdk/client-budgets"; ``` ### Usage @@ -93,7 +93,7 @@ const client = new BudgetsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateBudgetCommand(params); +const command = new DescribeBudgetsCommand(params); ``` #### Async/await @@ -172,7 +172,7 @@ const client = new AWS.Budgets({ region: "REGION" }); // async/await. try { - const data = await client.createBudget(params); + const data = await client.describeBudgets(params); // process data. } catch (error) { // error handling. @@ -180,7 +180,7 @@ try { // Promises. client - .createBudget(params) + .describeBudgets(params) .then((data) => { // process data. }) @@ -189,7 +189,7 @@ client }); // callbacks. -client.createBudget(params, (err, data) => { +client.describeBudgets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-chime-sdk-identity/README.md b/clients/client-chime-sdk-identity/README.md index eac297877364..2b7e8a6939f6 100644 --- a/clients/client-chime-sdk-identity/README.md +++ b/clients/client-chime-sdk-identity/README.md @@ -26,16 +26,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 `ChimeSDKIdentityClient` and -the commands you need, for example `CreateAppInstanceCommand`: +the commands you need, for example `ListAppInstancesCommand`: ```js // ES5 example -const { ChimeSDKIdentityClient, CreateAppInstanceCommand } = require("@aws-sdk/client-chime-sdk-identity"); +const { ChimeSDKIdentityClient, ListAppInstancesCommand } = require("@aws-sdk/client-chime-sdk-identity"); ``` ```ts // ES6+ example -import { ChimeSDKIdentityClient, CreateAppInstanceCommand } from "@aws-sdk/client-chime-sdk-identity"; +import { ChimeSDKIdentityClient, ListAppInstancesCommand } from "@aws-sdk/client-chime-sdk-identity"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new ChimeSDKIdentityClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAppInstanceCommand(params); +const command = new ListAppInstancesCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.ChimeSDKIdentity({ region: "REGION" }); // async/await. try { - const data = await client.createAppInstance(params); + const data = await client.listAppInstances(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .createAppInstance(params) + .listAppInstances(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.createAppInstance(params, (err, data) => { +client.listAppInstances(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-chime-sdk-media-pipelines/README.md b/clients/client-chime-sdk-media-pipelines/README.md index ffee71d9e174..7a288374a184 100644 --- a/clients/client-chime-sdk-media-pipelines/README.md +++ b/clients/client-chime-sdk-media-pipelines/README.md @@ -24,22 +24,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `ChimeSDKMediaPipelinesClient` and -the commands you need, for example `CreateMediaCapturePipelineCommand`: +the commands you need, for example `ListMediaPipelinesCommand`: ```js // ES5 example const { ChimeSDKMediaPipelinesClient, - CreateMediaCapturePipelineCommand, + ListMediaPipelinesCommand, } = require("@aws-sdk/client-chime-sdk-media-pipelines"); ``` ```ts // ES6+ example -import { - ChimeSDKMediaPipelinesClient, - CreateMediaCapturePipelineCommand, -} from "@aws-sdk/client-chime-sdk-media-pipelines"; +import { ChimeSDKMediaPipelinesClient, ListMediaPipelinesCommand } from "@aws-sdk/client-chime-sdk-media-pipelines"; ``` ### Usage @@ -58,7 +55,7 @@ const client = new ChimeSDKMediaPipelinesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateMediaCapturePipelineCommand(params); +const command = new ListMediaPipelinesCommand(params); ``` #### Async/await @@ -137,7 +134,7 @@ const client = new AWS.ChimeSDKMediaPipelines({ region: "REGION" }); // async/await. try { - const data = await client.createMediaCapturePipeline(params); + const data = await client.listMediaPipelines(params); // process data. } catch (error) { // error handling. @@ -145,7 +142,7 @@ try { // Promises. client - .createMediaCapturePipeline(params) + .listMediaPipelines(params) .then((data) => { // process data. }) @@ -154,7 +151,7 @@ client }); // callbacks. -client.createMediaCapturePipeline(params, (err, data) => { +client.listMediaPipelines(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-chime-sdk-meetings/README.md b/clients/client-chime-sdk-meetings/README.md index da9897a6eb64..6dd2132470c1 100644 --- a/clients/client-chime-sdk-meetings/README.md +++ b/clients/client-chime-sdk-meetings/README.md @@ -25,16 +25,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 `ChimeSDKMeetingsClient` and -the commands you need, for example `BatchCreateAttendeeCommand`: +the commands you need, for example `ListAttendeesCommand`: ```js // ES5 example -const { ChimeSDKMeetingsClient, BatchCreateAttendeeCommand } = require("@aws-sdk/client-chime-sdk-meetings"); +const { ChimeSDKMeetingsClient, ListAttendeesCommand } = require("@aws-sdk/client-chime-sdk-meetings"); ``` ```ts // ES6+ example -import { ChimeSDKMeetingsClient, BatchCreateAttendeeCommand } from "@aws-sdk/client-chime-sdk-meetings"; +import { ChimeSDKMeetingsClient, ListAttendeesCommand } from "@aws-sdk/client-chime-sdk-meetings"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new ChimeSDKMeetingsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCreateAttendeeCommand(params); +const command = new ListAttendeesCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.ChimeSDKMeetings({ region: "REGION" }); // async/await. try { - const data = await client.batchCreateAttendee(params); + const data = await client.listAttendees(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .batchCreateAttendee(params) + .listAttendees(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.batchCreateAttendee(params, (err, data) => { +client.listAttendees(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-chime-sdk-messaging/README.md b/clients/client-chime-sdk-messaging/README.md index b6653ff59f2b..943a6c669da2 100644 --- a/clients/client-chime-sdk-messaging/README.md +++ b/clients/client-chime-sdk-messaging/README.md @@ -26,16 +26,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 `ChimeSDKMessagingClient` and -the commands you need, for example `AssociateChannelFlowCommand`: +the commands you need, for example `ListChannelFlowsCommand`: ```js // ES5 example -const { ChimeSDKMessagingClient, AssociateChannelFlowCommand } = require("@aws-sdk/client-chime-sdk-messaging"); +const { ChimeSDKMessagingClient, ListChannelFlowsCommand } = require("@aws-sdk/client-chime-sdk-messaging"); ``` ```ts // ES6+ example -import { ChimeSDKMessagingClient, AssociateChannelFlowCommand } from "@aws-sdk/client-chime-sdk-messaging"; +import { ChimeSDKMessagingClient, ListChannelFlowsCommand } from "@aws-sdk/client-chime-sdk-messaging"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new ChimeSDKMessagingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateChannelFlowCommand(params); +const command = new ListChannelFlowsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.ChimeSDKMessaging({ region: "REGION" }); // async/await. try { - const data = await client.associateChannelFlow(params); + const data = await client.listChannelFlows(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .associateChannelFlow(params) + .listChannelFlows(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.associateChannelFlow(params, (err, data) => { +client.listChannelFlows(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-chime-sdk-voice/README.md b/clients/client-chime-sdk-voice/README.md index 13923992a81e..6a145e6cf43f 100644 --- a/clients/client-chime-sdk-voice/README.md +++ b/clients/client-chime-sdk-voice/README.md @@ -24,19 +24,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 `ChimeSDKVoiceClient` and -the commands you need, for example `AssociatePhoneNumbersWithVoiceConnectorCommand`: +the commands you need, for example `ListPhoneNumbersCommand`: ```js // ES5 example -const { - ChimeSDKVoiceClient, - AssociatePhoneNumbersWithVoiceConnectorCommand, -} = require("@aws-sdk/client-chime-sdk-voice"); +const { ChimeSDKVoiceClient, ListPhoneNumbersCommand } = require("@aws-sdk/client-chime-sdk-voice"); ``` ```ts // ES6+ example -import { ChimeSDKVoiceClient, AssociatePhoneNumbersWithVoiceConnectorCommand } from "@aws-sdk/client-chime-sdk-voice"; +import { ChimeSDKVoiceClient, ListPhoneNumbersCommand } from "@aws-sdk/client-chime-sdk-voice"; ``` ### Usage @@ -55,7 +52,7 @@ const client = new ChimeSDKVoiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociatePhoneNumbersWithVoiceConnectorCommand(params); +const command = new ListPhoneNumbersCommand(params); ``` #### Async/await @@ -134,7 +131,7 @@ const client = new AWS.ChimeSDKVoice({ region: "REGION" }); // async/await. try { - const data = await client.associatePhoneNumbersWithVoiceConnector(params); + const data = await client.listPhoneNumbers(params); // process data. } catch (error) { // error handling. @@ -142,7 +139,7 @@ try { // Promises. client - .associatePhoneNumbersWithVoiceConnector(params) + .listPhoneNumbers(params) .then((data) => { // process data. }) @@ -151,7 +148,7 @@ client }); // callbacks. -client.associatePhoneNumbersWithVoiceConnector(params, (err, data) => { +client.listPhoneNumbers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-chime/README.md b/clients/client-chime/README.md index 4c37af45a200..2ae9a938b586 100644 --- a/clients/client-chime/README.md +++ b/clients/client-chime/README.md @@ -65,16 +65,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 `ChimeClient` and -the commands you need, for example `AssociatePhoneNumbersWithVoiceConnectorCommand`: +the commands you need, for example `ListAccountsCommand`: ```js // ES5 example -const { ChimeClient, AssociatePhoneNumbersWithVoiceConnectorCommand } = require("@aws-sdk/client-chime"); +const { ChimeClient, ListAccountsCommand } = require("@aws-sdk/client-chime"); ``` ```ts // ES6+ example -import { ChimeClient, AssociatePhoneNumbersWithVoiceConnectorCommand } from "@aws-sdk/client-chime"; +import { ChimeClient, ListAccountsCommand } from "@aws-sdk/client-chime"; ``` ### Usage @@ -93,7 +93,7 @@ const client = new ChimeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociatePhoneNumbersWithVoiceConnectorCommand(params); +const command = new ListAccountsCommand(params); ``` #### Async/await @@ -172,7 +172,7 @@ const client = new AWS.Chime({ region: "REGION" }); // async/await. try { - const data = await client.associatePhoneNumbersWithVoiceConnector(params); + const data = await client.listAccounts(params); // process data. } catch (error) { // error handling. @@ -180,7 +180,7 @@ try { // Promises. client - .associatePhoneNumbersWithVoiceConnector(params) + .listAccounts(params) .then((data) => { // process data. }) @@ -189,7 +189,7 @@ client }); // callbacks. -client.associatePhoneNumbersWithVoiceConnector(params, (err, data) => { +client.listAccounts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cleanrooms/README.md b/clients/client-cleanrooms/README.md index e6324d477a9e..78dcdec67c7a 100644 --- a/clients/client-cleanrooms/README.md +++ b/clients/client-cleanrooms/README.md @@ -31,16 +31,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 `CleanRoomsClient` and -the commands you need, for example `BatchGetCollaborationAnalysisTemplateCommand`: +the commands you need, for example `ListMembersCommand`: ```js // ES5 example -const { CleanRoomsClient, BatchGetCollaborationAnalysisTemplateCommand } = require("@aws-sdk/client-cleanrooms"); +const { CleanRoomsClient, ListMembersCommand } = require("@aws-sdk/client-cleanrooms"); ``` ```ts // ES6+ example -import { CleanRoomsClient, BatchGetCollaborationAnalysisTemplateCommand } from "@aws-sdk/client-cleanrooms"; +import { CleanRoomsClient, ListMembersCommand } from "@aws-sdk/client-cleanrooms"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new CleanRoomsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetCollaborationAnalysisTemplateCommand(params); +const command = new ListMembersCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.CleanRooms({ region: "REGION" }); // async/await. try { - const data = await client.batchGetCollaborationAnalysisTemplate(params); + const data = await client.listMembers(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .batchGetCollaborationAnalysisTemplate(params) + .listMembers(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.batchGetCollaborationAnalysisTemplate(params, (err, data) => { +client.listMembers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloud9/README.md b/clients/client-cloud9/README.md index b477e8ef0dc7..76fccaa0aafa 100644 --- a/clients/client-cloud9/README.md +++ b/clients/client-cloud9/README.md @@ -90,16 +90,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 `Cloud9Client` and -the commands you need, for example `CreateEnvironmentEC2Command`: +the commands you need, for example `ListEnvironmentsCommand`: ```js // ES5 example -const { Cloud9Client, CreateEnvironmentEC2Command } = require("@aws-sdk/client-cloud9"); +const { Cloud9Client, ListEnvironmentsCommand } = require("@aws-sdk/client-cloud9"); ``` ```ts // ES6+ example -import { Cloud9Client, CreateEnvironmentEC2Command } from "@aws-sdk/client-cloud9"; +import { Cloud9Client, ListEnvironmentsCommand } from "@aws-sdk/client-cloud9"; ``` ### Usage @@ -118,7 +118,7 @@ const client = new Cloud9Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateEnvironmentEC2Command(params); +const command = new ListEnvironmentsCommand(params); ``` #### Async/await @@ -197,7 +197,7 @@ const client = new AWS.Cloud9({ region: "REGION" }); // async/await. try { - const data = await client.createEnvironmentEC2(params); + const data = await client.listEnvironments(params); // process data. } catch (error) { // error handling. @@ -205,7 +205,7 @@ try { // Promises. client - .createEnvironmentEC2(params) + .listEnvironments(params) .then((data) => { // process data. }) @@ -214,7 +214,7 @@ client }); // callbacks. -client.createEnvironmentEC2(params, (err, data) => { +client.listEnvironments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudcontrol/README.md b/clients/client-cloudcontrol/README.md index 1ada025b22d0..642691ff157f 100644 --- a/clients/client-cloudcontrol/README.md +++ b/clients/client-cloudcontrol/README.md @@ -24,16 +24,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 `CloudControlClient` and -the commands you need, for example `CancelResourceRequestCommand`: +the commands you need, for example `ListResourceRequestsCommand`: ```js // ES5 example -const { CloudControlClient, CancelResourceRequestCommand } = require("@aws-sdk/client-cloudcontrol"); +const { CloudControlClient, ListResourceRequestsCommand } = require("@aws-sdk/client-cloudcontrol"); ``` ```ts // ES6+ example -import { CloudControlClient, CancelResourceRequestCommand } from "@aws-sdk/client-cloudcontrol"; +import { CloudControlClient, ListResourceRequestsCommand } from "@aws-sdk/client-cloudcontrol"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new CloudControlClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelResourceRequestCommand(params); +const command = new ListResourceRequestsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.CloudControl({ region: "REGION" }); // async/await. try { - const data = await client.cancelResourceRequest(params); + const data = await client.listResourceRequests(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .cancelResourceRequest(params) + .listResourceRequests(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.cancelResourceRequest(params, (err, data) => { +client.listResourceRequests(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-clouddirectory/README.md b/clients/client-clouddirectory/README.md index b921082fb8de..6950151b2e45 100644 --- a/clients/client-clouddirectory/README.md +++ b/clients/client-clouddirectory/README.md @@ -29,16 +29,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 `CloudDirectoryClient` and -the commands you need, for example `AddFacetToObjectCommand`: +the commands you need, for example `ListDirectoriesCommand`: ```js // ES5 example -const { CloudDirectoryClient, AddFacetToObjectCommand } = require("@aws-sdk/client-clouddirectory"); +const { CloudDirectoryClient, ListDirectoriesCommand } = require("@aws-sdk/client-clouddirectory"); ``` ```ts // ES6+ example -import { CloudDirectoryClient, AddFacetToObjectCommand } from "@aws-sdk/client-clouddirectory"; +import { CloudDirectoryClient, ListDirectoriesCommand } from "@aws-sdk/client-clouddirectory"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new CloudDirectoryClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddFacetToObjectCommand(params); +const command = new ListDirectoriesCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.CloudDirectory({ region: "REGION" }); // async/await. try { - const data = await client.addFacetToObject(params); + const data = await client.listDirectories(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .addFacetToObject(params) + .listDirectories(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.addFacetToObject(params, (err, data) => { +client.listDirectories(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudformation/README.md b/clients/client-cloudformation/README.md index e599f532de01..a910f599eb29 100644 --- a/clients/client-cloudformation/README.md +++ b/clients/client-cloudformation/README.md @@ -33,16 +33,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 `CloudFormationClient` and -the commands you need, for example `ActivateOrganizationsAccessCommand`: +the commands you need, for example `ListExportsCommand`: ```js // ES5 example -const { CloudFormationClient, ActivateOrganizationsAccessCommand } = require("@aws-sdk/client-cloudformation"); +const { CloudFormationClient, ListExportsCommand } = require("@aws-sdk/client-cloudformation"); ``` ```ts // ES6+ example -import { CloudFormationClient, ActivateOrganizationsAccessCommand } from "@aws-sdk/client-cloudformation"; +import { CloudFormationClient, ListExportsCommand } from "@aws-sdk/client-cloudformation"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new CloudFormationClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateOrganizationsAccessCommand(params); +const command = new ListExportsCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.CloudFormation({ region: "REGION" }); // async/await. try { - const data = await client.activateOrganizationsAccess(params); + const data = await client.listExports(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .activateOrganizationsAccess(params) + .listExports(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.activateOrganizationsAccess(params, (err, data) => { +client.listExports(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudfront/README.md b/clients/client-cloudfront/README.md index a2a9bc612f5f..d5c4989959ae 100644 --- a/clients/client-cloudfront/README.md +++ b/clients/client-cloudfront/README.md @@ -28,16 +28,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 `CloudFrontClient` and -the commands you need, for example `AssociateAliasCommand`: +the commands you need, for example `ListCachePoliciesCommand`: ```js // ES5 example -const { CloudFrontClient, AssociateAliasCommand } = require("@aws-sdk/client-cloudfront"); +const { CloudFrontClient, ListCachePoliciesCommand } = require("@aws-sdk/client-cloudfront"); ``` ```ts // ES6+ example -import { CloudFrontClient, AssociateAliasCommand } from "@aws-sdk/client-cloudfront"; +import { CloudFrontClient, ListCachePoliciesCommand } from "@aws-sdk/client-cloudfront"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new CloudFrontClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAliasCommand(params); +const command = new ListCachePoliciesCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.CloudFront({ region: "REGION" }); // async/await. try { - const data = await client.associateAlias(params); + const data = await client.listCachePolicies(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .associateAlias(params) + .listCachePolicies(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.associateAlias(params, (err, data) => { +client.listCachePolicies(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudhsm-v2/README.md b/clients/client-cloudhsm-v2/README.md index d4b1a1780c62..fd2e3176115d 100644 --- a/clients/client-cloudhsm-v2/README.md +++ b/clients/client-cloudhsm-v2/README.md @@ -24,16 +24,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 `CloudHSMV2Client` and -the commands you need, for example `CopyBackupToRegionCommand`: +the commands you need, for example `ListTagsCommand`: ```js // ES5 example -const { CloudHSMV2Client, CopyBackupToRegionCommand } = require("@aws-sdk/client-cloudhsm-v2"); +const { CloudHSMV2Client, ListTagsCommand } = require("@aws-sdk/client-cloudhsm-v2"); ``` ```ts // ES6+ example -import { CloudHSMV2Client, CopyBackupToRegionCommand } from "@aws-sdk/client-cloudhsm-v2"; +import { CloudHSMV2Client, ListTagsCommand } from "@aws-sdk/client-cloudhsm-v2"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new CloudHSMV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CopyBackupToRegionCommand(params); +const command = new ListTagsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.CloudHSMV2({ region: "REGION" }); // async/await. try { - const data = await client.copyBackupToRegion(params); + const data = await client.listTags(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .copyBackupToRegion(params) + .listTags(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.copyBackupToRegion(params, (err, data) => { +client.listTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudhsm/README.md b/clients/client-cloudhsm/README.md index 740a3bee7e37..fa8beba7ce8f 100644 --- a/clients/client-cloudhsm/README.md +++ b/clients/client-cloudhsm/README.md @@ -34,16 +34,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 `CloudHSMClient` and -the commands you need, for example `AddTagsToResourceCommand`: +the commands you need, for example `ListHapgsCommand`: ```js // ES5 example -const { CloudHSMClient, AddTagsToResourceCommand } = require("@aws-sdk/client-cloudhsm"); +const { CloudHSMClient, ListHapgsCommand } = require("@aws-sdk/client-cloudhsm"); ``` ```ts // ES6+ example -import { CloudHSMClient, AddTagsToResourceCommand } from "@aws-sdk/client-cloudhsm"; +import { CloudHSMClient, ListHapgsCommand } from "@aws-sdk/client-cloudhsm"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new CloudHSMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToResourceCommand(params); +const command = new ListHapgsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.CloudHSM({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToResource(params); + const data = await client.listHapgs(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .addTagsToResource(params) + .listHapgs(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.addTagsToResource(params, (err, data) => { +client.listHapgs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudsearch/README.md b/clients/client-cloudsearch/README.md index d2e72c177e9d..c416ac7c2d35 100644 --- a/clients/client-cloudsearch/README.md +++ b/clients/client-cloudsearch/README.md @@ -30,16 +30,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 `CloudSearchClient` and -the commands you need, for example `BuildSuggestersCommand`: +the commands you need, for example `ListDomainNamesCommand`: ```js // ES5 example -const { CloudSearchClient, BuildSuggestersCommand } = require("@aws-sdk/client-cloudsearch"); +const { CloudSearchClient, ListDomainNamesCommand } = require("@aws-sdk/client-cloudsearch"); ``` ```ts // ES6+ example -import { CloudSearchClient, BuildSuggestersCommand } from "@aws-sdk/client-cloudsearch"; +import { CloudSearchClient, ListDomainNamesCommand } from "@aws-sdk/client-cloudsearch"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new CloudSearchClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BuildSuggestersCommand(params); +const command = new ListDomainNamesCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.CloudSearch({ region: "REGION" }); // async/await. try { - const data = await client.buildSuggesters(params); + const data = await client.listDomainNames(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .buildSuggesters(params) + .listDomainNames(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.buildSuggesters(params, (err, data) => { +client.listDomainNames(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudtrail/README.md b/clients/client-cloudtrail/README.md index 36cee83d32ce..faba905862fc 100644 --- a/clients/client-cloudtrail/README.md +++ b/clients/client-cloudtrail/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 `CloudTrailClient` and -the commands you need, for example `AddTagsCommand`: +the commands you need, for example `ListImportsCommand`: ```js // ES5 example -const { CloudTrailClient, AddTagsCommand } = require("@aws-sdk/client-cloudtrail"); +const { CloudTrailClient, ListImportsCommand } = require("@aws-sdk/client-cloudtrail"); ``` ```ts // ES6+ example -import { CloudTrailClient, AddTagsCommand } from "@aws-sdk/client-cloudtrail"; +import { CloudTrailClient, ListImportsCommand } from "@aws-sdk/client-cloudtrail"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new CloudTrailClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsCommand(params); +const command = new ListImportsCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.CloudTrail({ region: "REGION" }); // async/await. try { - const data = await client.addTags(params); + const data = await client.listImports(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .addTags(params) + .listImports(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.addTags(params, (err, data) => { +client.listImports(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudwatch-events/README.md b/clients/client-cloudwatch-events/README.md index 54b4df758d72..b0e9be940db6 100644 --- a/clients/client-cloudwatch-events/README.md +++ b/clients/client-cloudwatch-events/README.md @@ -43,16 +43,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 `CloudWatchEventsClient` and -the commands you need, for example `ActivateEventSourceCommand`: +the commands you need, for example `ListReplaysCommand`: ```js // ES5 example -const { CloudWatchEventsClient, ActivateEventSourceCommand } = require("@aws-sdk/client-cloudwatch-events"); +const { CloudWatchEventsClient, ListReplaysCommand } = require("@aws-sdk/client-cloudwatch-events"); ``` ```ts // ES6+ example -import { CloudWatchEventsClient, ActivateEventSourceCommand } from "@aws-sdk/client-cloudwatch-events"; +import { CloudWatchEventsClient, ListReplaysCommand } from "@aws-sdk/client-cloudwatch-events"; ``` ### Usage @@ -71,7 +71,7 @@ const client = new CloudWatchEventsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateEventSourceCommand(params); +const command = new ListReplaysCommand(params); ``` #### Async/await @@ -150,7 +150,7 @@ const client = new AWS.CloudWatchEvents({ region: "REGION" }); // async/await. try { - const data = await client.activateEventSource(params); + const data = await client.listReplays(params); // process data. } catch (error) { // error handling. @@ -158,7 +158,7 @@ try { // Promises. client - .activateEventSource(params) + .listReplays(params) .then((data) => { // process data. }) @@ -167,7 +167,7 @@ client }); // callbacks. -client.activateEventSource(params, (err, data) => { +client.listReplays(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudwatch-logs/README.md b/clients/client-cloudwatch-logs/README.md index 88e9c0bbe2ac..35f6a2b53b66 100644 --- a/clients/client-cloudwatch-logs/README.md +++ b/clients/client-cloudwatch-logs/README.md @@ -57,16 +57,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 `CloudWatchLogsClient` and -the commands you need, for example `AssociateKmsKeyCommand`: +the commands you need, for example `ListTagsLogGroupCommand`: ```js // ES5 example -const { CloudWatchLogsClient, AssociateKmsKeyCommand } = require("@aws-sdk/client-cloudwatch-logs"); +const { CloudWatchLogsClient, ListTagsLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); ``` ```ts // ES6+ example -import { CloudWatchLogsClient, AssociateKmsKeyCommand } from "@aws-sdk/client-cloudwatch-logs"; +import { CloudWatchLogsClient, ListTagsLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; ``` ### Usage @@ -85,7 +85,7 @@ const client = new CloudWatchLogsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateKmsKeyCommand(params); +const command = new ListTagsLogGroupCommand(params); ``` #### Async/await @@ -164,7 +164,7 @@ const client = new AWS.CloudWatchLogs({ region: "REGION" }); // async/await. try { - const data = await client.associateKmsKey(params); + const data = await client.listTagsLogGroup(params); // process data. } catch (error) { // error handling. @@ -172,7 +172,7 @@ try { // Promises. client - .associateKmsKey(params) + .listTagsLogGroup(params) .then((data) => { // process data. }) @@ -181,7 +181,7 @@ client }); // callbacks. -client.associateKmsKey(params, (err, data) => { +client.listTagsLogGroup(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cloudwatch/README.md b/clients/client-cloudwatch/README.md index a6627e4d7e8f..c4c4054682aa 100644 --- a/clients/client-cloudwatch/README.md +++ b/clients/client-cloudwatch/README.md @@ -35,16 +35,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 `CloudWatchClient` and -the commands you need, for example `DeleteAlarmsCommand`: +the commands you need, for example `ListMetricsCommand`: ```js // ES5 example -const { CloudWatchClient, DeleteAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); +const { CloudWatchClient, ListMetricsCommand } = require("@aws-sdk/client-cloudwatch"); ``` ```ts // ES6+ example -import { CloudWatchClient, DeleteAlarmsCommand } from "@aws-sdk/client-cloudwatch"; +import { CloudWatchClient, ListMetricsCommand } from "@aws-sdk/client-cloudwatch"; ``` ### Usage @@ -63,7 +63,7 @@ const client = new CloudWatchClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteAlarmsCommand(params); +const command = new ListMetricsCommand(params); ``` #### Async/await @@ -142,7 +142,7 @@ const client = new AWS.CloudWatch({ region: "REGION" }); // async/await. try { - const data = await client.deleteAlarms(params); + const data = await client.listMetrics(params); // process data. } catch (error) { // error handling. @@ -150,7 +150,7 @@ try { // Promises. client - .deleteAlarms(params) + .listMetrics(params) .then((data) => { // process data. }) @@ -159,7 +159,7 @@ client }); // callbacks. -client.deleteAlarms(params, (err, data) => { +client.listMetrics(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codeartifact/README.md b/clients/client-codeartifact/README.md index 06e225a25f03..87f11ec606c9 100644 --- a/clients/client-codeartifact/README.md +++ b/clients/client-codeartifact/README.md @@ -296,16 +296,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 `CodeartifactClient` and -the commands you need, for example `AssociateExternalConnectionCommand`: +the commands you need, for example `ListDomainsCommand`: ```js // ES5 example -const { CodeartifactClient, AssociateExternalConnectionCommand } = require("@aws-sdk/client-codeartifact"); +const { CodeartifactClient, ListDomainsCommand } = require("@aws-sdk/client-codeartifact"); ``` ```ts // ES6+ example -import { CodeartifactClient, AssociateExternalConnectionCommand } from "@aws-sdk/client-codeartifact"; +import { CodeartifactClient, ListDomainsCommand } from "@aws-sdk/client-codeartifact"; ``` ### Usage @@ -324,7 +324,7 @@ const client = new CodeartifactClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateExternalConnectionCommand(params); +const command = new ListDomainsCommand(params); ``` #### Async/await @@ -403,7 +403,7 @@ const client = new AWS.Codeartifact({ region: "REGION" }); // async/await. try { - const data = await client.associateExternalConnection(params); + const data = await client.listDomains(params); // process data. } catch (error) { // error handling. @@ -411,7 +411,7 @@ try { // Promises. client - .associateExternalConnection(params) + .listDomains(params) .then((data) => { // process data. }) @@ -420,7 +420,7 @@ client }); // callbacks. -client.associateExternalConnection(params, (err, data) => { +client.listDomains(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codebuild/README.md b/clients/client-codebuild/README.md index 4b3795066f34..7638540a3bb0 100644 --- a/clients/client-codebuild/README.md +++ b/clients/client-codebuild/README.md @@ -34,16 +34,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 `CodeBuildClient` and -the commands you need, for example `BatchDeleteBuildsCommand`: +the commands you need, for example `ListBuildsCommand`: ```js // ES5 example -const { CodeBuildClient, BatchDeleteBuildsCommand } = require("@aws-sdk/client-codebuild"); +const { CodeBuildClient, ListBuildsCommand } = require("@aws-sdk/client-codebuild"); ``` ```ts // ES6+ example -import { CodeBuildClient, BatchDeleteBuildsCommand } from "@aws-sdk/client-codebuild"; +import { CodeBuildClient, ListBuildsCommand } from "@aws-sdk/client-codebuild"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new CodeBuildClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchDeleteBuildsCommand(params); +const command = new ListBuildsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.CodeBuild({ region: "REGION" }); // async/await. try { - const data = await client.batchDeleteBuilds(params); + const data = await client.listBuilds(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .batchDeleteBuilds(params) + .listBuilds(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.batchDeleteBuilds(params, (err, data) => { +client.listBuilds(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codecatalyst/README.md b/clients/client-codecatalyst/README.md index ce5fbbb3cebe..b72f08bff927 100644 --- a/clients/client-codecatalyst/README.md +++ b/clients/client-codecatalyst/README.md @@ -174,16 +174,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 `CodeCatalystClient` and -the commands you need, for example `CreateAccessTokenCommand`: +the commands you need, for example `ListSpacesCommand`: ```js // ES5 example -const { CodeCatalystClient, CreateAccessTokenCommand } = require("@aws-sdk/client-codecatalyst"); +const { CodeCatalystClient, ListSpacesCommand } = require("@aws-sdk/client-codecatalyst"); ``` ```ts // ES6+ example -import { CodeCatalystClient, CreateAccessTokenCommand } from "@aws-sdk/client-codecatalyst"; +import { CodeCatalystClient, ListSpacesCommand } from "@aws-sdk/client-codecatalyst"; ``` ### Usage @@ -202,7 +202,7 @@ const client = new CodeCatalystClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAccessTokenCommand(params); +const command = new ListSpacesCommand(params); ``` #### Async/await @@ -281,7 +281,7 @@ const client = new AWS.CodeCatalyst({ region: "REGION" }); // async/await. try { - const data = await client.createAccessToken(params); + const data = await client.listSpaces(params); // process data. } catch (error) { // error handling. @@ -289,7 +289,7 @@ try { // Promises. client - .createAccessToken(params) + .listSpaces(params) .then((data) => { // process data. }) @@ -298,7 +298,7 @@ client }); // callbacks. -client.createAccessToken(params, (err, data) => { +client.listSpaces(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codecommit/README.md b/clients/client-codecommit/README.md index e07f10777af6..bf14adcb5da7 100644 --- a/clients/client-codecommit/README.md +++ b/clients/client-codecommit/README.md @@ -404,16 +404,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 `CodeCommitClient` and -the commands you need, for example `AssociateApprovalRuleTemplateWithRepositoryCommand`: +the commands you need, for example `ListRepositoriesCommand`: ```js // ES5 example -const { CodeCommitClient, AssociateApprovalRuleTemplateWithRepositoryCommand } = require("@aws-sdk/client-codecommit"); +const { CodeCommitClient, ListRepositoriesCommand } = require("@aws-sdk/client-codecommit"); ``` ```ts // ES6+ example -import { CodeCommitClient, AssociateApprovalRuleTemplateWithRepositoryCommand } from "@aws-sdk/client-codecommit"; +import { CodeCommitClient, ListRepositoriesCommand } from "@aws-sdk/client-codecommit"; ``` ### Usage @@ -432,7 +432,7 @@ const client = new CodeCommitClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateApprovalRuleTemplateWithRepositoryCommand(params); +const command = new ListRepositoriesCommand(params); ``` #### Async/await @@ -511,7 +511,7 @@ const client = new AWS.CodeCommit({ region: "REGION" }); // async/await. try { - const data = await client.associateApprovalRuleTemplateWithRepository(params); + const data = await client.listRepositories(params); // process data. } catch (error) { // error handling. @@ -519,7 +519,7 @@ try { // Promises. client - .associateApprovalRuleTemplateWithRepository(params) + .listRepositories(params) .then((data) => { // process data. }) @@ -528,7 +528,7 @@ client }); // callbacks. -client.associateApprovalRuleTemplateWithRepository(params, (err, data) => { +client.listRepositories(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codedeploy/README.md b/clients/client-codedeploy/README.md index 2cae7a913b6f..2b8f73437e99 100644 --- a/clients/client-codedeploy/README.md +++ b/clients/client-codedeploy/README.md @@ -115,16 +115,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 `CodeDeployClient` and -the commands you need, for example `AddTagsToOnPremisesInstancesCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { CodeDeployClient, AddTagsToOnPremisesInstancesCommand } = require("@aws-sdk/client-codedeploy"); +const { CodeDeployClient, ListApplicationsCommand } = require("@aws-sdk/client-codedeploy"); ``` ```ts // ES6+ example -import { CodeDeployClient, AddTagsToOnPremisesInstancesCommand } from "@aws-sdk/client-codedeploy"; +import { CodeDeployClient, ListApplicationsCommand } from "@aws-sdk/client-codedeploy"; ``` ### Usage @@ -143,7 +143,7 @@ const client = new CodeDeployClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToOnPremisesInstancesCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -222,7 +222,7 @@ const client = new AWS.CodeDeploy({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToOnPremisesInstances(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -230,7 +230,7 @@ try { // Promises. client - .addTagsToOnPremisesInstances(params) + .listApplications(params) .then((data) => { // process data. }) @@ -239,7 +239,7 @@ client }); // callbacks. -client.addTagsToOnPremisesInstances(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codeguru-reviewer/README.md b/clients/client-codeguru-reviewer/README.md index 14fe62dfbb3b..977729f36657 100644 --- a/clients/client-codeguru-reviewer/README.md +++ b/clients/client-codeguru-reviewer/README.md @@ -37,16 +37,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 `CodeGuruReviewerClient` and -the commands you need, for example `AssociateRepositoryCommand`: +the commands you need, for example `ListCodeReviewsCommand`: ```js // ES5 example -const { CodeGuruReviewerClient, AssociateRepositoryCommand } = require("@aws-sdk/client-codeguru-reviewer"); +const { CodeGuruReviewerClient, ListCodeReviewsCommand } = require("@aws-sdk/client-codeguru-reviewer"); ``` ```ts // ES6+ example -import { CodeGuruReviewerClient, AssociateRepositoryCommand } from "@aws-sdk/client-codeguru-reviewer"; +import { CodeGuruReviewerClient, ListCodeReviewsCommand } from "@aws-sdk/client-codeguru-reviewer"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new CodeGuruReviewerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateRepositoryCommand(params); +const command = new ListCodeReviewsCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.CodeGuruReviewer({ region: "REGION" }); // async/await. try { - const data = await client.associateRepository(params); + const data = await client.listCodeReviews(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .associateRepository(params) + .listCodeReviews(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.associateRepository(params, (err, data) => { +client.listCodeReviews(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codeguru-security/README.md b/clients/client-codeguru-security/README.md index d8ba7b61e91c..3775e0be1f15 100644 --- a/clients/client-codeguru-security/README.md +++ b/clients/client-codeguru-security/README.md @@ -34,16 +34,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 `CodeGuruSecurityClient` and -the commands you need, for example `BatchGetFindingsCommand`: +the commands you need, for example `ListScansCommand`: ```js // ES5 example -const { CodeGuruSecurityClient, BatchGetFindingsCommand } = require("@aws-sdk/client-codeguru-security"); +const { CodeGuruSecurityClient, ListScansCommand } = require("@aws-sdk/client-codeguru-security"); ``` ```ts // ES6+ example -import { CodeGuruSecurityClient, BatchGetFindingsCommand } from "@aws-sdk/client-codeguru-security"; +import { CodeGuruSecurityClient, ListScansCommand } from "@aws-sdk/client-codeguru-security"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new CodeGuruSecurityClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetFindingsCommand(params); +const command = new ListScansCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.CodeGuruSecurity({ region: "REGION" }); // async/await. try { - const data = await client.batchGetFindings(params); + const data = await client.listScans(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .batchGetFindings(params) + .listScans(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.batchGetFindings(params, (err, data) => { +client.listScans(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codeguruprofiler/README.md b/clients/client-codeguruprofiler/README.md index c05f6c7ae143..4b166863b20e 100644 --- a/clients/client-codeguruprofiler/README.md +++ b/clients/client-codeguruprofiler/README.md @@ -45,16 +45,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 `CodeGuruProfilerClient` and -the commands you need, for example `AddNotificationChannelsCommand`: +the commands you need, for example `ListProfilingGroupsCommand`: ```js // ES5 example -const { CodeGuruProfilerClient, AddNotificationChannelsCommand } = require("@aws-sdk/client-codeguruprofiler"); +const { CodeGuruProfilerClient, ListProfilingGroupsCommand } = require("@aws-sdk/client-codeguruprofiler"); ``` ```ts // ES6+ example -import { CodeGuruProfilerClient, AddNotificationChannelsCommand } from "@aws-sdk/client-codeguruprofiler"; +import { CodeGuruProfilerClient, ListProfilingGroupsCommand } from "@aws-sdk/client-codeguruprofiler"; ``` ### Usage @@ -73,7 +73,7 @@ const client = new CodeGuruProfilerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddNotificationChannelsCommand(params); +const command = new ListProfilingGroupsCommand(params); ``` #### Async/await @@ -152,7 +152,7 @@ const client = new AWS.CodeGuruProfiler({ region: "REGION" }); // async/await. try { - const data = await client.addNotificationChannels(params); + const data = await client.listProfilingGroups(params); // process data. } catch (error) { // error handling. @@ -160,7 +160,7 @@ try { // Promises. client - .addNotificationChannels(params) + .listProfilingGroups(params) .then((data) => { // process data. }) @@ -169,7 +169,7 @@ client }); // callbacks. -client.addNotificationChannels(params, (err, data) => { +client.listProfilingGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codepipeline/README.md b/clients/client-codepipeline/README.md index 80c36c202160..482a13e1850b 100644 --- a/clients/client-codepipeline/README.md +++ b/clients/client-codepipeline/README.md @@ -217,16 +217,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 `CodePipelineClient` and -the commands you need, for example `AcknowledgeJobCommand`: +the commands you need, for example `ListActionTypesCommand`: ```js // ES5 example -const { CodePipelineClient, AcknowledgeJobCommand } = require("@aws-sdk/client-codepipeline"); +const { CodePipelineClient, ListActionTypesCommand } = require("@aws-sdk/client-codepipeline"); ``` ```ts // ES6+ example -import { CodePipelineClient, AcknowledgeJobCommand } from "@aws-sdk/client-codepipeline"; +import { CodePipelineClient, ListActionTypesCommand } from "@aws-sdk/client-codepipeline"; ``` ### Usage @@ -245,7 +245,7 @@ const client = new CodePipelineClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcknowledgeJobCommand(params); +const command = new ListActionTypesCommand(params); ``` #### Async/await @@ -324,7 +324,7 @@ const client = new AWS.CodePipeline({ region: "REGION" }); // async/await. try { - const data = await client.acknowledgeJob(params); + const data = await client.listActionTypes(params); // process data. } catch (error) { // error handling. @@ -332,7 +332,7 @@ try { // Promises. client - .acknowledgeJob(params) + .listActionTypes(params) .then((data) => { // process data. }) @@ -341,7 +341,7 @@ client }); // callbacks. -client.acknowledgeJob(params, (err, data) => { +client.listActionTypes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codestar-connections/README.md b/clients/client-codestar-connections/README.md index 1c81c5cb6acf..ec3e1cfea282 100644 --- a/clients/client-codestar-connections/README.md +++ b/clients/client-codestar-connections/README.md @@ -103,16 +103,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 `CodeStarConnectionsClient` and -the commands you need, for example `CreateConnectionCommand`: +the commands you need, for example `ListHostsCommand`: ```js // ES5 example -const { CodeStarConnectionsClient, CreateConnectionCommand } = require("@aws-sdk/client-codestar-connections"); +const { CodeStarConnectionsClient, ListHostsCommand } = require("@aws-sdk/client-codestar-connections"); ``` ```ts // ES6+ example -import { CodeStarConnectionsClient, CreateConnectionCommand } from "@aws-sdk/client-codestar-connections"; +import { CodeStarConnectionsClient, ListHostsCommand } from "@aws-sdk/client-codestar-connections"; ``` ### Usage @@ -131,7 +131,7 @@ const client = new CodeStarConnectionsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateConnectionCommand(params); +const command = new ListHostsCommand(params); ``` #### Async/await @@ -210,7 +210,7 @@ const client = new AWS.CodeStarConnections({ region: "REGION" }); // async/await. try { - const data = await client.createConnection(params); + const data = await client.listHosts(params); // process data. } catch (error) { // error handling. @@ -218,7 +218,7 @@ try { // Promises. client - .createConnection(params) + .listHosts(params) .then((data) => { // process data. }) @@ -227,7 +227,7 @@ client }); // callbacks. -client.createConnection(params, (err, data) => { +client.listHosts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codestar-notifications/README.md b/clients/client-codestar-notifications/README.md index be3e1e1f333a..0cee4b6a4c48 100644 --- a/clients/client-codestar-notifications/README.md +++ b/clients/client-codestar-notifications/README.md @@ -100,19 +100,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 `CodestarNotificationsClient` and -the commands you need, for example `CreateNotificationRuleCommand`: +the commands you need, for example `ListTargetsCommand`: ```js // ES5 example -const { - CodestarNotificationsClient, - CreateNotificationRuleCommand, -} = require("@aws-sdk/client-codestar-notifications"); +const { CodestarNotificationsClient, ListTargetsCommand } = require("@aws-sdk/client-codestar-notifications"); ``` ```ts // ES6+ example -import { CodestarNotificationsClient, CreateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; +import { CodestarNotificationsClient, ListTargetsCommand } from "@aws-sdk/client-codestar-notifications"; ``` ### Usage @@ -131,7 +128,7 @@ const client = new CodestarNotificationsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateNotificationRuleCommand(params); +const command = new ListTargetsCommand(params); ``` #### Async/await @@ -210,7 +207,7 @@ const client = new AWS.CodestarNotifications({ region: "REGION" }); // async/await. try { - const data = await client.createNotificationRule(params); + const data = await client.listTargets(params); // process data. } catch (error) { // error handling. @@ -218,7 +215,7 @@ try { // Promises. client - .createNotificationRule(params) + .listTargets(params) .then((data) => { // process data. }) @@ -227,7 +224,7 @@ client }); // callbacks. -client.createNotificationRule(params, (err, data) => { +client.listTargets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-codestar/README.md b/clients/client-codestar/README.md index 31b5f119f811..dae32d88bc1e 100644 --- a/clients/client-codestar/README.md +++ b/clients/client-codestar/README.md @@ -113,16 +113,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 `CodeStarClient` and -the commands you need, for example `AssociateTeamMemberCommand`: +the commands you need, for example `ListProjectsCommand`: ```js // ES5 example -const { CodeStarClient, AssociateTeamMemberCommand } = require("@aws-sdk/client-codestar"); +const { CodeStarClient, ListProjectsCommand } = require("@aws-sdk/client-codestar"); ``` ```ts // ES6+ example -import { CodeStarClient, AssociateTeamMemberCommand } from "@aws-sdk/client-codestar"; +import { CodeStarClient, ListProjectsCommand } from "@aws-sdk/client-codestar"; ``` ### Usage @@ -141,7 +141,7 @@ const client = new CodeStarClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateTeamMemberCommand(params); +const command = new ListProjectsCommand(params); ``` #### Async/await @@ -220,7 +220,7 @@ const client = new AWS.CodeStar({ region: "REGION" }); // async/await. try { - const data = await client.associateTeamMember(params); + const data = await client.listProjects(params); // process data. } catch (error) { // error handling. @@ -228,7 +228,7 @@ try { // Promises. client - .associateTeamMember(params) + .listProjects(params) .then((data) => { // process data. }) @@ -237,7 +237,7 @@ client }); // callbacks. -client.associateTeamMember(params, (err, data) => { +client.listProjects(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cognito-identity-provider/README.md b/clients/client-cognito-identity-provider/README.md index a1834754e739..b5b962dcf47a 100644 --- a/clients/client-cognito-identity-provider/README.md +++ b/clients/client-cognito-identity-provider/README.md @@ -89,19 +89,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 `CognitoIdentityProviderClient` and -the commands you need, for example `AddCustomAttributesCommand`: +the commands you need, for example `ListDevicesCommand`: ```js // ES5 example -const { - CognitoIdentityProviderClient, - AddCustomAttributesCommand, -} = require("@aws-sdk/client-cognito-identity-provider"); +const { CognitoIdentityProviderClient, ListDevicesCommand } = require("@aws-sdk/client-cognito-identity-provider"); ``` ```ts // ES6+ example -import { CognitoIdentityProviderClient, AddCustomAttributesCommand } from "@aws-sdk/client-cognito-identity-provider"; +import { CognitoIdentityProviderClient, ListDevicesCommand } from "@aws-sdk/client-cognito-identity-provider"; ``` ### Usage @@ -120,7 +117,7 @@ const client = new CognitoIdentityProviderClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddCustomAttributesCommand(params); +const command = new ListDevicesCommand(params); ``` #### Async/await @@ -199,7 +196,7 @@ const client = new AWS.CognitoIdentityProvider({ region: "REGION" }); // async/await. try { - const data = await client.addCustomAttributes(params); + const data = await client.listDevices(params); // process data. } catch (error) { // error handling. @@ -207,7 +204,7 @@ try { // Promises. client - .addCustomAttributes(params) + .listDevices(params) .then((data) => { // process data. }) @@ -216,7 +213,7 @@ client }); // callbacks. -client.addCustomAttributes(params, (err, data) => { +client.listDevices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cognito-identity/README.md b/clients/client-cognito-identity/README.md index 3e66e8358ffb..aee5cfa8cc55 100644 --- a/clients/client-cognito-identity/README.md +++ b/clients/client-cognito-identity/README.md @@ -37,16 +37,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 `CognitoIdentityClient` and -the commands you need, for example `CreateIdentityPoolCommand`: +the commands you need, for example `ListIdentityPoolsCommand`: ```js // ES5 example -const { CognitoIdentityClient, CreateIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); +const { CognitoIdentityClient, ListIdentityPoolsCommand } = require("@aws-sdk/client-cognito-identity"); ``` ```ts // ES6+ example -import { CognitoIdentityClient, CreateIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; +import { CognitoIdentityClient, ListIdentityPoolsCommand } from "@aws-sdk/client-cognito-identity"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new CognitoIdentityClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateIdentityPoolCommand(params); +const command = new ListIdentityPoolsCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.CognitoIdentity({ region: "REGION" }); // async/await. try { - const data = await client.createIdentityPool(params); + const data = await client.listIdentityPools(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .createIdentityPool(params) + .listIdentityPools(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.createIdentityPool(params, (err, data) => { +client.listIdentityPools(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cognito-sync/README.md b/clients/client-cognito-sync/README.md index f2d4bd48bfe5..e6728754c1f1 100644 --- a/clients/client-cognito-sync/README.md +++ b/clients/client-cognito-sync/README.md @@ -36,16 +36,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 `CognitoSyncClient` and -the commands you need, for example `BulkPublishCommand`: +the commands you need, for example `ListIdentityPoolUsageCommand`: ```js // ES5 example -const { CognitoSyncClient, BulkPublishCommand } = require("@aws-sdk/client-cognito-sync"); +const { CognitoSyncClient, ListIdentityPoolUsageCommand } = require("@aws-sdk/client-cognito-sync"); ``` ```ts // ES6+ example -import { CognitoSyncClient, BulkPublishCommand } from "@aws-sdk/client-cognito-sync"; +import { CognitoSyncClient, ListIdentityPoolUsageCommand } from "@aws-sdk/client-cognito-sync"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new CognitoSyncClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BulkPublishCommand(params); +const command = new ListIdentityPoolUsageCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.CognitoSync({ region: "REGION" }); // async/await. try { - const data = await client.bulkPublish(params); + const data = await client.listIdentityPoolUsage(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .bulkPublish(params) + .listIdentityPoolUsage(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.bulkPublish(params, (err, data) => { +client.listIdentityPoolUsage(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-comprehend/README.md b/clients/client-comprehend/README.md index 7c545aee52ec..b498eb5980dc 100644 --- a/clients/client-comprehend/README.md +++ b/clients/client-comprehend/README.md @@ -26,16 +26,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 `ComprehendClient` and -the commands you need, for example `BatchDetectDominantLanguageCommand`: +the commands you need, for example `ListDatasetsCommand`: ```js // ES5 example -const { ComprehendClient, BatchDetectDominantLanguageCommand } = require("@aws-sdk/client-comprehend"); +const { ComprehendClient, ListDatasetsCommand } = require("@aws-sdk/client-comprehend"); ``` ```ts // ES6+ example -import { ComprehendClient, BatchDetectDominantLanguageCommand } from "@aws-sdk/client-comprehend"; +import { ComprehendClient, ListDatasetsCommand } from "@aws-sdk/client-comprehend"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new ComprehendClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchDetectDominantLanguageCommand(params); +const command = new ListDatasetsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.Comprehend({ region: "REGION" }); // async/await. try { - const data = await client.batchDetectDominantLanguage(params); + const data = await client.listDatasets(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .batchDetectDominantLanguage(params) + .listDatasets(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.batchDetectDominantLanguage(params, (err, data) => { +client.listDatasets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-comprehendmedical/README.md b/clients/client-comprehendmedical/README.md index 622ffaf85d29..90963444c688 100644 --- a/clients/client-comprehendmedical/README.md +++ b/clients/client-comprehendmedical/README.md @@ -23,16 +23,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 `ComprehendMedicalClient` and -the commands you need, for example `DescribeEntitiesDetectionV2JobCommand`: +the commands you need, for example `ListPHIDetectionJobsCommand`: ```js // ES5 example -const { ComprehendMedicalClient, DescribeEntitiesDetectionV2JobCommand } = require("@aws-sdk/client-comprehendmedical"); +const { ComprehendMedicalClient, ListPHIDetectionJobsCommand } = require("@aws-sdk/client-comprehendmedical"); ``` ```ts // ES6+ example -import { ComprehendMedicalClient, DescribeEntitiesDetectionV2JobCommand } from "@aws-sdk/client-comprehendmedical"; +import { ComprehendMedicalClient, ListPHIDetectionJobsCommand } from "@aws-sdk/client-comprehendmedical"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new ComprehendMedicalClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeEntitiesDetectionV2JobCommand(params); +const command = new ListPHIDetectionJobsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.ComprehendMedical({ region: "REGION" }); // async/await. try { - const data = await client.describeEntitiesDetectionV2Job(params); + const data = await client.listPHIDetectionJobs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .describeEntitiesDetectionV2Job(params) + .listPHIDetectionJobs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.describeEntitiesDetectionV2Job(params, (err, data) => { +client.listPHIDetectionJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-compute-optimizer/README.md b/clients/client-compute-optimizer/README.md index 35bc424a4ab2..236d0f652021 100644 --- a/clients/client-compute-optimizer/README.md +++ b/clients/client-compute-optimizer/README.md @@ -34,16 +34,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 `ComputeOptimizerClient` and -the commands you need, for example `DeleteRecommendationPreferencesCommand`: +the commands you need, for example `GetEnrollmentStatusCommand`: ```js // ES5 example -const { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } = require("@aws-sdk/client-compute-optimizer"); +const { ComputeOptimizerClient, GetEnrollmentStatusCommand } = require("@aws-sdk/client-compute-optimizer"); ``` ```ts // ES6+ example -import { ComputeOptimizerClient, DeleteRecommendationPreferencesCommand } from "@aws-sdk/client-compute-optimizer"; +import { ComputeOptimizerClient, GetEnrollmentStatusCommand } from "@aws-sdk/client-compute-optimizer"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new ComputeOptimizerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteRecommendationPreferencesCommand(params); +const command = new GetEnrollmentStatusCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.ComputeOptimizer({ region: "REGION" }); // async/await. try { - const data = await client.deleteRecommendationPreferences(params); + const data = await client.getEnrollmentStatus(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .deleteRecommendationPreferences(params) + .getEnrollmentStatus(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.deleteRecommendationPreferences(params, (err, data) => { +client.getEnrollmentStatus(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-config-service/README.md b/clients/client-config-service/README.md index 747547cc146c..e27cf5a8d0c6 100644 --- a/clients/client-config-service/README.md +++ b/clients/client-config-service/README.md @@ -44,16 +44,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 `ConfigServiceClient` and -the commands you need, for example `BatchGetAggregateResourceConfigCommand`: +the commands you need, for example `ListStoredQueriesCommand`: ```js // ES5 example -const { ConfigServiceClient, BatchGetAggregateResourceConfigCommand } = require("@aws-sdk/client-config-service"); +const { ConfigServiceClient, ListStoredQueriesCommand } = require("@aws-sdk/client-config-service"); ``` ```ts // ES6+ example -import { ConfigServiceClient, BatchGetAggregateResourceConfigCommand } from "@aws-sdk/client-config-service"; +import { ConfigServiceClient, ListStoredQueriesCommand } from "@aws-sdk/client-config-service"; ``` ### Usage @@ -72,7 +72,7 @@ const client = new ConfigServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetAggregateResourceConfigCommand(params); +const command = new ListStoredQueriesCommand(params); ``` #### Async/await @@ -151,7 +151,7 @@ const client = new AWS.ConfigService({ region: "REGION" }); // async/await. try { - const data = await client.batchGetAggregateResourceConfig(params); + const data = await client.listStoredQueries(params); // process data. } catch (error) { // error handling. @@ -159,7 +159,7 @@ try { // Promises. client - .batchGetAggregateResourceConfig(params) + .listStoredQueries(params) .then((data) => { // process data. }) @@ -168,7 +168,7 @@ client }); // callbacks. -client.batchGetAggregateResourceConfig(params, (err, data) => { +client.listStoredQueries(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-connect/README.md b/clients/client-connect/README.md index 1c371a40285d..a33083f16db7 100644 --- a/clients/client-connect/README.md +++ b/clients/client-connect/README.md @@ -33,16 +33,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 `ConnectClient` and -the commands you need, for example `ActivateEvaluationFormCommand`: +the commands you need, for example `ListInstancesCommand`: ```js // ES5 example -const { ConnectClient, ActivateEvaluationFormCommand } = require("@aws-sdk/client-connect"); +const { ConnectClient, ListInstancesCommand } = require("@aws-sdk/client-connect"); ``` ```ts // ES6+ example -import { ConnectClient, ActivateEvaluationFormCommand } from "@aws-sdk/client-connect"; +import { ConnectClient, ListInstancesCommand } from "@aws-sdk/client-connect"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new ConnectClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateEvaluationFormCommand(params); +const command = new ListInstancesCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.Connect({ region: "REGION" }); // async/await. try { - const data = await client.activateEvaluationForm(params); + const data = await client.listInstances(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .activateEvaluationForm(params) + .listInstances(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.activateEvaluationForm(params, (err, data) => { +client.listInstances(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-connectcampaigns/README.md b/clients/client-connectcampaigns/README.md index 6e1e31340e33..b12abb13ad41 100644 --- a/clients/client-connectcampaigns/README.md +++ b/clients/client-connectcampaigns/README.md @@ -23,16 +23,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 `ConnectCampaignsClient` and -the commands you need, for example `CreateCampaignCommand`: +the commands you need, for example `ListCampaignsCommand`: ```js // ES5 example -const { ConnectCampaignsClient, CreateCampaignCommand } = require("@aws-sdk/client-connectcampaigns"); +const { ConnectCampaignsClient, ListCampaignsCommand } = require("@aws-sdk/client-connectcampaigns"); ``` ```ts // ES6+ example -import { ConnectCampaignsClient, CreateCampaignCommand } from "@aws-sdk/client-connectcampaigns"; +import { ConnectCampaignsClient, ListCampaignsCommand } from "@aws-sdk/client-connectcampaigns"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new ConnectCampaignsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateCampaignCommand(params); +const command = new ListCampaignsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.ConnectCampaigns({ region: "REGION" }); // async/await. try { - const data = await client.createCampaign(params); + const data = await client.listCampaigns(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createCampaign(params) + .listCampaigns(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createCampaign(params, (err, data) => { +client.listCampaigns(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-connectcases/README.md b/clients/client-connectcases/README.md index 61999b57cb4e..117137571ff6 100644 --- a/clients/client-connectcases/README.md +++ b/clients/client-connectcases/README.md @@ -27,16 +27,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 `ConnectCasesClient` and -the commands you need, for example `BatchGetFieldCommand`: +the commands you need, for example `ListDomainsCommand`: ```js // ES5 example -const { ConnectCasesClient, BatchGetFieldCommand } = require("@aws-sdk/client-connectcases"); +const { ConnectCasesClient, ListDomainsCommand } = require("@aws-sdk/client-connectcases"); ``` ```ts // ES6+ example -import { ConnectCasesClient, BatchGetFieldCommand } from "@aws-sdk/client-connectcases"; +import { ConnectCasesClient, ListDomainsCommand } from "@aws-sdk/client-connectcases"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new ConnectCasesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetFieldCommand(params); +const command = new ListDomainsCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.ConnectCases({ region: "REGION" }); // async/await. try { - const data = await client.batchGetField(params); + const data = await client.listDomains(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .batchGetField(params) + .listDomains(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.batchGetField(params, (err, data) => { +client.listDomains(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-connectparticipant/README.md b/clients/client-connectparticipant/README.md index d99db9930ee3..688a33374464 100644 --- a/clients/client-connectparticipant/README.md +++ b/clients/client-connectparticipant/README.md @@ -31,16 +31,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 `ConnectParticipantClient` and -the commands you need, for example `CompleteAttachmentUploadCommand`: +the commands you need, for example `GetTranscriptCommand`: ```js // ES5 example -const { ConnectParticipantClient, CompleteAttachmentUploadCommand } = require("@aws-sdk/client-connectparticipant"); +const { ConnectParticipantClient, GetTranscriptCommand } = require("@aws-sdk/client-connectparticipant"); ``` ```ts // ES6+ example -import { ConnectParticipantClient, CompleteAttachmentUploadCommand } from "@aws-sdk/client-connectparticipant"; +import { ConnectParticipantClient, GetTranscriptCommand } from "@aws-sdk/client-connectparticipant"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new ConnectParticipantClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CompleteAttachmentUploadCommand(params); +const command = new GetTranscriptCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.ConnectParticipant({ region: "REGION" }); // async/await. try { - const data = await client.completeAttachmentUpload(params); + const data = await client.getTranscript(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .completeAttachmentUpload(params) + .getTranscript(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.completeAttachmentUpload(params, (err, data) => { +client.getTranscript(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-controltower/README.md b/clients/client-controltower/README.md index ccf4976faacd..9fd145ac4fcc 100644 --- a/clients/client-controltower/README.md +++ b/clients/client-controltower/README.md @@ -93,16 +93,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 `ControlTowerClient` and -the commands you need, for example `DisableControlCommand`: +the commands you need, for example `ListEnabledControlsCommand`: ```js // ES5 example -const { ControlTowerClient, DisableControlCommand } = require("@aws-sdk/client-controltower"); +const { ControlTowerClient, ListEnabledControlsCommand } = require("@aws-sdk/client-controltower"); ``` ```ts // ES6+ example -import { ControlTowerClient, DisableControlCommand } from "@aws-sdk/client-controltower"; +import { ControlTowerClient, ListEnabledControlsCommand } from "@aws-sdk/client-controltower"; ``` ### Usage @@ -121,7 +121,7 @@ const client = new ControlTowerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DisableControlCommand(params); +const command = new ListEnabledControlsCommand(params); ``` #### Async/await @@ -200,7 +200,7 @@ const client = new AWS.ControlTower({ region: "REGION" }); // async/await. try { - const data = await client.disableControl(params); + const data = await client.listEnabledControls(params); // process data. } catch (error) { // error handling. @@ -208,7 +208,7 @@ try { // Promises. client - .disableControl(params) + .listEnabledControls(params) .then((data) => { // process data. }) @@ -217,7 +217,7 @@ client }); // callbacks. -client.disableControl(params, (err, data) => { +client.listEnabledControls(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cost-and-usage-report-service/README.md b/clients/client-cost-and-usage-report-service/README.md index 364e8605db8d..21660bd67687 100644 --- a/clients/client-cost-and-usage-report-service/README.md +++ b/clients/client-cost-and-usage-report-service/README.md @@ -40,13 +40,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `CostAndUsageReportServiceClient` and -the commands you need, for example `DeleteReportDefinitionCommand`: +the commands you need, for example `DescribeReportDefinitionsCommand`: ```js // ES5 example const { CostAndUsageReportServiceClient, - DeleteReportDefinitionCommand, + DescribeReportDefinitionsCommand, } = require("@aws-sdk/client-cost-and-usage-report-service"); ``` @@ -54,7 +54,7 @@ const { // ES6+ example import { CostAndUsageReportServiceClient, - DeleteReportDefinitionCommand, + DescribeReportDefinitionsCommand, } from "@aws-sdk/client-cost-and-usage-report-service"; ``` @@ -74,7 +74,7 @@ const client = new CostAndUsageReportServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteReportDefinitionCommand(params); +const command = new DescribeReportDefinitionsCommand(params); ``` #### Async/await @@ -153,7 +153,7 @@ const client = new AWS.CostAndUsageReportService({ region: "REGION" }); // async/await. try { - const data = await client.deleteReportDefinition(params); + const data = await client.describeReportDefinitions(params); // process data. } catch (error) { // error handling. @@ -161,7 +161,7 @@ try { // Promises. client - .deleteReportDefinition(params) + .describeReportDefinitions(params) .then((data) => { // process data. }) @@ -170,7 +170,7 @@ client }); // callbacks. -client.deleteReportDefinition(params, (err, data) => { +client.describeReportDefinitions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-cost-explorer/README.md b/clients/client-cost-explorer/README.md index a68b22b74bd5..517d66a7f6bc 100644 --- a/clients/client-cost-explorer/README.md +++ b/clients/client-cost-explorer/README.md @@ -38,16 +38,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 `CostExplorerClient` and -the commands you need, for example `CreateAnomalyMonitorCommand`: +the commands you need, for example `ListCostAllocationTagsCommand`: ```js // ES5 example -const { CostExplorerClient, CreateAnomalyMonitorCommand } = require("@aws-sdk/client-cost-explorer"); +const { CostExplorerClient, ListCostAllocationTagsCommand } = require("@aws-sdk/client-cost-explorer"); ``` ```ts // ES6+ example -import { CostExplorerClient, CreateAnomalyMonitorCommand } from "@aws-sdk/client-cost-explorer"; +import { CostExplorerClient, ListCostAllocationTagsCommand } from "@aws-sdk/client-cost-explorer"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new CostExplorerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAnomalyMonitorCommand(params); +const command = new ListCostAllocationTagsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.CostExplorer({ region: "REGION" }); // async/await. try { - const data = await client.createAnomalyMonitor(params); + const data = await client.listCostAllocationTags(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .createAnomalyMonitor(params) + .listCostAllocationTags(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.createAnomalyMonitor(params, (err, data) => { +client.listCostAllocationTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-customer-profiles/README.md b/clients/client-customer-profiles/README.md index 21d7009375ed..b2c202fa8ab6 100644 --- a/clients/client-customer-profiles/README.md +++ b/clients/client-customer-profiles/README.md @@ -29,16 +29,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 `CustomerProfilesClient` and -the commands you need, for example `AddProfileKeyCommand`: +the commands you need, for example `ListDomainsCommand`: ```js // ES5 example -const { CustomerProfilesClient, AddProfileKeyCommand } = require("@aws-sdk/client-customer-profiles"); +const { CustomerProfilesClient, ListDomainsCommand } = require("@aws-sdk/client-customer-profiles"); ``` ```ts // ES6+ example -import { CustomerProfilesClient, AddProfileKeyCommand } from "@aws-sdk/client-customer-profiles"; +import { CustomerProfilesClient, ListDomainsCommand } from "@aws-sdk/client-customer-profiles"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new CustomerProfilesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddProfileKeyCommand(params); +const command = new ListDomainsCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.CustomerProfiles({ region: "REGION" }); // async/await. try { - const data = await client.addProfileKey(params); + const data = await client.listDomains(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .addProfileKey(params) + .listDomains(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.addProfileKey(params, (err, data) => { +client.listDomains(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-data-pipeline/README.md b/clients/client-data-pipeline/README.md index b01a624e4a4e..d8acb2e89311 100644 --- a/clients/client-data-pipeline/README.md +++ b/clients/client-data-pipeline/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 `DataPipelineClient` and -the commands you need, for example `ActivatePipelineCommand`: +the commands you need, for example `ListPipelinesCommand`: ```js // ES5 example -const { DataPipelineClient, ActivatePipelineCommand } = require("@aws-sdk/client-data-pipeline"); +const { DataPipelineClient, ListPipelinesCommand } = require("@aws-sdk/client-data-pipeline"); ``` ```ts // ES6+ example -import { DataPipelineClient, ActivatePipelineCommand } from "@aws-sdk/client-data-pipeline"; +import { DataPipelineClient, ListPipelinesCommand } from "@aws-sdk/client-data-pipeline"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new DataPipelineClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivatePipelineCommand(params); +const command = new ListPipelinesCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.DataPipeline({ region: "REGION" }); // async/await. try { - const data = await client.activatePipeline(params); + const data = await client.listPipelines(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .activatePipeline(params) + .listPipelines(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.activatePipeline(params, (err, data) => { +client.listPipelines(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-database-migration-service/README.md b/clients/client-database-migration-service/README.md index 49b5c60e5dc9..df7a5218f1d4 100644 --- a/clients/client-database-migration-service/README.md +++ b/clients/client-database-migration-service/README.md @@ -33,19 +33,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `DatabaseMigrationServiceClient` and -the commands you need, for example `AddTagsToResourceCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example const { DatabaseMigrationServiceClient, - AddTagsToResourceCommand, + ListTagsForResourceCommand, } = require("@aws-sdk/client-database-migration-service"); ``` ```ts // ES6+ example -import { DatabaseMigrationServiceClient, AddTagsToResourceCommand } from "@aws-sdk/client-database-migration-service"; +import { DatabaseMigrationServiceClient, ListTagsForResourceCommand } from "@aws-sdk/client-database-migration-service"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new DatabaseMigrationServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToResourceCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.DatabaseMigrationService({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToResource(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .addTagsToResource(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.addTagsToResource(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-databrew/README.md b/clients/client-databrew/README.md index cd50431fdf46..287c7f2bc4de 100644 --- a/clients/client-databrew/README.md +++ b/clients/client-databrew/README.md @@ -26,16 +26,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 `DataBrewClient` and -the commands you need, for example `BatchDeleteRecipeVersionCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { DataBrewClient, BatchDeleteRecipeVersionCommand } = require("@aws-sdk/client-databrew"); +const { DataBrewClient, ListJobsCommand } = require("@aws-sdk/client-databrew"); ``` ```ts // ES6+ example -import { DataBrewClient, BatchDeleteRecipeVersionCommand } from "@aws-sdk/client-databrew"; +import { DataBrewClient, ListJobsCommand } from "@aws-sdk/client-databrew"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new DataBrewClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchDeleteRecipeVersionCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.DataBrew({ region: "REGION" }); // async/await. try { - const data = await client.batchDeleteRecipeVersion(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .batchDeleteRecipeVersion(params) + .listJobs(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.batchDeleteRecipeVersion(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-dataexchange/README.md b/clients/client-dataexchange/README.md index da1d1b2c5c9e..057f5233901c 100644 --- a/clients/client-dataexchange/README.md +++ b/clients/client-dataexchange/README.md @@ -38,16 +38,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 `DataExchangeClient` and -the commands you need, for example `CancelJobCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { DataExchangeClient, CancelJobCommand } = require("@aws-sdk/client-dataexchange"); +const { DataExchangeClient, ListJobsCommand } = require("@aws-sdk/client-dataexchange"); ``` ```ts // ES6+ example -import { DataExchangeClient, CancelJobCommand } from "@aws-sdk/client-dataexchange"; +import { DataExchangeClient, ListJobsCommand } from "@aws-sdk/client-dataexchange"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new DataExchangeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJobCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.DataExchange({ region: "REGION" }); // async/await. try { - const data = await client.cancelJob(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .cancelJob(params) + .listJobs(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.cancelJob(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-datasync/README.md b/clients/client-datasync/README.md index 7610d72e544e..8df4eb68156c 100644 --- a/clients/client-datasync/README.md +++ b/clients/client-datasync/README.md @@ -32,16 +32,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 `DataSyncClient` and -the commands you need, for example `AddStorageSystemCommand`: +the commands you need, for example `ListAgentsCommand`: ```js // ES5 example -const { DataSyncClient, AddStorageSystemCommand } = require("@aws-sdk/client-datasync"); +const { DataSyncClient, ListAgentsCommand } = require("@aws-sdk/client-datasync"); ``` ```ts // ES6+ example -import { DataSyncClient, AddStorageSystemCommand } from "@aws-sdk/client-datasync"; +import { DataSyncClient, ListAgentsCommand } from "@aws-sdk/client-datasync"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new DataSyncClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddStorageSystemCommand(params); +const command = new ListAgentsCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.DataSync({ region: "REGION" }); // async/await. try { - const data = await client.addStorageSystem(params); + const data = await client.listAgents(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .addStorageSystem(params) + .listAgents(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.addStorageSystem(params, (err, data) => { +client.listAgents(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-dax/README.md b/clients/client-dax/README.md index 6a20b0dce79b..e2df6bb753dd 100644 --- a/clients/client-dax/README.md +++ b/clients/client-dax/README.md @@ -28,16 +28,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 `DAXClient` and -the commands you need, for example `CreateClusterCommand`: +the commands you need, for example `ListTagsCommand`: ```js // ES5 example -const { DAXClient, CreateClusterCommand } = require("@aws-sdk/client-dax"); +const { DAXClient, ListTagsCommand } = require("@aws-sdk/client-dax"); ``` ```ts // ES6+ example -import { DAXClient, CreateClusterCommand } from "@aws-sdk/client-dax"; +import { DAXClient, ListTagsCommand } from "@aws-sdk/client-dax"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new DAXClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateClusterCommand(params); +const command = new ListTagsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.DAX({ region: "REGION" }); // async/await. try { - const data = await client.createCluster(params); + const data = await client.listTags(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .createCluster(params) + .listTags(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.createCluster(params, (err, data) => { +client.listTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-detective/README.md b/clients/client-detective/README.md index 38ebeb1dcc2a..4cad2d699b39 100644 --- a/clients/client-detective/README.md +++ b/clients/client-detective/README.md @@ -98,16 +98,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 `DetectiveClient` and -the commands you need, for example `AcceptInvitationCommand`: +the commands you need, for example `ListGraphsCommand`: ```js // ES5 example -const { DetectiveClient, AcceptInvitationCommand } = require("@aws-sdk/client-detective"); +const { DetectiveClient, ListGraphsCommand } = require("@aws-sdk/client-detective"); ``` ```ts // ES6+ example -import { DetectiveClient, AcceptInvitationCommand } from "@aws-sdk/client-detective"; +import { DetectiveClient, ListGraphsCommand } from "@aws-sdk/client-detective"; ``` ### Usage @@ -126,7 +126,7 @@ const client = new DetectiveClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptInvitationCommand(params); +const command = new ListGraphsCommand(params); ``` #### Async/await @@ -205,7 +205,7 @@ const client = new AWS.Detective({ region: "REGION" }); // async/await. try { - const data = await client.acceptInvitation(params); + const data = await client.listGraphs(params); // process data. } catch (error) { // error handling. @@ -213,7 +213,7 @@ try { // Promises. client - .acceptInvitation(params) + .listGraphs(params) .then((data) => { // process data. }) @@ -222,7 +222,7 @@ client }); // callbacks. -client.acceptInvitation(params, (err, data) => { +client.listGraphs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-device-farm/README.md b/clients/client-device-farm/README.md index caf6992f6989..614ab01111fa 100644 --- a/clients/client-device-farm/README.md +++ b/clients/client-device-farm/README.md @@ -37,16 +37,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 `DeviceFarmClient` and -the commands you need, for example `CreateDevicePoolCommand`: +the commands you need, for example `ListDevicesCommand`: ```js // ES5 example -const { DeviceFarmClient, CreateDevicePoolCommand } = require("@aws-sdk/client-device-farm"); +const { DeviceFarmClient, ListDevicesCommand } = require("@aws-sdk/client-device-farm"); ``` ```ts // ES6+ example -import { DeviceFarmClient, CreateDevicePoolCommand } from "@aws-sdk/client-device-farm"; +import { DeviceFarmClient, ListDevicesCommand } from "@aws-sdk/client-device-farm"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new DeviceFarmClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateDevicePoolCommand(params); +const command = new ListDevicesCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.DeviceFarm({ region: "REGION" }); // async/await. try { - const data = await client.createDevicePool(params); + const data = await client.listDevices(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .createDevicePool(params) + .listDevices(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.createDevicePool(params, (err, data) => { +client.listDevices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-devops-guru/README.md b/clients/client-devops-guru/README.md index 1a705a02fa8d..576a3c7a1cb1 100644 --- a/clients/client-devops-guru/README.md +++ b/clients/client-devops-guru/README.md @@ -34,16 +34,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 `DevOpsGuruClient` and -the commands you need, for example `AddNotificationChannelCommand`: +the commands you need, for example `ListEventsCommand`: ```js // ES5 example -const { DevOpsGuruClient, AddNotificationChannelCommand } = require("@aws-sdk/client-devops-guru"); +const { DevOpsGuruClient, ListEventsCommand } = require("@aws-sdk/client-devops-guru"); ``` ```ts // ES6+ example -import { DevOpsGuruClient, AddNotificationChannelCommand } from "@aws-sdk/client-devops-guru"; +import { DevOpsGuruClient, ListEventsCommand } from "@aws-sdk/client-devops-guru"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new DevOpsGuruClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddNotificationChannelCommand(params); +const command = new ListEventsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.DevOpsGuru({ region: "REGION" }); // async/await. try { - const data = await client.addNotificationChannel(params); + const data = await client.listEvents(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .addNotificationChannel(params) + .listEvents(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.addNotificationChannel(params, (err, data) => { +client.listEvents(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-direct-connect/README.md b/clients/client-direct-connect/README.md index 77fdb05bce19..af025d075f77 100644 --- a/clients/client-direct-connect/README.md +++ b/clients/client-direct-connect/README.md @@ -28,22 +28,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 `DirectConnectClient` and -the commands you need, for example `AcceptDirectConnectGatewayAssociationProposalCommand`: +the commands you need, for example `ListVirtualInterfaceTestHistoryCommand`: ```js // ES5 example -const { - DirectConnectClient, - AcceptDirectConnectGatewayAssociationProposalCommand, -} = require("@aws-sdk/client-direct-connect"); +const { DirectConnectClient, ListVirtualInterfaceTestHistoryCommand } = require("@aws-sdk/client-direct-connect"); ``` ```ts // ES6+ example -import { - DirectConnectClient, - AcceptDirectConnectGatewayAssociationProposalCommand, -} from "@aws-sdk/client-direct-connect"; +import { DirectConnectClient, ListVirtualInterfaceTestHistoryCommand } from "@aws-sdk/client-direct-connect"; ``` ### Usage @@ -62,7 +56,7 @@ const client = new DirectConnectClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptDirectConnectGatewayAssociationProposalCommand(params); +const command = new ListVirtualInterfaceTestHistoryCommand(params); ``` #### Async/await @@ -141,7 +135,7 @@ const client = new AWS.DirectConnect({ region: "REGION" }); // async/await. try { - const data = await client.acceptDirectConnectGatewayAssociationProposal(params); + const data = await client.listVirtualInterfaceTestHistory(params); // process data. } catch (error) { // error handling. @@ -149,7 +143,7 @@ try { // Promises. client - .acceptDirectConnectGatewayAssociationProposal(params) + .listVirtualInterfaceTestHistory(params) .then((data) => { // process data. }) @@ -158,7 +152,7 @@ client }); // callbacks. -client.acceptDirectConnectGatewayAssociationProposal(params, (err, data) => { +client.listVirtualInterfaceTestHistory(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-directory-service/README.md b/clients/client-directory-service/README.md index 260181418bdf..8222297dc112 100644 --- a/clients/client-directory-service/README.md +++ b/clients/client-directory-service/README.md @@ -37,16 +37,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 `DirectoryServiceClient` and -the commands you need, for example `AcceptSharedDirectoryCommand`: +the commands you need, for example `ListCertificatesCommand`: ```js // ES5 example -const { DirectoryServiceClient, AcceptSharedDirectoryCommand } = require("@aws-sdk/client-directory-service"); +const { DirectoryServiceClient, ListCertificatesCommand } = require("@aws-sdk/client-directory-service"); ``` ```ts // ES6+ example -import { DirectoryServiceClient, AcceptSharedDirectoryCommand } from "@aws-sdk/client-directory-service"; +import { DirectoryServiceClient, ListCertificatesCommand } from "@aws-sdk/client-directory-service"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new DirectoryServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptSharedDirectoryCommand(params); +const command = new ListCertificatesCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.DirectoryService({ region: "REGION" }); // async/await. try { - const data = await client.acceptSharedDirectory(params); + const data = await client.listCertificates(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .acceptSharedDirectory(params) + .listCertificates(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.acceptSharedDirectory(params, (err, data) => { +client.listCertificates(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-dlm/README.md b/clients/client-dlm/README.md index 035e8c8b0a5b..06c566947bce 100644 --- a/clients/client-dlm/README.md +++ b/clients/client-dlm/README.md @@ -30,16 +30,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 `DLMClient` and -the commands you need, for example `CreateLifecyclePolicyCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { DLMClient, CreateLifecyclePolicyCommand } = require("@aws-sdk/client-dlm"); +const { DLMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-dlm"); ``` ```ts // ES6+ example -import { DLMClient, CreateLifecyclePolicyCommand } from "@aws-sdk/client-dlm"; +import { DLMClient, ListTagsForResourceCommand } from "@aws-sdk/client-dlm"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new DLMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateLifecyclePolicyCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.DLM({ region: "REGION" }); // async/await. try { - const data = await client.createLifecyclePolicy(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .createLifecyclePolicy(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.createLifecyclePolicy(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-docdb-elastic/README.md b/clients/client-docdb-elastic/README.md index 411fc50d7d16..3f72c1ede7f6 100644 --- a/clients/client-docdb-elastic/README.md +++ b/clients/client-docdb-elastic/README.md @@ -23,16 +23,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 `DocDBElasticClient` and -the commands you need, for example `CreateClusterCommand`: +the commands you need, for example `ListClustersCommand`: ```js // ES5 example -const { DocDBElasticClient, CreateClusterCommand } = require("@aws-sdk/client-docdb-elastic"); +const { DocDBElasticClient, ListClustersCommand } = require("@aws-sdk/client-docdb-elastic"); ``` ```ts // ES6+ example -import { DocDBElasticClient, CreateClusterCommand } from "@aws-sdk/client-docdb-elastic"; +import { DocDBElasticClient, ListClustersCommand } from "@aws-sdk/client-docdb-elastic"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new DocDBElasticClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateClusterCommand(params); +const command = new ListClustersCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.DocDBElastic({ region: "REGION" }); // async/await. try { - const data = await client.createCluster(params); + const data = await client.listClusters(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createCluster(params) + .listClusters(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createCluster(params, (err, data) => { +client.listClusters(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-docdb/README.md b/clients/client-docdb/README.md index 89b191eda0fb..a2f33638e4d5 100644 --- a/clients/client-docdb/README.md +++ b/clients/client-docdb/README.md @@ -25,16 +25,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 `DocDBClient` and -the commands you need, for example `AddSourceIdentifierToSubscriptionCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { DocDBClient, AddSourceIdentifierToSubscriptionCommand } = require("@aws-sdk/client-docdb"); +const { DocDBClient, ListTagsForResourceCommand } = require("@aws-sdk/client-docdb"); ``` ```ts // ES6+ example -import { DocDBClient, AddSourceIdentifierToSubscriptionCommand } from "@aws-sdk/client-docdb"; +import { DocDBClient, ListTagsForResourceCommand } from "@aws-sdk/client-docdb"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new DocDBClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddSourceIdentifierToSubscriptionCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.DocDB({ region: "REGION" }); // async/await. try { - const data = await client.addSourceIdentifierToSubscription(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .addSourceIdentifierToSubscription(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.addSourceIdentifierToSubscription(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-drs/README.md b/clients/client-drs/README.md index 4fbaab8f61d2..39d619591746 100644 --- a/clients/client-drs/README.md +++ b/clients/client-drs/README.md @@ -23,16 +23,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 `DrsClient` and -the commands you need, for example `AssociateSourceNetworkStackCommand`: +the commands you need, for example `ListLaunchActionsCommand`: ```js // ES5 example -const { DrsClient, AssociateSourceNetworkStackCommand } = require("@aws-sdk/client-drs"); +const { DrsClient, ListLaunchActionsCommand } = require("@aws-sdk/client-drs"); ``` ```ts // ES6+ example -import { DrsClient, AssociateSourceNetworkStackCommand } from "@aws-sdk/client-drs"; +import { DrsClient, ListLaunchActionsCommand } from "@aws-sdk/client-drs"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new DrsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateSourceNetworkStackCommand(params); +const command = new ListLaunchActionsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Drs({ region: "REGION" }); // async/await. try { - const data = await client.associateSourceNetworkStack(params); + const data = await client.listLaunchActions(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateSourceNetworkStack(params) + .listLaunchActions(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateSourceNetworkStack(params, (err, data) => { +client.listLaunchActions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-dynamodb-streams/README.md b/clients/client-dynamodb-streams/README.md index 8707a12a8d05..4b308818216d 100644 --- a/clients/client-dynamodb-streams/README.md +++ b/clients/client-dynamodb-streams/README.md @@ -28,16 +28,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 `DynamoDBStreamsClient` and -the commands you need, for example `DescribeStreamCommand`: +the commands you need, for example `ListStreamsCommand`: ```js // ES5 example -const { DynamoDBStreamsClient, DescribeStreamCommand } = require("@aws-sdk/client-dynamodb-streams"); +const { DynamoDBStreamsClient, ListStreamsCommand } = require("@aws-sdk/client-dynamodb-streams"); ``` ```ts // ES6+ example -import { DynamoDBStreamsClient, DescribeStreamCommand } from "@aws-sdk/client-dynamodb-streams"; +import { DynamoDBStreamsClient, ListStreamsCommand } from "@aws-sdk/client-dynamodb-streams"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new DynamoDBStreamsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeStreamCommand(params); +const command = new ListStreamsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.DynamoDBStreams({ region: "REGION" }); // async/await. try { - const data = await client.describeStream(params); + const data = await client.listStreams(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .describeStream(params) + .listStreams(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.describeStream(params, (err, data) => { +client.listStreams(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-dynamodb/README.md b/clients/client-dynamodb/README.md index dabfafb6ef4f..a31db55ad426 100644 --- a/clients/client-dynamodb/README.md +++ b/clients/client-dynamodb/README.md @@ -40,16 +40,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 `DynamoDBClient` and -the commands you need, for example `BatchExecuteStatementCommand`: +the commands you need, for example `ListBackupsCommand`: ```js // ES5 example -const { DynamoDBClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-dynamodb"); +const { DynamoDBClient, ListBackupsCommand } = require("@aws-sdk/client-dynamodb"); ``` ```ts // ES6+ example -import { DynamoDBClient, BatchExecuteStatementCommand } from "@aws-sdk/client-dynamodb"; +import { DynamoDBClient, ListBackupsCommand } from "@aws-sdk/client-dynamodb"; ``` ### Usage @@ -68,7 +68,7 @@ const client = new DynamoDBClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchExecuteStatementCommand(params); +const command = new ListBackupsCommand(params); ``` #### Async/await @@ -147,7 +147,7 @@ const client = new AWS.DynamoDB({ region: "REGION" }); // async/await. try { - const data = await client.batchExecuteStatement(params); + const data = await client.listBackups(params); // process data. } catch (error) { // error handling. @@ -155,7 +155,7 @@ try { // Promises. client - .batchExecuteStatement(params) + .listBackups(params) .then((data) => { // process data. }) @@ -164,7 +164,7 @@ client }); // callbacks. -client.batchExecuteStatement(params, (err, data) => { +client.listBackups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ebs/README.md b/clients/client-ebs/README.md index 79f40b059ca4..568d424045d9 100644 --- a/clients/client-ebs/README.md +++ b/clients/client-ebs/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 `EBSClient` and -the commands you need, for example `CompleteSnapshotCommand`: +the commands you need, for example `ListChangedBlocksCommand`: ```js // ES5 example -const { EBSClient, CompleteSnapshotCommand } = require("@aws-sdk/client-ebs"); +const { EBSClient, ListChangedBlocksCommand } = require("@aws-sdk/client-ebs"); ``` ```ts // ES6+ example -import { EBSClient, CompleteSnapshotCommand } from "@aws-sdk/client-ebs"; +import { EBSClient, ListChangedBlocksCommand } from "@aws-sdk/client-ebs"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new EBSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CompleteSnapshotCommand(params); +const command = new ListChangedBlocksCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.EBS({ region: "REGION" }); // async/await. try { - const data = await client.completeSnapshot(params); + const data = await client.listChangedBlocks(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .completeSnapshot(params) + .listChangedBlocks(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.completeSnapshot(params, (err, data) => { +client.listChangedBlocks(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ec2-instance-connect/README.md b/clients/client-ec2-instance-connect/README.md index 5019b3499e09..a72cc966d85a 100644 --- a/clients/client-ec2-instance-connect/README.md +++ b/clients/client-ec2-instance-connect/README.md @@ -25,19 +25,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 `EC2InstanceConnectClient` and -the commands you need, for example `SendSerialConsoleSSHPublicKeyCommand`: +the commands you need, for example `SendSSHPublicKeyCommand`: ```js // ES5 example -const { - EC2InstanceConnectClient, - SendSerialConsoleSSHPublicKeyCommand, -} = require("@aws-sdk/client-ec2-instance-connect"); +const { EC2InstanceConnectClient, SendSSHPublicKeyCommand } = require("@aws-sdk/client-ec2-instance-connect"); ``` ```ts // ES6+ example -import { EC2InstanceConnectClient, SendSerialConsoleSSHPublicKeyCommand } from "@aws-sdk/client-ec2-instance-connect"; +import { EC2InstanceConnectClient, SendSSHPublicKeyCommand } from "@aws-sdk/client-ec2-instance-connect"; ``` ### Usage @@ -56,7 +53,7 @@ const client = new EC2InstanceConnectClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new SendSerialConsoleSSHPublicKeyCommand(params); +const command = new SendSSHPublicKeyCommand(params); ``` #### Async/await @@ -135,7 +132,7 @@ const client = new AWS.EC2InstanceConnect({ region: "REGION" }); // async/await. try { - const data = await client.sendSerialConsoleSSHPublicKey(params); + const data = await client.sendSSHPublicKey(params); // process data. } catch (error) { // error handling. @@ -143,7 +140,7 @@ try { // Promises. client - .sendSerialConsoleSSHPublicKey(params) + .sendSSHPublicKey(params) .then((data) => { // process data. }) @@ -152,7 +149,7 @@ client }); // callbacks. -client.sendSerialConsoleSSHPublicKey(params, (err, data) => { +client.sendSSHPublicKey(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ec2/README.md b/clients/client-ec2/README.md index e01c77b0aa21..20ef2e07d023 100644 --- a/clients/client-ec2/README.md +++ b/clients/client-ec2/README.md @@ -49,16 +49,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 `EC2Client` and -the commands you need, for example `AcceptAddressTransferCommand`: +the commands you need, for example `ListImagesInRecycleBinCommand`: ```js // ES5 example -const { EC2Client, AcceptAddressTransferCommand } = require("@aws-sdk/client-ec2"); +const { EC2Client, ListImagesInRecycleBinCommand } = require("@aws-sdk/client-ec2"); ``` ```ts // ES6+ example -import { EC2Client, AcceptAddressTransferCommand } from "@aws-sdk/client-ec2"; +import { EC2Client, ListImagesInRecycleBinCommand } from "@aws-sdk/client-ec2"; ``` ### Usage @@ -77,7 +77,7 @@ const client = new EC2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptAddressTransferCommand(params); +const command = new ListImagesInRecycleBinCommand(params); ``` #### Async/await @@ -156,7 +156,7 @@ const client = new AWS.EC2({ region: "REGION" }); // async/await. try { - const data = await client.acceptAddressTransfer(params); + const data = await client.listImagesInRecycleBin(params); // process data. } catch (error) { // error handling. @@ -164,7 +164,7 @@ try { // Promises. client - .acceptAddressTransfer(params) + .listImagesInRecycleBin(params) .then((data) => { // process data. }) @@ -173,7 +173,7 @@ client }); // callbacks. -client.acceptAddressTransfer(params, (err, data) => { +client.listImagesInRecycleBin(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ecr-public/README.md b/clients/client-ecr-public/README.md index bd847e2e95e9..9ff2cb0e1afa 100644 --- a/clients/client-ecr-public/README.md +++ b/clients/client-ecr-public/README.md @@ -30,16 +30,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 `ECRPUBLICClient` and -the commands you need, for example `BatchCheckLayerAvailabilityCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { ECRPUBLICClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr-public"); +const { ECRPUBLICClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ecr-public"); ``` ```ts // ES6+ example -import { ECRPUBLICClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr-public"; +import { ECRPUBLICClient, ListTagsForResourceCommand } from "@aws-sdk/client-ecr-public"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new ECRPUBLICClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCheckLayerAvailabilityCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.ECRPUBLIC({ region: "REGION" }); // async/await. try { - const data = await client.batchCheckLayerAvailability(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .batchCheckLayerAvailability(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.batchCheckLayerAvailability(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ecr/README.md b/clients/client-ecr/README.md index d1470d2d9194..d9ae8302482a 100644 --- a/clients/client-ecr/README.md +++ b/clients/client-ecr/README.md @@ -32,16 +32,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 `ECRClient` and -the commands you need, for example `BatchCheckLayerAvailabilityCommand`: +the commands you need, for example `ListImagesCommand`: ```js // ES5 example -const { ECRClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr"); +const { ECRClient, ListImagesCommand } = require("@aws-sdk/client-ecr"); ``` ```ts // ES6+ example -import { ECRClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr"; +import { ECRClient, ListImagesCommand } from "@aws-sdk/client-ecr"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new ECRClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCheckLayerAvailabilityCommand(params); +const command = new ListImagesCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.ECR({ region: "REGION" }); // async/await. try { - const data = await client.batchCheckLayerAvailability(params); + const data = await client.listImages(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .batchCheckLayerAvailability(params) + .listImages(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.batchCheckLayerAvailability(params, (err, data) => { +client.listImages(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ecs/README.md b/clients/client-ecs/README.md index 4f276edd0c30..4598cbf36758 100644 --- a/clients/client-ecs/README.md +++ b/clients/client-ecs/README.md @@ -36,16 +36,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 `ECSClient` and -the commands you need, for example `CreateCapacityProviderCommand`: +the commands you need, for example `ListTasksCommand`: ```js // ES5 example -const { ECSClient, CreateCapacityProviderCommand } = require("@aws-sdk/client-ecs"); +const { ECSClient, ListTasksCommand } = require("@aws-sdk/client-ecs"); ``` ```ts // ES6+ example -import { ECSClient, CreateCapacityProviderCommand } from "@aws-sdk/client-ecs"; +import { ECSClient, ListTasksCommand } from "@aws-sdk/client-ecs"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new ECSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateCapacityProviderCommand(params); +const command = new ListTasksCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.ECS({ region: "REGION" }); // async/await. try { - const data = await client.createCapacityProvider(params); + const data = await client.listTasks(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .createCapacityProvider(params) + .listTasks(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.createCapacityProvider(params, (err, data) => { +client.listTasks(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-efs/README.md b/clients/client-efs/README.md index 52110f15ecce..a246fc1b6357 100644 --- a/clients/client-efs/README.md +++ b/clients/client-efs/README.md @@ -28,16 +28,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 `EFSClient` and -the commands you need, for example `CreateAccessPointCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { EFSClient, CreateAccessPointCommand } = require("@aws-sdk/client-efs"); +const { EFSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-efs"); ``` ```ts // ES6+ example -import { EFSClient, CreateAccessPointCommand } from "@aws-sdk/client-efs"; +import { EFSClient, ListTagsForResourceCommand } from "@aws-sdk/client-efs"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new EFSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAccessPointCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.EFS({ region: "REGION" }); // async/await. try { - const data = await client.createAccessPoint(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .createAccessPoint(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.createAccessPoint(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-eks/README.md b/clients/client-eks/README.md index 3bcebf3caa12..fa1c80553277 100644 --- a/clients/client-eks/README.md +++ b/clients/client-eks/README.md @@ -32,16 +32,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 `EKSClient` and -the commands you need, for example `AssociateEncryptionConfigCommand`: +the commands you need, for example `ListAddonsCommand`: ```js // ES5 example -const { EKSClient, AssociateEncryptionConfigCommand } = require("@aws-sdk/client-eks"); +const { EKSClient, ListAddonsCommand } = require("@aws-sdk/client-eks"); ``` ```ts // ES6+ example -import { EKSClient, AssociateEncryptionConfigCommand } from "@aws-sdk/client-eks"; +import { EKSClient, ListAddonsCommand } from "@aws-sdk/client-eks"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new EKSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateEncryptionConfigCommand(params); +const command = new ListAddonsCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.EKS({ region: "REGION" }); // async/await. try { - const data = await client.associateEncryptionConfig(params); + const data = await client.listAddons(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .associateEncryptionConfig(params) + .listAddons(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.associateEncryptionConfig(params, (err, data) => { +client.listAddons(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elastic-beanstalk/README.md b/clients/client-elastic-beanstalk/README.md index eb09c1bdc927..0bb2e7721a1c 100644 --- a/clients/client-elastic-beanstalk/README.md +++ b/clients/client-elastic-beanstalk/README.md @@ -36,16 +36,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 `ElasticBeanstalkClient` and -the commands you need, for example `AbortEnvironmentUpdateCommand`: +the commands you need, for example `ListPlatformBranchesCommand`: ```js // ES5 example -const { ElasticBeanstalkClient, AbortEnvironmentUpdateCommand } = require("@aws-sdk/client-elastic-beanstalk"); +const { ElasticBeanstalkClient, ListPlatformBranchesCommand } = require("@aws-sdk/client-elastic-beanstalk"); ``` ```ts // ES6+ example -import { ElasticBeanstalkClient, AbortEnvironmentUpdateCommand } from "@aws-sdk/client-elastic-beanstalk"; +import { ElasticBeanstalkClient, ListPlatformBranchesCommand } from "@aws-sdk/client-elastic-beanstalk"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new ElasticBeanstalkClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AbortEnvironmentUpdateCommand(params); +const command = new ListPlatformBranchesCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.ElasticBeanstalk({ region: "REGION" }); // async/await. try { - const data = await client.abortEnvironmentUpdate(params); + const data = await client.listPlatformBranches(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .abortEnvironmentUpdate(params) + .listPlatformBranches(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.abortEnvironmentUpdate(params, (err, data) => { +client.listPlatformBranches(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elastic-inference/README.md b/clients/client-elastic-inference/README.md index 1793e7ebb32b..dc069512324f 100644 --- a/clients/client-elastic-inference/README.md +++ b/clients/client-elastic-inference/README.md @@ -30,16 +30,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 `ElasticInferenceClient` and -the commands you need, for example `DescribeAcceleratorOfferingsCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { ElasticInferenceClient, DescribeAcceleratorOfferingsCommand } = require("@aws-sdk/client-elastic-inference"); +const { ElasticInferenceClient, ListTagsForResourceCommand } = require("@aws-sdk/client-elastic-inference"); ``` ```ts // ES6+ example -import { ElasticInferenceClient, DescribeAcceleratorOfferingsCommand } from "@aws-sdk/client-elastic-inference"; +import { ElasticInferenceClient, ListTagsForResourceCommand } from "@aws-sdk/client-elastic-inference"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new ElasticInferenceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeAcceleratorOfferingsCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.ElasticInference({ region: "REGION" }); // async/await. try { - const data = await client.describeAcceleratorOfferings(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .describeAcceleratorOfferings(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.describeAcceleratorOfferings(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elastic-load-balancing-v2/README.md b/clients/client-elastic-load-balancing-v2/README.md index 3a336051511d..181f6b2a01f1 100644 --- a/clients/client-elastic-load-balancing-v2/README.md +++ b/clients/client-elastic-load-balancing-v2/README.md @@ -52,22 +52,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 `ElasticLoadBalancingV2Client` and -the commands you need, for example `AddListenerCertificatesCommand`: +the commands you need, for example `DescribeListenersCommand`: ```js // ES5 example -const { - ElasticLoadBalancingV2Client, - AddListenerCertificatesCommand, -} = require("@aws-sdk/client-elastic-load-balancing-v2"); +const { ElasticLoadBalancingV2Client, DescribeListenersCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); ``` ```ts // ES6+ example -import { - ElasticLoadBalancingV2Client, - AddListenerCertificatesCommand, -} from "@aws-sdk/client-elastic-load-balancing-v2"; +import { ElasticLoadBalancingV2Client, DescribeListenersCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; ``` ### Usage @@ -86,7 +80,7 @@ const client = new ElasticLoadBalancingV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddListenerCertificatesCommand(params); +const command = new DescribeListenersCommand(params); ``` #### Async/await @@ -165,7 +159,7 @@ const client = new AWS.ElasticLoadBalancingV2({ region: "REGION" }); // async/await. try { - const data = await client.addListenerCertificates(params); + const data = await client.describeListeners(params); // process data. } catch (error) { // error handling. @@ -173,7 +167,7 @@ try { // Promises. client - .addListenerCertificates(params) + .describeListeners(params) .then((data) => { // process data. }) @@ -182,7 +176,7 @@ client }); // callbacks. -client.addListenerCertificates(params, (err, data) => { +client.describeListeners(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elastic-load-balancing/README.md b/clients/client-elastic-load-balancing/README.md index 4902da8476c9..00942c6ff1c2 100644 --- a/clients/client-elastic-load-balancing/README.md +++ b/clients/client-elastic-load-balancing/README.md @@ -43,16 +43,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 `ElasticLoadBalancingClient` and -the commands you need, for example `AddTagsCommand`: +the commands you need, for example `DescribeAccountLimitsCommand`: ```js // ES5 example -const { ElasticLoadBalancingClient, AddTagsCommand } = require("@aws-sdk/client-elastic-load-balancing"); +const { ElasticLoadBalancingClient, DescribeAccountLimitsCommand } = require("@aws-sdk/client-elastic-load-balancing"); ``` ```ts // ES6+ example -import { ElasticLoadBalancingClient, AddTagsCommand } from "@aws-sdk/client-elastic-load-balancing"; +import { ElasticLoadBalancingClient, DescribeAccountLimitsCommand } from "@aws-sdk/client-elastic-load-balancing"; ``` ### Usage @@ -71,7 +71,7 @@ const client = new ElasticLoadBalancingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsCommand(params); +const command = new DescribeAccountLimitsCommand(params); ``` #### Async/await @@ -150,7 +150,7 @@ const client = new AWS.ElasticLoadBalancing({ region: "REGION" }); // async/await. try { - const data = await client.addTags(params); + const data = await client.describeAccountLimits(params); // process data. } catch (error) { // error handling. @@ -158,7 +158,7 @@ try { // Promises. client - .addTags(params) + .describeAccountLimits(params) .then((data) => { // process data. }) @@ -167,7 +167,7 @@ client }); // callbacks. -client.addTags(params, (err, data) => { +client.describeAccountLimits(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elastic-transcoder/README.md b/clients/client-elastic-transcoder/README.md index d35a5d42ab29..5732c6962ad3 100644 --- a/clients/client-elastic-transcoder/README.md +++ b/clients/client-elastic-transcoder/README.md @@ -25,16 +25,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 `ElasticTranscoderClient` and -the commands you need, for example `CancelJobCommand`: +the commands you need, for example `ListPresetsCommand`: ```js // ES5 example -const { ElasticTranscoderClient, CancelJobCommand } = require("@aws-sdk/client-elastic-transcoder"); +const { ElasticTranscoderClient, ListPresetsCommand } = require("@aws-sdk/client-elastic-transcoder"); ``` ```ts // ES6+ example -import { ElasticTranscoderClient, CancelJobCommand } from "@aws-sdk/client-elastic-transcoder"; +import { ElasticTranscoderClient, ListPresetsCommand } from "@aws-sdk/client-elastic-transcoder"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new ElasticTranscoderClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJobCommand(params); +const command = new ListPresetsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.ElasticTranscoder({ region: "REGION" }); // async/await. try { - const data = await client.cancelJob(params); + const data = await client.listPresets(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .cancelJob(params) + .listPresets(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.cancelJob(params, (err, data) => { +client.listPresets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elasticache/README.md b/clients/client-elasticache/README.md index 7e7d791e7b11..af06d4f93154 100644 --- a/clients/client-elasticache/README.md +++ b/clients/client-elasticache/README.md @@ -33,16 +33,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 `ElastiCacheClient` and -the commands you need, for example `AddTagsToResourceCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { ElastiCacheClient, AddTagsToResourceCommand } = require("@aws-sdk/client-elasticache"); +const { ElastiCacheClient, ListTagsForResourceCommand } = require("@aws-sdk/client-elasticache"); ``` ```ts // ES6+ example -import { ElastiCacheClient, AddTagsToResourceCommand } from "@aws-sdk/client-elasticache"; +import { ElastiCacheClient, ListTagsForResourceCommand } from "@aws-sdk/client-elasticache"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new ElastiCacheClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToResourceCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.ElastiCache({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToResource(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .addTagsToResource(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.addTagsToResource(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-elasticsearch-service/README.md b/clients/client-elasticsearch-service/README.md index 9874ecfbc740..2a2ddf5538dc 100644 --- a/clients/client-elasticsearch-service/README.md +++ b/clients/client-elasticsearch-service/README.md @@ -30,22 +30,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 `ElasticsearchServiceClient` and -the commands you need, for example `AcceptInboundCrossClusterSearchConnectionCommand`: +the commands you need, for example `ListDomainNamesCommand`: ```js // ES5 example -const { - ElasticsearchServiceClient, - AcceptInboundCrossClusterSearchConnectionCommand, -} = require("@aws-sdk/client-elasticsearch-service"); +const { ElasticsearchServiceClient, ListDomainNamesCommand } = require("@aws-sdk/client-elasticsearch-service"); ``` ```ts // ES6+ example -import { - ElasticsearchServiceClient, - AcceptInboundCrossClusterSearchConnectionCommand, -} from "@aws-sdk/client-elasticsearch-service"; +import { ElasticsearchServiceClient, ListDomainNamesCommand } from "@aws-sdk/client-elasticsearch-service"; ``` ### Usage @@ -64,7 +58,7 @@ const client = new ElasticsearchServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptInboundCrossClusterSearchConnectionCommand(params); +const command = new ListDomainNamesCommand(params); ``` #### Async/await @@ -143,7 +137,7 @@ const client = new AWS.ElasticsearchService({ region: "REGION" }); // async/await. try { - const data = await client.acceptInboundCrossClusterSearchConnection(params); + const data = await client.listDomainNames(params); // process data. } catch (error) { // error handling. @@ -151,7 +145,7 @@ try { // Promises. client - .acceptInboundCrossClusterSearchConnection(params) + .listDomainNames(params) .then((data) => { // process data. }) @@ -160,7 +154,7 @@ client }); // callbacks. -client.acceptInboundCrossClusterSearchConnection(params, (err, data) => { +client.listDomainNames(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-emr-containers/README.md b/clients/client-emr-containers/README.md index 8aae4c7711f6..6c9a9338a4f7 100644 --- a/clients/client-emr-containers/README.md +++ b/clients/client-emr-containers/README.md @@ -46,16 +46,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 `EMRContainersClient` and -the commands you need, for example `CancelJobRunCommand`: +the commands you need, for example `ListJobRunsCommand`: ```js // ES5 example -const { EMRContainersClient, CancelJobRunCommand } = require("@aws-sdk/client-emr-containers"); +const { EMRContainersClient, ListJobRunsCommand } = require("@aws-sdk/client-emr-containers"); ``` ```ts // ES6+ example -import { EMRContainersClient, CancelJobRunCommand } from "@aws-sdk/client-emr-containers"; +import { EMRContainersClient, ListJobRunsCommand } from "@aws-sdk/client-emr-containers"; ``` ### Usage @@ -74,7 +74,7 @@ const client = new EMRContainersClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJobRunCommand(params); +const command = new ListJobRunsCommand(params); ``` #### Async/await @@ -153,7 +153,7 @@ const client = new AWS.EMRContainers({ region: "REGION" }); // async/await. try { - const data = await client.cancelJobRun(params); + const data = await client.listJobRuns(params); // process data. } catch (error) { // error handling. @@ -161,7 +161,7 @@ try { // Promises. client - .cancelJobRun(params) + .listJobRuns(params) .then((data) => { // process data. }) @@ -170,7 +170,7 @@ client }); // callbacks. -client.cancelJobRun(params, (err, data) => { +client.listJobRuns(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-emr-serverless/README.md b/clients/client-emr-serverless/README.md index 449f3f7f1914..6c75bd88a508 100644 --- a/clients/client-emr-serverless/README.md +++ b/clients/client-emr-serverless/README.md @@ -43,16 +43,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 `EMRServerlessClient` and -the commands you need, for example `CancelJobRunCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { EMRServerlessClient, CancelJobRunCommand } = require("@aws-sdk/client-emr-serverless"); +const { EMRServerlessClient, ListApplicationsCommand } = require("@aws-sdk/client-emr-serverless"); ``` ```ts // ES6+ example -import { EMRServerlessClient, CancelJobRunCommand } from "@aws-sdk/client-emr-serverless"; +import { EMRServerlessClient, ListApplicationsCommand } from "@aws-sdk/client-emr-serverless"; ``` ### Usage @@ -71,7 +71,7 @@ const client = new EMRServerlessClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJobRunCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -150,7 +150,7 @@ const client = new AWS.EMRServerless({ region: "REGION" }); // async/await. try { - const data = await client.cancelJobRun(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -158,7 +158,7 @@ try { // Promises. client - .cancelJobRun(params) + .listApplications(params) .then((data) => { // process data. }) @@ -167,7 +167,7 @@ client }); // callbacks. -client.cancelJobRun(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-emr/README.md b/clients/client-emr/README.md index ef56417022c9..0c314a415518 100644 --- a/clients/client-emr/README.md +++ b/clients/client-emr/README.md @@ -25,16 +25,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 `EMRClient` and -the commands you need, for example `AddInstanceFleetCommand`: +the commands you need, for example `ListStudiosCommand`: ```js // ES5 example -const { EMRClient, AddInstanceFleetCommand } = require("@aws-sdk/client-emr"); +const { EMRClient, ListStudiosCommand } = require("@aws-sdk/client-emr"); ``` ```ts // ES6+ example -import { EMRClient, AddInstanceFleetCommand } from "@aws-sdk/client-emr"; +import { EMRClient, ListStudiosCommand } from "@aws-sdk/client-emr"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new EMRClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddInstanceFleetCommand(params); +const command = new ListStudiosCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.EMR({ region: "REGION" }); // async/await. try { - const data = await client.addInstanceFleet(params); + const data = await client.listStudios(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .addInstanceFleet(params) + .listStudios(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.addInstanceFleet(params, (err, data) => { +client.listStudios(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-entityresolution/README.md b/clients/client-entityresolution/README.md index 000346732875..7a2086b4e43b 100644 --- a/clients/client-entityresolution/README.md +++ b/clients/client-entityresolution/README.md @@ -34,16 +34,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 `EntityResolutionClient` and -the commands you need, for example `CreateMatchingWorkflowCommand`: +the commands you need, for example `ListMatchingJobsCommand`: ```js // ES5 example -const { EntityResolutionClient, CreateMatchingWorkflowCommand } = require("@aws-sdk/client-entityresolution"); +const { EntityResolutionClient, ListMatchingJobsCommand } = require("@aws-sdk/client-entityresolution"); ``` ```ts // ES6+ example -import { EntityResolutionClient, CreateMatchingWorkflowCommand } from "@aws-sdk/client-entityresolution"; +import { EntityResolutionClient, ListMatchingJobsCommand } from "@aws-sdk/client-entityresolution"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new EntityResolutionClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateMatchingWorkflowCommand(params); +const command = new ListMatchingJobsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.EntityResolution({ region: "REGION" }); // async/await. try { - const data = await client.createMatchingWorkflow(params); + const data = await client.listMatchingJobs(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .createMatchingWorkflow(params) + .listMatchingJobs(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.createMatchingWorkflow(params, (err, data) => { +client.listMatchingJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-eventbridge/README.md b/clients/client-eventbridge/README.md index ec66d60d0c58..09757acc8599 100644 --- a/clients/client-eventbridge/README.md +++ b/clients/client-eventbridge/README.md @@ -43,16 +43,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 `EventBridgeClient` and -the commands you need, for example `ActivateEventSourceCommand`: +the commands you need, for example `ListReplaysCommand`: ```js // ES5 example -const { EventBridgeClient, ActivateEventSourceCommand } = require("@aws-sdk/client-eventbridge"); +const { EventBridgeClient, ListReplaysCommand } = require("@aws-sdk/client-eventbridge"); ``` ```ts // ES6+ example -import { EventBridgeClient, ActivateEventSourceCommand } from "@aws-sdk/client-eventbridge"; +import { EventBridgeClient, ListReplaysCommand } from "@aws-sdk/client-eventbridge"; ``` ### Usage @@ -71,7 +71,7 @@ const client = new EventBridgeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateEventSourceCommand(params); +const command = new ListReplaysCommand(params); ``` #### Async/await @@ -150,7 +150,7 @@ const client = new AWS.EventBridge({ region: "REGION" }); // async/await. try { - const data = await client.activateEventSource(params); + const data = await client.listReplays(params); // process data. } catch (error) { // error handling. @@ -158,7 +158,7 @@ try { // Promises. client - .activateEventSource(params) + .listReplays(params) .then((data) => { // process data. }) @@ -167,7 +167,7 @@ client }); // callbacks. -client.activateEventSource(params, (err, data) => { +client.listReplays(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-evidently/README.md b/clients/client-evidently/README.md index f8e0948e38a6..7edd6ce87a10 100644 --- a/clients/client-evidently/README.md +++ b/clients/client-evidently/README.md @@ -32,16 +32,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 `EvidentlyClient` and -the commands you need, for example `BatchEvaluateFeatureCommand`: +the commands you need, for example `ListProjectsCommand`: ```js // ES5 example -const { EvidentlyClient, BatchEvaluateFeatureCommand } = require("@aws-sdk/client-evidently"); +const { EvidentlyClient, ListProjectsCommand } = require("@aws-sdk/client-evidently"); ``` ```ts // ES6+ example -import { EvidentlyClient, BatchEvaluateFeatureCommand } from "@aws-sdk/client-evidently"; +import { EvidentlyClient, ListProjectsCommand } from "@aws-sdk/client-evidently"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new EvidentlyClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchEvaluateFeatureCommand(params); +const command = new ListProjectsCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.Evidently({ region: "REGION" }); // async/await. try { - const data = await client.batchEvaluateFeature(params); + const data = await client.listProjects(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .batchEvaluateFeature(params) + .listProjects(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.batchEvaluateFeature(params, (err, data) => { +client.listProjects(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-finspace-data/README.md b/clients/client-finspace-data/README.md index d8ad2d3fd158..fb671c12f1f5 100644 --- a/clients/client-finspace-data/README.md +++ b/clients/client-finspace-data/README.md @@ -23,16 +23,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 `FinspaceDataClient` and -the commands you need, for example `AssociateUserToPermissionGroupCommand`: +the commands you need, for example `ListDatasetsCommand`: ```js // ES5 example -const { FinspaceDataClient, AssociateUserToPermissionGroupCommand } = require("@aws-sdk/client-finspace-data"); +const { FinspaceDataClient, ListDatasetsCommand } = require("@aws-sdk/client-finspace-data"); ``` ```ts // ES6+ example -import { FinspaceDataClient, AssociateUserToPermissionGroupCommand } from "@aws-sdk/client-finspace-data"; +import { FinspaceDataClient, ListDatasetsCommand } from "@aws-sdk/client-finspace-data"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new FinspaceDataClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateUserToPermissionGroupCommand(params); +const command = new ListDatasetsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.FinspaceData({ region: "REGION" }); // async/await. try { - const data = await client.associateUserToPermissionGroup(params); + const data = await client.listDatasets(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateUserToPermissionGroup(params) + .listDatasets(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateUserToPermissionGroup(params, (err, data) => { +client.listDatasets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-finspace/README.md b/clients/client-finspace/README.md index 86a4ebcb8f4c..a87c1ba901ce 100644 --- a/clients/client-finspace/README.md +++ b/clients/client-finspace/README.md @@ -23,16 +23,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 `FinspaceClient` and -the commands you need, for example `CreateEnvironmentCommand`: +the commands you need, for example `ListEnvironmentsCommand`: ```js // ES5 example -const { FinspaceClient, CreateEnvironmentCommand } = require("@aws-sdk/client-finspace"); +const { FinspaceClient, ListEnvironmentsCommand } = require("@aws-sdk/client-finspace"); ``` ```ts // ES6+ example -import { FinspaceClient, CreateEnvironmentCommand } from "@aws-sdk/client-finspace"; +import { FinspaceClient, ListEnvironmentsCommand } from "@aws-sdk/client-finspace"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new FinspaceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateEnvironmentCommand(params); +const command = new ListEnvironmentsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Finspace({ region: "REGION" }); // async/await. try { - const data = await client.createEnvironment(params); + const data = await client.listEnvironments(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createEnvironment(params) + .listEnvironments(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createEnvironment(params, (err, data) => { +client.listEnvironments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-firehose/README.md b/clients/client-firehose/README.md index 86ce9e1be635..7c10eb85d5e2 100644 --- a/clients/client-firehose/README.md +++ b/clients/client-firehose/README.md @@ -28,16 +28,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 `FirehoseClient` and -the commands you need, for example `CreateDeliveryStreamCommand`: +the commands you need, for example `ListDeliveryStreamsCommand`: ```js // ES5 example -const { FirehoseClient, CreateDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); +const { FirehoseClient, ListDeliveryStreamsCommand } = require("@aws-sdk/client-firehose"); ``` ```ts // ES6+ example -import { FirehoseClient, CreateDeliveryStreamCommand } from "@aws-sdk/client-firehose"; +import { FirehoseClient, ListDeliveryStreamsCommand } from "@aws-sdk/client-firehose"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new FirehoseClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateDeliveryStreamCommand(params); +const command = new ListDeliveryStreamsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.Firehose({ region: "REGION" }); // async/await. try { - const data = await client.createDeliveryStream(params); + const data = await client.listDeliveryStreams(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .createDeliveryStream(params) + .listDeliveryStreams(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.createDeliveryStream(params, (err, data) => { +client.listDeliveryStreams(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-fis/README.md b/clients/client-fis/README.md index db404cbe7efe..a7b989c30cf0 100644 --- a/clients/client-fis/README.md +++ b/clients/client-fis/README.md @@ -24,16 +24,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 `FisClient` and -the commands you need, for example `CreateExperimentTemplateCommand`: +the commands you need, for example `ListActionsCommand`: ```js // ES5 example -const { FisClient, CreateExperimentTemplateCommand } = require("@aws-sdk/client-fis"); +const { FisClient, ListActionsCommand } = require("@aws-sdk/client-fis"); ``` ```ts // ES6+ example -import { FisClient, CreateExperimentTemplateCommand } from "@aws-sdk/client-fis"; +import { FisClient, ListActionsCommand } from "@aws-sdk/client-fis"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new FisClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateExperimentTemplateCommand(params); +const command = new ListActionsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.Fis({ region: "REGION" }); // async/await. try { - const data = await client.createExperimentTemplate(params); + const data = await client.listActions(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .createExperimentTemplate(params) + .listActions(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.createExperimentTemplate(params, (err, data) => { +client.listActions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-fms/README.md b/clients/client-fms/README.md index 0395dc845d8f..be0b6c031c66 100644 --- a/clients/client-fms/README.md +++ b/clients/client-fms/README.md @@ -29,16 +29,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 `FMSClient` and -the commands you need, for example `AssociateAdminAccountCommand`: +the commands you need, for example `ListPoliciesCommand`: ```js // ES5 example -const { FMSClient, AssociateAdminAccountCommand } = require("@aws-sdk/client-fms"); +const { FMSClient, ListPoliciesCommand } = require("@aws-sdk/client-fms"); ``` ```ts // ES6+ example -import { FMSClient, AssociateAdminAccountCommand } from "@aws-sdk/client-fms"; +import { FMSClient, ListPoliciesCommand } from "@aws-sdk/client-fms"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new FMSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAdminAccountCommand(params); +const command = new ListPoliciesCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.FMS({ region: "REGION" }); // async/await. try { - const data = await client.associateAdminAccount(params); + const data = await client.listPolicies(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .associateAdminAccount(params) + .listPolicies(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.associateAdminAccount(params, (err, data) => { +client.listPolicies(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-forecast/README.md b/clients/client-forecast/README.md index ac12417f314d..76dc7fe6810e 100644 --- a/clients/client-forecast/README.md +++ b/clients/client-forecast/README.md @@ -23,16 +23,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 `ForecastClient` and -the commands you need, for example `CreateAutoPredictorCommand`: +the commands you need, for example `ListDatasetGroupsCommand`: ```js // ES5 example -const { ForecastClient, CreateAutoPredictorCommand } = require("@aws-sdk/client-forecast"); +const { ForecastClient, ListDatasetGroupsCommand } = require("@aws-sdk/client-forecast"); ``` ```ts // ES6+ example -import { ForecastClient, CreateAutoPredictorCommand } from "@aws-sdk/client-forecast"; +import { ForecastClient, ListDatasetGroupsCommand } from "@aws-sdk/client-forecast"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new ForecastClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAutoPredictorCommand(params); +const command = new ListDatasetGroupsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Forecast({ region: "REGION" }); // async/await. try { - const data = await client.createAutoPredictor(params); + const data = await client.listDatasetGroups(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createAutoPredictor(params) + .listDatasetGroups(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createAutoPredictor(params, (err, data) => { +client.listDatasetGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-frauddetector/README.md b/clients/client-frauddetector/README.md index a4c76049d9f3..ceda90ac838a 100644 --- a/clients/client-frauddetector/README.md +++ b/clients/client-frauddetector/README.md @@ -32,16 +32,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 `FraudDetectorClient` and -the commands you need, for example `BatchCreateVariableCommand`: +the commands you need, for example `ListEventPredictionsCommand`: ```js // ES5 example -const { FraudDetectorClient, BatchCreateVariableCommand } = require("@aws-sdk/client-frauddetector"); +const { FraudDetectorClient, ListEventPredictionsCommand } = require("@aws-sdk/client-frauddetector"); ``` ```ts // ES6+ example -import { FraudDetectorClient, BatchCreateVariableCommand } from "@aws-sdk/client-frauddetector"; +import { FraudDetectorClient, ListEventPredictionsCommand } from "@aws-sdk/client-frauddetector"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new FraudDetectorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCreateVariableCommand(params); +const command = new ListEventPredictionsCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.FraudDetector({ region: "REGION" }); // async/await. try { - const data = await client.batchCreateVariable(params); + const data = await client.listEventPredictions(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .batchCreateVariable(params) + .listEventPredictions(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.batchCreateVariable(params, (err, data) => { +client.listEventPredictions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-fsx/README.md b/clients/client-fsx/README.md index 4e8dec48ed0f..58c11acb471b 100644 --- a/clients/client-fsx/README.md +++ b/clients/client-fsx/README.md @@ -24,16 +24,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 `FSxClient` and -the commands you need, for example `AssociateFileSystemAliasesCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { FSxClient, AssociateFileSystemAliasesCommand } = require("@aws-sdk/client-fsx"); +const { FSxClient, ListTagsForResourceCommand } = require("@aws-sdk/client-fsx"); ``` ```ts // ES6+ example -import { FSxClient, AssociateFileSystemAliasesCommand } from "@aws-sdk/client-fsx"; +import { FSxClient, ListTagsForResourceCommand } from "@aws-sdk/client-fsx"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new FSxClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateFileSystemAliasesCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.FSx({ region: "REGION" }); // async/await. try { - const data = await client.associateFileSystemAliases(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .associateFileSystemAliases(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.associateFileSystemAliases(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-gamelift/README.md b/clients/client-gamelift/README.md index 1a79b254f6c4..9021776936c8 100644 --- a/clients/client-gamelift/README.md +++ b/clients/client-gamelift/README.md @@ -80,16 +80,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 `GameLiftClient` and -the commands you need, for example `AcceptMatchCommand`: +the commands you need, for example `ListAliasesCommand`: ```js // ES5 example -const { GameLiftClient, AcceptMatchCommand } = require("@aws-sdk/client-gamelift"); +const { GameLiftClient, ListAliasesCommand } = require("@aws-sdk/client-gamelift"); ``` ```ts // ES6+ example -import { GameLiftClient, AcceptMatchCommand } from "@aws-sdk/client-gamelift"; +import { GameLiftClient, ListAliasesCommand } from "@aws-sdk/client-gamelift"; ``` ### Usage @@ -108,7 +108,7 @@ const client = new GameLiftClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptMatchCommand(params); +const command = new ListAliasesCommand(params); ``` #### Async/await @@ -187,7 +187,7 @@ const client = new AWS.GameLift({ region: "REGION" }); // async/await. try { - const data = await client.acceptMatch(params); + const data = await client.listAliases(params); // process data. } catch (error) { // error handling. @@ -195,7 +195,7 @@ try { // Promises. client - .acceptMatch(params) + .listAliases(params) .then((data) => { // process data. }) @@ -204,7 +204,7 @@ client }); // callbacks. -client.acceptMatch(params, (err, data) => { +client.listAliases(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-gamesparks/README.md b/clients/client-gamesparks/README.md index c3b02d044712..94abd33200c8 100644 --- a/clients/client-gamesparks/README.md +++ b/clients/client-gamesparks/README.md @@ -23,16 +23,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 `GameSparksClient` and -the commands you need, for example `CreateGameCommand`: +the commands you need, for example `ListGamesCommand`: ```js // ES5 example -const { GameSparksClient, CreateGameCommand } = require("@aws-sdk/client-gamesparks"); +const { GameSparksClient, ListGamesCommand } = require("@aws-sdk/client-gamesparks"); ``` ```ts // ES6+ example -import { GameSparksClient, CreateGameCommand } from "@aws-sdk/client-gamesparks"; +import { GameSparksClient, ListGamesCommand } from "@aws-sdk/client-gamesparks"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new GameSparksClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateGameCommand(params); +const command = new ListGamesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.GameSparks({ region: "REGION" }); // async/await. try { - const data = await client.createGame(params); + const data = await client.listGames(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createGame(params) + .listGames(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createGame(params, (err, data) => { +client.listGames(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-glacier/README.md b/clients/client-glacier/README.md index a09f8641a018..2e86dad6b60c 100644 --- a/clients/client-glacier/README.md +++ b/clients/client-glacier/README.md @@ -60,16 +60,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 `GlacierClient` and -the commands you need, for example `AbortMultipartUploadCommand`: +the commands you need, for example `ListVaultsCommand`: ```js // ES5 example -const { GlacierClient, AbortMultipartUploadCommand } = require("@aws-sdk/client-glacier"); +const { GlacierClient, ListVaultsCommand } = require("@aws-sdk/client-glacier"); ``` ```ts // ES6+ example -import { GlacierClient, AbortMultipartUploadCommand } from "@aws-sdk/client-glacier"; +import { GlacierClient, ListVaultsCommand } from "@aws-sdk/client-glacier"; ``` ### Usage @@ -88,7 +88,7 @@ const client = new GlacierClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AbortMultipartUploadCommand(params); +const command = new ListVaultsCommand(params); ``` #### Async/await @@ -167,7 +167,7 @@ const client = new AWS.Glacier({ region: "REGION" }); // async/await. try { - const data = await client.abortMultipartUpload(params); + const data = await client.listVaults(params); // process data. } catch (error) { // error handling. @@ -175,7 +175,7 @@ try { // Promises. client - .abortMultipartUpload(params) + .listVaults(params) .then((data) => { // process data. }) @@ -184,7 +184,7 @@ client }); // callbacks. -client.abortMultipartUpload(params, (err, data) => { +client.listVaults(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-global-accelerator/README.md b/clients/client-global-accelerator/README.md index 0edf2eed5604..19235f4f55a5 100644 --- a/clients/client-global-accelerator/README.md +++ b/clients/client-global-accelerator/README.md @@ -71,16 +71,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 `GlobalAcceleratorClient` and -the commands you need, for example `AddCustomRoutingEndpointsCommand`: +the commands you need, for example `ListAcceleratorsCommand`: ```js // ES5 example -const { GlobalAcceleratorClient, AddCustomRoutingEndpointsCommand } = require("@aws-sdk/client-global-accelerator"); +const { GlobalAcceleratorClient, ListAcceleratorsCommand } = require("@aws-sdk/client-global-accelerator"); ``` ```ts // ES6+ example -import { GlobalAcceleratorClient, AddCustomRoutingEndpointsCommand } from "@aws-sdk/client-global-accelerator"; +import { GlobalAcceleratorClient, ListAcceleratorsCommand } from "@aws-sdk/client-global-accelerator"; ``` ### Usage @@ -99,7 +99,7 @@ const client = new GlobalAcceleratorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddCustomRoutingEndpointsCommand(params); +const command = new ListAcceleratorsCommand(params); ``` #### Async/await @@ -178,7 +178,7 @@ const client = new AWS.GlobalAccelerator({ region: "REGION" }); // async/await. try { - const data = await client.addCustomRoutingEndpoints(params); + const data = await client.listAccelerators(params); // process data. } catch (error) { // error handling. @@ -186,7 +186,7 @@ try { // Promises. client - .addCustomRoutingEndpoints(params) + .listAccelerators(params) .then((data) => { // process data. }) @@ -195,7 +195,7 @@ client }); // callbacks. -client.addCustomRoutingEndpoints(params, (err, data) => { +client.listAccelerators(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-glue/README.md b/clients/client-glue/README.md index f65ce0872448..cdc680da0aee 100644 --- a/clients/client-glue/README.md +++ b/clients/client-glue/README.md @@ -25,16 +25,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 `GlueClient` and -the commands you need, for example `BatchCreatePartitionCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { GlueClient, BatchCreatePartitionCommand } = require("@aws-sdk/client-glue"); +const { GlueClient, ListJobsCommand } = require("@aws-sdk/client-glue"); ``` ```ts // ES6+ example -import { GlueClient, BatchCreatePartitionCommand } from "@aws-sdk/client-glue"; +import { GlueClient, ListJobsCommand } from "@aws-sdk/client-glue"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new GlueClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCreatePartitionCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.Glue({ region: "REGION" }); // async/await. try { - const data = await client.batchCreatePartition(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .batchCreatePartition(params) + .listJobs(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.batchCreatePartition(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-grafana/README.md b/clients/client-grafana/README.md index 4990882b8ac1..e68b8b8bd1d6 100644 --- a/clients/client-grafana/README.md +++ b/clients/client-grafana/README.md @@ -31,16 +31,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 `GrafanaClient` and -the commands you need, for example `AssociateLicenseCommand`: +the commands you need, for example `ListVersionsCommand`: ```js // ES5 example -const { GrafanaClient, AssociateLicenseCommand } = require("@aws-sdk/client-grafana"); +const { GrafanaClient, ListVersionsCommand } = require("@aws-sdk/client-grafana"); ``` ```ts // ES6+ example -import { GrafanaClient, AssociateLicenseCommand } from "@aws-sdk/client-grafana"; +import { GrafanaClient, ListVersionsCommand } from "@aws-sdk/client-grafana"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new GrafanaClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateLicenseCommand(params); +const command = new ListVersionsCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.Grafana({ region: "REGION" }); // async/await. try { - const data = await client.associateLicense(params); + const data = await client.listVersions(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .associateLicense(params) + .listVersions(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.associateLicense(params, (err, data) => { +client.listVersions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-greengrass/README.md b/clients/client-greengrass/README.md index d42d79353512..81d3397f4290 100644 --- a/clients/client-greengrass/README.md +++ b/clients/client-greengrass/README.md @@ -23,16 +23,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 `GreengrassClient` and -the commands you need, for example `AssociateRoleToGroupCommand`: +the commands you need, for example `ListGroupsCommand`: ```js // ES5 example -const { GreengrassClient, AssociateRoleToGroupCommand } = require("@aws-sdk/client-greengrass"); +const { GreengrassClient, ListGroupsCommand } = require("@aws-sdk/client-greengrass"); ``` ```ts // ES6+ example -import { GreengrassClient, AssociateRoleToGroupCommand } from "@aws-sdk/client-greengrass"; +import { GreengrassClient, ListGroupsCommand } from "@aws-sdk/client-greengrass"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new GreengrassClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateRoleToGroupCommand(params); +const command = new ListGroupsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Greengrass({ region: "REGION" }); // async/await. try { - const data = await client.associateRoleToGroup(params); + const data = await client.listGroups(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateRoleToGroup(params) + .listGroups(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateRoleToGroup(params, (err, data) => { +client.listGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-greengrassv2/README.md b/clients/client-greengrassv2/README.md index a4250be437cc..e45cee22f453 100644 --- a/clients/client-greengrassv2/README.md +++ b/clients/client-greengrassv2/README.md @@ -33,16 +33,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 `GreengrassV2Client` and -the commands you need, for example `AssociateServiceRoleToAccountCommand`: +the commands you need, for example `ListComponentsCommand`: ```js // ES5 example -const { GreengrassV2Client, AssociateServiceRoleToAccountCommand } = require("@aws-sdk/client-greengrassv2"); +const { GreengrassV2Client, ListComponentsCommand } = require("@aws-sdk/client-greengrassv2"); ``` ```ts // ES6+ example -import { GreengrassV2Client, AssociateServiceRoleToAccountCommand } from "@aws-sdk/client-greengrassv2"; +import { GreengrassV2Client, ListComponentsCommand } from "@aws-sdk/client-greengrassv2"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new GreengrassV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateServiceRoleToAccountCommand(params); +const command = new ListComponentsCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.GreengrassV2({ region: "REGION" }); // async/await. try { - const data = await client.associateServiceRoleToAccount(params); + const data = await client.listComponents(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .associateServiceRoleToAccount(params) + .listComponents(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.associateServiceRoleToAccount(params, (err, data) => { +client.listComponents(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-groundstation/README.md b/clients/client-groundstation/README.md index 142490d6d4a6..238ad6d7a10e 100644 --- a/clients/client-groundstation/README.md +++ b/clients/client-groundstation/README.md @@ -26,16 +26,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 `GroundStationClient` and -the commands you need, for example `CancelContactCommand`: +the commands you need, for example `ListConfigsCommand`: ```js // ES5 example -const { GroundStationClient, CancelContactCommand } = require("@aws-sdk/client-groundstation"); +const { GroundStationClient, ListConfigsCommand } = require("@aws-sdk/client-groundstation"); ``` ```ts // ES6+ example -import { GroundStationClient, CancelContactCommand } from "@aws-sdk/client-groundstation"; +import { GroundStationClient, ListConfigsCommand } from "@aws-sdk/client-groundstation"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new GroundStationClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelContactCommand(params); +const command = new ListConfigsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.GroundStation({ region: "REGION" }); // async/await. try { - const data = await client.cancelContact(params); + const data = await client.listConfigs(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .cancelContact(params) + .listConfigs(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.cancelContact(params, (err, data) => { +client.listConfigs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-guardduty/README.md b/clients/client-guardduty/README.md index 122f6cdd1d8b..1d2c9fb7c03e 100644 --- a/clients/client-guardduty/README.md +++ b/clients/client-guardduty/README.md @@ -41,16 +41,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 `GuardDutyClient` and -the commands you need, for example `AcceptAdministratorInvitationCommand`: +the commands you need, for example `ListDetectorsCommand`: ```js // ES5 example -const { GuardDutyClient, AcceptAdministratorInvitationCommand } = require("@aws-sdk/client-guardduty"); +const { GuardDutyClient, ListDetectorsCommand } = require("@aws-sdk/client-guardduty"); ``` ```ts // ES6+ example -import { GuardDutyClient, AcceptAdministratorInvitationCommand } from "@aws-sdk/client-guardduty"; +import { GuardDutyClient, ListDetectorsCommand } from "@aws-sdk/client-guardduty"; ``` ### Usage @@ -69,7 +69,7 @@ const client = new GuardDutyClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptAdministratorInvitationCommand(params); +const command = new ListDetectorsCommand(params); ``` #### Async/await @@ -148,7 +148,7 @@ const client = new AWS.GuardDuty({ region: "REGION" }); // async/await. try { - const data = await client.acceptAdministratorInvitation(params); + const data = await client.listDetectors(params); // process data. } catch (error) { // error handling. @@ -156,7 +156,7 @@ try { // Promises. client - .acceptAdministratorInvitation(params) + .listDetectors(params) .then((data) => { // process data. }) @@ -165,7 +165,7 @@ client }); // callbacks. -client.acceptAdministratorInvitation(params, (err, data) => { +client.listDetectors(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-health/README.md b/clients/client-health/README.md index 21053379fefb..697712b1ac02 100644 --- a/clients/client-health/README.md +++ b/clients/client-health/README.md @@ -66,16 +66,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 `HealthClient` and -the commands you need, for example `DescribeAffectedAccountsForOrganizationCommand`: +the commands you need, for example `DescribeEventsCommand`: ```js // ES5 example -const { HealthClient, DescribeAffectedAccountsForOrganizationCommand } = require("@aws-sdk/client-health"); +const { HealthClient, DescribeEventsCommand } = require("@aws-sdk/client-health"); ``` ```ts // ES6+ example -import { HealthClient, DescribeAffectedAccountsForOrganizationCommand } from "@aws-sdk/client-health"; +import { HealthClient, DescribeEventsCommand } from "@aws-sdk/client-health"; ``` ### Usage @@ -94,7 +94,7 @@ const client = new HealthClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeAffectedAccountsForOrganizationCommand(params); +const command = new DescribeEventsCommand(params); ``` #### Async/await @@ -173,7 +173,7 @@ const client = new AWS.Health({ region: "REGION" }); // async/await. try { - const data = await client.describeAffectedAccountsForOrganization(params); + const data = await client.describeEvents(params); // process data. } catch (error) { // error handling. @@ -181,7 +181,7 @@ try { // Promises. client - .describeAffectedAccountsForOrganization(params) + .describeEvents(params) .then((data) => { // process data. }) @@ -190,7 +190,7 @@ client }); // callbacks. -client.describeAffectedAccountsForOrganization(params, (err, data) => { +client.describeEvents(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-healthlake/README.md b/clients/client-healthlake/README.md index e90578ddb338..4704eb978204 100644 --- a/clients/client-healthlake/README.md +++ b/clients/client-healthlake/README.md @@ -24,16 +24,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 `HealthLakeClient` and -the commands you need, for example `CreateFHIRDatastoreCommand`: +the commands you need, for example `ListFHIRDatastoresCommand`: ```js // ES5 example -const { HealthLakeClient, CreateFHIRDatastoreCommand } = require("@aws-sdk/client-healthlake"); +const { HealthLakeClient, ListFHIRDatastoresCommand } = require("@aws-sdk/client-healthlake"); ``` ```ts // ES6+ example -import { HealthLakeClient, CreateFHIRDatastoreCommand } from "@aws-sdk/client-healthlake"; +import { HealthLakeClient, ListFHIRDatastoresCommand } from "@aws-sdk/client-healthlake"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new HealthLakeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateFHIRDatastoreCommand(params); +const command = new ListFHIRDatastoresCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.HealthLake({ region: "REGION" }); // async/await. try { - const data = await client.createFHIRDatastore(params); + const data = await client.listFHIRDatastores(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .createFHIRDatastore(params) + .listFHIRDatastores(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.createFHIRDatastore(params, (err, data) => { +client.listFHIRDatastores(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-honeycode/README.md b/clients/client-honeycode/README.md index 7442e261e89f..ec34507a3e56 100644 --- a/clients/client-honeycode/README.md +++ b/clients/client-honeycode/README.md @@ -27,16 +27,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 `HoneycodeClient` and -the commands you need, for example `BatchCreateTableRowsCommand`: +the commands you need, for example `ListTablesCommand`: ```js // ES5 example -const { HoneycodeClient, BatchCreateTableRowsCommand } = require("@aws-sdk/client-honeycode"); +const { HoneycodeClient, ListTablesCommand } = require("@aws-sdk/client-honeycode"); ``` ```ts // ES6+ example -import { HoneycodeClient, BatchCreateTableRowsCommand } from "@aws-sdk/client-honeycode"; +import { HoneycodeClient, ListTablesCommand } from "@aws-sdk/client-honeycode"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new HoneycodeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCreateTableRowsCommand(params); +const command = new ListTablesCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Honeycode({ region: "REGION" }); // async/await. try { - const data = await client.batchCreateTableRows(params); + const data = await client.listTables(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .batchCreateTableRows(params) + .listTables(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.batchCreateTableRows(params, (err, data) => { +client.listTables(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iam/README.md b/clients/client-iam/README.md index f2d0c6195995..259ca9a3fd5d 100644 --- a/clients/client-iam/README.md +++ b/clients/client-iam/README.md @@ -28,16 +28,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 `IAMClient` and -the commands you need, for example `AddClientIDToOpenIDConnectProviderCommand`: +the commands you need, for example `ListGroupsCommand`: ```js // ES5 example -const { IAMClient, AddClientIDToOpenIDConnectProviderCommand } = require("@aws-sdk/client-iam"); +const { IAMClient, ListGroupsCommand } = require("@aws-sdk/client-iam"); ``` ```ts // ES6+ example -import { IAMClient, AddClientIDToOpenIDConnectProviderCommand } from "@aws-sdk/client-iam"; +import { IAMClient, ListGroupsCommand } from "@aws-sdk/client-iam"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new IAMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddClientIDToOpenIDConnectProviderCommand(params); +const command = new ListGroupsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.IAM({ region: "REGION" }); // async/await. try { - const data = await client.addClientIDToOpenIDConnectProvider(params); + const data = await client.listGroups(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .addClientIDToOpenIDConnectProvider(params) + .listGroups(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.addClientIDToOpenIDConnectProvider(params, (err, data) => { +client.listGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-identitystore/README.md b/clients/client-identitystore/README.md index a3e1676bc706..93136521f467 100644 --- a/clients/client-identitystore/README.md +++ b/clients/client-identitystore/README.md @@ -30,16 +30,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 `IdentitystoreClient` and -the commands you need, for example `CreateGroupCommand`: +the commands you need, for example `ListGroupsCommand`: ```js // ES5 example -const { IdentitystoreClient, CreateGroupCommand } = require("@aws-sdk/client-identitystore"); +const { IdentitystoreClient, ListGroupsCommand } = require("@aws-sdk/client-identitystore"); ``` ```ts // ES6+ example -import { IdentitystoreClient, CreateGroupCommand } from "@aws-sdk/client-identitystore"; +import { IdentitystoreClient, ListGroupsCommand } from "@aws-sdk/client-identitystore"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new IdentitystoreClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateGroupCommand(params); +const command = new ListGroupsCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.Identitystore({ region: "REGION" }); // async/await. try { - const data = await client.createGroup(params); + const data = await client.listGroups(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .createGroup(params) + .listGroups(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.createGroup(params, (err, data) => { +client.listGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-imagebuilder/README.md b/clients/client-imagebuilder/README.md index fd8a8a6dfc56..2c6f6814fa95 100644 --- a/clients/client-imagebuilder/README.md +++ b/clients/client-imagebuilder/README.md @@ -26,16 +26,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 `ImagebuilderClient` and -the commands you need, for example `CancelImageCreationCommand`: +the commands you need, for example `ListImagesCommand`: ```js // ES5 example -const { ImagebuilderClient, CancelImageCreationCommand } = require("@aws-sdk/client-imagebuilder"); +const { ImagebuilderClient, ListImagesCommand } = require("@aws-sdk/client-imagebuilder"); ``` ```ts // ES6+ example -import { ImagebuilderClient, CancelImageCreationCommand } from "@aws-sdk/client-imagebuilder"; +import { ImagebuilderClient, ListImagesCommand } from "@aws-sdk/client-imagebuilder"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new ImagebuilderClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelImageCreationCommand(params); +const command = new ListImagesCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.Imagebuilder({ region: "REGION" }); // async/await. try { - const data = await client.cancelImageCreation(params); + const data = await client.listImages(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .cancelImageCreation(params) + .listImages(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.cancelImageCreation(params, (err, data) => { +client.listImages(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-inspector/README.md b/clients/client-inspector/README.md index cc3eaa523988..47135de1e8d0 100644 --- a/clients/client-inspector/README.md +++ b/clients/client-inspector/README.md @@ -27,16 +27,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 `InspectorClient` and -the commands you need, for example `AddAttributesToFindingsCommand`: +the commands you need, for example `ListFindingsCommand`: ```js // ES5 example -const { InspectorClient, AddAttributesToFindingsCommand } = require("@aws-sdk/client-inspector"); +const { InspectorClient, ListFindingsCommand } = require("@aws-sdk/client-inspector"); ``` ```ts // ES6+ example -import { InspectorClient, AddAttributesToFindingsCommand } from "@aws-sdk/client-inspector"; +import { InspectorClient, ListFindingsCommand } from "@aws-sdk/client-inspector"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new InspectorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddAttributesToFindingsCommand(params); +const command = new ListFindingsCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Inspector({ region: "REGION" }); // async/await. try { - const data = await client.addAttributesToFindings(params); + const data = await client.listFindings(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .addAttributesToFindings(params) + .listFindings(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.addAttributesToFindings(params, (err, data) => { +client.listFindings(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-inspector2/README.md b/clients/client-inspector2/README.md index 92894ff986d7..1dbd1cd42ef8 100644 --- a/clients/client-inspector2/README.md +++ b/clients/client-inspector2/README.md @@ -24,16 +24,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 `Inspector2Client` and -the commands you need, for example `AssociateMemberCommand`: +the commands you need, for example `ListFiltersCommand`: ```js // ES5 example -const { Inspector2Client, AssociateMemberCommand } = require("@aws-sdk/client-inspector2"); +const { Inspector2Client, ListFiltersCommand } = require("@aws-sdk/client-inspector2"); ``` ```ts // ES6+ example -import { Inspector2Client, AssociateMemberCommand } from "@aws-sdk/client-inspector2"; +import { Inspector2Client, ListFiltersCommand } from "@aws-sdk/client-inspector2"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new Inspector2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateMemberCommand(params); +const command = new ListFiltersCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.Inspector2({ region: "REGION" }); // async/await. try { - const data = await client.associateMember(params); + const data = await client.listFilters(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .associateMember(params) + .listFilters(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.associateMember(params, (err, data) => { +client.listFilters(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-internetmonitor/README.md b/clients/client-internetmonitor/README.md index 82883f9c0d09..7b2db680d0cb 100644 --- a/clients/client-internetmonitor/README.md +++ b/clients/client-internetmonitor/README.md @@ -38,16 +38,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 `InternetMonitorClient` and -the commands you need, for example `CreateMonitorCommand`: +the commands you need, for example `ListMonitorsCommand`: ```js // ES5 example -const { InternetMonitorClient, CreateMonitorCommand } = require("@aws-sdk/client-internetmonitor"); +const { InternetMonitorClient, ListMonitorsCommand } = require("@aws-sdk/client-internetmonitor"); ``` ```ts // ES6+ example -import { InternetMonitorClient, CreateMonitorCommand } from "@aws-sdk/client-internetmonitor"; +import { InternetMonitorClient, ListMonitorsCommand } from "@aws-sdk/client-internetmonitor"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new InternetMonitorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateMonitorCommand(params); +const command = new ListMonitorsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.InternetMonitor({ region: "REGION" }); // async/await. try { - const data = await client.createMonitor(params); + const data = await client.listMonitors(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .createMonitor(params) + .listMonitors(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.createMonitor(params, (err, data) => { +client.listMonitors(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-1click-devices-service/README.md b/clients/client-iot-1click-devices-service/README.md index 20c0f888bbda..7d366ea04ef1 100644 --- a/clients/client-iot-1click-devices-service/README.md +++ b/clients/client-iot-1click-devices-service/README.md @@ -25,22 +25,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 `IoT1ClickDevicesServiceClient` and -the commands you need, for example `ClaimDevicesByClaimCodeCommand`: +the commands you need, for example `ListDevicesCommand`: ```js // ES5 example -const { - IoT1ClickDevicesServiceClient, - ClaimDevicesByClaimCodeCommand, -} = require("@aws-sdk/client-iot-1click-devices-service"); +const { IoT1ClickDevicesServiceClient, ListDevicesCommand } = require("@aws-sdk/client-iot-1click-devices-service"); ``` ```ts // ES6+ example -import { - IoT1ClickDevicesServiceClient, - ClaimDevicesByClaimCodeCommand, -} from "@aws-sdk/client-iot-1click-devices-service"; +import { IoT1ClickDevicesServiceClient, ListDevicesCommand } from "@aws-sdk/client-iot-1click-devices-service"; ``` ### Usage @@ -59,7 +53,7 @@ const client = new IoT1ClickDevicesServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ClaimDevicesByClaimCodeCommand(params); +const command = new ListDevicesCommand(params); ``` #### Async/await @@ -138,7 +132,7 @@ const client = new AWS.IoT1ClickDevicesService({ region: "REGION" }); // async/await. try { - const data = await client.claimDevicesByClaimCode(params); + const data = await client.listDevices(params); // process data. } catch (error) { // error handling. @@ -146,7 +140,7 @@ try { // Promises. client - .claimDevicesByClaimCode(params) + .listDevices(params) .then((data) => { // process data. }) @@ -155,7 +149,7 @@ client }); // callbacks. -client.claimDevicesByClaimCode(params, (err, data) => { +client.listDevices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-1click-projects/README.md b/clients/client-iot-1click-projects/README.md index c4e9bcd5a310..4387b71d8350 100644 --- a/clients/client-iot-1click-projects/README.md +++ b/clients/client-iot-1click-projects/README.md @@ -23,16 +23,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 `IoT1ClickProjectsClient` and -the commands you need, for example `AssociateDeviceWithPlacementCommand`: +the commands you need, for example `ListProjectsCommand`: ```js // ES5 example -const { IoT1ClickProjectsClient, AssociateDeviceWithPlacementCommand } = require("@aws-sdk/client-iot-1click-projects"); +const { IoT1ClickProjectsClient, ListProjectsCommand } = require("@aws-sdk/client-iot-1click-projects"); ``` ```ts // ES6+ example -import { IoT1ClickProjectsClient, AssociateDeviceWithPlacementCommand } from "@aws-sdk/client-iot-1click-projects"; +import { IoT1ClickProjectsClient, ListProjectsCommand } from "@aws-sdk/client-iot-1click-projects"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new IoT1ClickProjectsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateDeviceWithPlacementCommand(params); +const command = new ListProjectsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.IoT1ClickProjects({ region: "REGION" }); // async/await. try { - const data = await client.associateDeviceWithPlacement(params); + const data = await client.listProjects(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateDeviceWithPlacement(params) + .listProjects(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateDeviceWithPlacement(params, (err, data) => { +client.listProjects(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-data-plane/README.md b/clients/client-iot-data-plane/README.md index 7a239c01d092..2dfc02fb6ce9 100644 --- a/clients/client-iot-data-plane/README.md +++ b/clients/client-iot-data-plane/README.md @@ -34,16 +34,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 `IoTDataPlaneClient` and -the commands you need, for example `DeleteThingShadowCommand`: +the commands you need, for example `ListRetainedMessagesCommand`: ```js // ES5 example -const { IoTDataPlaneClient, DeleteThingShadowCommand } = require("@aws-sdk/client-iot-data-plane"); +const { IoTDataPlaneClient, ListRetainedMessagesCommand } = require("@aws-sdk/client-iot-data-plane"); ``` ```ts // ES6+ example -import { IoTDataPlaneClient, DeleteThingShadowCommand } from "@aws-sdk/client-iot-data-plane"; +import { IoTDataPlaneClient, ListRetainedMessagesCommand } from "@aws-sdk/client-iot-data-plane"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new IoTDataPlaneClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteThingShadowCommand(params); +const command = new ListRetainedMessagesCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.IoTDataPlane({ region: "REGION" }); // async/await. try { - const data = await client.deleteThingShadow(params); + const data = await client.listRetainedMessages(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .deleteThingShadow(params) + .listRetainedMessages(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.deleteThingShadow(params, (err, data) => { +client.listRetainedMessages(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-events-data/README.md b/clients/client-iot-events-data/README.md index afb3cbb5ca14..f5e959ea5743 100644 --- a/clients/client-iot-events-data/README.md +++ b/clients/client-iot-events-data/README.md @@ -27,16 +27,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 `IoTEventsDataClient` and -the commands you need, for example `BatchAcknowledgeAlarmCommand`: +the commands you need, for example `ListAlarmsCommand`: ```js // ES5 example -const { IoTEventsDataClient, BatchAcknowledgeAlarmCommand } = require("@aws-sdk/client-iot-events-data"); +const { IoTEventsDataClient, ListAlarmsCommand } = require("@aws-sdk/client-iot-events-data"); ``` ```ts // ES6+ example -import { IoTEventsDataClient, BatchAcknowledgeAlarmCommand } from "@aws-sdk/client-iot-events-data"; +import { IoTEventsDataClient, ListAlarmsCommand } from "@aws-sdk/client-iot-events-data"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new IoTEventsDataClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchAcknowledgeAlarmCommand(params); +const command = new ListAlarmsCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.IoTEventsData({ region: "REGION" }); // async/await. try { - const data = await client.batchAcknowledgeAlarm(params); + const data = await client.listAlarms(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .batchAcknowledgeAlarm(params) + .listAlarms(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.batchAcknowledgeAlarm(params, (err, data) => { +client.listAlarms(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-events/README.md b/clients/client-iot-events/README.md index 96a5c35a33a9..39d2d8fac0bb 100644 --- a/clients/client-iot-events/README.md +++ b/clients/client-iot-events/README.md @@ -25,16 +25,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 `IoTEventsClient` and -the commands you need, for example `CreateAlarmModelCommand`: +the commands you need, for example `ListInputsCommand`: ```js // ES5 example -const { IoTEventsClient, CreateAlarmModelCommand } = require("@aws-sdk/client-iot-events"); +const { IoTEventsClient, ListInputsCommand } = require("@aws-sdk/client-iot-events"); ``` ```ts // ES6+ example -import { IoTEventsClient, CreateAlarmModelCommand } from "@aws-sdk/client-iot-events"; +import { IoTEventsClient, ListInputsCommand } from "@aws-sdk/client-iot-events"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new IoTEventsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAlarmModelCommand(params); +const command = new ListInputsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.IoTEvents({ region: "REGION" }); // async/await. try { - const data = await client.createAlarmModel(params); + const data = await client.listInputs(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .createAlarmModel(params) + .listInputs(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.createAlarmModel(params, (err, data) => { +client.listInputs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-jobs-data-plane/README.md b/clients/client-iot-jobs-data-plane/README.md index 33e72bb40821..bc7497d4b2ac 100644 --- a/clients/client-iot-jobs-data-plane/README.md +++ b/clients/client-iot-jobs-data-plane/README.md @@ -33,16 +33,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 `IoTJobsDataPlaneClient` and -the commands you need, for example `DescribeJobExecutionCommand`: +the commands you need, for example `GetPendingJobExecutionsCommand`: ```js // ES5 example -const { IoTJobsDataPlaneClient, DescribeJobExecutionCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); +const { IoTJobsDataPlaneClient, GetPendingJobExecutionsCommand } = require("@aws-sdk/client-iot-jobs-data-plane"); ``` ```ts // ES6+ example -import { IoTJobsDataPlaneClient, DescribeJobExecutionCommand } from "@aws-sdk/client-iot-jobs-data-plane"; +import { IoTJobsDataPlaneClient, GetPendingJobExecutionsCommand } from "@aws-sdk/client-iot-jobs-data-plane"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new IoTJobsDataPlaneClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeJobExecutionCommand(params); +const command = new GetPendingJobExecutionsCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.IoTJobsDataPlane({ region: "REGION" }); // async/await. try { - const data = await client.describeJobExecution(params); + const data = await client.getPendingJobExecutions(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .describeJobExecution(params) + .getPendingJobExecutions(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.describeJobExecution(params, (err, data) => { +client.getPendingJobExecutions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-roborunner/README.md b/clients/client-iot-roborunner/README.md index 74f67d005f74..cd76260e684a 100644 --- a/clients/client-iot-roborunner/README.md +++ b/clients/client-iot-roborunner/README.md @@ -24,16 +24,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 `IoTRoboRunnerClient` and -the commands you need, for example `CreateDestinationCommand`: +the commands you need, for example `ListSitesCommand`: ```js // ES5 example -const { IoTRoboRunnerClient, CreateDestinationCommand } = require("@aws-sdk/client-iot-roborunner"); +const { IoTRoboRunnerClient, ListSitesCommand } = require("@aws-sdk/client-iot-roborunner"); ``` ```ts // ES6+ example -import { IoTRoboRunnerClient, CreateDestinationCommand } from "@aws-sdk/client-iot-roborunner"; +import { IoTRoboRunnerClient, ListSitesCommand } from "@aws-sdk/client-iot-roborunner"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new IoTRoboRunnerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateDestinationCommand(params); +const command = new ListSitesCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.IoTRoboRunner({ region: "REGION" }); // async/await. try { - const data = await client.createDestination(params); + const data = await client.listSites(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .createDestination(params) + .listSites(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.createDestination(params, (err, data) => { +client.listSites(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot-wireless/README.md b/clients/client-iot-wireless/README.md index 8bc12e4244ca..0e9f545b32cf 100644 --- a/clients/client-iot-wireless/README.md +++ b/clients/client-iot-wireless/README.md @@ -35,16 +35,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 `IoTWirelessClient` and -the commands you need, for example `AssociateAwsAccountWithPartnerAccountCommand`: +the commands you need, for example `ListDestinationsCommand`: ```js // ES5 example -const { IoTWirelessClient, AssociateAwsAccountWithPartnerAccountCommand } = require("@aws-sdk/client-iot-wireless"); +const { IoTWirelessClient, ListDestinationsCommand } = require("@aws-sdk/client-iot-wireless"); ``` ```ts // ES6+ example -import { IoTWirelessClient, AssociateAwsAccountWithPartnerAccountCommand } from "@aws-sdk/client-iot-wireless"; +import { IoTWirelessClient, ListDestinationsCommand } from "@aws-sdk/client-iot-wireless"; ``` ### Usage @@ -63,7 +63,7 @@ const client = new IoTWirelessClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAwsAccountWithPartnerAccountCommand(params); +const command = new ListDestinationsCommand(params); ``` #### Async/await @@ -142,7 +142,7 @@ const client = new AWS.IoTWireless({ region: "REGION" }); // async/await. try { - const data = await client.associateAwsAccountWithPartnerAccount(params); + const data = await client.listDestinations(params); // process data. } catch (error) { // error handling. @@ -150,7 +150,7 @@ try { // Promises. client - .associateAwsAccountWithPartnerAccount(params) + .listDestinations(params) .then((data) => { // process data. }) @@ -159,7 +159,7 @@ client }); // callbacks. -client.associateAwsAccountWithPartnerAccount(params, (err, data) => { +client.listDestinations(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iot/README.md b/clients/client-iot/README.md index 944c37f8b4b9..29949d170987 100644 --- a/clients/client-iot/README.md +++ b/clients/client-iot/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 `IoTClient` and -the commands you need, for example `AcceptCertificateTransferCommand`: +the commands you need, for example `ListIndicesCommand`: ```js // ES5 example -const { IoTClient, AcceptCertificateTransferCommand } = require("@aws-sdk/client-iot"); +const { IoTClient, ListIndicesCommand } = require("@aws-sdk/client-iot"); ``` ```ts // ES6+ example -import { IoTClient, AcceptCertificateTransferCommand } from "@aws-sdk/client-iot"; +import { IoTClient, ListIndicesCommand } from "@aws-sdk/client-iot"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new IoTClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptCertificateTransferCommand(params); +const command = new ListIndicesCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.IoT({ region: "REGION" }); // async/await. try { - const data = await client.acceptCertificateTransfer(params); + const data = await client.listIndices(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .acceptCertificateTransfer(params) + .listIndices(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.acceptCertificateTransfer(params, (err, data) => { +client.listIndices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotanalytics/README.md b/clients/client-iotanalytics/README.md index 1060a4b6dfb3..b5f4fb51175e 100644 --- a/clients/client-iotanalytics/README.md +++ b/clients/client-iotanalytics/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 `IoTAnalyticsClient` and -the commands you need, for example `BatchPutMessageCommand`: +the commands you need, for example `ListChannelsCommand`: ```js // ES5 example -const { IoTAnalyticsClient, BatchPutMessageCommand } = require("@aws-sdk/client-iotanalytics"); +const { IoTAnalyticsClient, ListChannelsCommand } = require("@aws-sdk/client-iotanalytics"); ``` ```ts // ES6+ example -import { IoTAnalyticsClient, BatchPutMessageCommand } from "@aws-sdk/client-iotanalytics"; +import { IoTAnalyticsClient, ListChannelsCommand } from "@aws-sdk/client-iotanalytics"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new IoTAnalyticsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchPutMessageCommand(params); +const command = new ListChannelsCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.IoTAnalytics({ region: "REGION" }); // async/await. try { - const data = await client.batchPutMessage(params); + const data = await client.listChannels(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .batchPutMessage(params) + .listChannels(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.batchPutMessage(params, (err, data) => { +client.listChannels(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotdeviceadvisor/README.md b/clients/client-iotdeviceadvisor/README.md index c20958ace80a..941d1ca6122c 100644 --- a/clients/client-iotdeviceadvisor/README.md +++ b/clients/client-iotdeviceadvisor/README.md @@ -31,16 +31,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 `IotDeviceAdvisorClient` and -the commands you need, for example `CreateSuiteDefinitionCommand`: +the commands you need, for example `ListSuiteRunsCommand`: ```js // ES5 example -const { IotDeviceAdvisorClient, CreateSuiteDefinitionCommand } = require("@aws-sdk/client-iotdeviceadvisor"); +const { IotDeviceAdvisorClient, ListSuiteRunsCommand } = require("@aws-sdk/client-iotdeviceadvisor"); ``` ```ts // ES6+ example -import { IotDeviceAdvisorClient, CreateSuiteDefinitionCommand } from "@aws-sdk/client-iotdeviceadvisor"; +import { IotDeviceAdvisorClient, ListSuiteRunsCommand } from "@aws-sdk/client-iotdeviceadvisor"; ``` ### Usage @@ -59,7 +59,7 @@ const client = new IotDeviceAdvisorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateSuiteDefinitionCommand(params); +const command = new ListSuiteRunsCommand(params); ``` #### Async/await @@ -138,7 +138,7 @@ const client = new AWS.IotDeviceAdvisor({ region: "REGION" }); // async/await. try { - const data = await client.createSuiteDefinition(params); + const data = await client.listSuiteRuns(params); // process data. } catch (error) { // error handling. @@ -146,7 +146,7 @@ try { // Promises. client - .createSuiteDefinition(params) + .listSuiteRuns(params) .then((data) => { // process data. }) @@ -155,7 +155,7 @@ client }); // callbacks. -client.createSuiteDefinition(params, (err, data) => { +client.listSuiteRuns(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotfleethub/README.md b/clients/client-iotfleethub/README.md index 568dc29b4151..37d191b908fc 100644 --- a/clients/client-iotfleethub/README.md +++ b/clients/client-iotfleethub/README.md @@ -26,16 +26,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 `IoTFleetHubClient` and -the commands you need, for example `CreateApplicationCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { IoTFleetHubClient, CreateApplicationCommand } = require("@aws-sdk/client-iotfleethub"); +const { IoTFleetHubClient, ListApplicationsCommand } = require("@aws-sdk/client-iotfleethub"); ``` ```ts // ES6+ example -import { IoTFleetHubClient, CreateApplicationCommand } from "@aws-sdk/client-iotfleethub"; +import { IoTFleetHubClient, ListApplicationsCommand } from "@aws-sdk/client-iotfleethub"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new IoTFleetHubClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApplicationCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.IoTFleetHub({ region: "REGION" }); // async/await. try { - const data = await client.createApplication(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .createApplication(params) + .listApplications(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.createApplication(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotfleetwise/README.md b/clients/client-iotfleetwise/README.md index 16c9012d558f..942ad90d6e37 100644 --- a/clients/client-iotfleetwise/README.md +++ b/clients/client-iotfleetwise/README.md @@ -29,16 +29,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 `IoTFleetWiseClient` and -the commands you need, for example `AssociateVehicleFleetCommand`: +the commands you need, for example `ListFleetsCommand`: ```js // ES5 example -const { IoTFleetWiseClient, AssociateVehicleFleetCommand } = require("@aws-sdk/client-iotfleetwise"); +const { IoTFleetWiseClient, ListFleetsCommand } = require("@aws-sdk/client-iotfleetwise"); ``` ```ts // ES6+ example -import { IoTFleetWiseClient, AssociateVehicleFleetCommand } from "@aws-sdk/client-iotfleetwise"; +import { IoTFleetWiseClient, ListFleetsCommand } from "@aws-sdk/client-iotfleetwise"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new IoTFleetWiseClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateVehicleFleetCommand(params); +const command = new ListFleetsCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.IoTFleetWise({ region: "REGION" }); // async/await. try { - const data = await client.associateVehicleFleet(params); + const data = await client.listFleets(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .associateVehicleFleet(params) + .listFleets(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.associateVehicleFleet(params, (err, data) => { +client.listFleets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotsecuretunneling/README.md b/clients/client-iotsecuretunneling/README.md index 1f2dee2ea4da..75244853b017 100644 --- a/clients/client-iotsecuretunneling/README.md +++ b/clients/client-iotsecuretunneling/README.md @@ -28,16 +28,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 `IoTSecureTunnelingClient` and -the commands you need, for example `CloseTunnelCommand`: +the commands you need, for example `ListTunnelsCommand`: ```js // ES5 example -const { IoTSecureTunnelingClient, CloseTunnelCommand } = require("@aws-sdk/client-iotsecuretunneling"); +const { IoTSecureTunnelingClient, ListTunnelsCommand } = require("@aws-sdk/client-iotsecuretunneling"); ``` ```ts // ES6+ example -import { IoTSecureTunnelingClient, CloseTunnelCommand } from "@aws-sdk/client-iotsecuretunneling"; +import { IoTSecureTunnelingClient, ListTunnelsCommand } from "@aws-sdk/client-iotsecuretunneling"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new IoTSecureTunnelingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CloseTunnelCommand(params); +const command = new ListTunnelsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.IoTSecureTunneling({ region: "REGION" }); // async/await. try { - const data = await client.closeTunnel(params); + const data = await client.listTunnels(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .closeTunnel(params) + .listTunnels(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.closeTunnel(params, (err, data) => { +client.listTunnels(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotsitewise/README.md b/clients/client-iotsitewise/README.md index 0660eabe5f1c..8681fbcd18bf 100644 --- a/clients/client-iotsitewise/README.md +++ b/clients/client-iotsitewise/README.md @@ -24,16 +24,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 `IoTSiteWiseClient` and -the commands you need, for example `AssociateAssetsCommand`: +the commands you need, for example `ListAssetsCommand`: ```js // ES5 example -const { IoTSiteWiseClient, AssociateAssetsCommand } = require("@aws-sdk/client-iotsitewise"); +const { IoTSiteWiseClient, ListAssetsCommand } = require("@aws-sdk/client-iotsitewise"); ``` ```ts // ES6+ example -import { IoTSiteWiseClient, AssociateAssetsCommand } from "@aws-sdk/client-iotsitewise"; +import { IoTSiteWiseClient, ListAssetsCommand } from "@aws-sdk/client-iotsitewise"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new IoTSiteWiseClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAssetsCommand(params); +const command = new ListAssetsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.IoTSiteWise({ region: "REGION" }); // async/await. try { - const data = await client.associateAssets(params); + const data = await client.listAssets(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .associateAssets(params) + .listAssets(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.associateAssets(params, (err, data) => { +client.listAssets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iotthingsgraph/README.md b/clients/client-iotthingsgraph/README.md index 2aba814b9676..c22151bd2450 100644 --- a/clients/client-iotthingsgraph/README.md +++ b/clients/client-iotthingsgraph/README.md @@ -29,16 +29,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 `IoTThingsGraphClient` and -the commands you need, for example `AssociateEntityToThingCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { IoTThingsGraphClient, AssociateEntityToThingCommand } = require("@aws-sdk/client-iotthingsgraph"); +const { IoTThingsGraphClient, ListTagsForResourceCommand } = require("@aws-sdk/client-iotthingsgraph"); ``` ```ts // ES6+ example -import { IoTThingsGraphClient, AssociateEntityToThingCommand } from "@aws-sdk/client-iotthingsgraph"; +import { IoTThingsGraphClient, ListTagsForResourceCommand } from "@aws-sdk/client-iotthingsgraph"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new IoTThingsGraphClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateEntityToThingCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.IoTThingsGraph({ region: "REGION" }); // async/await. try { - const data = await client.associateEntityToThing(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .associateEntityToThing(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.associateEntityToThing(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-iottwinmaker/README.md b/clients/client-iottwinmaker/README.md index cf8133b4e461..73223614921a 100644 --- a/clients/client-iottwinmaker/README.md +++ b/clients/client-iottwinmaker/README.md @@ -29,16 +29,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 `IoTTwinMakerClient` and -the commands you need, for example `BatchPutPropertyValuesCommand`: +the commands you need, for example `ListScenesCommand`: ```js // ES5 example -const { IoTTwinMakerClient, BatchPutPropertyValuesCommand } = require("@aws-sdk/client-iottwinmaker"); +const { IoTTwinMakerClient, ListScenesCommand } = require("@aws-sdk/client-iottwinmaker"); ``` ```ts // ES6+ example -import { IoTTwinMakerClient, BatchPutPropertyValuesCommand } from "@aws-sdk/client-iottwinmaker"; +import { IoTTwinMakerClient, ListScenesCommand } from "@aws-sdk/client-iottwinmaker"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new IoTTwinMakerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchPutPropertyValuesCommand(params); +const command = new ListScenesCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.IoTTwinMaker({ region: "REGION" }); // async/await. try { - const data = await client.batchPutPropertyValues(params); + const data = await client.listScenes(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .batchPutPropertyValues(params) + .listScenes(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.batchPutPropertyValues(params, (err, data) => { +client.listScenes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ivs-realtime/README.md b/clients/client-ivs-realtime/README.md index daec6bb4e824..f397bd6b4d3e 100644 --- a/clients/client-ivs-realtime/README.md +++ b/clients/client-ivs-realtime/README.md @@ -147,16 +147,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 `IVSRealTimeClient` and -the commands you need, for example `CreateParticipantTokenCommand`: +the commands you need, for example `ListStagesCommand`: ```js // ES5 example -const { IVSRealTimeClient, CreateParticipantTokenCommand } = require("@aws-sdk/client-ivs-realtime"); +const { IVSRealTimeClient, ListStagesCommand } = require("@aws-sdk/client-ivs-realtime"); ``` ```ts // ES6+ example -import { IVSRealTimeClient, CreateParticipantTokenCommand } from "@aws-sdk/client-ivs-realtime"; +import { IVSRealTimeClient, ListStagesCommand } from "@aws-sdk/client-ivs-realtime"; ``` ### Usage @@ -175,7 +175,7 @@ const client = new IVSRealTimeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateParticipantTokenCommand(params); +const command = new ListStagesCommand(params); ``` #### Async/await @@ -254,7 +254,7 @@ const client = new AWS.IVSRealTime({ region: "REGION" }); // async/await. try { - const data = await client.createParticipantToken(params); + const data = await client.listStages(params); // process data. } catch (error) { // error handling. @@ -262,7 +262,7 @@ try { // Promises. client - .createParticipantToken(params) + .listStages(params) .then((data) => { // process data. }) @@ -271,7 +271,7 @@ client }); // callbacks. -client.createParticipantToken(params, (err, data) => { +client.listStages(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ivs/README.md b/clients/client-ivs/README.md index 5e8782cce24c..ce80ef4064eb 100644 --- a/clients/client-ivs/README.md +++ b/clients/client-ivs/README.md @@ -361,16 +361,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 `IvsClient` and -the commands you need, for example `BatchGetChannelCommand`: +the commands you need, for example `ListStreamsCommand`: ```js // ES5 example -const { IvsClient, BatchGetChannelCommand } = require("@aws-sdk/client-ivs"); +const { IvsClient, ListStreamsCommand } = require("@aws-sdk/client-ivs"); ``` ```ts // ES6+ example -import { IvsClient, BatchGetChannelCommand } from "@aws-sdk/client-ivs"; +import { IvsClient, ListStreamsCommand } from "@aws-sdk/client-ivs"; ``` ### Usage @@ -389,7 +389,7 @@ const client = new IvsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetChannelCommand(params); +const command = new ListStreamsCommand(params); ``` #### Async/await @@ -468,7 +468,7 @@ const client = new AWS.Ivs({ region: "REGION" }); // async/await. try { - const data = await client.batchGetChannel(params); + const data = await client.listStreams(params); // process data. } catch (error) { // error handling. @@ -476,7 +476,7 @@ try { // Promises. client - .batchGetChannel(params) + .listStreams(params) .then((data) => { // process data. }) @@ -485,7 +485,7 @@ client }); // callbacks. -client.batchGetChannel(params, (err, data) => { +client.listStreams(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ivschat/README.md b/clients/client-ivschat/README.md index 53db70800262..d144bfe00995 100644 --- a/clients/client-ivschat/README.md +++ b/clients/client-ivschat/README.md @@ -241,16 +241,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 `IvschatClient` and -the commands you need, for example `CreateChatTokenCommand`: +the commands you need, for example `ListRoomsCommand`: ```js // ES5 example -const { IvschatClient, CreateChatTokenCommand } = require("@aws-sdk/client-ivschat"); +const { IvschatClient, ListRoomsCommand } = require("@aws-sdk/client-ivschat"); ``` ```ts // ES6+ example -import { IvschatClient, CreateChatTokenCommand } from "@aws-sdk/client-ivschat"; +import { IvschatClient, ListRoomsCommand } from "@aws-sdk/client-ivschat"; ``` ### Usage @@ -269,7 +269,7 @@ const client = new IvschatClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateChatTokenCommand(params); +const command = new ListRoomsCommand(params); ``` #### Async/await @@ -348,7 +348,7 @@ const client = new AWS.Ivschat({ region: "REGION" }); // async/await. try { - const data = await client.createChatToken(params); + const data = await client.listRooms(params); // process data. } catch (error) { // error handling. @@ -356,7 +356,7 @@ try { // Promises. client - .createChatToken(params) + .listRooms(params) .then((data) => { // process data. }) @@ -365,7 +365,7 @@ client }); // callbacks. -client.createChatToken(params, (err, data) => { +client.listRooms(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kafka/README.md b/clients/client-kafka/README.md index e3ed3ddae995..c8b8c1db005e 100644 --- a/clients/client-kafka/README.md +++ b/clients/client-kafka/README.md @@ -23,16 +23,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 `KafkaClient` and -the commands you need, for example `BatchAssociateScramSecretCommand`: +the commands you need, for example `ListClustersCommand`: ```js // ES5 example -const { KafkaClient, BatchAssociateScramSecretCommand } = require("@aws-sdk/client-kafka"); +const { KafkaClient, ListClustersCommand } = require("@aws-sdk/client-kafka"); ``` ```ts // ES6+ example -import { KafkaClient, BatchAssociateScramSecretCommand } from "@aws-sdk/client-kafka"; +import { KafkaClient, ListClustersCommand } from "@aws-sdk/client-kafka"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new KafkaClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchAssociateScramSecretCommand(params); +const command = new ListClustersCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Kafka({ region: "REGION" }); // async/await. try { - const data = await client.batchAssociateScramSecret(params); + const data = await client.listClusters(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .batchAssociateScramSecret(params) + .listClusters(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.batchAssociateScramSecret(params, (err, data) => { +client.listClusters(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kafkaconnect/README.md b/clients/client-kafkaconnect/README.md index 73f2fd147002..75d85c1d021b 100644 --- a/clients/client-kafkaconnect/README.md +++ b/clients/client-kafkaconnect/README.md @@ -23,16 +23,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 `KafkaConnectClient` and -the commands you need, for example `CreateConnectorCommand`: +the commands you need, for example `ListConnectorsCommand`: ```js // ES5 example -const { KafkaConnectClient, CreateConnectorCommand } = require("@aws-sdk/client-kafkaconnect"); +const { KafkaConnectClient, ListConnectorsCommand } = require("@aws-sdk/client-kafkaconnect"); ``` ```ts // ES6+ example -import { KafkaConnectClient, CreateConnectorCommand } from "@aws-sdk/client-kafkaconnect"; +import { KafkaConnectClient, ListConnectorsCommand } from "@aws-sdk/client-kafkaconnect"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new KafkaConnectClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateConnectorCommand(params); +const command = new ListConnectorsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.KafkaConnect({ region: "REGION" }); // async/await. try { - const data = await client.createConnector(params); + const data = await client.listConnectors(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createConnector(params) + .listConnectors(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createConnector(params, (err, data) => { +client.listConnectors(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kendra-ranking/README.md b/clients/client-kendra-ranking/README.md index 20d12e48e97b..9083c816c9a2 100644 --- a/clients/client-kendra-ranking/README.md +++ b/clients/client-kendra-ranking/README.md @@ -25,16 +25,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 `KendraRankingClient` and -the commands you need, for example `CreateRescoreExecutionPlanCommand`: +the commands you need, for example `ListRescoreExecutionPlansCommand`: ```js // ES5 example -const { KendraRankingClient, CreateRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); +const { KendraRankingClient, ListRescoreExecutionPlansCommand } = require("@aws-sdk/client-kendra-ranking"); ``` ```ts // ES6+ example -import { KendraRankingClient, CreateRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; +import { KendraRankingClient, ListRescoreExecutionPlansCommand } from "@aws-sdk/client-kendra-ranking"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new KendraRankingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateRescoreExecutionPlanCommand(params); +const command = new ListRescoreExecutionPlansCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.KendraRanking({ region: "REGION" }); // async/await. try { - const data = await client.createRescoreExecutionPlan(params); + const data = await client.listRescoreExecutionPlans(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .createRescoreExecutionPlan(params) + .listRescoreExecutionPlans(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.createRescoreExecutionPlan(params, (err, data) => { +client.listRescoreExecutionPlans(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kendra/README.md b/clients/client-kendra/README.md index b1fd19beb45a..832ec64a7575 100644 --- a/clients/client-kendra/README.md +++ b/clients/client-kendra/README.md @@ -23,16 +23,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 `KendraClient` and -the commands you need, for example `AssociateEntitiesToExperienceCommand`: +the commands you need, for example `ListIndicesCommand`: ```js // ES5 example -const { KendraClient, AssociateEntitiesToExperienceCommand } = require("@aws-sdk/client-kendra"); +const { KendraClient, ListIndicesCommand } = require("@aws-sdk/client-kendra"); ``` ```ts // ES6+ example -import { KendraClient, AssociateEntitiesToExperienceCommand } from "@aws-sdk/client-kendra"; +import { KendraClient, ListIndicesCommand } from "@aws-sdk/client-kendra"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new KendraClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateEntitiesToExperienceCommand(params); +const command = new ListIndicesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Kendra({ region: "REGION" }); // async/await. try { - const data = await client.associateEntitiesToExperience(params); + const data = await client.listIndices(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateEntitiesToExperience(params) + .listIndices(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateEntitiesToExperience(params, (err, data) => { +client.listIndices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-keyspaces/README.md b/clients/client-keyspaces/README.md index 1ac6120be94f..6bfe313a984a 100644 --- a/clients/client-keyspaces/README.md +++ b/clients/client-keyspaces/README.md @@ -36,16 +36,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 `KeyspacesClient` and -the commands you need, for example `CreateKeyspaceCommand`: +the commands you need, for example `ListKeyspacesCommand`: ```js // ES5 example -const { KeyspacesClient, CreateKeyspaceCommand } = require("@aws-sdk/client-keyspaces"); +const { KeyspacesClient, ListKeyspacesCommand } = require("@aws-sdk/client-keyspaces"); ``` ```ts // ES6+ example -import { KeyspacesClient, CreateKeyspaceCommand } from "@aws-sdk/client-keyspaces"; +import { KeyspacesClient, ListKeyspacesCommand } from "@aws-sdk/client-keyspaces"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new KeyspacesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateKeyspaceCommand(params); +const command = new ListKeyspacesCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.Keyspaces({ region: "REGION" }); // async/await. try { - const data = await client.createKeyspace(params); + const data = await client.listKeyspaces(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .createKeyspace(params) + .listKeyspaces(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.createKeyspace(params, (err, data) => { +client.listKeyspaces(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kinesis-analytics-v2/README.md b/clients/client-kinesis-analytics-v2/README.md index fb1d63925a3a..8e2ba60558f5 100644 --- a/clients/client-kinesis-analytics-v2/README.md +++ b/clients/client-kinesis-analytics-v2/README.md @@ -25,22 +25,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 `KinesisAnalyticsV2Client` and -the commands you need, for example `AddApplicationCloudWatchLoggingOptionCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { - KinesisAnalyticsV2Client, - AddApplicationCloudWatchLoggingOptionCommand, -} = require("@aws-sdk/client-kinesis-analytics-v2"); +const { KinesisAnalyticsV2Client, ListApplicationsCommand } = require("@aws-sdk/client-kinesis-analytics-v2"); ``` ```ts // ES6+ example -import { - KinesisAnalyticsV2Client, - AddApplicationCloudWatchLoggingOptionCommand, -} from "@aws-sdk/client-kinesis-analytics-v2"; +import { KinesisAnalyticsV2Client, ListApplicationsCommand } from "@aws-sdk/client-kinesis-analytics-v2"; ``` ### Usage @@ -59,7 +53,7 @@ const client = new KinesisAnalyticsV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddApplicationCloudWatchLoggingOptionCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -138,7 +132,7 @@ const client = new AWS.KinesisAnalyticsV2({ region: "REGION" }); // async/await. try { - const data = await client.addApplicationCloudWatchLoggingOption(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -146,7 +140,7 @@ try { // Promises. client - .addApplicationCloudWatchLoggingOption(params) + .listApplications(params) .then((data) => { // process data. }) @@ -155,7 +149,7 @@ client }); // callbacks. -client.addApplicationCloudWatchLoggingOption(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kinesis-analytics/README.md b/clients/client-kinesis-analytics/README.md index 699301c0f591..eaeb024cd371 100644 --- a/clients/client-kinesis-analytics/README.md +++ b/clients/client-kinesis-analytics/README.md @@ -33,22 +33,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 `KinesisAnalyticsClient` and -the commands you need, for example `AddApplicationCloudWatchLoggingOptionCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { - KinesisAnalyticsClient, - AddApplicationCloudWatchLoggingOptionCommand, -} = require("@aws-sdk/client-kinesis-analytics"); +const { KinesisAnalyticsClient, ListApplicationsCommand } = require("@aws-sdk/client-kinesis-analytics"); ``` ```ts // ES6+ example -import { - KinesisAnalyticsClient, - AddApplicationCloudWatchLoggingOptionCommand, -} from "@aws-sdk/client-kinesis-analytics"; +import { KinesisAnalyticsClient, ListApplicationsCommand } from "@aws-sdk/client-kinesis-analytics"; ``` ### Usage @@ -67,7 +61,7 @@ const client = new KinesisAnalyticsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddApplicationCloudWatchLoggingOptionCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -146,7 +140,7 @@ const client = new AWS.KinesisAnalytics({ region: "REGION" }); // async/await. try { - const data = await client.addApplicationCloudWatchLoggingOption(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -154,7 +148,7 @@ try { // Promises. client - .addApplicationCloudWatchLoggingOption(params) + .listApplications(params) .then((data) => { // process data. }) @@ -163,7 +157,7 @@ client }); // callbacks. -client.addApplicationCloudWatchLoggingOption(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kinesis-video-archived-media/README.md b/clients/client-kinesis-video-archived-media/README.md index b11de7fcb2dd..75be84bd030f 100644 --- a/clients/client-kinesis-video-archived-media/README.md +++ b/clients/client-kinesis-video-archived-media/README.md @@ -23,16 +23,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `KinesisVideoArchivedMediaClient` and -the commands you need, for example `GetClipCommand`: +the commands you need, for example `ListFragmentsCommand`: ```js // ES5 example -const { KinesisVideoArchivedMediaClient, GetClipCommand } = require("@aws-sdk/client-kinesis-video-archived-media"); +const { + KinesisVideoArchivedMediaClient, + ListFragmentsCommand, +} = require("@aws-sdk/client-kinesis-video-archived-media"); ``` ```ts // ES6+ example -import { KinesisVideoArchivedMediaClient, GetClipCommand } from "@aws-sdk/client-kinesis-video-archived-media"; +import { KinesisVideoArchivedMediaClient, ListFragmentsCommand } from "@aws-sdk/client-kinesis-video-archived-media"; ``` ### Usage @@ -51,7 +54,7 @@ const client = new KinesisVideoArchivedMediaClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetClipCommand(params); +const command = new ListFragmentsCommand(params); ``` #### Async/await @@ -130,7 +133,7 @@ const client = new AWS.KinesisVideoArchivedMedia({ region: "REGION" }); // async/await. try { - const data = await client.getClip(params); + const data = await client.listFragments(params); // process data. } catch (error) { // error handling. @@ -138,7 +141,7 @@ try { // Promises. client - .getClip(params) + .listFragments(params) .then((data) => { // process data. }) @@ -147,7 +150,7 @@ client }); // callbacks. -client.getClip(params, (err, data) => { +client.listFragments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kinesis-video/README.md b/clients/client-kinesis-video/README.md index 13012d754aad..915e36928f52 100644 --- a/clients/client-kinesis-video/README.md +++ b/clients/client-kinesis-video/README.md @@ -23,16 +23,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 `KinesisVideoClient` and -the commands you need, for example `CreateSignalingChannelCommand`: +the commands you need, for example `ListStreamsCommand`: ```js // ES5 example -const { KinesisVideoClient, CreateSignalingChannelCommand } = require("@aws-sdk/client-kinesis-video"); +const { KinesisVideoClient, ListStreamsCommand } = require("@aws-sdk/client-kinesis-video"); ``` ```ts // ES6+ example -import { KinesisVideoClient, CreateSignalingChannelCommand } from "@aws-sdk/client-kinesis-video"; +import { KinesisVideoClient, ListStreamsCommand } from "@aws-sdk/client-kinesis-video"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new KinesisVideoClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateSignalingChannelCommand(params); +const command = new ListStreamsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.KinesisVideo({ region: "REGION" }); // async/await. try { - const data = await client.createSignalingChannel(params); + const data = await client.listStreams(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createSignalingChannel(params) + .listStreams(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createSignalingChannel(params, (err, data) => { +client.listStreams(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kinesis/README.md b/clients/client-kinesis/README.md index a2a04d70bbb8..828be3657b77 100644 --- a/clients/client-kinesis/README.md +++ b/clients/client-kinesis/README.md @@ -26,16 +26,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 `KinesisClient` and -the commands you need, for example `AddTagsToStreamCommand`: +the commands you need, for example `ListShardsCommand`: ```js // ES5 example -const { KinesisClient, AddTagsToStreamCommand } = require("@aws-sdk/client-kinesis"); +const { KinesisClient, ListShardsCommand } = require("@aws-sdk/client-kinesis"); ``` ```ts // ES6+ example -import { KinesisClient, AddTagsToStreamCommand } from "@aws-sdk/client-kinesis"; +import { KinesisClient, ListShardsCommand } from "@aws-sdk/client-kinesis"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new KinesisClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToStreamCommand(params); +const command = new ListShardsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.Kinesis({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToStream(params); + const data = await client.listShards(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .addTagsToStream(params) + .listShards(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.addTagsToStream(params, (err, data) => { +client.listShards(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-kms/README.md b/clients/client-kms/README.md index f911e6b162b3..67bdb078427e 100644 --- a/clients/client-kms/README.md +++ b/clients/client-kms/README.md @@ -118,16 +118,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 `KMSClient` and -the commands you need, for example `CancelKeyDeletionCommand`: +the commands you need, for example `ListAliasesCommand`: ```js // ES5 example -const { KMSClient, CancelKeyDeletionCommand } = require("@aws-sdk/client-kms"); +const { KMSClient, ListAliasesCommand } = require("@aws-sdk/client-kms"); ``` ```ts // ES6+ example -import { KMSClient, CancelKeyDeletionCommand } from "@aws-sdk/client-kms"; +import { KMSClient, ListAliasesCommand } from "@aws-sdk/client-kms"; ``` ### Usage @@ -146,7 +146,7 @@ const client = new KMSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelKeyDeletionCommand(params); +const command = new ListAliasesCommand(params); ``` #### Async/await @@ -225,7 +225,7 @@ const client = new AWS.KMS({ region: "REGION" }); // async/await. try { - const data = await client.cancelKeyDeletion(params); + const data = await client.listAliases(params); // process data. } catch (error) { // error handling. @@ -233,7 +233,7 @@ try { // Promises. client - .cancelKeyDeletion(params) + .listAliases(params) .then((data) => { // process data. }) @@ -242,7 +242,7 @@ client }); // callbacks. -client.cancelKeyDeletion(params, (err, data) => { +client.listAliases(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lakeformation/README.md b/clients/client-lakeformation/README.md index ff2929fc4fce..afcc41a71830 100644 --- a/clients/client-lakeformation/README.md +++ b/clients/client-lakeformation/README.md @@ -25,16 +25,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 `LakeFormationClient` and -the commands you need, for example `AddLFTagsToResourceCommand`: +the commands you need, for example `ListLFTagsCommand`: ```js // ES5 example -const { LakeFormationClient, AddLFTagsToResourceCommand } = require("@aws-sdk/client-lakeformation"); +const { LakeFormationClient, ListLFTagsCommand } = require("@aws-sdk/client-lakeformation"); ``` ```ts // ES6+ example -import { LakeFormationClient, AddLFTagsToResourceCommand } from "@aws-sdk/client-lakeformation"; +import { LakeFormationClient, ListLFTagsCommand } from "@aws-sdk/client-lakeformation"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new LakeFormationClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddLFTagsToResourceCommand(params); +const command = new ListLFTagsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.LakeFormation({ region: "REGION" }); // async/await. try { - const data = await client.addLFTagsToResource(params); + const data = await client.listLFTags(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .addLFTagsToResource(params) + .listLFTags(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.addLFTagsToResource(params, (err, data) => { +client.listLFTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lambda/README.md b/clients/client-lambda/README.md index a989764ea8b1..177b83fc127f 100644 --- a/clients/client-lambda/README.md +++ b/clients/client-lambda/README.md @@ -88,16 +88,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 `LambdaClient` and -the commands you need, for example `AddLayerVersionPermissionCommand`: +the commands you need, for example `ListLayersCommand`: ```js // ES5 example -const { LambdaClient, AddLayerVersionPermissionCommand } = require("@aws-sdk/client-lambda"); +const { LambdaClient, ListLayersCommand } = require("@aws-sdk/client-lambda"); ``` ```ts // ES6+ example -import { LambdaClient, AddLayerVersionPermissionCommand } from "@aws-sdk/client-lambda"; +import { LambdaClient, ListLayersCommand } from "@aws-sdk/client-lambda"; ``` ### Usage @@ -116,7 +116,7 @@ const client = new LambdaClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddLayerVersionPermissionCommand(params); +const command = new ListLayersCommand(params); ``` #### Async/await @@ -195,7 +195,7 @@ const client = new AWS.Lambda({ region: "REGION" }); // async/await. try { - const data = await client.addLayerVersionPermission(params); + const data = await client.listLayers(params); // process data. } catch (error) { // error handling. @@ -203,7 +203,7 @@ try { // Promises. client - .addLayerVersionPermission(params) + .listLayers(params) .then((data) => { // process data. }) @@ -212,7 +212,7 @@ client }); // callbacks. -client.addLayerVersionPermission(params, (err, data) => { +client.listLayers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lex-model-building-service/README.md b/clients/client-lex-model-building-service/README.md index 8f4685fa574a..64c06425b0e7 100644 --- a/clients/client-lex-model-building-service/README.md +++ b/clients/client-lex-model-building-service/README.md @@ -27,19 +27,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `LexModelBuildingServiceClient` and -the commands you need, for example `CreateBotVersionCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example const { LexModelBuildingServiceClient, - CreateBotVersionCommand, + ListTagsForResourceCommand, } = require("@aws-sdk/client-lex-model-building-service"); ``` ```ts // ES6+ example -import { LexModelBuildingServiceClient, CreateBotVersionCommand } from "@aws-sdk/client-lex-model-building-service"; +import { LexModelBuildingServiceClient, ListTagsForResourceCommand } from "@aws-sdk/client-lex-model-building-service"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new LexModelBuildingServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateBotVersionCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.LexModelBuildingService({ region: "REGION" }); // async/await. try { - const data = await client.createBotVersion(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .createBotVersion(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.createBotVersion(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lex-models-v2/README.md b/clients/client-lex-models-v2/README.md index c0a30e8152f4..cde6c78b42ad 100644 --- a/clients/client-lex-models-v2/README.md +++ b/clients/client-lex-models-v2/README.md @@ -23,16 +23,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 `LexModelsV2Client` and -the commands you need, for example `BatchCreateCustomVocabularyItemCommand`: +the commands you need, for example `ListBotsCommand`: ```js // ES5 example -const { LexModelsV2Client, BatchCreateCustomVocabularyItemCommand } = require("@aws-sdk/client-lex-models-v2"); +const { LexModelsV2Client, ListBotsCommand } = require("@aws-sdk/client-lex-models-v2"); ``` ```ts // ES6+ example -import { LexModelsV2Client, BatchCreateCustomVocabularyItemCommand } from "@aws-sdk/client-lex-models-v2"; +import { LexModelsV2Client, ListBotsCommand } from "@aws-sdk/client-lex-models-v2"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new LexModelsV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCreateCustomVocabularyItemCommand(params); +const command = new ListBotsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.LexModelsV2({ region: "REGION" }); // async/await. try { - const data = await client.batchCreateCustomVocabularyItem(params); + const data = await client.listBots(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .batchCreateCustomVocabularyItem(params) + .listBots(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.batchCreateCustomVocabularyItem(params, (err, data) => { +client.listBots(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lex-runtime-service/README.md b/clients/client-lex-runtime-service/README.md index 133799ca98ef..81b257aea707 100644 --- a/clients/client-lex-runtime-service/README.md +++ b/clients/client-lex-runtime-service/README.md @@ -34,16 +34,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 `LexRuntimeServiceClient` and -the commands you need, for example `DeleteSessionCommand`: +the commands you need, for example `GetSessionCommand`: ```js // ES5 example -const { LexRuntimeServiceClient, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); +const { LexRuntimeServiceClient, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-service"); ``` ```ts // ES6+ example -import { LexRuntimeServiceClient, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-service"; +import { LexRuntimeServiceClient, GetSessionCommand } from "@aws-sdk/client-lex-runtime-service"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new LexRuntimeServiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteSessionCommand(params); +const command = new GetSessionCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.LexRuntimeService({ region: "REGION" }); // async/await. try { - const data = await client.deleteSession(params); + const data = await client.getSession(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .deleteSession(params) + .getSession(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.deleteSession(params, (err, data) => { +client.getSession(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lex-runtime-v2/README.md b/clients/client-lex-runtime-v2/README.md index d089cb97fa78..4a3001ab5c46 100644 --- a/clients/client-lex-runtime-v2/README.md +++ b/clients/client-lex-runtime-v2/README.md @@ -23,16 +23,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 `LexRuntimeV2Client` and -the commands you need, for example `DeleteSessionCommand`: +the commands you need, for example `GetSessionCommand`: ```js // ES5 example -const { LexRuntimeV2Client, DeleteSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); +const { LexRuntimeV2Client, GetSessionCommand } = require("@aws-sdk/client-lex-runtime-v2"); ``` ```ts // ES6+ example -import { LexRuntimeV2Client, DeleteSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; +import { LexRuntimeV2Client, GetSessionCommand } from "@aws-sdk/client-lex-runtime-v2"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new LexRuntimeV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteSessionCommand(params); +const command = new GetSessionCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.LexRuntimeV2({ region: "REGION" }); // async/await. try { - const data = await client.deleteSession(params); + const data = await client.getSession(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .deleteSession(params) + .getSession(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.deleteSession(params, (err, data) => { +client.getSession(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-license-manager-linux-subscriptions/README.md b/clients/client-license-manager-linux-subscriptions/README.md index aa1466afb152..5db77ce0ccc8 100644 --- a/clients/client-license-manager-linux-subscriptions/README.md +++ b/clients/client-license-manager-linux-subscriptions/README.md @@ -24,13 +24,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `LicenseManagerLinuxSubscriptionsClient` and -the commands you need, for example `GetServiceSettingsCommand`: +the commands you need, for example `ListLinuxSubscriptionsCommand`: ```js // ES5 example const { LicenseManagerLinuxSubscriptionsClient, - GetServiceSettingsCommand, + ListLinuxSubscriptionsCommand, } = require("@aws-sdk/client-license-manager-linux-subscriptions"); ``` @@ -38,7 +38,7 @@ const { // ES6+ example import { LicenseManagerLinuxSubscriptionsClient, - GetServiceSettingsCommand, + ListLinuxSubscriptionsCommand, } from "@aws-sdk/client-license-manager-linux-subscriptions"; ``` @@ -58,7 +58,7 @@ const client = new LicenseManagerLinuxSubscriptionsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetServiceSettingsCommand(params); +const command = new ListLinuxSubscriptionsCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.LicenseManagerLinuxSubscriptions({ region: "REGION" }); // async/await. try { - const data = await client.getServiceSettings(params); + const data = await client.listLinuxSubscriptions(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .getServiceSettings(params) + .listLinuxSubscriptions(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.getServiceSettings(params, (err, data) => { +client.listLinuxSubscriptions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-license-manager-user-subscriptions/README.md b/clients/client-license-manager-user-subscriptions/README.md index a0b21f2944cf..901dc44dc5ac 100644 --- a/clients/client-license-manager-user-subscriptions/README.md +++ b/clients/client-license-manager-user-subscriptions/README.md @@ -24,13 +24,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `LicenseManagerUserSubscriptionsClient` and -the commands you need, for example `AssociateUserCommand`: +the commands you need, for example `ListInstancesCommand`: ```js // ES5 example const { LicenseManagerUserSubscriptionsClient, - AssociateUserCommand, + ListInstancesCommand, } = require("@aws-sdk/client-license-manager-user-subscriptions"); ``` @@ -38,7 +38,7 @@ const { // ES6+ example import { LicenseManagerUserSubscriptionsClient, - AssociateUserCommand, + ListInstancesCommand, } from "@aws-sdk/client-license-manager-user-subscriptions"; ``` @@ -58,7 +58,7 @@ const client = new LicenseManagerUserSubscriptionsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateUserCommand(params); +const command = new ListInstancesCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.LicenseManagerUserSubscriptions({ region: "REGION" }); // async/await. try { - const data = await client.associateUser(params); + const data = await client.listInstances(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .associateUser(params) + .listInstances(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.associateUser(params, (err, data) => { +client.listInstances(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-license-manager/README.md b/clients/client-license-manager/README.md index 7b261c6362d4..18f60e3dea43 100644 --- a/clients/client-license-manager/README.md +++ b/clients/client-license-manager/README.md @@ -24,16 +24,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 `LicenseManagerClient` and -the commands you need, for example `AcceptGrantCommand`: +the commands you need, for example `ListTokensCommand`: ```js // ES5 example -const { LicenseManagerClient, AcceptGrantCommand } = require("@aws-sdk/client-license-manager"); +const { LicenseManagerClient, ListTokensCommand } = require("@aws-sdk/client-license-manager"); ``` ```ts // ES6+ example -import { LicenseManagerClient, AcceptGrantCommand } from "@aws-sdk/client-license-manager"; +import { LicenseManagerClient, ListTokensCommand } from "@aws-sdk/client-license-manager"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new LicenseManagerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptGrantCommand(params); +const command = new ListTokensCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.LicenseManager({ region: "REGION" }); // async/await. try { - const data = await client.acceptGrant(params); + const data = await client.listTokens(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .acceptGrant(params) + .listTokens(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.acceptGrant(params, (err, data) => { +client.listTokens(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lightsail/README.md b/clients/client-lightsail/README.md index 6aaaa937c8af..9ab584228e44 100644 --- a/clients/client-lightsail/README.md +++ b/clients/client-lightsail/README.md @@ -36,16 +36,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 `LightsailClient` and -the commands you need, for example `AllocateStaticIpCommand`: +the commands you need, for example `GetAlarmsCommand`: ```js // ES5 example -const { LightsailClient, AllocateStaticIpCommand } = require("@aws-sdk/client-lightsail"); +const { LightsailClient, GetAlarmsCommand } = require("@aws-sdk/client-lightsail"); ``` ```ts // ES6+ example -import { LightsailClient, AllocateStaticIpCommand } from "@aws-sdk/client-lightsail"; +import { LightsailClient, GetAlarmsCommand } from "@aws-sdk/client-lightsail"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new LightsailClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AllocateStaticIpCommand(params); +const command = new GetAlarmsCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.Lightsail({ region: "REGION" }); // async/await. try { - const data = await client.allocateStaticIp(params); + const data = await client.getAlarms(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .allocateStaticIp(params) + .getAlarms(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.allocateStaticIp(params, (err, data) => { +client.getAlarms(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-location/README.md b/clients/client-location/README.md index 72a1447d17b1..5cd3bb03e4d1 100644 --- a/clients/client-location/README.md +++ b/clients/client-location/README.md @@ -23,16 +23,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 `LocationClient` and -the commands you need, for example `AssociateTrackerConsumerCommand`: +the commands you need, for example `ListKeysCommand`: ```js // ES5 example -const { LocationClient, AssociateTrackerConsumerCommand } = require("@aws-sdk/client-location"); +const { LocationClient, ListKeysCommand } = require("@aws-sdk/client-location"); ``` ```ts // ES6+ example -import { LocationClient, AssociateTrackerConsumerCommand } from "@aws-sdk/client-location"; +import { LocationClient, ListKeysCommand } from "@aws-sdk/client-location"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new LocationClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateTrackerConsumerCommand(params); +const command = new ListKeysCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Location({ region: "REGION" }); // async/await. try { - const data = await client.associateTrackerConsumer(params); + const data = await client.listKeys(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateTrackerConsumer(params) + .listKeys(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateTrackerConsumer(params, (err, data) => { +client.listKeys(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lookoutequipment/README.md b/clients/client-lookoutequipment/README.md index d2b5148afb67..eb45b598e474 100644 --- a/clients/client-lookoutequipment/README.md +++ b/clients/client-lookoutequipment/README.md @@ -24,16 +24,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 `LookoutEquipmentClient` and -the commands you need, for example `CreateDatasetCommand`: +the commands you need, for example `ListModelsCommand`: ```js // ES5 example -const { LookoutEquipmentClient, CreateDatasetCommand } = require("@aws-sdk/client-lookoutequipment"); +const { LookoutEquipmentClient, ListModelsCommand } = require("@aws-sdk/client-lookoutequipment"); ``` ```ts // ES6+ example -import { LookoutEquipmentClient, CreateDatasetCommand } from "@aws-sdk/client-lookoutequipment"; +import { LookoutEquipmentClient, ListModelsCommand } from "@aws-sdk/client-lookoutequipment"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new LookoutEquipmentClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateDatasetCommand(params); +const command = new ListModelsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.LookoutEquipment({ region: "REGION" }); // async/await. try { - const data = await client.createDataset(params); + const data = await client.listModels(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .createDataset(params) + .listModels(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.createDataset(params, (err, data) => { +client.listModels(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lookoutmetrics/README.md b/clients/client-lookoutmetrics/README.md index 44739bd25b33..6c59f59b311a 100644 --- a/clients/client-lookoutmetrics/README.md +++ b/clients/client-lookoutmetrics/README.md @@ -25,16 +25,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 `LookoutMetricsClient` and -the commands you need, for example `ActivateAnomalyDetectorCommand`: +the commands you need, for example `ListAlertsCommand`: ```js // ES5 example -const { LookoutMetricsClient, ActivateAnomalyDetectorCommand } = require("@aws-sdk/client-lookoutmetrics"); +const { LookoutMetricsClient, ListAlertsCommand } = require("@aws-sdk/client-lookoutmetrics"); ``` ```ts // ES6+ example -import { LookoutMetricsClient, ActivateAnomalyDetectorCommand } from "@aws-sdk/client-lookoutmetrics"; +import { LookoutMetricsClient, ListAlertsCommand } from "@aws-sdk/client-lookoutmetrics"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new LookoutMetricsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateAnomalyDetectorCommand(params); +const command = new ListAlertsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.LookoutMetrics({ region: "REGION" }); // async/await. try { - const data = await client.activateAnomalyDetector(params); + const data = await client.listAlerts(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .activateAnomalyDetector(params) + .listAlerts(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.activateAnomalyDetector(params, (err, data) => { +client.listAlerts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-lookoutvision/README.md b/clients/client-lookoutvision/README.md index 2ccd749d6645..bc316c534b4a 100644 --- a/clients/client-lookoutvision/README.md +++ b/clients/client-lookoutvision/README.md @@ -29,16 +29,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 `LookoutVisionClient` and -the commands you need, for example `CreateDatasetCommand`: +the commands you need, for example `ListModelsCommand`: ```js // ES5 example -const { LookoutVisionClient, CreateDatasetCommand } = require("@aws-sdk/client-lookoutvision"); +const { LookoutVisionClient, ListModelsCommand } = require("@aws-sdk/client-lookoutvision"); ``` ```ts // ES6+ example -import { LookoutVisionClient, CreateDatasetCommand } from "@aws-sdk/client-lookoutvision"; +import { LookoutVisionClient, ListModelsCommand } from "@aws-sdk/client-lookoutvision"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new LookoutVisionClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateDatasetCommand(params); +const command = new ListModelsCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.LookoutVision({ region: "REGION" }); // async/await. try { - const data = await client.createDataset(params); + const data = await client.listModels(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .createDataset(params) + .listModels(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.createDataset(params, (err, data) => { +client.listModels(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-m2/README.md b/clients/client-m2/README.md index 493661f7173f..cbca0f27d5b2 100644 --- a/clients/client-m2/README.md +++ b/clients/client-m2/README.md @@ -27,16 +27,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 `M2Client` and -the commands you need, for example `CancelBatchJobExecutionCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { M2Client, CancelBatchJobExecutionCommand } = require("@aws-sdk/client-m2"); +const { M2Client, ListApplicationsCommand } = require("@aws-sdk/client-m2"); ``` ```ts // ES6+ example -import { M2Client, CancelBatchJobExecutionCommand } from "@aws-sdk/client-m2"; +import { M2Client, ListApplicationsCommand } from "@aws-sdk/client-m2"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new M2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelBatchJobExecutionCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.M2({ region: "REGION" }); // async/await. try { - const data = await client.cancelBatchJobExecution(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .cancelBatchJobExecution(params) + .listApplications(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.cancelBatchJobExecution(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-machine-learning/README.md b/clients/client-machine-learning/README.md index 2fc9e3f96655..b537541cd553 100644 --- a/clients/client-machine-learning/README.md +++ b/clients/client-machine-learning/README.md @@ -24,16 +24,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 `MachineLearningClient` and -the commands you need, for example `AddTagsCommand`: +the commands you need, for example `DescribeMLModelsCommand`: ```js // ES5 example -const { MachineLearningClient, AddTagsCommand } = require("@aws-sdk/client-machine-learning"); +const { MachineLearningClient, DescribeMLModelsCommand } = require("@aws-sdk/client-machine-learning"); ``` ```ts // ES6+ example -import { MachineLearningClient, AddTagsCommand } from "@aws-sdk/client-machine-learning"; +import { MachineLearningClient, DescribeMLModelsCommand } from "@aws-sdk/client-machine-learning"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new MachineLearningClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsCommand(params); +const command = new DescribeMLModelsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.MachineLearning({ region: "REGION" }); // async/await. try { - const data = await client.addTags(params); + const data = await client.describeMLModels(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .addTags(params) + .describeMLModels(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.addTags(params, (err, data) => { +client.describeMLModels(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-macie/README.md b/clients/client-macie/README.md index 00c42be1a96a..031575d11c06 100644 --- a/clients/client-macie/README.md +++ b/clients/client-macie/README.md @@ -29,16 +29,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 `MacieClient` and -the commands you need, for example `AssociateMemberAccountCommand`: +the commands you need, for example `ListS3ResourcesCommand`: ```js // ES5 example -const { MacieClient, AssociateMemberAccountCommand } = require("@aws-sdk/client-macie"); +const { MacieClient, ListS3ResourcesCommand } = require("@aws-sdk/client-macie"); ``` ```ts // ES6+ example -import { MacieClient, AssociateMemberAccountCommand } from "@aws-sdk/client-macie"; +import { MacieClient, ListS3ResourcesCommand } from "@aws-sdk/client-macie"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new MacieClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateMemberAccountCommand(params); +const command = new ListS3ResourcesCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.Macie({ region: "REGION" }); // async/await. try { - const data = await client.associateMemberAccount(params); + const data = await client.listS3Resources(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .associateMemberAccount(params) + .listS3Resources(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.associateMemberAccount(params, (err, data) => { +client.listS3Resources(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-macie2/README.md b/clients/client-macie2/README.md index c1143dea73fb..7217934cc3ff 100644 --- a/clients/client-macie2/README.md +++ b/clients/client-macie2/README.md @@ -23,16 +23,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 `Macie2Client` and -the commands you need, for example `AcceptInvitationCommand`: +the commands you need, for example `ListMembersCommand`: ```js // ES5 example -const { Macie2Client, AcceptInvitationCommand } = require("@aws-sdk/client-macie2"); +const { Macie2Client, ListMembersCommand } = require("@aws-sdk/client-macie2"); ``` ```ts // ES6+ example -import { Macie2Client, AcceptInvitationCommand } from "@aws-sdk/client-macie2"; +import { Macie2Client, ListMembersCommand } from "@aws-sdk/client-macie2"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new Macie2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptInvitationCommand(params); +const command = new ListMembersCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Macie2({ region: "REGION" }); // async/await. try { - const data = await client.acceptInvitation(params); + const data = await client.listMembers(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .acceptInvitation(params) + .listMembers(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.acceptInvitation(params, (err, data) => { +client.listMembers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-managedblockchain-query/README.md b/clients/client-managedblockchain-query/README.md index 0675b1d5ad3d..80b762a75937 100644 --- a/clients/client-managedblockchain-query/README.md +++ b/clients/client-managedblockchain-query/README.md @@ -29,19 +29,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 `ManagedBlockchainQueryClient` and -the commands you need, for example `BatchGetTokenBalanceCommand`: +the commands you need, for example `ListTokenBalancesCommand`: ```js // ES5 example -const { - ManagedBlockchainQueryClient, - BatchGetTokenBalanceCommand, -} = require("@aws-sdk/client-managedblockchain-query"); +const { ManagedBlockchainQueryClient, ListTokenBalancesCommand } = require("@aws-sdk/client-managedblockchain-query"); ``` ```ts // ES6+ example -import { ManagedBlockchainQueryClient, BatchGetTokenBalanceCommand } from "@aws-sdk/client-managedblockchain-query"; +import { ManagedBlockchainQueryClient, ListTokenBalancesCommand } from "@aws-sdk/client-managedblockchain-query"; ``` ### Usage @@ -60,7 +57,7 @@ const client = new ManagedBlockchainQueryClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetTokenBalanceCommand(params); +const command = new ListTokenBalancesCommand(params); ``` #### Async/await @@ -139,7 +136,7 @@ const client = new AWS.ManagedBlockchainQuery({ region: "REGION" }); // async/await. try { - const data = await client.batchGetTokenBalance(params); + const data = await client.listTokenBalances(params); // process data. } catch (error) { // error handling. @@ -147,7 +144,7 @@ try { // Promises. client - .batchGetTokenBalance(params) + .listTokenBalances(params) .then((data) => { // process data. }) @@ -156,7 +153,7 @@ client }); // callbacks. -client.batchGetTokenBalance(params, (err, data) => { +client.listTokenBalances(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-managedblockchain/README.md b/clients/client-managedblockchain/README.md index 322d0b696836..47121ccea0b1 100644 --- a/clients/client-managedblockchain/README.md +++ b/clients/client-managedblockchain/README.md @@ -26,16 +26,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 `ManagedBlockchainClient` and -the commands you need, for example `CreateAccessorCommand`: +the commands you need, for example `ListAccessorsCommand`: ```js // ES5 example -const { ManagedBlockchainClient, CreateAccessorCommand } = require("@aws-sdk/client-managedblockchain"); +const { ManagedBlockchainClient, ListAccessorsCommand } = require("@aws-sdk/client-managedblockchain"); ``` ```ts // ES6+ example -import { ManagedBlockchainClient, CreateAccessorCommand } from "@aws-sdk/client-managedblockchain"; +import { ManagedBlockchainClient, ListAccessorsCommand } from "@aws-sdk/client-managedblockchain"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new ManagedBlockchainClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAccessorCommand(params); +const command = new ListAccessorsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.ManagedBlockchain({ region: "REGION" }); // async/await. try { - const data = await client.createAccessor(params); + const data = await client.listAccessors(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .createAccessor(params) + .listAccessors(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.createAccessor(params, (err, data) => { +client.listAccessors(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-marketplace-catalog/README.md b/clients/client-marketplace-catalog/README.md index ffc6bac5fa10..caafb5cd4264 100644 --- a/clients/client-marketplace-catalog/README.md +++ b/clients/client-marketplace-catalog/README.md @@ -28,16 +28,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 `MarketplaceCatalogClient` and -the commands you need, for example `CancelChangeSetCommand`: +the commands you need, for example `ListChangeSetsCommand`: ```js // ES5 example -const { MarketplaceCatalogClient, CancelChangeSetCommand } = require("@aws-sdk/client-marketplace-catalog"); +const { MarketplaceCatalogClient, ListChangeSetsCommand } = require("@aws-sdk/client-marketplace-catalog"); ``` ```ts // ES6+ example -import { MarketplaceCatalogClient, CancelChangeSetCommand } from "@aws-sdk/client-marketplace-catalog"; +import { MarketplaceCatalogClient, ListChangeSetsCommand } from "@aws-sdk/client-marketplace-catalog"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new MarketplaceCatalogClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelChangeSetCommand(params); +const command = new ListChangeSetsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.MarketplaceCatalog({ region: "REGION" }); // async/await. try { - const data = await client.cancelChangeSet(params); + const data = await client.listChangeSets(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .cancelChangeSet(params) + .listChangeSets(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.cancelChangeSet(params, (err, data) => { +client.listChangeSets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-marketplace-metering/README.md b/clients/client-marketplace-metering/README.md index 96af7cb56aaa..809d6bf3c182 100644 --- a/clients/client-marketplace-metering/README.md +++ b/clients/client-marketplace-metering/README.md @@ -87,16 +87,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 `MarketplaceMeteringClient` and -the commands you need, for example `BatchMeterUsageCommand`: +the commands you need, for example `ResolveCustomerCommand`: ```js // ES5 example -const { MarketplaceMeteringClient, BatchMeterUsageCommand } = require("@aws-sdk/client-marketplace-metering"); +const { MarketplaceMeteringClient, ResolveCustomerCommand } = require("@aws-sdk/client-marketplace-metering"); ``` ```ts // ES6+ example -import { MarketplaceMeteringClient, BatchMeterUsageCommand } from "@aws-sdk/client-marketplace-metering"; +import { MarketplaceMeteringClient, ResolveCustomerCommand } from "@aws-sdk/client-marketplace-metering"; ``` ### Usage @@ -115,7 +115,7 @@ const client = new MarketplaceMeteringClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchMeterUsageCommand(params); +const command = new ResolveCustomerCommand(params); ``` #### Async/await @@ -194,7 +194,7 @@ const client = new AWS.MarketplaceMetering({ region: "REGION" }); // async/await. try { - const data = await client.batchMeterUsage(params); + const data = await client.resolveCustomer(params); // process data. } catch (error) { // error handling. @@ -202,7 +202,7 @@ try { // Promises. client - .batchMeterUsage(params) + .resolveCustomer(params) .then((data) => { // process data. }) @@ -211,7 +211,7 @@ client }); // callbacks. -client.batchMeterUsage(params, (err, data) => { +client.resolveCustomer(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediaconnect/README.md b/clients/client-mediaconnect/README.md index cf741a6942c3..06f0932ae073 100644 --- a/clients/client-mediaconnect/README.md +++ b/clients/client-mediaconnect/README.md @@ -23,16 +23,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 `MediaConnectClient` and -the commands you need, for example `AddBridgeOutputsCommand`: +the commands you need, for example `ListBridgesCommand`: ```js // ES5 example -const { MediaConnectClient, AddBridgeOutputsCommand } = require("@aws-sdk/client-mediaconnect"); +const { MediaConnectClient, ListBridgesCommand } = require("@aws-sdk/client-mediaconnect"); ``` ```ts // ES6+ example -import { MediaConnectClient, AddBridgeOutputsCommand } from "@aws-sdk/client-mediaconnect"; +import { MediaConnectClient, ListBridgesCommand } from "@aws-sdk/client-mediaconnect"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MediaConnectClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddBridgeOutputsCommand(params); +const command = new ListBridgesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.MediaConnect({ region: "REGION" }); // async/await. try { - const data = await client.addBridgeOutputs(params); + const data = await client.listBridges(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .addBridgeOutputs(params) + .listBridges(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.addBridgeOutputs(params, (err, data) => { +client.listBridges(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediaconvert/README.md b/clients/client-mediaconvert/README.md index 8eecfd78aee8..1fe93e8ef201 100644 --- a/clients/client-mediaconvert/README.md +++ b/clients/client-mediaconvert/README.md @@ -23,16 +23,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 `MediaConvertClient` and -the commands you need, for example `AssociateCertificateCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { MediaConvertClient, AssociateCertificateCommand } = require("@aws-sdk/client-mediaconvert"); +const { MediaConvertClient, ListJobsCommand } = require("@aws-sdk/client-mediaconvert"); ``` ```ts // ES6+ example -import { MediaConvertClient, AssociateCertificateCommand } from "@aws-sdk/client-mediaconvert"; +import { MediaConvertClient, ListJobsCommand } from "@aws-sdk/client-mediaconvert"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MediaConvertClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateCertificateCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.MediaConvert({ region: "REGION" }); // async/await. try { - const data = await client.associateCertificate(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .associateCertificate(params) + .listJobs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.associateCertificate(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-medialive/README.md b/clients/client-medialive/README.md index f1fe65b4b97b..12a9f7b019fc 100644 --- a/clients/client-medialive/README.md +++ b/clients/client-medialive/README.md @@ -23,16 +23,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 `MediaLiveClient` and -the commands you need, for example `AcceptInputDeviceTransferCommand`: +the commands you need, for example `ListInputsCommand`: ```js // ES5 example -const { MediaLiveClient, AcceptInputDeviceTransferCommand } = require("@aws-sdk/client-medialive"); +const { MediaLiveClient, ListInputsCommand } = require("@aws-sdk/client-medialive"); ``` ```ts // ES6+ example -import { MediaLiveClient, AcceptInputDeviceTransferCommand } from "@aws-sdk/client-medialive"; +import { MediaLiveClient, ListInputsCommand } from "@aws-sdk/client-medialive"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MediaLiveClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptInputDeviceTransferCommand(params); +const command = new ListInputsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.MediaLive({ region: "REGION" }); // async/await. try { - const data = await client.acceptInputDeviceTransfer(params); + const data = await client.listInputs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .acceptInputDeviceTransfer(params) + .listInputs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.acceptInputDeviceTransfer(params, (err, data) => { +client.listInputs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediapackage-vod/README.md b/clients/client-mediapackage-vod/README.md index 6a9b5c64f029..248b482c9370 100644 --- a/clients/client-mediapackage-vod/README.md +++ b/clients/client-mediapackage-vod/README.md @@ -23,16 +23,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 `MediaPackageVodClient` and -the commands you need, for example `ConfigureLogsCommand`: +the commands you need, for example `ListAssetsCommand`: ```js // ES5 example -const { MediaPackageVodClient, ConfigureLogsCommand } = require("@aws-sdk/client-mediapackage-vod"); +const { MediaPackageVodClient, ListAssetsCommand } = require("@aws-sdk/client-mediapackage-vod"); ``` ```ts // ES6+ example -import { MediaPackageVodClient, ConfigureLogsCommand } from "@aws-sdk/client-mediapackage-vod"; +import { MediaPackageVodClient, ListAssetsCommand } from "@aws-sdk/client-mediapackage-vod"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MediaPackageVodClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ConfigureLogsCommand(params); +const command = new ListAssetsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.MediaPackageVod({ region: "REGION" }); // async/await. try { - const data = await client.configureLogs(params); + const data = await client.listAssets(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .configureLogs(params) + .listAssets(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.configureLogs(params, (err, data) => { +client.listAssets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediapackage/README.md b/clients/client-mediapackage/README.md index b6e325d07d5f..6d95fffba513 100644 --- a/clients/client-mediapackage/README.md +++ b/clients/client-mediapackage/README.md @@ -23,16 +23,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 `MediaPackageClient` and -the commands you need, for example `ConfigureLogsCommand`: +the commands you need, for example `ListChannelsCommand`: ```js // ES5 example -const { MediaPackageClient, ConfigureLogsCommand } = require("@aws-sdk/client-mediapackage"); +const { MediaPackageClient, ListChannelsCommand } = require("@aws-sdk/client-mediapackage"); ``` ```ts // ES6+ example -import { MediaPackageClient, ConfigureLogsCommand } from "@aws-sdk/client-mediapackage"; +import { MediaPackageClient, ListChannelsCommand } from "@aws-sdk/client-mediapackage"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MediaPackageClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ConfigureLogsCommand(params); +const command = new ListChannelsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.MediaPackage({ region: "REGION" }); // async/await. try { - const data = await client.configureLogs(params); + const data = await client.listChannels(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .configureLogs(params) + .listChannels(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.configureLogs(params, (err, data) => { +client.listChannels(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediapackagev2/README.md b/clients/client-mediapackagev2/README.md index 4d1578b29afc..cc1085003bf7 100644 --- a/clients/client-mediapackagev2/README.md +++ b/clients/client-mediapackagev2/README.md @@ -34,16 +34,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 `MediaPackageV2Client` and -the commands you need, for example `CreateChannelCommand`: +the commands you need, for example `ListChannelGroupsCommand`: ```js // ES5 example -const { MediaPackageV2Client, CreateChannelCommand } = require("@aws-sdk/client-mediapackagev2"); +const { MediaPackageV2Client, ListChannelGroupsCommand } = require("@aws-sdk/client-mediapackagev2"); ``` ```ts // ES6+ example -import { MediaPackageV2Client, CreateChannelCommand } from "@aws-sdk/client-mediapackagev2"; +import { MediaPackageV2Client, ListChannelGroupsCommand } from "@aws-sdk/client-mediapackagev2"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new MediaPackageV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateChannelCommand(params); +const command = new ListChannelGroupsCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.MediaPackageV2({ region: "REGION" }); // async/await. try { - const data = await client.createChannel(params); + const data = await client.listChannelGroups(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .createChannel(params) + .listChannelGroups(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.createChannel(params, (err, data) => { +client.listChannelGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediastore-data/README.md b/clients/client-mediastore-data/README.md index 85c18a38e4c5..da7890094731 100644 --- a/clients/client-mediastore-data/README.md +++ b/clients/client-mediastore-data/README.md @@ -25,16 +25,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 `MediaStoreDataClient` and -the commands you need, for example `DeleteObjectCommand`: +the commands you need, for example `ListItemsCommand`: ```js // ES5 example -const { MediaStoreDataClient, DeleteObjectCommand } = require("@aws-sdk/client-mediastore-data"); +const { MediaStoreDataClient, ListItemsCommand } = require("@aws-sdk/client-mediastore-data"); ``` ```ts // ES6+ example -import { MediaStoreDataClient, DeleteObjectCommand } from "@aws-sdk/client-mediastore-data"; +import { MediaStoreDataClient, ListItemsCommand } from "@aws-sdk/client-mediastore-data"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new MediaStoreDataClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteObjectCommand(params); +const command = new ListItemsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.MediaStoreData({ region: "REGION" }); // async/await. try { - const data = await client.deleteObject(params); + const data = await client.listItems(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .deleteObject(params) + .listItems(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.deleteObject(params, (err, data) => { +client.listItems(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediastore/README.md b/clients/client-mediastore/README.md index 0f5f2aa519c7..65dad04f83d7 100644 --- a/clients/client-mediastore/README.md +++ b/clients/client-mediastore/README.md @@ -24,16 +24,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 `MediaStoreClient` and -the commands you need, for example `CreateContainerCommand`: +the commands you need, for example `ListContainersCommand`: ```js // ES5 example -const { MediaStoreClient, CreateContainerCommand } = require("@aws-sdk/client-mediastore"); +const { MediaStoreClient, ListContainersCommand } = require("@aws-sdk/client-mediastore"); ``` ```ts // ES6+ example -import { MediaStoreClient, CreateContainerCommand } from "@aws-sdk/client-mediastore"; +import { MediaStoreClient, ListContainersCommand } from "@aws-sdk/client-mediastore"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new MediaStoreClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateContainerCommand(params); +const command = new ListContainersCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.MediaStore({ region: "REGION" }); // async/await. try { - const data = await client.createContainer(params); + const data = await client.listContainers(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .createContainer(params) + .listContainers(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.createContainer(params, (err, data) => { +client.listContainers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mediatailor/README.md b/clients/client-mediatailor/README.md index 39bca2dee435..34e107fd29e1 100644 --- a/clients/client-mediatailor/README.md +++ b/clients/client-mediatailor/README.md @@ -24,16 +24,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 `MediaTailorClient` and -the commands you need, for example `ConfigureLogsForChannelCommand`: +the commands you need, for example `ListAlertsCommand`: ```js // ES5 example -const { MediaTailorClient, ConfigureLogsForChannelCommand } = require("@aws-sdk/client-mediatailor"); +const { MediaTailorClient, ListAlertsCommand } = require("@aws-sdk/client-mediatailor"); ``` ```ts // ES6+ example -import { MediaTailorClient, ConfigureLogsForChannelCommand } from "@aws-sdk/client-mediatailor"; +import { MediaTailorClient, ListAlertsCommand } from "@aws-sdk/client-mediatailor"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new MediaTailorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ConfigureLogsForChannelCommand(params); +const command = new ListAlertsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.MediaTailor({ region: "REGION" }); // async/await. try { - const data = await client.configureLogsForChannel(params); + const data = await client.listAlerts(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .configureLogsForChannel(params) + .listAlerts(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.configureLogsForChannel(params, (err, data) => { +client.listAlerts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-medical-imaging/README.md b/clients/client-medical-imaging/README.md index 281b7d7bea2d..724e5f09b380 100644 --- a/clients/client-medical-imaging/README.md +++ b/clients/client-medical-imaging/README.md @@ -172,16 +172,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 `MedicalImagingClient` and -the commands you need, for example `CopyImageSetCommand`: +the commands you need, for example `ListDatastoresCommand`: ```js // ES5 example -const { MedicalImagingClient, CopyImageSetCommand } = require("@aws-sdk/client-medical-imaging"); +const { MedicalImagingClient, ListDatastoresCommand } = require("@aws-sdk/client-medical-imaging"); ``` ```ts // ES6+ example -import { MedicalImagingClient, CopyImageSetCommand } from "@aws-sdk/client-medical-imaging"; +import { MedicalImagingClient, ListDatastoresCommand } from "@aws-sdk/client-medical-imaging"; ``` ### Usage @@ -200,7 +200,7 @@ const client = new MedicalImagingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CopyImageSetCommand(params); +const command = new ListDatastoresCommand(params); ``` #### Async/await @@ -279,7 +279,7 @@ const client = new AWS.MedicalImaging({ region: "REGION" }); // async/await. try { - const data = await client.copyImageSet(params); + const data = await client.listDatastores(params); // process data. } catch (error) { // error handling. @@ -287,7 +287,7 @@ try { // Promises. client - .copyImageSet(params) + .listDatastores(params) .then((data) => { // process data. }) @@ -296,7 +296,7 @@ client }); // callbacks. -client.copyImageSet(params, (err, data) => { +client.listDatastores(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-memorydb/README.md b/clients/client-memorydb/README.md index 5924010a39f3..3b29bb8b3772 100644 --- a/clients/client-memorydb/README.md +++ b/clients/client-memorydb/README.md @@ -25,16 +25,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 `MemoryDBClient` and -the commands you need, for example `BatchUpdateClusterCommand`: +the commands you need, for example `ListTagsCommand`: ```js // ES5 example -const { MemoryDBClient, BatchUpdateClusterCommand } = require("@aws-sdk/client-memorydb"); +const { MemoryDBClient, ListTagsCommand } = require("@aws-sdk/client-memorydb"); ``` ```ts // ES6+ example -import { MemoryDBClient, BatchUpdateClusterCommand } from "@aws-sdk/client-memorydb"; +import { MemoryDBClient, ListTagsCommand } from "@aws-sdk/client-memorydb"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new MemoryDBClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchUpdateClusterCommand(params); +const command = new ListTagsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.MemoryDB({ region: "REGION" }); // async/await. try { - const data = await client.batchUpdateCluster(params); + const data = await client.listTags(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .batchUpdateCluster(params) + .listTags(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.batchUpdateCluster(params, (err, data) => { +client.listTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mgn/README.md b/clients/client-mgn/README.md index eb359046bf39..c6d8d3b34d46 100644 --- a/clients/client-mgn/README.md +++ b/clients/client-mgn/README.md @@ -23,16 +23,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 `MgnClient` and -the commands you need, for example `ArchiveApplicationCommand`: +the commands you need, for example `ListExportsCommand`: ```js // ES5 example -const { MgnClient, ArchiveApplicationCommand } = require("@aws-sdk/client-mgn"); +const { MgnClient, ListExportsCommand } = require("@aws-sdk/client-mgn"); ``` ```ts // ES6+ example -import { MgnClient, ArchiveApplicationCommand } from "@aws-sdk/client-mgn"; +import { MgnClient, ListExportsCommand } from "@aws-sdk/client-mgn"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MgnClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ArchiveApplicationCommand(params); +const command = new ListExportsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Mgn({ region: "REGION" }); // async/await. try { - const data = await client.archiveApplication(params); + const data = await client.listExports(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .archiveApplication(params) + .listExports(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.archiveApplication(params, (err, data) => { +client.listExports(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-migration-hub-refactor-spaces/README.md b/clients/client-migration-hub-refactor-spaces/README.md index 1d5fa09b7726..4bf84a6c40d8 100644 --- a/clients/client-migration-hub-refactor-spaces/README.md +++ b/clients/client-migration-hub-refactor-spaces/README.md @@ -31,13 +31,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `MigrationHubRefactorSpacesClient` and -the commands you need, for example `CreateApplicationCommand`: +the commands you need, for example `ListEnvironmentsCommand`: ```js // ES5 example const { MigrationHubRefactorSpacesClient, - CreateApplicationCommand, + ListEnvironmentsCommand, } = require("@aws-sdk/client-migration-hub-refactor-spaces"); ``` @@ -45,7 +45,7 @@ const { // ES6+ example import { MigrationHubRefactorSpacesClient, - CreateApplicationCommand, + ListEnvironmentsCommand, } from "@aws-sdk/client-migration-hub-refactor-spaces"; ``` @@ -65,7 +65,7 @@ const client = new MigrationHubRefactorSpacesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApplicationCommand(params); +const command = new ListEnvironmentsCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.MigrationHubRefactorSpaces({ region: "REGION" }); // async/await. try { - const data = await client.createApplication(params); + const data = await client.listEnvironments(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .createApplication(params) + .listEnvironments(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.createApplication(params, (err, data) => { +client.listEnvironments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-migration-hub/README.md b/clients/client-migration-hub/README.md index 7c0ce9b1044d..a24ef2ab9afc 100644 --- a/clients/client-migration-hub/README.md +++ b/clients/client-migration-hub/README.md @@ -28,16 +28,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 `MigrationHubClient` and -the commands you need, for example `AssociateCreatedArtifactCommand`: +the commands you need, for example `ListApplicationStatesCommand`: ```js // ES5 example -const { MigrationHubClient, AssociateCreatedArtifactCommand } = require("@aws-sdk/client-migration-hub"); +const { MigrationHubClient, ListApplicationStatesCommand } = require("@aws-sdk/client-migration-hub"); ``` ```ts // ES6+ example -import { MigrationHubClient, AssociateCreatedArtifactCommand } from "@aws-sdk/client-migration-hub"; +import { MigrationHubClient, ListApplicationStatesCommand } from "@aws-sdk/client-migration-hub"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new MigrationHubClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateCreatedArtifactCommand(params); +const command = new ListApplicationStatesCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.MigrationHub({ region: "REGION" }); // async/await. try { - const data = await client.associateCreatedArtifact(params); + const data = await client.listApplicationStates(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .associateCreatedArtifact(params) + .listApplicationStates(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.associateCreatedArtifact(params, (err, data) => { +client.listApplicationStates(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-migrationhub-config/README.md b/clients/client-migrationhub-config/README.md index 01172ba80892..561a6e3ec369 100644 --- a/clients/client-migrationhub-config/README.md +++ b/clients/client-migrationhub-config/README.md @@ -48,16 +48,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 `MigrationHubConfigClient` and -the commands you need, for example `CreateHomeRegionControlCommand`: +the commands you need, for example `GetHomeRegionCommand`: ```js // ES5 example -const { MigrationHubConfigClient, CreateHomeRegionControlCommand } = require("@aws-sdk/client-migrationhub-config"); +const { MigrationHubConfigClient, GetHomeRegionCommand } = require("@aws-sdk/client-migrationhub-config"); ``` ```ts // ES6+ example -import { MigrationHubConfigClient, CreateHomeRegionControlCommand } from "@aws-sdk/client-migrationhub-config"; +import { MigrationHubConfigClient, GetHomeRegionCommand } from "@aws-sdk/client-migrationhub-config"; ``` ### Usage @@ -76,7 +76,7 @@ const client = new MigrationHubConfigClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateHomeRegionControlCommand(params); +const command = new GetHomeRegionCommand(params); ``` #### Async/await @@ -155,7 +155,7 @@ const client = new AWS.MigrationHubConfig({ region: "REGION" }); // async/await. try { - const data = await client.createHomeRegionControl(params); + const data = await client.getHomeRegion(params); // process data. } catch (error) { // error handling. @@ -163,7 +163,7 @@ try { // Promises. client - .createHomeRegionControl(params) + .getHomeRegion(params) .then((data) => { // process data. }) @@ -172,7 +172,7 @@ client }); // callbacks. -client.createHomeRegionControl(params, (err, data) => { +client.getHomeRegion(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-migrationhuborchestrator/README.md b/clients/client-migrationhuborchestrator/README.md index f22584bbede5..67fd8c81357b 100644 --- a/clients/client-migrationhuborchestrator/README.md +++ b/clients/client-migrationhuborchestrator/README.md @@ -27,16 +27,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 `MigrationHubOrchestratorClient` and -the commands you need, for example `CreateWorkflowCommand`: +the commands you need, for example `ListPluginsCommand`: ```js // ES5 example -const { MigrationHubOrchestratorClient, CreateWorkflowCommand } = require("@aws-sdk/client-migrationhuborchestrator"); +const { MigrationHubOrchestratorClient, ListPluginsCommand } = require("@aws-sdk/client-migrationhuborchestrator"); ``` ```ts // ES6+ example -import { MigrationHubOrchestratorClient, CreateWorkflowCommand } from "@aws-sdk/client-migrationhuborchestrator"; +import { MigrationHubOrchestratorClient, ListPluginsCommand } from "@aws-sdk/client-migrationhuborchestrator"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new MigrationHubOrchestratorClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateWorkflowCommand(params); +const command = new ListPluginsCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.MigrationHubOrchestrator({ region: "REGION" }); // async/await. try { - const data = await client.createWorkflow(params); + const data = await client.listPlugins(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .createWorkflow(params) + .listPlugins(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.createWorkflow(params, (err, data) => { +client.listPlugins(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-migrationhubstrategy/README.md b/clients/client-migrationhubstrategy/README.md index 209e3fc483e4..ed02b0871ae1 100644 --- a/clients/client-migrationhubstrategy/README.md +++ b/clients/client-migrationhubstrategy/README.md @@ -29,22 +29,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 `MigrationHubStrategyClient` and -the commands you need, for example `GetApplicationComponentDetailsCommand`: +the commands you need, for example `ListServersCommand`: ```js // ES5 example -const { - MigrationHubStrategyClient, - GetApplicationComponentDetailsCommand, -} = require("@aws-sdk/client-migrationhubstrategy"); +const { MigrationHubStrategyClient, ListServersCommand } = require("@aws-sdk/client-migrationhubstrategy"); ``` ```ts // ES6+ example -import { - MigrationHubStrategyClient, - GetApplicationComponentDetailsCommand, -} from "@aws-sdk/client-migrationhubstrategy"; +import { MigrationHubStrategyClient, ListServersCommand } from "@aws-sdk/client-migrationhubstrategy"; ``` ### Usage @@ -63,7 +57,7 @@ const client = new MigrationHubStrategyClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetApplicationComponentDetailsCommand(params); +const command = new ListServersCommand(params); ``` #### Async/await @@ -142,7 +136,7 @@ const client = new AWS.MigrationHubStrategy({ region: "REGION" }); // async/await. try { - const data = await client.getApplicationComponentDetails(params); + const data = await client.listServers(params); // process data. } catch (error) { // error handling. @@ -150,7 +144,7 @@ try { // Promises. client - .getApplicationComponentDetails(params) + .listServers(params) .then((data) => { // process data. }) @@ -159,7 +153,7 @@ client }); // callbacks. -client.getApplicationComponentDetails(params, (err, data) => { +client.listServers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mobile/README.md b/clients/client-mobile/README.md index a3e65744c051..a5a4f7978df1 100644 --- a/clients/client-mobile/README.md +++ b/clients/client-mobile/README.md @@ -27,16 +27,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 `MobileClient` and -the commands you need, for example `CreateProjectCommand`: +the commands you need, for example `ListBundlesCommand`: ```js // ES5 example -const { MobileClient, CreateProjectCommand } = require("@aws-sdk/client-mobile"); +const { MobileClient, ListBundlesCommand } = require("@aws-sdk/client-mobile"); ``` ```ts // ES6+ example -import { MobileClient, CreateProjectCommand } from "@aws-sdk/client-mobile"; +import { MobileClient, ListBundlesCommand } from "@aws-sdk/client-mobile"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new MobileClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateProjectCommand(params); +const command = new ListBundlesCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Mobile({ region: "REGION" }); // async/await. try { - const data = await client.createProject(params); + const data = await client.listBundles(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .createProject(params) + .listBundles(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.createProject(params, (err, data) => { +client.listBundles(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mq/README.md b/clients/client-mq/README.md index 8fefd40a400a..1801dd83f677 100644 --- a/clients/client-mq/README.md +++ b/clients/client-mq/README.md @@ -23,16 +23,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 `MqClient` and -the commands you need, for example `CreateBrokerCommand`: +the commands you need, for example `ListBrokersCommand`: ```js // ES5 example -const { MqClient, CreateBrokerCommand } = require("@aws-sdk/client-mq"); +const { MqClient, ListBrokersCommand } = require("@aws-sdk/client-mq"); ``` ```ts // ES6+ example -import { MqClient, CreateBrokerCommand } from "@aws-sdk/client-mq"; +import { MqClient, ListBrokersCommand } from "@aws-sdk/client-mq"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MqClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateBrokerCommand(params); +const command = new ListBrokersCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Mq({ region: "REGION" }); // async/await. try { - const data = await client.createBroker(params); + const data = await client.listBrokers(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createBroker(params) + .listBrokers(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createBroker(params, (err, data) => { +client.listBrokers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mturk/README.md b/clients/client-mturk/README.md index 2095e863d600..3db88f9adbe7 100644 --- a/clients/client-mturk/README.md +++ b/clients/client-mturk/README.md @@ -23,16 +23,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 `MTurkClient` and -the commands you need, for example `AcceptQualificationRequestCommand`: +the commands you need, for example `ListHITsCommand`: ```js // ES5 example -const { MTurkClient, AcceptQualificationRequestCommand } = require("@aws-sdk/client-mturk"); +const { MTurkClient, ListHITsCommand } = require("@aws-sdk/client-mturk"); ``` ```ts // ES6+ example -import { MTurkClient, AcceptQualificationRequestCommand } from "@aws-sdk/client-mturk"; +import { MTurkClient, ListHITsCommand } from "@aws-sdk/client-mturk"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new MTurkClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptQualificationRequestCommand(params); +const command = new ListHITsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.MTurk({ region: "REGION" }); // async/await. try { - const data = await client.acceptQualificationRequest(params); + const data = await client.listHITs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .acceptQualificationRequest(params) + .listHITs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.acceptQualificationRequest(params, (err, data) => { +client.listHITs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-mwaa/README.md b/clients/client-mwaa/README.md index c6cfd03fe6d0..dc5b8a7abd96 100644 --- a/clients/client-mwaa/README.md +++ b/clients/client-mwaa/README.md @@ -107,16 +107,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 `MWAAClient` and -the commands you need, for example `CreateCliTokenCommand`: +the commands you need, for example `ListEnvironmentsCommand`: ```js // ES5 example -const { MWAAClient, CreateCliTokenCommand } = require("@aws-sdk/client-mwaa"); +const { MWAAClient, ListEnvironmentsCommand } = require("@aws-sdk/client-mwaa"); ``` ```ts // ES6+ example -import { MWAAClient, CreateCliTokenCommand } from "@aws-sdk/client-mwaa"; +import { MWAAClient, ListEnvironmentsCommand } from "@aws-sdk/client-mwaa"; ``` ### Usage @@ -135,7 +135,7 @@ const client = new MWAAClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateCliTokenCommand(params); +const command = new ListEnvironmentsCommand(params); ``` #### Async/await @@ -214,7 +214,7 @@ const client = new AWS.MWAA({ region: "REGION" }); // async/await. try { - const data = await client.createCliToken(params); + const data = await client.listEnvironments(params); // process data. } catch (error) { // error handling. @@ -222,7 +222,7 @@ try { // Promises. client - .createCliToken(params) + .listEnvironments(params) .then((data) => { // process data. }) @@ -231,7 +231,7 @@ client }); // callbacks. -client.createCliToken(params, (err, data) => { +client.listEnvironments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-neptune/README.md b/clients/client-neptune/README.md index a3a76fd41bb4..2383d2d2dfce 100644 --- a/clients/client-neptune/README.md +++ b/clients/client-neptune/README.md @@ -40,16 +40,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 `NeptuneClient` and -the commands you need, for example `AddRoleToDBClusterCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { NeptuneClient, AddRoleToDBClusterCommand } = require("@aws-sdk/client-neptune"); +const { NeptuneClient, ListTagsForResourceCommand } = require("@aws-sdk/client-neptune"); ``` ```ts // ES6+ example -import { NeptuneClient, AddRoleToDBClusterCommand } from "@aws-sdk/client-neptune"; +import { NeptuneClient, ListTagsForResourceCommand } from "@aws-sdk/client-neptune"; ``` ### Usage @@ -68,7 +68,7 @@ const client = new NeptuneClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddRoleToDBClusterCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -147,7 +147,7 @@ const client = new AWS.Neptune({ region: "REGION" }); // async/await. try { - const data = await client.addRoleToDBCluster(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -155,7 +155,7 @@ try { // Promises. client - .addRoleToDBCluster(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -164,7 +164,7 @@ client }); // callbacks. -client.addRoleToDBCluster(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-neptunedata/README.md b/clients/client-neptunedata/README.md index d3a54d4d5802..ff36dc27ac40 100644 --- a/clients/client-neptunedata/README.md +++ b/clients/client-neptunedata/README.md @@ -29,16 +29,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 `NeptunedataClient` and -the commands you need, for example `CancelGremlinQueryCommand`: +the commands you need, for example `ListLoaderJobsCommand`: ```js // ES5 example -const { NeptunedataClient, CancelGremlinQueryCommand } = require("@aws-sdk/client-neptunedata"); +const { NeptunedataClient, ListLoaderJobsCommand } = require("@aws-sdk/client-neptunedata"); ``` ```ts // ES6+ example -import { NeptunedataClient, CancelGremlinQueryCommand } from "@aws-sdk/client-neptunedata"; +import { NeptunedataClient, ListLoaderJobsCommand } from "@aws-sdk/client-neptunedata"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new NeptunedataClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelGremlinQueryCommand(params); +const command = new ListLoaderJobsCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.Neptunedata({ region: "REGION" }); // async/await. try { - const data = await client.cancelGremlinQuery(params); + const data = await client.listLoaderJobs(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .cancelGremlinQuery(params) + .listLoaderJobs(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.cancelGremlinQuery(params, (err, data) => { +client.listLoaderJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-network-firewall/README.md b/clients/client-network-firewall/README.md index 6ffbf01edd25..560bc93cdfca 100644 --- a/clients/client-network-firewall/README.md +++ b/clients/client-network-firewall/README.md @@ -100,16 +100,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 `NetworkFirewallClient` and -the commands you need, for example `AssociateFirewallPolicyCommand`: +the commands you need, for example `ListFirewallsCommand`: ```js // ES5 example -const { NetworkFirewallClient, AssociateFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall"); +const { NetworkFirewallClient, ListFirewallsCommand } = require("@aws-sdk/client-network-firewall"); ``` ```ts // ES6+ example -import { NetworkFirewallClient, AssociateFirewallPolicyCommand } from "@aws-sdk/client-network-firewall"; +import { NetworkFirewallClient, ListFirewallsCommand } from "@aws-sdk/client-network-firewall"; ``` ### Usage @@ -128,7 +128,7 @@ const client = new NetworkFirewallClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateFirewallPolicyCommand(params); +const command = new ListFirewallsCommand(params); ``` #### Async/await @@ -207,7 +207,7 @@ const client = new AWS.NetworkFirewall({ region: "REGION" }); // async/await. try { - const data = await client.associateFirewallPolicy(params); + const data = await client.listFirewalls(params); // process data. } catch (error) { // error handling. @@ -215,7 +215,7 @@ try { // Promises. client - .associateFirewallPolicy(params) + .listFirewalls(params) .then((data) => { // process data. }) @@ -224,7 +224,7 @@ client }); // callbacks. -client.associateFirewallPolicy(params, (err, data) => { +client.listFirewalls(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-networkmanager/README.md b/clients/client-networkmanager/README.md index 349bc20dc482..91ff1683b68c 100644 --- a/clients/client-networkmanager/README.md +++ b/clients/client-networkmanager/README.md @@ -23,16 +23,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 `NetworkManagerClient` and -the commands you need, for example `AcceptAttachmentCommand`: +the commands you need, for example `ListAttachmentsCommand`: ```js // ES5 example -const { NetworkManagerClient, AcceptAttachmentCommand } = require("@aws-sdk/client-networkmanager"); +const { NetworkManagerClient, ListAttachmentsCommand } = require("@aws-sdk/client-networkmanager"); ``` ```ts // ES6+ example -import { NetworkManagerClient, AcceptAttachmentCommand } from "@aws-sdk/client-networkmanager"; +import { NetworkManagerClient, ListAttachmentsCommand } from "@aws-sdk/client-networkmanager"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new NetworkManagerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptAttachmentCommand(params); +const command = new ListAttachmentsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.NetworkManager({ region: "REGION" }); // async/await. try { - const data = await client.acceptAttachment(params); + const data = await client.listAttachments(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .acceptAttachment(params) + .listAttachments(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.acceptAttachment(params, (err, data) => { +client.listAttachments(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-nimble/README.md b/clients/client-nimble/README.md index 83416bdc7397..ef611069cdbd 100644 --- a/clients/client-nimble/README.md +++ b/clients/client-nimble/README.md @@ -28,16 +28,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 `NimbleClient` and -the commands you need, for example `AcceptEulasCommand`: +the commands you need, for example `ListEulasCommand`: ```js // ES5 example -const { NimbleClient, AcceptEulasCommand } = require("@aws-sdk/client-nimble"); +const { NimbleClient, ListEulasCommand } = require("@aws-sdk/client-nimble"); ``` ```ts // ES6+ example -import { NimbleClient, AcceptEulasCommand } from "@aws-sdk/client-nimble"; +import { NimbleClient, ListEulasCommand } from "@aws-sdk/client-nimble"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new NimbleClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptEulasCommand(params); +const command = new ListEulasCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.Nimble({ region: "REGION" }); // async/await. try { - const data = await client.acceptEulas(params); + const data = await client.listEulas(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .acceptEulas(params) + .listEulas(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.acceptEulas(params, (err, data) => { +client.listEulas(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-oam/README.md b/clients/client-oam/README.md index fa7198ac68c0..ed5d6854a633 100644 --- a/clients/client-oam/README.md +++ b/clients/client-oam/README.md @@ -34,16 +34,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 `OAMClient` and -the commands you need, for example `CreateLinkCommand`: +the commands you need, for example `ListLinksCommand`: ```js // ES5 example -const { OAMClient, CreateLinkCommand } = require("@aws-sdk/client-oam"); +const { OAMClient, ListLinksCommand } = require("@aws-sdk/client-oam"); ``` ```ts // ES6+ example -import { OAMClient, CreateLinkCommand } from "@aws-sdk/client-oam"; +import { OAMClient, ListLinksCommand } from "@aws-sdk/client-oam"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new OAMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateLinkCommand(params); +const command = new ListLinksCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.OAM({ region: "REGION" }); // async/await. try { - const data = await client.createLink(params); + const data = await client.listLinks(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .createLink(params) + .listLinks(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.createLink(params, (err, data) => { +client.listLinks(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-omics/README.md b/clients/client-omics/README.md index 43f5380f0aa3..730b5416b789 100644 --- a/clients/client-omics/README.md +++ b/clients/client-omics/README.md @@ -24,16 +24,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 `OmicsClient` and -the commands you need, for example `AbortMultipartReadSetUploadCommand`: +the commands you need, for example `ListRunsCommand`: ```js // ES5 example -const { OmicsClient, AbortMultipartReadSetUploadCommand } = require("@aws-sdk/client-omics"); +const { OmicsClient, ListRunsCommand } = require("@aws-sdk/client-omics"); ``` ```ts // ES6+ example -import { OmicsClient, AbortMultipartReadSetUploadCommand } from "@aws-sdk/client-omics"; +import { OmicsClient, ListRunsCommand } from "@aws-sdk/client-omics"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new OmicsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AbortMultipartReadSetUploadCommand(params); +const command = new ListRunsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.Omics({ region: "REGION" }); // async/await. try { - const data = await client.abortMultipartReadSetUpload(params); + const data = await client.listRuns(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .abortMultipartReadSetUpload(params) + .listRuns(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.abortMultipartReadSetUpload(params, (err, data) => { +client.listRuns(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-opensearch/README.md b/clients/client-opensearch/README.md index 9ee0ed983889..fff074a37595 100644 --- a/clients/client-opensearch/README.md +++ b/clients/client-opensearch/README.md @@ -32,16 +32,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 `OpenSearchClient` and -the commands you need, for example `AcceptInboundConnectionCommand`: +the commands you need, for example `ListDomainNamesCommand`: ```js // ES5 example -const { OpenSearchClient, AcceptInboundConnectionCommand } = require("@aws-sdk/client-opensearch"); +const { OpenSearchClient, ListDomainNamesCommand } = require("@aws-sdk/client-opensearch"); ``` ```ts // ES6+ example -import { OpenSearchClient, AcceptInboundConnectionCommand } from "@aws-sdk/client-opensearch"; +import { OpenSearchClient, ListDomainNamesCommand } from "@aws-sdk/client-opensearch"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new OpenSearchClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptInboundConnectionCommand(params); +const command = new ListDomainNamesCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.OpenSearch({ region: "REGION" }); // async/await. try { - const data = await client.acceptInboundConnection(params); + const data = await client.listDomainNames(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .acceptInboundConnection(params) + .listDomainNames(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.acceptInboundConnection(params, (err, data) => { +client.listDomainNames(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-opensearchserverless/README.md b/clients/client-opensearchserverless/README.md index fa9374180bd1..113d3179c8f5 100644 --- a/clients/client-opensearchserverless/README.md +++ b/clients/client-opensearchserverless/README.md @@ -32,16 +32,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 `OpenSearchServerlessClient` and -the commands you need, for example `BatchGetCollectionCommand`: +the commands you need, for example `ListCollectionsCommand`: ```js // ES5 example -const { OpenSearchServerlessClient, BatchGetCollectionCommand } = require("@aws-sdk/client-opensearchserverless"); +const { OpenSearchServerlessClient, ListCollectionsCommand } = require("@aws-sdk/client-opensearchserverless"); ``` ```ts // ES6+ example -import { OpenSearchServerlessClient, BatchGetCollectionCommand } from "@aws-sdk/client-opensearchserverless"; +import { OpenSearchServerlessClient, ListCollectionsCommand } from "@aws-sdk/client-opensearchserverless"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new OpenSearchServerlessClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetCollectionCommand(params); +const command = new ListCollectionsCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.OpenSearchServerless({ region: "REGION" }); // async/await. try { - const data = await client.batchGetCollection(params); + const data = await client.listCollections(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .batchGetCollection(params) + .listCollections(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.batchGetCollection(params, (err, data) => { +client.listCollections(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-opsworks/README.md b/clients/client-opsworks/README.md index 2fef03e4dc0e..12060674dbe6 100644 --- a/clients/client-opsworks/README.md +++ b/clients/client-opsworks/README.md @@ -138,16 +138,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 `OpsWorksClient` and -the commands you need, for example `AssignInstanceCommand`: +the commands you need, for example `ListTagsCommand`: ```js // ES5 example -const { OpsWorksClient, AssignInstanceCommand } = require("@aws-sdk/client-opsworks"); +const { OpsWorksClient, ListTagsCommand } = require("@aws-sdk/client-opsworks"); ``` ```ts // ES6+ example -import { OpsWorksClient, AssignInstanceCommand } from "@aws-sdk/client-opsworks"; +import { OpsWorksClient, ListTagsCommand } from "@aws-sdk/client-opsworks"; ``` ### Usage @@ -166,7 +166,7 @@ const client = new OpsWorksClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssignInstanceCommand(params); +const command = new ListTagsCommand(params); ``` #### Async/await @@ -245,7 +245,7 @@ const client = new AWS.OpsWorks({ region: "REGION" }); // async/await. try { - const data = await client.assignInstance(params); + const data = await client.listTags(params); // process data. } catch (error) { // error handling. @@ -253,7 +253,7 @@ try { // Promises. client - .assignInstance(params) + .listTags(params) .then((data) => { // process data. }) @@ -262,7 +262,7 @@ client }); // callbacks. -client.assignInstance(params, (err, data) => { +client.listTags(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-opsworkscm/README.md b/clients/client-opsworkscm/README.md index 2b4c9375b026..35f4428fd8b9 100644 --- a/clients/client-opsworkscm/README.md +++ b/clients/client-opsworkscm/README.md @@ -111,16 +111,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 `OpsWorksCMClient` and -the commands you need, for example `AssociateNodeCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { OpsWorksCMClient, AssociateNodeCommand } = require("@aws-sdk/client-opsworkscm"); +const { OpsWorksCMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-opsworkscm"); ``` ```ts // ES6+ example -import { OpsWorksCMClient, AssociateNodeCommand } from "@aws-sdk/client-opsworkscm"; +import { OpsWorksCMClient, ListTagsForResourceCommand } from "@aws-sdk/client-opsworkscm"; ``` ### Usage @@ -139,7 +139,7 @@ const client = new OpsWorksCMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateNodeCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -218,7 +218,7 @@ const client = new AWS.OpsWorksCM({ region: "REGION" }); // async/await. try { - const data = await client.associateNode(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -226,7 +226,7 @@ try { // Promises. client - .associateNode(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -235,7 +235,7 @@ client }); // callbacks. -client.associateNode(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-organizations/README.md b/clients/client-organizations/README.md index 39cc9ae17cca..ceefce548939 100644 --- a/clients/client-organizations/README.md +++ b/clients/client-organizations/README.md @@ -94,16 +94,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 `OrganizationsClient` and -the commands you need, for example `AcceptHandshakeCommand`: +the commands you need, for example `ListRootsCommand`: ```js // ES5 example -const { OrganizationsClient, AcceptHandshakeCommand } = require("@aws-sdk/client-organizations"); +const { OrganizationsClient, ListRootsCommand } = require("@aws-sdk/client-organizations"); ``` ```ts // ES6+ example -import { OrganizationsClient, AcceptHandshakeCommand } from "@aws-sdk/client-organizations"; +import { OrganizationsClient, ListRootsCommand } from "@aws-sdk/client-organizations"; ``` ### Usage @@ -122,7 +122,7 @@ const client = new OrganizationsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptHandshakeCommand(params); +const command = new ListRootsCommand(params); ``` #### Async/await @@ -201,7 +201,7 @@ const client = new AWS.Organizations({ region: "REGION" }); // async/await. try { - const data = await client.acceptHandshake(params); + const data = await client.listRoots(params); // process data. } catch (error) { // error handling. @@ -209,7 +209,7 @@ try { // Promises. client - .acceptHandshake(params) + .listRoots(params) .then((data) => { // process data. }) @@ -218,7 +218,7 @@ client }); // callbacks. -client.acceptHandshake(params, (err, data) => { +client.listRoots(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-osis/README.md b/clients/client-osis/README.md index 142fa4ca5671..536ea5415616 100644 --- a/clients/client-osis/README.md +++ b/clients/client-osis/README.md @@ -25,16 +25,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 `OSISClient` and -the commands you need, for example `CreatePipelineCommand`: +the commands you need, for example `ListPipelinesCommand`: ```js // ES5 example -const { OSISClient, CreatePipelineCommand } = require("@aws-sdk/client-osis"); +const { OSISClient, ListPipelinesCommand } = require("@aws-sdk/client-osis"); ``` ```ts // ES6+ example -import { OSISClient, CreatePipelineCommand } from "@aws-sdk/client-osis"; +import { OSISClient, ListPipelinesCommand } from "@aws-sdk/client-osis"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new OSISClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreatePipelineCommand(params); +const command = new ListPipelinesCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.OSIS({ region: "REGION" }); // async/await. try { - const data = await client.createPipeline(params); + const data = await client.listPipelines(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .createPipeline(params) + .listPipelines(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.createPipeline(params, (err, data) => { +client.listPipelines(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-outposts/README.md b/clients/client-outposts/README.md index 51bc359d0e47..c322366ec46e 100644 --- a/clients/client-outposts/README.md +++ b/clients/client-outposts/README.md @@ -27,16 +27,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 `OutpostsClient` and -the commands you need, for example `CancelOrderCommand`: +the commands you need, for example `ListOrdersCommand`: ```js // ES5 example -const { OutpostsClient, CancelOrderCommand } = require("@aws-sdk/client-outposts"); +const { OutpostsClient, ListOrdersCommand } = require("@aws-sdk/client-outposts"); ``` ```ts // ES6+ example -import { OutpostsClient, CancelOrderCommand } from "@aws-sdk/client-outposts"; +import { OutpostsClient, ListOrdersCommand } from "@aws-sdk/client-outposts"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new OutpostsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelOrderCommand(params); +const command = new ListOrdersCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Outposts({ region: "REGION" }); // async/await. try { - const data = await client.cancelOrder(params); + const data = await client.listOrders(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .cancelOrder(params) + .listOrders(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.cancelOrder(params, (err, data) => { +client.listOrders(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-panorama/README.md b/clients/client-panorama/README.md index f031b589e911..d19b02751954 100644 --- a/clients/client-panorama/README.md +++ b/clients/client-panorama/README.md @@ -29,16 +29,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 `PanoramaClient` and -the commands you need, for example `CreateApplicationInstanceCommand`: +the commands you need, for example `ListDevicesCommand`: ```js // ES5 example -const { PanoramaClient, CreateApplicationInstanceCommand } = require("@aws-sdk/client-panorama"); +const { PanoramaClient, ListDevicesCommand } = require("@aws-sdk/client-panorama"); ``` ```ts // ES6+ example -import { PanoramaClient, CreateApplicationInstanceCommand } from "@aws-sdk/client-panorama"; +import { PanoramaClient, ListDevicesCommand } from "@aws-sdk/client-panorama"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new PanoramaClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApplicationInstanceCommand(params); +const command = new ListDevicesCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.Panorama({ region: "REGION" }); // async/await. try { - const data = await client.createApplicationInstance(params); + const data = await client.listDevices(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .createApplicationInstance(params) + .listDevices(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.createApplicationInstance(params, (err, data) => { +client.listDevices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-payment-cryptography/README.md b/clients/client-payment-cryptography/README.md index 6ffd2d6de38e..6009fdd3efc1 100644 --- a/clients/client-payment-cryptography/README.md +++ b/clients/client-payment-cryptography/README.md @@ -27,16 +27,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 `PaymentCryptographyClient` and -the commands you need, for example `CreateAliasCommand`: +the commands you need, for example `ListAliasesCommand`: ```js // ES5 example -const { PaymentCryptographyClient, CreateAliasCommand } = require("@aws-sdk/client-payment-cryptography"); +const { PaymentCryptographyClient, ListAliasesCommand } = require("@aws-sdk/client-payment-cryptography"); ``` ```ts // ES6+ example -import { PaymentCryptographyClient, CreateAliasCommand } from "@aws-sdk/client-payment-cryptography"; +import { PaymentCryptographyClient, ListAliasesCommand } from "@aws-sdk/client-payment-cryptography"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new PaymentCryptographyClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAliasCommand(params); +const command = new ListAliasesCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.PaymentCryptography({ region: "REGION" }); // async/await. try { - const data = await client.createAlias(params); + const data = await client.listAliases(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .createAlias(params) + .listAliases(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.createAlias(params, (err, data) => { +client.listAliases(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pca-connector-ad/README.md b/clients/client-pca-connector-ad/README.md index 8cf9d138c2b5..f5eb6911e5bf 100644 --- a/clients/client-pca-connector-ad/README.md +++ b/clients/client-pca-connector-ad/README.md @@ -25,16 +25,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 `PcaConnectorAdClient` and -the commands you need, for example `CreateConnectorCommand`: +the commands you need, for example `ListConnectorsCommand`: ```js // ES5 example -const { PcaConnectorAdClient, CreateConnectorCommand } = require("@aws-sdk/client-pca-connector-ad"); +const { PcaConnectorAdClient, ListConnectorsCommand } = require("@aws-sdk/client-pca-connector-ad"); ``` ```ts // ES6+ example -import { PcaConnectorAdClient, CreateConnectorCommand } from "@aws-sdk/client-pca-connector-ad"; +import { PcaConnectorAdClient, ListConnectorsCommand } from "@aws-sdk/client-pca-connector-ad"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new PcaConnectorAdClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateConnectorCommand(params); +const command = new ListConnectorsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.PcaConnectorAd({ region: "REGION" }); // async/await. try { - const data = await client.createConnector(params); + const data = await client.listConnectors(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .createConnector(params) + .listConnectors(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.createConnector(params, (err, data) => { +client.listConnectors(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-personalize-events/README.md b/clients/client-personalize-events/README.md index be8eae4b9164..bd8ca427005d 100644 --- a/clients/client-personalize-events/README.md +++ b/clients/client-personalize-events/README.md @@ -25,16 +25,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 `PersonalizeEventsClient` and -the commands you need, for example `PutEventsCommand`: +the commands you need, for example `PutItemsCommand`: ```js // ES5 example -const { PersonalizeEventsClient, PutEventsCommand } = require("@aws-sdk/client-personalize-events"); +const { PersonalizeEventsClient, PutItemsCommand } = require("@aws-sdk/client-personalize-events"); ``` ```ts // ES6+ example -import { PersonalizeEventsClient, PutEventsCommand } from "@aws-sdk/client-personalize-events"; +import { PersonalizeEventsClient, PutItemsCommand } from "@aws-sdk/client-personalize-events"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new PersonalizeEventsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new PutEventsCommand(params); +const command = new PutItemsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.PersonalizeEvents({ region: "REGION" }); // async/await. try { - const data = await client.putEvents(params); + const data = await client.putItems(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .putEvents(params) + .putItems(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.putEvents(params, (err, data) => { +client.putItems(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-personalize-runtime/README.md b/clients/client-personalize-runtime/README.md index 9bb2764ea8b5..148811530bd5 100644 --- a/clients/client-personalize-runtime/README.md +++ b/clients/client-personalize-runtime/README.md @@ -23,16 +23,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 `PersonalizeRuntimeClient` and -the commands you need, for example `GetPersonalizedRankingCommand`: +the commands you need, for example `GetRecommendationsCommand`: ```js // ES5 example -const { PersonalizeRuntimeClient, GetPersonalizedRankingCommand } = require("@aws-sdk/client-personalize-runtime"); +const { PersonalizeRuntimeClient, GetRecommendationsCommand } = require("@aws-sdk/client-personalize-runtime"); ``` ```ts // ES6+ example -import { PersonalizeRuntimeClient, GetPersonalizedRankingCommand } from "@aws-sdk/client-personalize-runtime"; +import { PersonalizeRuntimeClient, GetRecommendationsCommand } from "@aws-sdk/client-personalize-runtime"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new PersonalizeRuntimeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetPersonalizedRankingCommand(params); +const command = new GetRecommendationsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.PersonalizeRuntime({ region: "REGION" }); // async/await. try { - const data = await client.getPersonalizedRanking(params); + const data = await client.getRecommendations(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .getPersonalizedRanking(params) + .getRecommendations(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.getPersonalizedRanking(params, (err, data) => { +client.getRecommendations(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-personalize/README.md b/clients/client-personalize/README.md index d583f01d8f20..dc12ee4a9701 100644 --- a/clients/client-personalize/README.md +++ b/clients/client-personalize/README.md @@ -24,16 +24,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 `PersonalizeClient` and -the commands you need, for example `CreateBatchInferenceJobCommand`: +the commands you need, for example `ListFiltersCommand`: ```js // ES5 example -const { PersonalizeClient, CreateBatchInferenceJobCommand } = require("@aws-sdk/client-personalize"); +const { PersonalizeClient, ListFiltersCommand } = require("@aws-sdk/client-personalize"); ``` ```ts // ES6+ example -import { PersonalizeClient, CreateBatchInferenceJobCommand } from "@aws-sdk/client-personalize"; +import { PersonalizeClient, ListFiltersCommand } from "@aws-sdk/client-personalize"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new PersonalizeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateBatchInferenceJobCommand(params); +const command = new ListFiltersCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.Personalize({ region: "REGION" }); // async/await. try { - const data = await client.createBatchInferenceJob(params); + const data = await client.listFilters(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .createBatchInferenceJob(params) + .listFilters(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.createBatchInferenceJob(params, (err, data) => { +client.listFilters(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pi/README.md b/clients/client-pi/README.md index 0f71f2ae7618..4d2953c036c5 100644 --- a/clients/client-pi/README.md +++ b/clients/client-pi/README.md @@ -48,16 +48,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 `PIClient` and -the commands you need, for example `CreatePerformanceAnalysisReportCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { PIClient, CreatePerformanceAnalysisReportCommand } = require("@aws-sdk/client-pi"); +const { PIClient, ListTagsForResourceCommand } = require("@aws-sdk/client-pi"); ``` ```ts // ES6+ example -import { PIClient, CreatePerformanceAnalysisReportCommand } from "@aws-sdk/client-pi"; +import { PIClient, ListTagsForResourceCommand } from "@aws-sdk/client-pi"; ``` ### Usage @@ -76,7 +76,7 @@ const client = new PIClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreatePerformanceAnalysisReportCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -155,7 +155,7 @@ const client = new AWS.PI({ region: "REGION" }); // async/await. try { - const data = await client.createPerformanceAnalysisReport(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -163,7 +163,7 @@ try { // Promises. client - .createPerformanceAnalysisReport(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -172,7 +172,7 @@ client }); // callbacks. -client.createPerformanceAnalysisReport(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pinpoint-email/README.md b/clients/client-pinpoint-email/README.md index 0ecd10c84d03..2452e7db1158 100644 --- a/clients/client-pinpoint-email/README.md +++ b/clients/client-pinpoint-email/README.md @@ -52,16 +52,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 `PinpointEmailClient` and -the commands you need, for example `CreateConfigurationSetCommand`: +the commands you need, for example `ListConfigurationSetsCommand`: ```js // ES5 example -const { PinpointEmailClient, CreateConfigurationSetCommand } = require("@aws-sdk/client-pinpoint-email"); +const { PinpointEmailClient, ListConfigurationSetsCommand } = require("@aws-sdk/client-pinpoint-email"); ``` ```ts // ES6+ example -import { PinpointEmailClient, CreateConfigurationSetCommand } from "@aws-sdk/client-pinpoint-email"; +import { PinpointEmailClient, ListConfigurationSetsCommand } from "@aws-sdk/client-pinpoint-email"; ``` ### Usage @@ -80,7 +80,7 @@ const client = new PinpointEmailClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateConfigurationSetCommand(params); +const command = new ListConfigurationSetsCommand(params); ``` #### Async/await @@ -159,7 +159,7 @@ const client = new AWS.PinpointEmail({ region: "REGION" }); // async/await. try { - const data = await client.createConfigurationSet(params); + const data = await client.listConfigurationSets(params); // process data. } catch (error) { // error handling. @@ -167,7 +167,7 @@ try { // Promises. client - .createConfigurationSet(params) + .listConfigurationSets(params) .then((data) => { // process data. }) @@ -176,7 +176,7 @@ client }); // callbacks. -client.createConfigurationSet(params, (err, data) => { +client.listConfigurationSets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pinpoint-sms-voice-v2/README.md b/clients/client-pinpoint-sms-voice-v2/README.md index 66eb8fcabdf3..d9461dcf750b 100644 --- a/clients/client-pinpoint-sms-voice-v2/README.md +++ b/clients/client-pinpoint-sms-voice-v2/README.md @@ -38,19 +38,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 `PinpointSMSVoiceV2Client` and -the commands you need, for example `AssociateOriginationIdentityCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { - PinpointSMSVoiceV2Client, - AssociateOriginationIdentityCommand, -} = require("@aws-sdk/client-pinpoint-sms-voice-v2"); +const { PinpointSMSVoiceV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); ``` ```ts // ES6+ example -import { PinpointSMSVoiceV2Client, AssociateOriginationIdentityCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; +import { PinpointSMSVoiceV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; ``` ### Usage @@ -69,7 +66,7 @@ const client = new PinpointSMSVoiceV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateOriginationIdentityCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -148,7 +145,7 @@ const client = new AWS.PinpointSMSVoiceV2({ region: "REGION" }); // async/await. try { - const data = await client.associateOriginationIdentity(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -156,7 +153,7 @@ try { // Promises. client - .associateOriginationIdentity(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -165,7 +162,7 @@ client }); // callbacks. -client.associateOriginationIdentity(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pinpoint-sms-voice/README.md b/clients/client-pinpoint-sms-voice/README.md index 1be767dbe241..0dc70166c2db 100644 --- a/clients/client-pinpoint-sms-voice/README.md +++ b/clients/client-pinpoint-sms-voice/README.md @@ -23,16 +23,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 `PinpointSMSVoiceClient` and -the commands you need, for example `CreateConfigurationSetCommand`: +the commands you need, for example `ListConfigurationSetsCommand`: ```js // ES5 example -const { PinpointSMSVoiceClient, CreateConfigurationSetCommand } = require("@aws-sdk/client-pinpoint-sms-voice"); +const { PinpointSMSVoiceClient, ListConfigurationSetsCommand } = require("@aws-sdk/client-pinpoint-sms-voice"); ``` ```ts // ES6+ example -import { PinpointSMSVoiceClient, CreateConfigurationSetCommand } from "@aws-sdk/client-pinpoint-sms-voice"; +import { PinpointSMSVoiceClient, ListConfigurationSetsCommand } from "@aws-sdk/client-pinpoint-sms-voice"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new PinpointSMSVoiceClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateConfigurationSetCommand(params); +const command = new ListConfigurationSetsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.PinpointSMSVoice({ region: "REGION" }); // async/await. try { - const data = await client.createConfigurationSet(params); + const data = await client.listConfigurationSets(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createConfigurationSet(params) + .listConfigurationSets(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createConfigurationSet(params, (err, data) => { +client.listConfigurationSets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pinpoint/README.md b/clients/client-pinpoint/README.md index e0faf9fd9175..a813344eb807 100644 --- a/clients/client-pinpoint/README.md +++ b/clients/client-pinpoint/README.md @@ -23,16 +23,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 `PinpointClient` and -the commands you need, for example `CreateAppCommand`: +the commands you need, for example `ListTemplatesCommand`: ```js // ES5 example -const { PinpointClient, CreateAppCommand } = require("@aws-sdk/client-pinpoint"); +const { PinpointClient, ListTemplatesCommand } = require("@aws-sdk/client-pinpoint"); ``` ```ts // ES6+ example -import { PinpointClient, CreateAppCommand } from "@aws-sdk/client-pinpoint"; +import { PinpointClient, ListTemplatesCommand } from "@aws-sdk/client-pinpoint"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new PinpointClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAppCommand(params); +const command = new ListTemplatesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Pinpoint({ region: "REGION" }); // async/await. try { - const data = await client.createApp(params); + const data = await client.listTemplates(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createApp(params) + .listTemplates(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createApp(params, (err, data) => { +client.listTemplates(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pipes/README.md b/clients/client-pipes/README.md index 268c3f32a42c..e7136980265e 100644 --- a/clients/client-pipes/README.md +++ b/clients/client-pipes/README.md @@ -25,16 +25,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 `PipesClient` and -the commands you need, for example `CreatePipeCommand`: +the commands you need, for example `ListPipesCommand`: ```js // ES5 example -const { PipesClient, CreatePipeCommand } = require("@aws-sdk/client-pipes"); +const { PipesClient, ListPipesCommand } = require("@aws-sdk/client-pipes"); ``` ```ts // ES6+ example -import { PipesClient, CreatePipeCommand } from "@aws-sdk/client-pipes"; +import { PipesClient, ListPipesCommand } from "@aws-sdk/client-pipes"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new PipesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreatePipeCommand(params); +const command = new ListPipesCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.Pipes({ region: "REGION" }); // async/await. try { - const data = await client.createPipe(params); + const data = await client.listPipes(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .createPipe(params) + .listPipes(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.createPipe(params, (err, data) => { +client.listPipes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-polly/README.md b/clients/client-polly/README.md index 829dd2509272..b0a4ec983bd7 100644 --- a/clients/client-polly/README.md +++ b/clients/client-polly/README.md @@ -28,16 +28,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 `PollyClient` and -the commands you need, for example `DeleteLexiconCommand`: +the commands you need, for example `ListLexiconsCommand`: ```js // ES5 example -const { PollyClient, DeleteLexiconCommand } = require("@aws-sdk/client-polly"); +const { PollyClient, ListLexiconsCommand } = require("@aws-sdk/client-polly"); ``` ```ts // ES6+ example -import { PollyClient, DeleteLexiconCommand } from "@aws-sdk/client-polly"; +import { PollyClient, ListLexiconsCommand } from "@aws-sdk/client-polly"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new PollyClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteLexiconCommand(params); +const command = new ListLexiconsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.Polly({ region: "REGION" }); // async/await. try { - const data = await client.deleteLexicon(params); + const data = await client.listLexicons(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .deleteLexicon(params) + .listLexicons(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.deleteLexicon(params, (err, data) => { +client.listLexicons(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-pricing/README.md b/clients/client-pricing/README.md index 5d50a2d6bbee..037c0b0c3cd6 100644 --- a/clients/client-pricing/README.md +++ b/clients/client-pricing/README.md @@ -57,16 +57,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 `PricingClient` and -the commands you need, for example `DescribeServicesCommand`: +the commands you need, for example `ListPriceListsCommand`: ```js // ES5 example -const { PricingClient, DescribeServicesCommand } = require("@aws-sdk/client-pricing"); +const { PricingClient, ListPriceListsCommand } = require("@aws-sdk/client-pricing"); ``` ```ts // ES6+ example -import { PricingClient, DescribeServicesCommand } from "@aws-sdk/client-pricing"; +import { PricingClient, ListPriceListsCommand } from "@aws-sdk/client-pricing"; ``` ### Usage @@ -85,7 +85,7 @@ const client = new PricingClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeServicesCommand(params); +const command = new ListPriceListsCommand(params); ``` #### Async/await @@ -164,7 +164,7 @@ const client = new AWS.Pricing({ region: "REGION" }); // async/await. try { - const data = await client.describeServices(params); + const data = await client.listPriceLists(params); // process data. } catch (error) { // error handling. @@ -172,7 +172,7 @@ try { // Promises. client - .describeServices(params) + .listPriceLists(params) .then((data) => { // process data. }) @@ -181,7 +181,7 @@ client }); // callbacks. -client.describeServices(params, (err, data) => { +client.listPriceLists(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-privatenetworks/README.md b/clients/client-privatenetworks/README.md index 5ef476d9f7c4..5c74a6a2c081 100644 --- a/clients/client-privatenetworks/README.md +++ b/clients/client-privatenetworks/README.md @@ -26,16 +26,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 `PrivateNetworksClient` and -the commands you need, for example `AcknowledgeOrderReceiptCommand`: +the commands you need, for example `ListNetworksCommand`: ```js // ES5 example -const { PrivateNetworksClient, AcknowledgeOrderReceiptCommand } = require("@aws-sdk/client-privatenetworks"); +const { PrivateNetworksClient, ListNetworksCommand } = require("@aws-sdk/client-privatenetworks"); ``` ```ts // ES6+ example -import { PrivateNetworksClient, AcknowledgeOrderReceiptCommand } from "@aws-sdk/client-privatenetworks"; +import { PrivateNetworksClient, ListNetworksCommand } from "@aws-sdk/client-privatenetworks"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new PrivateNetworksClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcknowledgeOrderReceiptCommand(params); +const command = new ListNetworksCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.PrivateNetworks({ region: "REGION" }); // async/await. try { - const data = await client.acknowledgeOrderReceipt(params); + const data = await client.listNetworks(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .acknowledgeOrderReceipt(params) + .listNetworks(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.acknowledgeOrderReceipt(params, (err, data) => { +client.listNetworks(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-proton/README.md b/clients/client-proton/README.md index ea0873e1268e..6d7077ed76af 100644 --- a/clients/client-proton/README.md +++ b/clients/client-proton/README.md @@ -151,16 +151,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 `ProtonClient` and -the commands you need, for example `AcceptEnvironmentAccountConnectionCommand`: +the commands you need, for example `ListComponentsCommand`: ```js // ES5 example -const { ProtonClient, AcceptEnvironmentAccountConnectionCommand } = require("@aws-sdk/client-proton"); +const { ProtonClient, ListComponentsCommand } = require("@aws-sdk/client-proton"); ``` ```ts // ES6+ example -import { ProtonClient, AcceptEnvironmentAccountConnectionCommand } from "@aws-sdk/client-proton"; +import { ProtonClient, ListComponentsCommand } from "@aws-sdk/client-proton"; ``` ### Usage @@ -179,7 +179,7 @@ const client = new ProtonClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptEnvironmentAccountConnectionCommand(params); +const command = new ListComponentsCommand(params); ``` #### Async/await @@ -258,7 +258,7 @@ const client = new AWS.Proton({ region: "REGION" }); // async/await. try { - const data = await client.acceptEnvironmentAccountConnection(params); + const data = await client.listComponents(params); // process data. } catch (error) { // error handling. @@ -266,7 +266,7 @@ try { // Promises. client - .acceptEnvironmentAccountConnection(params) + .listComponents(params) .then((data) => { // process data. }) @@ -275,7 +275,7 @@ client }); // callbacks. -client.acceptEnvironmentAccountConnection(params, (err, data) => { +client.listComponents(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-qldb/README.md b/clients/client-qldb/README.md index dfd3bf4e2bb1..aff63c99a6c1 100644 --- a/clients/client-qldb/README.md +++ b/clients/client-qldb/README.md @@ -23,16 +23,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 `QLDBClient` and -the commands you need, for example `CancelJournalKinesisStreamCommand`: +the commands you need, for example `ListLedgersCommand`: ```js // ES5 example -const { QLDBClient, CancelJournalKinesisStreamCommand } = require("@aws-sdk/client-qldb"); +const { QLDBClient, ListLedgersCommand } = require("@aws-sdk/client-qldb"); ``` ```ts // ES6+ example -import { QLDBClient, CancelJournalKinesisStreamCommand } from "@aws-sdk/client-qldb"; +import { QLDBClient, ListLedgersCommand } from "@aws-sdk/client-qldb"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new QLDBClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelJournalKinesisStreamCommand(params); +const command = new ListLedgersCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.QLDB({ region: "REGION" }); // async/await. try { - const data = await client.cancelJournalKinesisStream(params); + const data = await client.listLedgers(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .cancelJournalKinesisStream(params) + .listLedgers(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.cancelJournalKinesisStream(params, (err, data) => { +client.listLedgers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-quicksight/README.md b/clients/client-quicksight/README.md index 166cb5b3eefe..e9e43b81a83c 100644 --- a/clients/client-quicksight/README.md +++ b/clients/client-quicksight/README.md @@ -28,16 +28,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 `QuickSightClient` and -the commands you need, for example `CancelIngestionCommand`: +the commands you need, for example `ListFoldersCommand`: ```js // ES5 example -const { QuickSightClient, CancelIngestionCommand } = require("@aws-sdk/client-quicksight"); +const { QuickSightClient, ListFoldersCommand } = require("@aws-sdk/client-quicksight"); ``` ```ts // ES6+ example -import { QuickSightClient, CancelIngestionCommand } from "@aws-sdk/client-quicksight"; +import { QuickSightClient, ListFoldersCommand } from "@aws-sdk/client-quicksight"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new QuickSightClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelIngestionCommand(params); +const command = new ListFoldersCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.QuickSight({ region: "REGION" }); // async/await. try { - const data = await client.cancelIngestion(params); + const data = await client.listFolders(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .cancelIngestion(params) + .listFolders(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.cancelIngestion(params, (err, data) => { +client.listFolders(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ram/README.md b/clients/client-ram/README.md index afb3ef4b2e9d..db58dd3f3a57 100644 --- a/clients/client-ram/README.md +++ b/clients/client-ram/README.md @@ -42,16 +42,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 `RAMClient` and -the commands you need, for example `AcceptResourceShareInvitationCommand`: +the commands you need, for example `ListPermissionsCommand`: ```js // ES5 example -const { RAMClient, AcceptResourceShareInvitationCommand } = require("@aws-sdk/client-ram"); +const { RAMClient, ListPermissionsCommand } = require("@aws-sdk/client-ram"); ``` ```ts // ES6+ example -import { RAMClient, AcceptResourceShareInvitationCommand } from "@aws-sdk/client-ram"; +import { RAMClient, ListPermissionsCommand } from "@aws-sdk/client-ram"; ``` ### Usage @@ -70,7 +70,7 @@ const client = new RAMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptResourceShareInvitationCommand(params); +const command = new ListPermissionsCommand(params); ``` #### Async/await @@ -149,7 +149,7 @@ const client = new AWS.RAM({ region: "REGION" }); // async/await. try { - const data = await client.acceptResourceShareInvitation(params); + const data = await client.listPermissions(params); // process data. } catch (error) { // error handling. @@ -157,7 +157,7 @@ try { // Promises. client - .acceptResourceShareInvitation(params) + .listPermissions(params) .then((data) => { // process data. }) @@ -166,7 +166,7 @@ client }); // callbacks. -client.acceptResourceShareInvitation(params, (err, data) => { +client.listPermissions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-rbin/README.md b/clients/client-rbin/README.md index 623d5f0e28b0..1e0198d9aea2 100644 --- a/clients/client-rbin/README.md +++ b/clients/client-rbin/README.md @@ -34,16 +34,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 `RbinClient` and -the commands you need, for example `CreateRuleCommand`: +the commands you need, for example `ListRulesCommand`: ```js // ES5 example -const { RbinClient, CreateRuleCommand } = require("@aws-sdk/client-rbin"); +const { RbinClient, ListRulesCommand } = require("@aws-sdk/client-rbin"); ``` ```ts // ES6+ example -import { RbinClient, CreateRuleCommand } from "@aws-sdk/client-rbin"; +import { RbinClient, ListRulesCommand } from "@aws-sdk/client-rbin"; ``` ### Usage @@ -62,7 +62,7 @@ const client = new RbinClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateRuleCommand(params); +const command = new ListRulesCommand(params); ``` #### Async/await @@ -141,7 +141,7 @@ const client = new AWS.Rbin({ region: "REGION" }); // async/await. try { - const data = await client.createRule(params); + const data = await client.listRules(params); // process data. } catch (error) { // error handling. @@ -149,7 +149,7 @@ try { // Promises. client - .createRule(params) + .listRules(params) .then((data) => { // process data. }) @@ -158,7 +158,7 @@ client }); // callbacks. -client.createRule(params, (err, data) => { +client.listRules(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-rds-data/README.md b/clients/client-rds-data/README.md index b5a38f937d69..73bcb27925e0 100644 --- a/clients/client-rds-data/README.md +++ b/clients/client-rds-data/README.md @@ -32,16 +32,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 `RDSDataClient` and -the commands you need, for example `BatchExecuteStatementCommand`: +the commands you need, for example `BeginTransactionCommand`: ```js // ES5 example -const { RDSDataClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-rds-data"); +const { RDSDataClient, BeginTransactionCommand } = require("@aws-sdk/client-rds-data"); ``` ```ts // ES6+ example -import { RDSDataClient, BatchExecuteStatementCommand } from "@aws-sdk/client-rds-data"; +import { RDSDataClient, BeginTransactionCommand } from "@aws-sdk/client-rds-data"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new RDSDataClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchExecuteStatementCommand(params); +const command = new BeginTransactionCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.RDSData({ region: "REGION" }); // async/await. try { - const data = await client.batchExecuteStatement(params); + const data = await client.beginTransaction(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .batchExecuteStatement(params) + .beginTransaction(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.batchExecuteStatement(params, (err, data) => { +client.beginTransaction(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-rds/README.md b/clients/client-rds/README.md index 8c6d8354fc3b..221139053ff4 100644 --- a/clients/client-rds/README.md +++ b/clients/client-rds/README.md @@ -76,16 +76,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 `RDSClient` and -the commands you need, for example `AddRoleToDBClusterCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { RDSClient, AddRoleToDBClusterCommand } = require("@aws-sdk/client-rds"); +const { RDSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-rds"); ``` ```ts // ES6+ example -import { RDSClient, AddRoleToDBClusterCommand } from "@aws-sdk/client-rds"; +import { RDSClient, ListTagsForResourceCommand } from "@aws-sdk/client-rds"; ``` ### Usage @@ -104,7 +104,7 @@ const client = new RDSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddRoleToDBClusterCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -183,7 +183,7 @@ const client = new AWS.RDS({ region: "REGION" }); // async/await. try { - const data = await client.addRoleToDBCluster(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -191,7 +191,7 @@ try { // Promises. client - .addRoleToDBCluster(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -200,7 +200,7 @@ client }); // callbacks. -client.addRoleToDBCluster(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-redshift-data/README.md b/clients/client-redshift-data/README.md index b5d118498caa..b71f4f25298c 100644 --- a/clients/client-redshift-data/README.md +++ b/clients/client-redshift-data/README.md @@ -27,16 +27,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 `RedshiftDataClient` and -the commands you need, for example `BatchExecuteStatementCommand`: +the commands you need, for example `ListSchemasCommand`: ```js // ES5 example -const { RedshiftDataClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-redshift-data"); +const { RedshiftDataClient, ListSchemasCommand } = require("@aws-sdk/client-redshift-data"); ``` ```ts // ES6+ example -import { RedshiftDataClient, BatchExecuteStatementCommand } from "@aws-sdk/client-redshift-data"; +import { RedshiftDataClient, ListSchemasCommand } from "@aws-sdk/client-redshift-data"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new RedshiftDataClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchExecuteStatementCommand(params); +const command = new ListSchemasCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.RedshiftData({ region: "REGION" }); // async/await. try { - const data = await client.batchExecuteStatement(params); + const data = await client.listSchemas(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .batchExecuteStatement(params) + .listSchemas(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.batchExecuteStatement(params, (err, data) => { +client.listSchemas(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-redshift-serverless/README.md b/clients/client-redshift-serverless/README.md index 344059095a88..7c50167fa49d 100644 --- a/clients/client-redshift-serverless/README.md +++ b/clients/client-redshift-serverless/README.md @@ -34,19 +34,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 `RedshiftServerlessClient` and -the commands you need, for example `ConvertRecoveryPointToSnapshotCommand`: +the commands you need, for example `ListNamespacesCommand`: ```js // ES5 example -const { - RedshiftServerlessClient, - ConvertRecoveryPointToSnapshotCommand, -} = require("@aws-sdk/client-redshift-serverless"); +const { RedshiftServerlessClient, ListNamespacesCommand } = require("@aws-sdk/client-redshift-serverless"); ``` ```ts // ES6+ example -import { RedshiftServerlessClient, ConvertRecoveryPointToSnapshotCommand } from "@aws-sdk/client-redshift-serverless"; +import { RedshiftServerlessClient, ListNamespacesCommand } from "@aws-sdk/client-redshift-serverless"; ``` ### Usage @@ -65,7 +62,7 @@ const client = new RedshiftServerlessClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ConvertRecoveryPointToSnapshotCommand(params); +const command = new ListNamespacesCommand(params); ``` #### Async/await @@ -144,7 +141,7 @@ const client = new AWS.RedshiftServerless({ region: "REGION" }); // async/await. try { - const data = await client.convertRecoveryPointToSnapshot(params); + const data = await client.listNamespaces(params); // process data. } catch (error) { // error handling. @@ -152,7 +149,7 @@ try { // Promises. client - .convertRecoveryPointToSnapshot(params) + .listNamespaces(params) .then((data) => { // process data. }) @@ -161,7 +158,7 @@ client }); // callbacks. -client.convertRecoveryPointToSnapshot(params, (err, data) => { +client.listNamespaces(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-redshift/README.md b/clients/client-redshift/README.md index 052e2a4fea59..c11177aae61e 100644 --- a/clients/client-redshift/README.md +++ b/clients/client-redshift/README.md @@ -44,16 +44,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 `RedshiftClient` and -the commands you need, for example `AcceptReservedNodeExchangeCommand`: +the commands you need, for example `DescribeClustersCommand`: ```js // ES5 example -const { RedshiftClient, AcceptReservedNodeExchangeCommand } = require("@aws-sdk/client-redshift"); +const { RedshiftClient, DescribeClustersCommand } = require("@aws-sdk/client-redshift"); ``` ```ts // ES6+ example -import { RedshiftClient, AcceptReservedNodeExchangeCommand } from "@aws-sdk/client-redshift"; +import { RedshiftClient, DescribeClustersCommand } from "@aws-sdk/client-redshift"; ``` ### Usage @@ -72,7 +72,7 @@ const client = new RedshiftClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptReservedNodeExchangeCommand(params); +const command = new DescribeClustersCommand(params); ``` #### Async/await @@ -151,7 +151,7 @@ const client = new AWS.Redshift({ region: "REGION" }); // async/await. try { - const data = await client.acceptReservedNodeExchange(params); + const data = await client.describeClusters(params); // process data. } catch (error) { // error handling. @@ -159,7 +159,7 @@ try { // Promises. client - .acceptReservedNodeExchange(params) + .describeClusters(params) .then((data) => { // process data. }) @@ -168,7 +168,7 @@ client }); // callbacks. -client.acceptReservedNodeExchange(params, (err, data) => { +client.describeClusters(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-rekognition/README.md b/clients/client-rekognition/README.md index 4bf015ccf21e..b446dbf923e5 100644 --- a/clients/client-rekognition/README.md +++ b/clients/client-rekognition/README.md @@ -381,16 +381,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 `RekognitionClient` and -the commands you need, for example `AssociateFacesCommand`: +the commands you need, for example `ListCollectionsCommand`: ```js // ES5 example -const { RekognitionClient, AssociateFacesCommand } = require("@aws-sdk/client-rekognition"); +const { RekognitionClient, ListCollectionsCommand } = require("@aws-sdk/client-rekognition"); ``` ```ts // ES6+ example -import { RekognitionClient, AssociateFacesCommand } from "@aws-sdk/client-rekognition"; +import { RekognitionClient, ListCollectionsCommand } from "@aws-sdk/client-rekognition"; ``` ### Usage @@ -409,7 +409,7 @@ const client = new RekognitionClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateFacesCommand(params); +const command = new ListCollectionsCommand(params); ``` #### Async/await @@ -488,7 +488,7 @@ const client = new AWS.Rekognition({ region: "REGION" }); // async/await. try { - const data = await client.associateFaces(params); + const data = await client.listCollections(params); // process data. } catch (error) { // error handling. @@ -496,7 +496,7 @@ try { // Promises. client - .associateFaces(params) + .listCollections(params) .then((data) => { // process data. }) @@ -505,7 +505,7 @@ client }); // callbacks. -client.associateFaces(params, (err, data) => { +client.listCollections(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-resiliencehub/README.md b/clients/client-resiliencehub/README.md index e2fe1ba8e81e..1baab3d7eeac 100644 --- a/clients/client-resiliencehub/README.md +++ b/clients/client-resiliencehub/README.md @@ -27,16 +27,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 `ResiliencehubClient` and -the commands you need, for example `AddDraftAppVersionResourceMappingsCommand`: +the commands you need, for example `ListAppsCommand`: ```js // ES5 example -const { ResiliencehubClient, AddDraftAppVersionResourceMappingsCommand } = require("@aws-sdk/client-resiliencehub"); +const { ResiliencehubClient, ListAppsCommand } = require("@aws-sdk/client-resiliencehub"); ``` ```ts // ES6+ example -import { ResiliencehubClient, AddDraftAppVersionResourceMappingsCommand } from "@aws-sdk/client-resiliencehub"; +import { ResiliencehubClient, ListAppsCommand } from "@aws-sdk/client-resiliencehub"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new ResiliencehubClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddDraftAppVersionResourceMappingsCommand(params); +const command = new ListAppsCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Resiliencehub({ region: "REGION" }); // async/await. try { - const data = await client.addDraftAppVersionResourceMappings(params); + const data = await client.listApps(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .addDraftAppVersionResourceMappings(params) + .listApps(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.addDraftAppVersionResourceMappings(params, (err, data) => { +client.listApps(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-resource-explorer-2/README.md b/clients/client-resource-explorer-2/README.md index a27231f1c9ac..ff88db67de65 100644 --- a/clients/client-resource-explorer-2/README.md +++ b/clients/client-resource-explorer-2/README.md @@ -43,16 +43,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 `ResourceExplorer2Client` and -the commands you need, for example `AssociateDefaultViewCommand`: +the commands you need, for example `ListIndexesCommand`: ```js // ES5 example -const { ResourceExplorer2Client, AssociateDefaultViewCommand } = require("@aws-sdk/client-resource-explorer-2"); +const { ResourceExplorer2Client, ListIndexesCommand } = require("@aws-sdk/client-resource-explorer-2"); ``` ```ts // ES6+ example -import { ResourceExplorer2Client, AssociateDefaultViewCommand } from "@aws-sdk/client-resource-explorer-2"; +import { ResourceExplorer2Client, ListIndexesCommand } from "@aws-sdk/client-resource-explorer-2"; ``` ### Usage @@ -71,7 +71,7 @@ const client = new ResourceExplorer2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateDefaultViewCommand(params); +const command = new ListIndexesCommand(params); ``` #### Async/await @@ -150,7 +150,7 @@ const client = new AWS.ResourceExplorer2({ region: "REGION" }); // async/await. try { - const data = await client.associateDefaultView(params); + const data = await client.listIndexes(params); // process data. } catch (error) { // error handling. @@ -158,7 +158,7 @@ try { // Promises. client - .associateDefaultView(params) + .listIndexes(params) .then((data) => { // process data. }) @@ -167,7 +167,7 @@ client }); // callbacks. -client.associateDefaultView(params, (err, data) => { +client.listIndexes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-resource-groups-tagging-api/README.md b/clients/client-resource-groups-tagging-api/README.md index f8f712f5d93f..e27b4da72c1e 100644 --- a/clients/client-resource-groups-tagging-api/README.md +++ b/clients/client-resource-groups-tagging-api/README.md @@ -23,22 +23,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 `ResourceGroupsTaggingAPIClient` and -the commands you need, for example `DescribeReportCreationCommand`: +the commands you need, for example `GetTagKeysCommand`: ```js // ES5 example -const { - ResourceGroupsTaggingAPIClient, - DescribeReportCreationCommand, -} = require("@aws-sdk/client-resource-groups-tagging-api"); +const { ResourceGroupsTaggingAPIClient, GetTagKeysCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); ``` ```ts // ES6+ example -import { - ResourceGroupsTaggingAPIClient, - DescribeReportCreationCommand, -} from "@aws-sdk/client-resource-groups-tagging-api"; +import { ResourceGroupsTaggingAPIClient, GetTagKeysCommand } from "@aws-sdk/client-resource-groups-tagging-api"; ``` ### Usage @@ -57,7 +51,7 @@ const client = new ResourceGroupsTaggingAPIClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DescribeReportCreationCommand(params); +const command = new GetTagKeysCommand(params); ``` #### Async/await @@ -136,7 +130,7 @@ const client = new AWS.ResourceGroupsTaggingAPI({ region: "REGION" }); // async/await. try { - const data = await client.describeReportCreation(params); + const data = await client.getTagKeys(params); // process data. } catch (error) { // error handling. @@ -144,7 +138,7 @@ try { // Promises. client - .describeReportCreation(params) + .getTagKeys(params) .then((data) => { // process data. }) @@ -153,7 +147,7 @@ client }); // callbacks. -client.describeReportCreation(params, (err, data) => { +client.getTagKeys(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-resource-groups/README.md b/clients/client-resource-groups/README.md index bdc93f8ea5a2..195663dd282e 100644 --- a/clients/client-resource-groups/README.md +++ b/clients/client-resource-groups/README.md @@ -56,16 +56,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 `ResourceGroupsClient` and -the commands you need, for example `CreateGroupCommand`: +the commands you need, for example `ListGroupsCommand`: ```js // ES5 example -const { ResourceGroupsClient, CreateGroupCommand } = require("@aws-sdk/client-resource-groups"); +const { ResourceGroupsClient, ListGroupsCommand } = require("@aws-sdk/client-resource-groups"); ``` ```ts // ES6+ example -import { ResourceGroupsClient, CreateGroupCommand } from "@aws-sdk/client-resource-groups"; +import { ResourceGroupsClient, ListGroupsCommand } from "@aws-sdk/client-resource-groups"; ``` ### Usage @@ -84,7 +84,7 @@ const client = new ResourceGroupsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateGroupCommand(params); +const command = new ListGroupsCommand(params); ``` #### Async/await @@ -163,7 +163,7 @@ const client = new AWS.ResourceGroups({ region: "REGION" }); // async/await. try { - const data = await client.createGroup(params); + const data = await client.listGroups(params); // process data. } catch (error) { // error handling. @@ -171,7 +171,7 @@ try { // Promises. client - .createGroup(params) + .listGroups(params) .then((data) => { // process data. }) @@ -180,7 +180,7 @@ client }); // callbacks. -client.createGroup(params, (err, data) => { +client.listGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-robomaker/README.md b/clients/client-robomaker/README.md index 3517c5a96ad8..a54cfa6b46c8 100644 --- a/clients/client-robomaker/README.md +++ b/clients/client-robomaker/README.md @@ -23,16 +23,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 `RoboMakerClient` and -the commands you need, for example `BatchDeleteWorldsCommand`: +the commands you need, for example `ListFleetsCommand`: ```js // ES5 example -const { RoboMakerClient, BatchDeleteWorldsCommand } = require("@aws-sdk/client-robomaker"); +const { RoboMakerClient, ListFleetsCommand } = require("@aws-sdk/client-robomaker"); ``` ```ts // ES6+ example -import { RoboMakerClient, BatchDeleteWorldsCommand } from "@aws-sdk/client-robomaker"; +import { RoboMakerClient, ListFleetsCommand } from "@aws-sdk/client-robomaker"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new RoboMakerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchDeleteWorldsCommand(params); +const command = new ListFleetsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.RoboMaker({ region: "REGION" }); // async/await. try { - const data = await client.batchDeleteWorlds(params); + const data = await client.listFleets(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .batchDeleteWorlds(params) + .listFleets(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.batchDeleteWorlds(params, (err, data) => { +client.listFleets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-rolesanywhere/README.md b/clients/client-rolesanywhere/README.md index cc8d3dbf4eb4..76f4ba255318 100644 --- a/clients/client-rolesanywhere/README.md +++ b/clients/client-rolesanywhere/README.md @@ -37,16 +37,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 `RolesAnywhereClient` and -the commands you need, for example `CreateProfileCommand`: +the commands you need, for example `ListCrlsCommand`: ```js // ES5 example -const { RolesAnywhereClient, CreateProfileCommand } = require("@aws-sdk/client-rolesanywhere"); +const { RolesAnywhereClient, ListCrlsCommand } = require("@aws-sdk/client-rolesanywhere"); ``` ```ts // ES6+ example -import { RolesAnywhereClient, CreateProfileCommand } from "@aws-sdk/client-rolesanywhere"; +import { RolesAnywhereClient, ListCrlsCommand } from "@aws-sdk/client-rolesanywhere"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new RolesAnywhereClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateProfileCommand(params); +const command = new ListCrlsCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.RolesAnywhere({ region: "REGION" }); // async/await. try { - const data = await client.createProfile(params); + const data = await client.listCrls(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .createProfile(params) + .listCrls(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.createProfile(params, (err, data) => { +client.listCrls(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-route-53-domains/README.md b/clients/client-route-53-domains/README.md index 938979d7ab4c..5fb3aff0766e 100644 --- a/clients/client-route-53-domains/README.md +++ b/clients/client-route-53-domains/README.md @@ -24,22 +24,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 `Route53DomainsClient` and -the commands you need, for example `AcceptDomainTransferFromAnotherAwsAccountCommand`: +the commands you need, for example `ListDomainsCommand`: ```js // ES5 example -const { - Route53DomainsClient, - AcceptDomainTransferFromAnotherAwsAccountCommand, -} = require("@aws-sdk/client-route-53-domains"); +const { Route53DomainsClient, ListDomainsCommand } = require("@aws-sdk/client-route-53-domains"); ``` ```ts // ES6+ example -import { - Route53DomainsClient, - AcceptDomainTransferFromAnotherAwsAccountCommand, -} from "@aws-sdk/client-route-53-domains"; +import { Route53DomainsClient, ListDomainsCommand } from "@aws-sdk/client-route-53-domains"; ``` ### Usage @@ -58,7 +52,7 @@ const client = new Route53DomainsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptDomainTransferFromAnotherAwsAccountCommand(params); +const command = new ListDomainsCommand(params); ``` #### Async/await @@ -137,7 +131,7 @@ const client = new AWS.Route53Domains({ region: "REGION" }); // async/await. try { - const data = await client.acceptDomainTransferFromAnotherAwsAccount(params); + const data = await client.listDomains(params); // process data. } catch (error) { // error handling. @@ -145,7 +139,7 @@ try { // Promises. client - .acceptDomainTransferFromAnotherAwsAccount(params) + .listDomains(params) .then((data) => { // process data. }) @@ -154,7 +148,7 @@ client }); // callbacks. -client.acceptDomainTransferFromAnotherAwsAccount(params, (err, data) => { +client.listDomains(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-route-53/README.md b/clients/client-route-53/README.md index a39146ca93e2..18f159a7e34e 100644 --- a/clients/client-route-53/README.md +++ b/clients/client-route-53/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 `Route53Client` and -the commands you need, for example `ActivateKeySigningKeyCommand`: +the commands you need, for example `ListGeoLocationsCommand`: ```js // ES5 example -const { Route53Client, ActivateKeySigningKeyCommand } = require("@aws-sdk/client-route-53"); +const { Route53Client, ListGeoLocationsCommand } = require("@aws-sdk/client-route-53"); ``` ```ts // ES6+ example -import { Route53Client, ActivateKeySigningKeyCommand } from "@aws-sdk/client-route-53"; +import { Route53Client, ListGeoLocationsCommand } from "@aws-sdk/client-route-53"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new Route53Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateKeySigningKeyCommand(params); +const command = new ListGeoLocationsCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.Route53({ region: "REGION" }); // async/await. try { - const data = await client.activateKeySigningKey(params); + const data = await client.listGeoLocations(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .activateKeySigningKey(params) + .listGeoLocations(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.activateKeySigningKey(params, (err, data) => { +client.listGeoLocations(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-route53-recovery-cluster/README.md b/clients/client-route53-recovery-cluster/README.md index 7f6d72474ea4..8e96316f0f5a 100644 --- a/clients/client-route53-recovery-cluster/README.md +++ b/clients/client-route53-recovery-cluster/README.md @@ -62,19 +62,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `Route53RecoveryClusterClient` and -the commands you need, for example `GetRoutingControlStateCommand`: +the commands you need, for example `ListRoutingControlsCommand`: ```js // ES5 example const { Route53RecoveryClusterClient, - GetRoutingControlStateCommand, + ListRoutingControlsCommand, } = require("@aws-sdk/client-route53-recovery-cluster"); ``` ```ts // ES6+ example -import { Route53RecoveryClusterClient, GetRoutingControlStateCommand } from "@aws-sdk/client-route53-recovery-cluster"; +import { Route53RecoveryClusterClient, ListRoutingControlsCommand } from "@aws-sdk/client-route53-recovery-cluster"; ``` ### Usage @@ -93,7 +93,7 @@ const client = new Route53RecoveryClusterClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetRoutingControlStateCommand(params); +const command = new ListRoutingControlsCommand(params); ``` #### Async/await @@ -172,7 +172,7 @@ const client = new AWS.Route53RecoveryCluster({ region: "REGION" }); // async/await. try { - const data = await client.getRoutingControlState(params); + const data = await client.listRoutingControls(params); // process data. } catch (error) { // error handling. @@ -180,7 +180,7 @@ try { // Promises. client - .getRoutingControlState(params) + .listRoutingControls(params) .then((data) => { // process data. }) @@ -189,7 +189,7 @@ client }); // callbacks. -client.getRoutingControlState(params, (err, data) => { +client.listRoutingControls(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-route53-recovery-control-config/README.md b/clients/client-route53-recovery-control-config/README.md index 04ae123a8909..af968190227a 100644 --- a/clients/client-route53-recovery-control-config/README.md +++ b/clients/client-route53-recovery-control-config/README.md @@ -23,13 +23,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `Route53RecoveryControlConfigClient` and -the commands you need, for example `CreateClusterCommand`: +the commands you need, for example `ListClustersCommand`: ```js // ES5 example const { Route53RecoveryControlConfigClient, - CreateClusterCommand, + ListClustersCommand, } = require("@aws-sdk/client-route53-recovery-control-config"); ``` @@ -37,7 +37,7 @@ const { // ES6+ example import { Route53RecoveryControlConfigClient, - CreateClusterCommand, + ListClustersCommand, } from "@aws-sdk/client-route53-recovery-control-config"; ``` @@ -57,7 +57,7 @@ const client = new Route53RecoveryControlConfigClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateClusterCommand(params); +const command = new ListClustersCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.Route53RecoveryControlConfig({ region: "REGION" }); // async/await. try { - const data = await client.createCluster(params); + const data = await client.listClusters(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .createCluster(params) + .listClusters(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.createCluster(params, (err, data) => { +client.listClusters(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-route53-recovery-readiness/README.md b/clients/client-route53-recovery-readiness/README.md index 0b9a6166d15c..34cf3d450a87 100644 --- a/clients/client-route53-recovery-readiness/README.md +++ b/clients/client-route53-recovery-readiness/README.md @@ -23,16 +23,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 `Route53RecoveryReadinessClient` and -the commands you need, for example `CreateCellCommand`: +the commands you need, for example `ListCellsCommand`: ```js // ES5 example -const { Route53RecoveryReadinessClient, CreateCellCommand } = require("@aws-sdk/client-route53-recovery-readiness"); +const { Route53RecoveryReadinessClient, ListCellsCommand } = require("@aws-sdk/client-route53-recovery-readiness"); ``` ```ts // ES6+ example -import { Route53RecoveryReadinessClient, CreateCellCommand } from "@aws-sdk/client-route53-recovery-readiness"; +import { Route53RecoveryReadinessClient, ListCellsCommand } from "@aws-sdk/client-route53-recovery-readiness"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new Route53RecoveryReadinessClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateCellCommand(params); +const command = new ListCellsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Route53RecoveryReadiness({ region: "REGION" }); // async/await. try { - const data = await client.createCell(params); + const data = await client.listCells(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createCell(params) + .listCells(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createCell(params, (err, data) => { +client.listCells(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-route53resolver/README.md b/clients/client-route53resolver/README.md index 1d646b1b4134..5f5ad4afa638 100644 --- a/clients/client-route53resolver/README.md +++ b/clients/client-route53resolver/README.md @@ -49,16 +49,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 `Route53ResolverClient` and -the commands you need, for example `AssociateFirewallRuleGroupCommand`: +the commands you need, for example `ListResolverRulesCommand`: ```js // ES5 example -const { Route53ResolverClient, AssociateFirewallRuleGroupCommand } = require("@aws-sdk/client-route53resolver"); +const { Route53ResolverClient, ListResolverRulesCommand } = require("@aws-sdk/client-route53resolver"); ``` ```ts // ES6+ example -import { Route53ResolverClient, AssociateFirewallRuleGroupCommand } from "@aws-sdk/client-route53resolver"; +import { Route53ResolverClient, ListResolverRulesCommand } from "@aws-sdk/client-route53resolver"; ``` ### Usage @@ -77,7 +77,7 @@ const client = new Route53ResolverClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateFirewallRuleGroupCommand(params); +const command = new ListResolverRulesCommand(params); ``` #### Async/await @@ -156,7 +156,7 @@ const client = new AWS.Route53Resolver({ region: "REGION" }); // async/await. try { - const data = await client.associateFirewallRuleGroup(params); + const data = await client.listResolverRules(params); // process data. } catch (error) { // error handling. @@ -164,7 +164,7 @@ try { // Promises. client - .associateFirewallRuleGroup(params) + .listResolverRules(params) .then((data) => { // process data. }) @@ -173,7 +173,7 @@ client }); // callbacks. -client.associateFirewallRuleGroup(params, (err, data) => { +client.listResolverRules(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-rum/README.md b/clients/client-rum/README.md index 4ae7aab6a200..1a1b5c06d35a 100644 --- a/clients/client-rum/README.md +++ b/clients/client-rum/README.md @@ -30,16 +30,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 `RUMClient` and -the commands you need, for example `BatchCreateRumMetricDefinitionsCommand`: +the commands you need, for example `ListAppMonitorsCommand`: ```js // ES5 example -const { RUMClient, BatchCreateRumMetricDefinitionsCommand } = require("@aws-sdk/client-rum"); +const { RUMClient, ListAppMonitorsCommand } = require("@aws-sdk/client-rum"); ``` ```ts // ES6+ example -import { RUMClient, BatchCreateRumMetricDefinitionsCommand } from "@aws-sdk/client-rum"; +import { RUMClient, ListAppMonitorsCommand } from "@aws-sdk/client-rum"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new RUMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchCreateRumMetricDefinitionsCommand(params); +const command = new ListAppMonitorsCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.RUM({ region: "REGION" }); // async/await. try { - const data = await client.batchCreateRumMetricDefinitions(params); + const data = await client.listAppMonitors(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .batchCreateRumMetricDefinitions(params) + .listAppMonitors(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.batchCreateRumMetricDefinitions(params, (err, data) => { +client.listAppMonitors(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-s3-control/README.md b/clients/client-s3-control/README.md index 3b8fae6863bc..437bde983fdc 100644 --- a/clients/client-s3-control/README.md +++ b/clients/client-s3-control/README.md @@ -23,16 +23,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 `S3ControlClient` and -the commands you need, for example `CreateAccessPointCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { S3ControlClient, CreateAccessPointCommand } = require("@aws-sdk/client-s3-control"); +const { S3ControlClient, ListJobsCommand } = require("@aws-sdk/client-s3-control"); ``` ```ts // ES6+ example -import { S3ControlClient, CreateAccessPointCommand } from "@aws-sdk/client-s3-control"; +import { S3ControlClient, ListJobsCommand } from "@aws-sdk/client-s3-control"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new S3ControlClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAccessPointCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.S3Control({ region: "REGION" }); // async/await. try { - const data = await client.createAccessPoint(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createAccessPoint(params) + .listJobs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createAccessPoint(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-s3/README.md b/clients/client-s3/README.md index 614de9e0b609..c92197fdd2f8 100644 --- a/clients/client-s3/README.md +++ b/clients/client-s3/README.md @@ -23,16 +23,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 `S3Client` and -the commands you need, for example `AbortMultipartUploadCommand`: +the commands you need, for example `ListBucketsCommand`: ```js // ES5 example -const { S3Client, AbortMultipartUploadCommand } = require("@aws-sdk/client-s3"); +const { S3Client, ListBucketsCommand } = require("@aws-sdk/client-s3"); ``` ```ts // ES6+ example -import { S3Client, AbortMultipartUploadCommand } from "@aws-sdk/client-s3"; +import { S3Client, ListBucketsCommand } from "@aws-sdk/client-s3"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new S3Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AbortMultipartUploadCommand(params); +const command = new ListBucketsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.S3({ region: "REGION" }); // async/await. try { - const data = await client.abortMultipartUpload(params); + const data = await client.listBuckets(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .abortMultipartUpload(params) + .listBuckets(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.abortMultipartUpload(params, (err, data) => { +client.listBuckets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-s3/src/commands/CreateBucketCommand.ts b/clients/client-s3/src/commands/CreateBucketCommand.ts index 8486c42f689a..c3b8e23390cf 100644 --- a/clients/client-s3/src/commands/CreateBucketCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketCommand.ts @@ -196,39 +196,39 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat * @throws {@link S3ServiceException} *

Base exception class for all service exceptions from S3 service.

* - * @example To create a bucket in a specific region + * @example To create a bucket * ```javascript - * // The following example creates a bucket. The request specifies an AWS region where to create the bucket. + * // The following example creates a bucket. * const input = { - * "Bucket": "examplebucket", - * "CreateBucketConfiguration": { - * "LocationConstraint": "eu-west-1" - * } + * "Bucket": "examplebucket" * }; * const command = new CreateBucketCommand(input); * const response = await client.send(command); * /* response == * { - * "Location": "http://examplebucket..s3.amazonaws.com/" + * "Location": "/examplebucket" * } * *\/ - * // example id: to-create-a-bucket-in-a-specific-region-1483399072992 + * // example id: to-create-a-bucket--1472851826060 * ``` * - * @example To create a bucket + * @example To create a bucket in a specific region * ```javascript - * // The following example creates a bucket. + * // The following example creates a bucket. The request specifies an AWS region where to create the bucket. * const input = { - * "Bucket": "examplebucket" + * "Bucket": "examplebucket", + * "CreateBucketConfiguration": { + * "LocationConstraint": "eu-west-1" + * } * }; * const command = new CreateBucketCommand(input); * const response = await client.send(command); * /* response == * { - * "Location": "/examplebucket" + * "Location": "http://examplebucket..s3.amazonaws.com/" * } * *\/ - * // example id: to-create-a-bucket--1472851826060 + * // example id: to-create-a-bucket-in-a-specific-region-1483399072992 * ``` * */ diff --git a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts index 64be68b9ebe7..e6ba6d67715a 100644 --- a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts @@ -86,39 +86,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut * @throws {@link S3ServiceException} *

Base exception class for all service exceptions from S3 service.

* - * @example To remove tag set from an object + * @example To remove tag set from an object version * ```javascript - * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version. + * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "HappyFace.jpg", + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * }; * const command = new DeleteObjectTaggingCommand(input); * const response = await client.send(command); * /* response == * { - * "VersionId": "null" + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * } * *\/ - * // example id: to-remove-tag-set-from-an-object-1483145342862 + * // example id: to-remove-tag-set-from-an-object-version-1483145285913 * ``` * - * @example To remove tag set from an object version + * @example To remove tag set from an object * ```javascript - * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version. + * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "Key": "HappyFace.jpg" * }; * const command = new DeleteObjectTaggingCommand(input); * const response = await client.send(command); * /* response == * { - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "VersionId": "null" * } * *\/ - * // example id: to-remove-tag-set-from-an-object-version-1483145285913 + * // example id: to-remove-tag-set-from-an-object-1483145342862 * ``` * */ diff --git a/clients/client-s3/src/commands/GetObjectCommand.ts b/clients/client-s3/src/commands/GetObjectCommand.ts index ac58f5bdc7f6..6a31e8cfbb1c 100644 --- a/clients/client-s3/src/commands/GetObjectCommand.ts +++ b/clients/client-s3/src/commands/GetObjectCommand.ts @@ -311,53 +311,53 @@ export interface GetObjectCommandOutput extends Omit, _ * @throws {@link S3ServiceException} *

Base exception class for all service exceptions from S3 service.

* - * @example To retrieve an object + * @example To retrieve a byte range of an object * ```javascript - * // The following example retrieves an object for an S3 bucket. + * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "SampleFile.txt", + * "Range": "bytes=0-9" * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * /* response == * { * "AcceptRanges": "bytes", - * "ContentLength": "3191", - * "ContentType": "image/jpeg", - * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT", + * "ContentLength": "10", + * "ContentRange": "bytes 0-9/43", + * "ContentType": "text/plain", + * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"", + * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT", * "Metadata": {}, - * "TagCount": 2, * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-an-object-1481827837012 + * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603 * ``` * - * @example To retrieve a byte range of an object + * @example To retrieve an object * ```javascript - * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range. + * // The following example retrieves an object for an S3 bucket. * const input = { * "Bucket": "examplebucket", - * "Key": "SampleFile.txt", - * "Range": "bytes=0-9" + * "Key": "HappyFace.jpg" * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * /* response == * { * "AcceptRanges": "bytes", - * "ContentLength": "10", - * "ContentRange": "bytes 0-9/43", - * "ContentType": "text/plain", - * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"", - * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT", + * "ContentLength": "3191", + * "ContentType": "image/jpeg", + * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT", * "Metadata": {}, + * "TagCount": 2, * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603 + * // example id: to-retrieve-an-object-1481827837012 * ``` * */ diff --git a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts index 095eb43e05e9..c2aeddfa1c44 100644 --- a/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts +++ b/clients/client-s3/src/commands/ListMultipartUploadsCommand.ts @@ -149,104 +149,104 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO * @throws {@link S3ServiceException} *

Base exception class for all service exceptions from S3 service.

* - * @example List next set of multipart uploads when previous result is truncated + * @example To list in-progress multipart uploads on a bucket * ```javascript - * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads. + * // The following example lists in-progress multipart uploads on a specific bucket. * const input = { - * "Bucket": "examplebucket", - * "KeyMarker": "nextkeyfrompreviousresponse", - * "MaxUploads": "2", - * "UploadIdMarker": "valuefrompreviousresponse" + * "Bucket": "examplebucket" * }; * const command = new ListMultipartUploadsCommand(input); * const response = await client.send(command); * /* response == * { - * "Bucket": "acl1", - * "IsTruncated": true, - * "KeyMarker": "", - * "MaxUploads": "2", - * "NextKeyMarker": "someobjectkey", - * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--", - * "UploadIdMarker": "", * "Uploads": [ * { * "Initiated": "2014-05-01T05:40:58.000Z", * "Initiator": { - * "DisplayName": "ownder-display-name", + * "DisplayName": "display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "Key": "JavaFile", * "Owner": { - * "DisplayName": "mohanataws", - * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" + * "DisplayName": "display-name", + * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "StorageClass": "STANDARD", - * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--" + * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--" * }, * { * "Initiated": "2014-05-01T05:41:27.000Z", * "Initiator": { - * "DisplayName": "ownder-display-name", + * "DisplayName": "display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "Key": "JavaFile", * "Owner": { - * "DisplayName": "ownder-display-name", + * "DisplayName": "display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "StorageClass": "STANDARD", - * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--" + * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--" * } * ] * } * *\/ - * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748 + * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260 * ``` * - * @example To list in-progress multipart uploads on a bucket + * @example List next set of multipart uploads when previous result is truncated * ```javascript - * // The following example lists in-progress multipart uploads on a specific bucket. + * // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads. * const input = { - * "Bucket": "examplebucket" + * "Bucket": "examplebucket", + * "KeyMarker": "nextkeyfrompreviousresponse", + * "MaxUploads": "2", + * "UploadIdMarker": "valuefrompreviousresponse" * }; * const command = new ListMultipartUploadsCommand(input); * const response = await client.send(command); * /* response == * { + * "Bucket": "acl1", + * "IsTruncated": true, + * "KeyMarker": "", + * "MaxUploads": "2", + * "NextKeyMarker": "someobjectkey", + * "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--", + * "UploadIdMarker": "", * "Uploads": [ * { * "Initiated": "2014-05-01T05:40:58.000Z", * "Initiator": { - * "DisplayName": "display-name", + * "DisplayName": "ownder-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "Key": "JavaFile", * "Owner": { - * "DisplayName": "display-name", - * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" + * "DisplayName": "mohanataws", + * "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "StorageClass": "STANDARD", - * "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--" + * "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--" * }, * { * "Initiated": "2014-05-01T05:41:27.000Z", * "Initiator": { - * "DisplayName": "display-name", + * "DisplayName": "ownder-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "Key": "JavaFile", * "Owner": { - * "DisplayName": "display-name", + * "DisplayName": "ownder-display-name", * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc" * }, * "StorageClass": "STANDARD", - * "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--" + * "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--" * } * ] * } * *\/ - * // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260 + * // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748 * ``` * */ diff --git a/clients/client-s3/src/commands/PutObjectCommand.ts b/clients/client-s3/src/commands/PutObjectCommand.ts index 9278611a903d..748e9fb59756 100644 --- a/clients/client-s3/src/commands/PutObjectCommand.ts +++ b/clients/client-s3/src/commands/PutObjectCommand.ts @@ -217,25 +217,6 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare * @throws {@link S3ServiceException} *

Base exception class for all service exceptions from S3 service.

* - * @example To upload an object - * ```javascript - * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object. - * const input = { - * "Body": "HappyFace.jpg", - * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" - * }; - * const command = new PutObjectCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" - * } - * *\/ - * // example id: to-upload-an-object-1481760101010 - * ``` - * * @example To upload an object and specify server-side encryption and object tags * ```javascript * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response. @@ -277,27 +258,26 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare * // example id: to-create-an-object-1483147613675 * ``` * - * @example To upload object and specify user-defined metadata + * @example To upload an object (specify optional headers) * ```javascript - * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption. * const input = { - * "Body": "filetoupload", + * "Body": "HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "exampleobject", - * "Metadata": { - * "metadata1": "value1", - * "metadata2": "value2" - * } + * "Key": "HappyFace.jpg", + * "ServerSideEncryption": "AES256", + * "StorageClass": "STANDARD_IA" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" + * "ServerSideEncryption": "AES256", + * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" * } * *\/ - * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757 + * // example id: to-upload-an-object-(specify-optional-headers) * ``` * * @example To upload an object and specify optional tags @@ -320,6 +300,29 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955 * ``` * + * @example To upload object and specify user-defined metadata + * ```javascript + * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response. + * const input = { + * "Body": "filetoupload", + * "Bucket": "examplebucket", + * "Key": "exampleobject", + * "Metadata": { + * "metadata1": "value1", + * "metadata2": "value2" + * } + * }; + * const command = new PutObjectCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" + * } + * *\/ + * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757 + * ``` + * * @example To upload an object and specify canned ACL. * ```javascript * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response. @@ -340,26 +343,23 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571 * ``` * - * @example To upload an object (specify optional headers) + * @example To upload an object * ```javascript - * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption. + * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object. * const input = { * "Body": "HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "ServerSideEncryption": "AES256", - * "StorageClass": "STANDARD_IA" + * "Key": "HappyFace.jpg" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "ServerSideEncryption": "AES256", - * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" + * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" * } * *\/ - * // example id: to-upload-an-object-(specify-optional-headers) + * // example id: to-upload-an-object-1481760101010 * ``` * */ diff --git a/clients/client-s3/src/commands/UploadPartCopyCommand.ts b/clients/client-s3/src/commands/UploadPartCopyCommand.ts index 1ad975a24838..1e78fd4fb12d 100644 --- a/clients/client-s3/src/commands/UploadPartCopyCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCopyCommand.ts @@ -273,15 +273,14 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * @throws {@link S3ServiceException} *

Base exception class for all service exceptions from S3 service.

* - * @example To upload a part by copying byte range from an existing object as data source + * @example To upload a part by copying data from an existing object as data source * ```javascript - * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source. + * // The following example uploads a part of a multipart upload by copying data from an existing object as data source. * const input = { * "Bucket": "examplebucket", * "CopySource": "/bucketname/sourceobjectkey", - * "CopySourceRange": "bytes=1-100000", * "Key": "examplelargeobject", - * "PartNumber": "2", + * "PartNumber": "1", * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" * }; * const command = new UploadPartCopyCommand(input); @@ -289,22 +288,23 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * /* response == * { * "CopyPartResult": { - * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", - * "LastModified": "2016-12-29T21:44:28.000Z" + * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", + * "LastModified": "2016-12-29T21:24:43.000Z" * } * } * *\/ - * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594 + * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348 * ``` * - * @example To upload a part by copying data from an existing object as data source + * @example To upload a part by copying byte range from an existing object as data source * ```javascript - * // The following example uploads a part of a multipart upload by copying data from an existing object as data source. + * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source. * const input = { * "Bucket": "examplebucket", * "CopySource": "/bucketname/sourceobjectkey", + * "CopySourceRange": "bytes=1-100000", * "Key": "examplelargeobject", - * "PartNumber": "1", + * "PartNumber": "2", * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" * }; * const command = new UploadPartCopyCommand(input); @@ -312,12 +312,12 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * /* response == * { * "CopyPartResult": { - * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", - * "LastModified": "2016-12-29T21:24:43.000Z" + * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", + * "LastModified": "2016-12-29T21:44:28.000Z" * } * } * *\/ - * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348 + * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594 * ``` * */ diff --git a/clients/client-s3outposts/README.md b/clients/client-s3outposts/README.md index e829d712fa61..a2758764ad4c 100644 --- a/clients/client-s3outposts/README.md +++ b/clients/client-s3outposts/README.md @@ -23,16 +23,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 `S3OutpostsClient` and -the commands you need, for example `CreateEndpointCommand`: +the commands you need, for example `ListEndpointsCommand`: ```js // ES5 example -const { S3OutpostsClient, CreateEndpointCommand } = require("@aws-sdk/client-s3outposts"); +const { S3OutpostsClient, ListEndpointsCommand } = require("@aws-sdk/client-s3outposts"); ``` ```ts // ES6+ example -import { S3OutpostsClient, CreateEndpointCommand } from "@aws-sdk/client-s3outposts"; +import { S3OutpostsClient, ListEndpointsCommand } from "@aws-sdk/client-s3outposts"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new S3OutpostsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateEndpointCommand(params); +const command = new ListEndpointsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.S3Outposts({ region: "REGION" }); // async/await. try { - const data = await client.createEndpoint(params); + const data = await client.listEndpoints(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createEndpoint(params) + .listEndpoints(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createEndpoint(params, (err, data) => { +client.listEndpoints(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sagemaker-a2i-runtime/README.md b/clients/client-sagemaker-a2i-runtime/README.md index 821b4d08d911..45e6ac64ccf6 100644 --- a/clients/client-sagemaker-a2i-runtime/README.md +++ b/clients/client-sagemaker-a2i-runtime/README.md @@ -48,16 +48,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 `SageMakerA2IRuntimeClient` and -the commands you need, for example `DeleteHumanLoopCommand`: +the commands you need, for example `ListHumanLoopsCommand`: ```js // ES5 example -const { SageMakerA2IRuntimeClient, DeleteHumanLoopCommand } = require("@aws-sdk/client-sagemaker-a2i-runtime"); +const { SageMakerA2IRuntimeClient, ListHumanLoopsCommand } = require("@aws-sdk/client-sagemaker-a2i-runtime"); ``` ```ts // ES6+ example -import { SageMakerA2IRuntimeClient, DeleteHumanLoopCommand } from "@aws-sdk/client-sagemaker-a2i-runtime"; +import { SageMakerA2IRuntimeClient, ListHumanLoopsCommand } from "@aws-sdk/client-sagemaker-a2i-runtime"; ``` ### Usage @@ -76,7 +76,7 @@ const client = new SageMakerA2IRuntimeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteHumanLoopCommand(params); +const command = new ListHumanLoopsCommand(params); ``` #### Async/await @@ -155,7 +155,7 @@ const client = new AWS.SageMakerA2IRuntime({ region: "REGION" }); // async/await. try { - const data = await client.deleteHumanLoop(params); + const data = await client.listHumanLoops(params); // process data. } catch (error) { // error handling. @@ -163,7 +163,7 @@ try { // Promises. client - .deleteHumanLoop(params) + .listHumanLoops(params) .then((data) => { // process data. }) @@ -172,7 +172,7 @@ client }); // callbacks. -client.deleteHumanLoop(params, (err, data) => { +client.listHumanLoops(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sagemaker-featurestore-runtime/README.md b/clients/client-sagemaker-featurestore-runtime/README.md index 8cae523f3b40..81bfea45151f 100644 --- a/clients/client-sagemaker-featurestore-runtime/README.md +++ b/clients/client-sagemaker-featurestore-runtime/README.md @@ -49,22 +49,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `SageMakerFeatureStoreRuntimeClient` and -the commands you need, for example `BatchGetRecordCommand`: +the commands you need, for example `GetRecordCommand`: ```js // ES5 example const { SageMakerFeatureStoreRuntimeClient, - BatchGetRecordCommand, + GetRecordCommand, } = require("@aws-sdk/client-sagemaker-featurestore-runtime"); ``` ```ts // ES6+ example -import { - SageMakerFeatureStoreRuntimeClient, - BatchGetRecordCommand, -} from "@aws-sdk/client-sagemaker-featurestore-runtime"; +import { SageMakerFeatureStoreRuntimeClient, GetRecordCommand } from "@aws-sdk/client-sagemaker-featurestore-runtime"; ``` ### Usage @@ -83,7 +80,7 @@ const client = new SageMakerFeatureStoreRuntimeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetRecordCommand(params); +const command = new GetRecordCommand(params); ``` #### Async/await @@ -162,7 +159,7 @@ const client = new AWS.SageMakerFeatureStoreRuntime({ region: "REGION" }); // async/await. try { - const data = await client.batchGetRecord(params); + const data = await client.getRecord(params); // process data. } catch (error) { // error handling. @@ -170,7 +167,7 @@ try { // Promises. client - .batchGetRecord(params) + .getRecord(params) .then((data) => { // process data. }) @@ -179,7 +176,7 @@ client }); // callbacks. -client.batchGetRecord(params, (err, data) => { +client.getRecord(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sagemaker-geospatial/README.md b/clients/client-sagemaker-geospatial/README.md index af8167323fd5..32a51db563ea 100644 --- a/clients/client-sagemaker-geospatial/README.md +++ b/clients/client-sagemaker-geospatial/README.md @@ -23,16 +23,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 `SageMakerGeospatialClient` and -the commands you need, for example `DeleteEarthObservationJobCommand`: +the commands you need, for example `ListEarthObservationJobsCommand`: ```js // ES5 example -const { SageMakerGeospatialClient, DeleteEarthObservationJobCommand } = require("@aws-sdk/client-sagemaker-geospatial"); +const { SageMakerGeospatialClient, ListEarthObservationJobsCommand } = require("@aws-sdk/client-sagemaker-geospatial"); ``` ```ts // ES6+ example -import { SageMakerGeospatialClient, DeleteEarthObservationJobCommand } from "@aws-sdk/client-sagemaker-geospatial"; +import { SageMakerGeospatialClient, ListEarthObservationJobsCommand } from "@aws-sdk/client-sagemaker-geospatial"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new SageMakerGeospatialClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteEarthObservationJobCommand(params); +const command = new ListEarthObservationJobsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.SageMakerGeospatial({ region: "REGION" }); // async/await. try { - const data = await client.deleteEarthObservationJob(params); + const data = await client.listEarthObservationJobs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .deleteEarthObservationJob(params) + .listEarthObservationJobs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.deleteEarthObservationJob(params, (err, data) => { +client.listEarthObservationJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sagemaker/README.md b/clients/client-sagemaker/README.md index f0250068ee90..a0903228e98f 100644 --- a/clients/client-sagemaker/README.md +++ b/clients/client-sagemaker/README.md @@ -38,16 +38,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 `SageMakerClient` and -the commands you need, for example `AddAssociationCommand`: +the commands you need, for example `ListActionsCommand`: ```js // ES5 example -const { SageMakerClient, AddAssociationCommand } = require("@aws-sdk/client-sagemaker"); +const { SageMakerClient, ListActionsCommand } = require("@aws-sdk/client-sagemaker"); ``` ```ts // ES6+ example -import { SageMakerClient, AddAssociationCommand } from "@aws-sdk/client-sagemaker"; +import { SageMakerClient, ListActionsCommand } from "@aws-sdk/client-sagemaker"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new SageMakerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddAssociationCommand(params); +const command = new ListActionsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.SageMaker({ region: "REGION" }); // async/await. try { - const data = await client.addAssociation(params); + const data = await client.listActions(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .addAssociation(params) + .listActions(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.addAssociation(params, (err, data) => { +client.listActions(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-savingsplans/README.md b/clients/client-savingsplans/README.md index 206a06257287..c1e15f7d21cf 100644 --- a/clients/client-savingsplans/README.md +++ b/clients/client-savingsplans/README.md @@ -26,16 +26,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 `SavingsplansClient` and -the commands you need, for example `CreateSavingsPlanCommand`: +the commands you need, for example `ListTagsForResourceCommand`: ```js // ES5 example -const { SavingsplansClient, CreateSavingsPlanCommand } = require("@aws-sdk/client-savingsplans"); +const { SavingsplansClient, ListTagsForResourceCommand } = require("@aws-sdk/client-savingsplans"); ``` ```ts // ES6+ example -import { SavingsplansClient, CreateSavingsPlanCommand } from "@aws-sdk/client-savingsplans"; +import { SavingsplansClient, ListTagsForResourceCommand } from "@aws-sdk/client-savingsplans"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new SavingsplansClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateSavingsPlanCommand(params); +const command = new ListTagsForResourceCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.Savingsplans({ region: "REGION" }); // async/await. try { - const data = await client.createSavingsPlan(params); + const data = await client.listTagsForResource(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .createSavingsPlan(params) + .listTagsForResource(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.createSavingsPlan(params, (err, data) => { +client.listTagsForResource(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-scheduler/README.md b/clients/client-scheduler/README.md index 1005e0d55e36..dbd9c8d6500c 100644 --- a/clients/client-scheduler/README.md +++ b/clients/client-scheduler/README.md @@ -27,16 +27,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 `SchedulerClient` and -the commands you need, for example `CreateScheduleCommand`: +the commands you need, for example `ListSchedulesCommand`: ```js // ES5 example -const { SchedulerClient, CreateScheduleCommand } = require("@aws-sdk/client-scheduler"); +const { SchedulerClient, ListSchedulesCommand } = require("@aws-sdk/client-scheduler"); ``` ```ts // ES6+ example -import { SchedulerClient, CreateScheduleCommand } from "@aws-sdk/client-scheduler"; +import { SchedulerClient, ListSchedulesCommand } from "@aws-sdk/client-scheduler"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new SchedulerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateScheduleCommand(params); +const command = new ListSchedulesCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Scheduler({ region: "REGION" }); // async/await. try { - const data = await client.createSchedule(params); + const data = await client.listSchedules(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .createSchedule(params) + .listSchedules(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.createSchedule(params, (err, data) => { +client.listSchedules(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-schemas/README.md b/clients/client-schemas/README.md index 87f62bd6d0f0..25a1cf8bbb54 100644 --- a/clients/client-schemas/README.md +++ b/clients/client-schemas/README.md @@ -23,16 +23,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 `SchemasClient` and -the commands you need, for example `CreateDiscovererCommand`: +the commands you need, for example `ListDiscoverersCommand`: ```js // ES5 example -const { SchemasClient, CreateDiscovererCommand } = require("@aws-sdk/client-schemas"); +const { SchemasClient, ListDiscoverersCommand } = require("@aws-sdk/client-schemas"); ``` ```ts // ES6+ example -import { SchemasClient, CreateDiscovererCommand } from "@aws-sdk/client-schemas"; +import { SchemasClient, ListDiscoverersCommand } from "@aws-sdk/client-schemas"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new SchemasClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateDiscovererCommand(params); +const command = new ListDiscoverersCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Schemas({ region: "REGION" }); // async/await. try { - const data = await client.createDiscoverer(params); + const data = await client.listDiscoverers(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createDiscoverer(params) + .listDiscoverers(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createDiscoverer(params, (err, data) => { +client.listDiscoverers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-secrets-manager/README.md b/clients/client-secrets-manager/README.md index f9fdfa5ef1b6..4ad5cfa2149f 100644 --- a/clients/client-secrets-manager/README.md +++ b/clients/client-secrets-manager/README.md @@ -49,16 +49,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 `SecretsManagerClient` and -the commands you need, for example `CancelRotateSecretCommand`: +the commands you need, for example `ListSecretsCommand`: ```js // ES5 example -const { SecretsManagerClient, CancelRotateSecretCommand } = require("@aws-sdk/client-secrets-manager"); +const { SecretsManagerClient, ListSecretsCommand } = require("@aws-sdk/client-secrets-manager"); ``` ```ts // ES6+ example -import { SecretsManagerClient, CancelRotateSecretCommand } from "@aws-sdk/client-secrets-manager"; +import { SecretsManagerClient, ListSecretsCommand } from "@aws-sdk/client-secrets-manager"; ``` ### Usage @@ -77,7 +77,7 @@ const client = new SecretsManagerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelRotateSecretCommand(params); +const command = new ListSecretsCommand(params); ``` #### Async/await @@ -156,7 +156,7 @@ const client = new AWS.SecretsManager({ region: "REGION" }); // async/await. try { - const data = await client.cancelRotateSecret(params); + const data = await client.listSecrets(params); // process data. } catch (error) { // error handling. @@ -164,7 +164,7 @@ try { // Promises. client - .cancelRotateSecret(params) + .listSecrets(params) .then((data) => { // process data. }) @@ -173,7 +173,7 @@ client }); // callbacks. -client.cancelRotateSecret(params, (err, data) => { +client.listSecrets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-securityhub/README.md b/clients/client-securityhub/README.md index abaaf271ebef..34fb151792c3 100644 --- a/clients/client-securityhub/README.md +++ b/clients/client-securityhub/README.md @@ -70,16 +70,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 `SecurityHubClient` and -the commands you need, for example `AcceptAdministratorInvitationCommand`: +the commands you need, for example `ListMembersCommand`: ```js // ES5 example -const { SecurityHubClient, AcceptAdministratorInvitationCommand } = require("@aws-sdk/client-securityhub"); +const { SecurityHubClient, ListMembersCommand } = require("@aws-sdk/client-securityhub"); ``` ```ts // ES6+ example -import { SecurityHubClient, AcceptAdministratorInvitationCommand } from "@aws-sdk/client-securityhub"; +import { SecurityHubClient, ListMembersCommand } from "@aws-sdk/client-securityhub"; ``` ### Usage @@ -98,7 +98,7 @@ const client = new SecurityHubClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptAdministratorInvitationCommand(params); +const command = new ListMembersCommand(params); ``` #### Async/await @@ -177,7 +177,7 @@ const client = new AWS.SecurityHub({ region: "REGION" }); // async/await. try { - const data = await client.acceptAdministratorInvitation(params); + const data = await client.listMembers(params); // process data. } catch (error) { // error handling. @@ -185,7 +185,7 @@ try { // Promises. client - .acceptAdministratorInvitation(params) + .listMembers(params) .then((data) => { // process data. }) @@ -194,7 +194,7 @@ client }); // callbacks. -client.acceptAdministratorInvitation(params, (err, data) => { +client.listMembers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-securitylake/README.md b/clients/client-securitylake/README.md index 16d969433f40..a363244c8b8e 100644 --- a/clients/client-securitylake/README.md +++ b/clients/client-securitylake/README.md @@ -48,16 +48,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 `SecurityLakeClient` and -the commands you need, for example `CreateAwsLogSourceCommand`: +the commands you need, for example `ListDataLakesCommand`: ```js // ES5 example -const { SecurityLakeClient, CreateAwsLogSourceCommand } = require("@aws-sdk/client-securitylake"); +const { SecurityLakeClient, ListDataLakesCommand } = require("@aws-sdk/client-securitylake"); ``` ```ts // ES6+ example -import { SecurityLakeClient, CreateAwsLogSourceCommand } from "@aws-sdk/client-securitylake"; +import { SecurityLakeClient, ListDataLakesCommand } from "@aws-sdk/client-securitylake"; ``` ### Usage @@ -76,7 +76,7 @@ const client = new SecurityLakeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAwsLogSourceCommand(params); +const command = new ListDataLakesCommand(params); ``` #### Async/await @@ -155,7 +155,7 @@ const client = new AWS.SecurityLake({ region: "REGION" }); // async/await. try { - const data = await client.createAwsLogSource(params); + const data = await client.listDataLakes(params); // process data. } catch (error) { // error handling. @@ -163,7 +163,7 @@ try { // Promises. client - .createAwsLogSource(params) + .listDataLakes(params) .then((data) => { // process data. }) @@ -172,7 +172,7 @@ client }); // callbacks. -client.createAwsLogSource(params, (err, data) => { +client.listDataLakes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-serverlessapplicationrepository/README.md b/clients/client-serverlessapplicationrepository/README.md index 16b0f62c220b..c40075aae8a8 100644 --- a/clients/client-serverlessapplicationrepository/README.md +++ b/clients/client-serverlessapplicationrepository/README.md @@ -42,13 +42,13 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `ServerlessApplicationRepositoryClient` and -the commands you need, for example `CreateApplicationCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example const { ServerlessApplicationRepositoryClient, - CreateApplicationCommand, + ListApplicationsCommand, } = require("@aws-sdk/client-serverlessapplicationrepository"); ``` @@ -56,7 +56,7 @@ const { // ES6+ example import { ServerlessApplicationRepositoryClient, - CreateApplicationCommand, + ListApplicationsCommand, } from "@aws-sdk/client-serverlessapplicationrepository"; ``` @@ -76,7 +76,7 @@ const client = new ServerlessApplicationRepositoryClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateApplicationCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -155,7 +155,7 @@ const client = new AWS.ServerlessApplicationRepository({ region: "REGION" }); // async/await. try { - const data = await client.createApplication(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -163,7 +163,7 @@ try { // Promises. client - .createApplication(params) + .listApplications(params) .then((data) => { // process data. }) @@ -172,7 +172,7 @@ client }); // callbacks. -client.createApplication(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-service-catalog-appregistry/README.md b/clients/client-service-catalog-appregistry/README.md index 976b9ab2cd76..9f067692f83c 100644 --- a/clients/client-service-catalog-appregistry/README.md +++ b/clients/client-service-catalog-appregistry/README.md @@ -23,22 +23,19 @@ using your favorite package manager: The AWS SDK is modulized by clients and commands. To send a request, you only need to import the `ServiceCatalogAppRegistryClient` and -the commands you need, for example `AssociateAttributeGroupCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example const { ServiceCatalogAppRegistryClient, - AssociateAttributeGroupCommand, + ListApplicationsCommand, } = require("@aws-sdk/client-service-catalog-appregistry"); ``` ```ts // ES6+ example -import { - ServiceCatalogAppRegistryClient, - AssociateAttributeGroupCommand, -} from "@aws-sdk/client-service-catalog-appregistry"; +import { ServiceCatalogAppRegistryClient, ListApplicationsCommand } from "@aws-sdk/client-service-catalog-appregistry"; ``` ### Usage @@ -57,7 +54,7 @@ const client = new ServiceCatalogAppRegistryClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateAttributeGroupCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -136,7 +133,7 @@ const client = new AWS.ServiceCatalogAppRegistry({ region: "REGION" }); // async/await. try { - const data = await client.associateAttributeGroup(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -144,7 +141,7 @@ try { // Promises. client - .associateAttributeGroup(params) + .listApplications(params) .then((data) => { // process data. }) @@ -153,7 +150,7 @@ client }); // callbacks. -client.associateAttributeGroup(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-service-catalog/README.md b/clients/client-service-catalog/README.md index 52074f9f952c..a93b63d0a93b 100644 --- a/clients/client-service-catalog/README.md +++ b/clients/client-service-catalog/README.md @@ -30,16 +30,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 `ServiceCatalogClient` and -the commands you need, for example `AcceptPortfolioShareCommand`: +the commands you need, for example `ListPortfoliosCommand`: ```js // ES5 example -const { ServiceCatalogClient, AcceptPortfolioShareCommand } = require("@aws-sdk/client-service-catalog"); +const { ServiceCatalogClient, ListPortfoliosCommand } = require("@aws-sdk/client-service-catalog"); ``` ```ts // ES6+ example -import { ServiceCatalogClient, AcceptPortfolioShareCommand } from "@aws-sdk/client-service-catalog"; +import { ServiceCatalogClient, ListPortfoliosCommand } from "@aws-sdk/client-service-catalog"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new ServiceCatalogClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptPortfolioShareCommand(params); +const command = new ListPortfoliosCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.ServiceCatalog({ region: "REGION" }); // async/await. try { - const data = await client.acceptPortfolioShare(params); + const data = await client.listPortfolios(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .acceptPortfolioShare(params) + .listPortfolios(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.acceptPortfolioShare(params, (err, data) => { +client.listPortfolios(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-service-quotas/README.md b/clients/client-service-quotas/README.md index 449206c07006..3865279aceea 100644 --- a/clients/client-service-quotas/README.md +++ b/clients/client-service-quotas/README.md @@ -25,16 +25,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 `ServiceQuotasClient` and -the commands you need, for example `AssociateServiceQuotaTemplateCommand`: +the commands you need, for example `ListServicesCommand`: ```js // ES5 example -const { ServiceQuotasClient, AssociateServiceQuotaTemplateCommand } = require("@aws-sdk/client-service-quotas"); +const { ServiceQuotasClient, ListServicesCommand } = require("@aws-sdk/client-service-quotas"); ``` ```ts // ES6+ example -import { ServiceQuotasClient, AssociateServiceQuotaTemplateCommand } from "@aws-sdk/client-service-quotas"; +import { ServiceQuotasClient, ListServicesCommand } from "@aws-sdk/client-service-quotas"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new ServiceQuotasClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateServiceQuotaTemplateCommand(params); +const command = new ListServicesCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.ServiceQuotas({ region: "REGION" }); // async/await. try { - const data = await client.associateServiceQuotaTemplate(params); + const data = await client.listServices(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .associateServiceQuotaTemplate(params) + .listServices(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.associateServiceQuotaTemplate(params, (err, data) => { +client.listServices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-servicediscovery/README.md b/clients/client-servicediscovery/README.md index 24399e7ee87f..27444ef9e63f 100644 --- a/clients/client-servicediscovery/README.md +++ b/clients/client-servicediscovery/README.md @@ -30,16 +30,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 `ServiceDiscoveryClient` and -the commands you need, for example `CreateHttpNamespaceCommand`: +the commands you need, for example `ListNamespacesCommand`: ```js // ES5 example -const { ServiceDiscoveryClient, CreateHttpNamespaceCommand } = require("@aws-sdk/client-servicediscovery"); +const { ServiceDiscoveryClient, ListNamespacesCommand } = require("@aws-sdk/client-servicediscovery"); ``` ```ts // ES6+ example -import { ServiceDiscoveryClient, CreateHttpNamespaceCommand } from "@aws-sdk/client-servicediscovery"; +import { ServiceDiscoveryClient, ListNamespacesCommand } from "@aws-sdk/client-servicediscovery"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new ServiceDiscoveryClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateHttpNamespaceCommand(params); +const command = new ListNamespacesCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.ServiceDiscovery({ region: "REGION" }); // async/await. try { - const data = await client.createHttpNamespace(params); + const data = await client.listNamespaces(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .createHttpNamespace(params) + .listNamespaces(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.createHttpNamespace(params, (err, data) => { +client.listNamespaces(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ses/README.md b/clients/client-ses/README.md index 6bc3679994fb..2e7bada5ddf7 100644 --- a/clients/client-ses/README.md +++ b/clients/client-ses/README.md @@ -57,16 +57,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 `SESClient` and -the commands you need, for example `CloneReceiptRuleSetCommand`: +the commands you need, for example `ListIdentitiesCommand`: ```js // ES5 example -const { SESClient, CloneReceiptRuleSetCommand } = require("@aws-sdk/client-ses"); +const { SESClient, ListIdentitiesCommand } = require("@aws-sdk/client-ses"); ``` ```ts // ES6+ example -import { SESClient, CloneReceiptRuleSetCommand } from "@aws-sdk/client-ses"; +import { SESClient, ListIdentitiesCommand } from "@aws-sdk/client-ses"; ``` ### Usage @@ -85,7 +85,7 @@ const client = new SESClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CloneReceiptRuleSetCommand(params); +const command = new ListIdentitiesCommand(params); ``` #### Async/await @@ -164,7 +164,7 @@ const client = new AWS.SES({ region: "REGION" }); // async/await. try { - const data = await client.cloneReceiptRuleSet(params); + const data = await client.listIdentities(params); // process data. } catch (error) { // error handling. @@ -172,7 +172,7 @@ try { // Promises. client - .cloneReceiptRuleSet(params) + .listIdentities(params) .then((data) => { // process data. }) @@ -181,7 +181,7 @@ client }); // callbacks. -client.cloneReceiptRuleSet(params, (err, data) => { +client.listIdentities(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sesv2/README.md b/clients/client-sesv2/README.md index d43cd335b61b..d05270af69b7 100644 --- a/clients/client-sesv2/README.md +++ b/clients/client-sesv2/README.md @@ -30,16 +30,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 `SESv2Client` and -the commands you need, for example `BatchGetMetricDataCommand`: +the commands you need, for example `ListContactListsCommand`: ```js // ES5 example -const { SESv2Client, BatchGetMetricDataCommand } = require("@aws-sdk/client-sesv2"); +const { SESv2Client, ListContactListsCommand } = require("@aws-sdk/client-sesv2"); ``` ```ts // ES6+ example -import { SESv2Client, BatchGetMetricDataCommand } from "@aws-sdk/client-sesv2"; +import { SESv2Client, ListContactListsCommand } from "@aws-sdk/client-sesv2"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new SESv2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetMetricDataCommand(params); +const command = new ListContactListsCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.SESv2({ region: "REGION" }); // async/await. try { - const data = await client.batchGetMetricData(params); + const data = await client.listContactLists(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .batchGetMetricData(params) + .listContactLists(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.batchGetMetricData(params, (err, data) => { +client.listContactLists(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sfn/README.md b/clients/client-sfn/README.md index 8f54b21604e7..d55db6f4a56f 100644 --- a/clients/client-sfn/README.md +++ b/clients/client-sfn/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 `SFNClient` and -the commands you need, for example `CreateActivityCommand`: +the commands you need, for example `ListActivitiesCommand`: ```js // ES5 example -const { SFNClient, CreateActivityCommand } = require("@aws-sdk/client-sfn"); +const { SFNClient, ListActivitiesCommand } = require("@aws-sdk/client-sfn"); ``` ```ts // ES6+ example -import { SFNClient, CreateActivityCommand } from "@aws-sdk/client-sfn"; +import { SFNClient, ListActivitiesCommand } from "@aws-sdk/client-sfn"; ``` ### Usage @@ -67,7 +67,7 @@ const client = new SFNClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateActivityCommand(params); +const command = new ListActivitiesCommand(params); ``` #### Async/await @@ -146,7 +146,7 @@ const client = new AWS.SFN({ region: "REGION" }); // async/await. try { - const data = await client.createActivity(params); + const data = await client.listActivities(params); // process data. } catch (error) { // error handling. @@ -154,7 +154,7 @@ try { // Promises. client - .createActivity(params) + .listActivities(params) .then((data) => { // process data. }) @@ -163,7 +163,7 @@ client }); // callbacks. -client.createActivity(params, (err, data) => { +client.listActivities(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-shield/README.md b/clients/client-shield/README.md index 170d8f71e995..50069bba0403 100644 --- a/clients/client-shield/README.md +++ b/clients/client-shield/README.md @@ -27,16 +27,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 `ShieldClient` and -the commands you need, for example `AssociateDRTLogBucketCommand`: +the commands you need, for example `ListAttacksCommand`: ```js // ES5 example -const { ShieldClient, AssociateDRTLogBucketCommand } = require("@aws-sdk/client-shield"); +const { ShieldClient, ListAttacksCommand } = require("@aws-sdk/client-shield"); ``` ```ts // ES6+ example -import { ShieldClient, AssociateDRTLogBucketCommand } from "@aws-sdk/client-shield"; +import { ShieldClient, ListAttacksCommand } from "@aws-sdk/client-shield"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new ShieldClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateDRTLogBucketCommand(params); +const command = new ListAttacksCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.Shield({ region: "REGION" }); // async/await. try { - const data = await client.associateDRTLogBucket(params); + const data = await client.listAttacks(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .associateDRTLogBucket(params) + .listAttacks(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.associateDRTLogBucket(params, (err, data) => { +client.listAttacks(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-signer/README.md b/clients/client-signer/README.md index 993c9d4174f3..da2cf8e67c17 100644 --- a/clients/client-signer/README.md +++ b/clients/client-signer/README.md @@ -37,16 +37,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 `SignerClient` and -the commands you need, for example `AddProfilePermissionCommand`: +the commands you need, for example `ListSigningJobsCommand`: ```js // ES5 example -const { SignerClient, AddProfilePermissionCommand } = require("@aws-sdk/client-signer"); +const { SignerClient, ListSigningJobsCommand } = require("@aws-sdk/client-signer"); ``` ```ts // ES6+ example -import { SignerClient, AddProfilePermissionCommand } from "@aws-sdk/client-signer"; +import { SignerClient, ListSigningJobsCommand } from "@aws-sdk/client-signer"; ``` ### Usage @@ -65,7 +65,7 @@ const client = new SignerClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddProfilePermissionCommand(params); +const command = new ListSigningJobsCommand(params); ``` #### Async/await @@ -144,7 +144,7 @@ const client = new AWS.Signer({ region: "REGION" }); // async/await. try { - const data = await client.addProfilePermission(params); + const data = await client.listSigningJobs(params); // process data. } catch (error) { // error handling. @@ -152,7 +152,7 @@ try { // Promises. client - .addProfilePermission(params) + .listSigningJobs(params) .then((data) => { // process data. }) @@ -161,7 +161,7 @@ client }); // callbacks. -client.addProfilePermission(params, (err, data) => { +client.listSigningJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-simspaceweaver/README.md b/clients/client-simspaceweaver/README.md index 65d6d9e984ca..e3c0ea472430 100644 --- a/clients/client-simspaceweaver/README.md +++ b/clients/client-simspaceweaver/README.md @@ -33,16 +33,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 `SimSpaceWeaverClient` and -the commands you need, for example `CreateSnapshotCommand`: +the commands you need, for example `ListAppsCommand`: ```js // ES5 example -const { SimSpaceWeaverClient, CreateSnapshotCommand } = require("@aws-sdk/client-simspaceweaver"); +const { SimSpaceWeaverClient, ListAppsCommand } = require("@aws-sdk/client-simspaceweaver"); ``` ```ts // ES6+ example -import { SimSpaceWeaverClient, CreateSnapshotCommand } from "@aws-sdk/client-simspaceweaver"; +import { SimSpaceWeaverClient, ListAppsCommand } from "@aws-sdk/client-simspaceweaver"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new SimSpaceWeaverClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateSnapshotCommand(params); +const command = new ListAppsCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.SimSpaceWeaver({ region: "REGION" }); // async/await. try { - const data = await client.createSnapshot(params); + const data = await client.listApps(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .createSnapshot(params) + .listApps(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.createSnapshot(params, (err, data) => { +client.listApps(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sms/README.md b/clients/client-sms/README.md index 505a6841df4c..c6886353b84a 100644 --- a/clients/client-sms/README.md +++ b/clients/client-sms/README.md @@ -47,16 +47,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 `SMSClient` and -the commands you need, for example `CreateAppCommand`: +the commands you need, for example `ListAppsCommand`: ```js // ES5 example -const { SMSClient, CreateAppCommand } = require("@aws-sdk/client-sms"); +const { SMSClient, ListAppsCommand } = require("@aws-sdk/client-sms"); ``` ```ts // ES6+ example -import { SMSClient, CreateAppCommand } from "@aws-sdk/client-sms"; +import { SMSClient, ListAppsCommand } from "@aws-sdk/client-sms"; ``` ### Usage @@ -75,7 +75,7 @@ const client = new SMSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAppCommand(params); +const command = new ListAppsCommand(params); ``` #### Async/await @@ -154,7 +154,7 @@ const client = new AWS.SMS({ region: "REGION" }); // async/await. try { - const data = await client.createApp(params); + const data = await client.listApps(params); // process data. } catch (error) { // error handling. @@ -162,7 +162,7 @@ try { // Promises. client - .createApp(params) + .listApps(params) .then((data) => { // process data. }) @@ -171,7 +171,7 @@ client }); // callbacks. -client.createApp(params, (err, data) => { +client.listApps(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-snow-device-management/README.md b/clients/client-snow-device-management/README.md index 98dcf94e61b8..16d2bb81e639 100644 --- a/clients/client-snow-device-management/README.md +++ b/clients/client-snow-device-management/README.md @@ -23,16 +23,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 `SnowDeviceManagementClient` and -the commands you need, for example `CancelTaskCommand`: +the commands you need, for example `ListDevicesCommand`: ```js // ES5 example -const { SnowDeviceManagementClient, CancelTaskCommand } = require("@aws-sdk/client-snow-device-management"); +const { SnowDeviceManagementClient, ListDevicesCommand } = require("@aws-sdk/client-snow-device-management"); ``` ```ts // ES6+ example -import { SnowDeviceManagementClient, CancelTaskCommand } from "@aws-sdk/client-snow-device-management"; +import { SnowDeviceManagementClient, ListDevicesCommand } from "@aws-sdk/client-snow-device-management"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new SnowDeviceManagementClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelTaskCommand(params); +const command = new ListDevicesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.SnowDeviceManagement({ region: "REGION" }); // async/await. try { - const data = await client.cancelTask(params); + const data = await client.listDevices(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .cancelTask(params) + .listDevices(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.cancelTask(params, (err, data) => { +client.listDevices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-snowball/README.md b/clients/client-snowball/README.md index 77e53e413307..9a7959462a4e 100644 --- a/clients/client-snowball/README.md +++ b/clients/client-snowball/README.md @@ -28,16 +28,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 `SnowballClient` and -the commands you need, for example `CancelClusterCommand`: +the commands you need, for example `ListJobsCommand`: ```js // ES5 example -const { SnowballClient, CancelClusterCommand } = require("@aws-sdk/client-snowball"); +const { SnowballClient, ListJobsCommand } = require("@aws-sdk/client-snowball"); ``` ```ts // ES6+ example -import { SnowballClient, CancelClusterCommand } from "@aws-sdk/client-snowball"; +import { SnowballClient, ListJobsCommand } from "@aws-sdk/client-snowball"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new SnowballClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelClusterCommand(params); +const command = new ListJobsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.Snowball({ region: "REGION" }); // async/await. try { - const data = await client.cancelCluster(params); + const data = await client.listJobs(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .cancelCluster(params) + .listJobs(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.cancelCluster(params, (err, data) => { +client.listJobs(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sns/README.md b/clients/client-sns/README.md index a62dfd727fab..17ff45ee762b 100644 --- a/clients/client-sns/README.md +++ b/clients/client-sns/README.md @@ -36,16 +36,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 `AddPermissionCommand`: +the commands you need, for example `ListTopicsCommand`: ```js // ES5 example -const { SNSClient, AddPermissionCommand } = require("@aws-sdk/client-sns"); +const { SNSClient, ListTopicsCommand } = require("@aws-sdk/client-sns"); ``` ```ts // ES6+ example -import { SNSClient, AddPermissionCommand } from "@aws-sdk/client-sns"; +import { SNSClient, ListTopicsCommand } from "@aws-sdk/client-sns"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new SNSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddPermissionCommand(params); +const command = new ListTopicsCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.SNS({ region: "REGION" }); // async/await. try { - const data = await client.addPermission(params); + const data = await client.listTopics(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .addPermission(params) + .listTopics(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.addPermission(params, (err, data) => { +client.listTopics(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sqs/README.md b/clients/client-sqs/README.md index b666448a61aa..0b5ec9482644 100644 --- a/clients/client-sqs/README.md +++ b/clients/client-sqs/README.md @@ -94,16 +94,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 `SQSClient` and -the commands you need, for example `AddPermissionCommand`: +the commands you need, for example `ListQueuesCommand`: ```js // ES5 example -const { SQSClient, AddPermissionCommand } = require("@aws-sdk/client-sqs"); +const { SQSClient, ListQueuesCommand } = require("@aws-sdk/client-sqs"); ``` ```ts // ES6+ example -import { SQSClient, AddPermissionCommand } from "@aws-sdk/client-sqs"; +import { SQSClient, ListQueuesCommand } from "@aws-sdk/client-sqs"; ``` ### Usage @@ -122,7 +122,7 @@ const client = new SQSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddPermissionCommand(params); +const command = new ListQueuesCommand(params); ``` #### Async/await @@ -201,7 +201,7 @@ const client = new AWS.SQS({ region: "REGION" }); // async/await. try { - const data = await client.addPermission(params); + const data = await client.listQueues(params); // process data. } catch (error) { // error handling. @@ -209,7 +209,7 @@ try { // Promises. client - .addPermission(params) + .listQueues(params) .then((data) => { // process data. }) @@ -218,7 +218,7 @@ client }); // callbacks. -client.addPermission(params, (err, data) => { +client.listQueues(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ssm-contacts/README.md b/clients/client-ssm-contacts/README.md index fe04f88d2256..e19834bb53eb 100644 --- a/clients/client-ssm-contacts/README.md +++ b/clients/client-ssm-contacts/README.md @@ -30,16 +30,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 `SSMContactsClient` and -the commands you need, for example `AcceptPageCommand`: +the commands you need, for example `ListContactsCommand`: ```js // ES5 example -const { SSMContactsClient, AcceptPageCommand } = require("@aws-sdk/client-ssm-contacts"); +const { SSMContactsClient, ListContactsCommand } = require("@aws-sdk/client-ssm-contacts"); ``` ```ts // ES6+ example -import { SSMContactsClient, AcceptPageCommand } from "@aws-sdk/client-ssm-contacts"; +import { SSMContactsClient, ListContactsCommand } from "@aws-sdk/client-ssm-contacts"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new SSMContactsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AcceptPageCommand(params); +const command = new ListContactsCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.SSMContacts({ region: "REGION" }); // async/await. try { - const data = await client.acceptPage(params); + const data = await client.listContacts(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .acceptPage(params) + .listContacts(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.acceptPage(params, (err, data) => { +client.listContacts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ssm-incidents/README.md b/clients/client-ssm-incidents/README.md index 6f4bcf511805..e97c18aa9761 100644 --- a/clients/client-ssm-incidents/README.md +++ b/clients/client-ssm-incidents/README.md @@ -30,16 +30,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 `SSMIncidentsClient` and -the commands you need, for example `CreateReplicationSetCommand`: +the commands you need, for example `ListResponsePlansCommand`: ```js // ES5 example -const { SSMIncidentsClient, CreateReplicationSetCommand } = require("@aws-sdk/client-ssm-incidents"); +const { SSMIncidentsClient, ListResponsePlansCommand } = require("@aws-sdk/client-ssm-incidents"); ``` ```ts // ES6+ example -import { SSMIncidentsClient, CreateReplicationSetCommand } from "@aws-sdk/client-ssm-incidents"; +import { SSMIncidentsClient, ListResponsePlansCommand } from "@aws-sdk/client-ssm-incidents"; ``` ### Usage @@ -58,7 +58,7 @@ const client = new SSMIncidentsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateReplicationSetCommand(params); +const command = new ListResponsePlansCommand(params); ``` #### Async/await @@ -137,7 +137,7 @@ const client = new AWS.SSMIncidents({ region: "REGION" }); // async/await. try { - const data = await client.createReplicationSet(params); + const data = await client.listResponsePlans(params); // process data. } catch (error) { // error handling. @@ -145,7 +145,7 @@ try { // Promises. client - .createReplicationSet(params) + .listResponsePlans(params) .then((data) => { // process data. }) @@ -154,7 +154,7 @@ client }); // callbacks. -client.createReplicationSet(params, (err, data) => { +client.listResponsePlans(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ssm-sap/README.md b/clients/client-ssm-sap/README.md index 626d8e9e2142..d6a04aef395a 100644 --- a/clients/client-ssm-sap/README.md +++ b/clients/client-ssm-sap/README.md @@ -25,16 +25,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 `SsmSapClient` and -the commands you need, for example `DeleteResourcePermissionCommand`: +the commands you need, for example `ListApplicationsCommand`: ```js // ES5 example -const { SsmSapClient, DeleteResourcePermissionCommand } = require("@aws-sdk/client-ssm-sap"); +const { SsmSapClient, ListApplicationsCommand } = require("@aws-sdk/client-ssm-sap"); ``` ```ts // ES6+ example -import { SsmSapClient, DeleteResourcePermissionCommand } from "@aws-sdk/client-ssm-sap"; +import { SsmSapClient, ListApplicationsCommand } from "@aws-sdk/client-ssm-sap"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new SsmSapClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DeleteResourcePermissionCommand(params); +const command = new ListApplicationsCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.SsmSap({ region: "REGION" }); // async/await. try { - const data = await client.deleteResourcePermission(params); + const data = await client.listApplications(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .deleteResourcePermission(params) + .listApplications(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.deleteResourcePermission(params, (err, data) => { +client.listApplications(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-ssm/README.md b/clients/client-ssm/README.md index 3d0feeadaeaa..7fb5c7f35a99 100644 --- a/clients/client-ssm/README.md +++ b/clients/client-ssm/README.md @@ -58,16 +58,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 `SSMClient` and -the commands you need, for example `AddTagsToResourceCommand`: +the commands you need, for example `ListAssociationsCommand`: ```js // ES5 example -const { SSMClient, AddTagsToResourceCommand } = require("@aws-sdk/client-ssm"); +const { SSMClient, ListAssociationsCommand } = require("@aws-sdk/client-ssm"); ``` ```ts // ES6+ example -import { SSMClient, AddTagsToResourceCommand } from "@aws-sdk/client-ssm"; +import { SSMClient, ListAssociationsCommand } from "@aws-sdk/client-ssm"; ``` ### Usage @@ -86,7 +86,7 @@ const client = new SSMClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddTagsToResourceCommand(params); +const command = new ListAssociationsCommand(params); ``` #### Async/await @@ -165,7 +165,7 @@ const client = new AWS.SSM({ region: "REGION" }); // async/await. try { - const data = await client.addTagsToResource(params); + const data = await client.listAssociations(params); // process data. } catch (error) { // error handling. @@ -173,7 +173,7 @@ try { // Promises. client - .addTagsToResource(params) + .listAssociations(params) .then((data) => { // process data. }) @@ -182,7 +182,7 @@ client }); // callbacks. -client.addTagsToResource(params, (err, data) => { +client.listAssociations(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sso-admin/README.md b/clients/client-sso-admin/README.md index 54f47e53663e..1dcbba83a04a 100644 --- a/clients/client-sso-admin/README.md +++ b/clients/client-sso-admin/README.md @@ -42,19 +42,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 `SSOAdminClient` and -the commands you need, for example `AttachCustomerManagedPolicyReferenceToPermissionSetCommand`: +the commands you need, for example `ListInstancesCommand`: ```js // ES5 example -const { - SSOAdminClient, - AttachCustomerManagedPolicyReferenceToPermissionSetCommand, -} = require("@aws-sdk/client-sso-admin"); +const { SSOAdminClient, ListInstancesCommand } = require("@aws-sdk/client-sso-admin"); ``` ```ts // ES6+ example -import { SSOAdminClient, AttachCustomerManagedPolicyReferenceToPermissionSetCommand } from "@aws-sdk/client-sso-admin"; +import { SSOAdminClient, ListInstancesCommand } from "@aws-sdk/client-sso-admin"; ``` ### Usage @@ -73,7 +70,7 @@ const client = new SSOAdminClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AttachCustomerManagedPolicyReferenceToPermissionSetCommand(params); +const command = new ListInstancesCommand(params); ``` #### Async/await @@ -152,7 +149,7 @@ const client = new AWS.SSOAdmin({ region: "REGION" }); // async/await. try { - const data = await client.attachCustomerManagedPolicyReferenceToPermissionSet(params); + const data = await client.listInstances(params); // process data. } catch (error) { // error handling. @@ -160,7 +157,7 @@ try { // Promises. client - .attachCustomerManagedPolicyReferenceToPermissionSet(params) + .listInstances(params) .then((data) => { // process data. }) @@ -169,7 +166,7 @@ client }); // callbacks. -client.attachCustomerManagedPolicyReferenceToPermissionSet(params, (err, data) => { +client.listInstances(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sso/README.md b/clients/client-sso/README.md index 8a37787655eb..3f7bffc5b85b 100644 --- a/clients/client-sso/README.md +++ b/clients/client-sso/README.md @@ -38,16 +38,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 `SSOClient` and -the commands you need, for example `GetRoleCredentialsCommand`: +the commands you need, for example `ListAccountsCommand`: ```js // ES5 example -const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); +const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); ``` ```ts // ES6+ example -import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; +import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new SSOClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new GetRoleCredentialsCommand(params); +const command = new ListAccountsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.SSO({ region: "REGION" }); // async/await. try { - const data = await client.getRoleCredentials(params); + const data = await client.listAccounts(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .getRoleCredentials(params) + .listAccounts(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.getRoleCredentials(params, (err, data) => { +client.listAccounts(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-storage-gateway/README.md b/clients/client-storage-gateway/README.md index 9372ff0d84ec..a190137f4961 100644 --- a/clients/client-storage-gateway/README.md +++ b/clients/client-storage-gateway/README.md @@ -82,16 +82,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 `StorageGatewayClient` and -the commands you need, for example `ActivateGatewayCommand`: +the commands you need, for example `ListTapesCommand`: ```js // ES5 example -const { StorageGatewayClient, ActivateGatewayCommand } = require("@aws-sdk/client-storage-gateway"); +const { StorageGatewayClient, ListTapesCommand } = require("@aws-sdk/client-storage-gateway"); ``` ```ts // ES6+ example -import { StorageGatewayClient, ActivateGatewayCommand } from "@aws-sdk/client-storage-gateway"; +import { StorageGatewayClient, ListTapesCommand } from "@aws-sdk/client-storage-gateway"; ``` ### Usage @@ -110,7 +110,7 @@ const client = new StorageGatewayClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new ActivateGatewayCommand(params); +const command = new ListTapesCommand(params); ``` #### Async/await @@ -189,7 +189,7 @@ const client = new AWS.StorageGateway({ region: "REGION" }); // async/await. try { - const data = await client.activateGateway(params); + const data = await client.listTapes(params); // process data. } catch (error) { // error handling. @@ -197,7 +197,7 @@ try { // Promises. client - .activateGateway(params) + .listTapes(params) .then((data) => { // process data. }) @@ -206,7 +206,7 @@ client }); // callbacks. -client.activateGateway(params, (err, data) => { +client.listTapes(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-sts/README.md b/clients/client-sts/README.md index fb97ac1523f6..22539d8dace2 100644 --- a/clients/client-sts/README.md +++ b/clients/client-sts/README.md @@ -27,16 +27,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 `STSClient` and -the commands you need, for example `AssumeRoleCommand`: +the commands you need, for example `GetCallerIdentityCommand`: ```js // ES5 example -const { STSClient, AssumeRoleCommand } = require("@aws-sdk/client-sts"); +const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts"); ``` ```ts // ES6+ example -import { STSClient, AssumeRoleCommand } from "@aws-sdk/client-sts"; +import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new STSClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssumeRoleCommand(params); +const command = new GetCallerIdentityCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.STS({ region: "REGION" }); // async/await. try { - const data = await client.assumeRole(params); + const data = await client.getCallerIdentity(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .assumeRole(params) + .getCallerIdentity(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.assumeRole(params, (err, data) => { +client.getCallerIdentity(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-support-app/README.md b/clients/client-support-app/README.md index f6444315660b..51751637914a 100644 --- a/clients/client-support-app/README.md +++ b/clients/client-support-app/README.md @@ -77,16 +77,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 `SupportAppClient` and -the commands you need, for example `CreateSlackChannelConfigurationCommand`: +the commands you need, for example `ListSlackChannelConfigurationsCommand`: ```js // ES5 example -const { SupportAppClient, CreateSlackChannelConfigurationCommand } = require("@aws-sdk/client-support-app"); +const { SupportAppClient, ListSlackChannelConfigurationsCommand } = require("@aws-sdk/client-support-app"); ``` ```ts // ES6+ example -import { SupportAppClient, CreateSlackChannelConfigurationCommand } from "@aws-sdk/client-support-app"; +import { SupportAppClient, ListSlackChannelConfigurationsCommand } from "@aws-sdk/client-support-app"; ``` ### Usage @@ -105,7 +105,7 @@ const client = new SupportAppClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateSlackChannelConfigurationCommand(params); +const command = new ListSlackChannelConfigurationsCommand(params); ``` #### Async/await @@ -184,7 +184,7 @@ const client = new AWS.SupportApp({ region: "REGION" }); // async/await. try { - const data = await client.createSlackChannelConfiguration(params); + const data = await client.listSlackChannelConfigurations(params); // process data. } catch (error) { // error handling. @@ -192,7 +192,7 @@ try { // Promises. client - .createSlackChannelConfiguration(params) + .listSlackChannelConfigurations(params) .then((data) => { // process data. }) @@ -201,7 +201,7 @@ client }); // callbacks. -client.createSlackChannelConfiguration(params, (err, data) => { +client.listSlackChannelConfigurations(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-support/README.md b/clients/client-support/README.md index 998cc1c8bb3c..ebe14270c1a5 100644 --- a/clients/client-support/README.md +++ b/clients/client-support/README.md @@ -67,16 +67,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 `SupportClient` and -the commands you need, for example `AddAttachmentsToSetCommand`: +the commands you need, for example `DescribeCasesCommand`: ```js // ES5 example -const { SupportClient, AddAttachmentsToSetCommand } = require("@aws-sdk/client-support"); +const { SupportClient, DescribeCasesCommand } = require("@aws-sdk/client-support"); ``` ```ts // ES6+ example -import { SupportClient, AddAttachmentsToSetCommand } from "@aws-sdk/client-support"; +import { SupportClient, DescribeCasesCommand } from "@aws-sdk/client-support"; ``` ### Usage @@ -95,7 +95,7 @@ const client = new SupportClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AddAttachmentsToSetCommand(params); +const command = new DescribeCasesCommand(params); ``` #### Async/await @@ -174,7 +174,7 @@ const client = new AWS.Support({ region: "REGION" }); // async/await. try { - const data = await client.addAttachmentsToSet(params); + const data = await client.describeCases(params); // process data. } catch (error) { // error handling. @@ -182,7 +182,7 @@ try { // Promises. client - .addAttachmentsToSet(params) + .describeCases(params) .then((data) => { // process data. }) @@ -191,7 +191,7 @@ client }); // callbacks. -client.addAttachmentsToSet(params, (err, data) => { +client.describeCases(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-swf/README.md b/clients/client-swf/README.md index ae65e965cb4f..20a20c6ee825 100644 --- a/clients/client-swf/README.md +++ b/clients/client-swf/README.md @@ -36,16 +36,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 `SWFClient` and -the commands you need, for example `CountClosedWorkflowExecutionsCommand`: +the commands you need, for example `ListDomainsCommand`: ```js // ES5 example -const { SWFClient, CountClosedWorkflowExecutionsCommand } = require("@aws-sdk/client-swf"); +const { SWFClient, ListDomainsCommand } = require("@aws-sdk/client-swf"); ``` ```ts // ES6+ example -import { SWFClient, CountClosedWorkflowExecutionsCommand } from "@aws-sdk/client-swf"; +import { SWFClient, ListDomainsCommand } from "@aws-sdk/client-swf"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new SWFClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CountClosedWorkflowExecutionsCommand(params); +const command = new ListDomainsCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.SWF({ region: "REGION" }); // async/await. try { - const data = await client.countClosedWorkflowExecutions(params); + const data = await client.listDomains(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .countClosedWorkflowExecutions(params) + .listDomains(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.countClosedWorkflowExecutions(params, (err, data) => { +client.listDomains(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-synthetics/README.md b/clients/client-synthetics/README.md index e1072eeaaa61..ea8fc8075b2f 100644 --- a/clients/client-synthetics/README.md +++ b/clients/client-synthetics/README.md @@ -38,16 +38,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 `SyntheticsClient` and -the commands you need, for example `AssociateResourceCommand`: +the commands you need, for example `ListGroupsCommand`: ```js // ES5 example -const { SyntheticsClient, AssociateResourceCommand } = require("@aws-sdk/client-synthetics"); +const { SyntheticsClient, ListGroupsCommand } = require("@aws-sdk/client-synthetics"); ``` ```ts // ES6+ example -import { SyntheticsClient, AssociateResourceCommand } from "@aws-sdk/client-synthetics"; +import { SyntheticsClient, ListGroupsCommand } from "@aws-sdk/client-synthetics"; ``` ### Usage @@ -66,7 +66,7 @@ const client = new SyntheticsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateResourceCommand(params); +const command = new ListGroupsCommand(params); ``` #### Async/await @@ -145,7 +145,7 @@ const client = new AWS.Synthetics({ region: "REGION" }); // async/await. try { - const data = await client.associateResource(params); + const data = await client.listGroups(params); // process data. } catch (error) { // error handling. @@ -153,7 +153,7 @@ try { // Promises. client - .associateResource(params) + .listGroups(params) .then((data) => { // process data. }) @@ -162,7 +162,7 @@ client }); // callbacks. -client.associateResource(params, (err, data) => { +client.listGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-textract/README.md b/clients/client-textract/README.md index 5a81abb6964d..de68e1fc22d5 100644 --- a/clients/client-textract/README.md +++ b/clients/client-textract/README.md @@ -25,16 +25,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 `TextractClient` and -the commands you need, for example `AnalyzeDocumentCommand`: +the commands you need, for example `GetDocumentAnalysisCommand`: ```js // ES5 example -const { TextractClient, AnalyzeDocumentCommand } = require("@aws-sdk/client-textract"); +const { TextractClient, GetDocumentAnalysisCommand } = require("@aws-sdk/client-textract"); ``` ```ts // ES6+ example -import { TextractClient, AnalyzeDocumentCommand } from "@aws-sdk/client-textract"; +import { TextractClient, GetDocumentAnalysisCommand } from "@aws-sdk/client-textract"; ``` ### Usage @@ -53,7 +53,7 @@ const client = new TextractClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AnalyzeDocumentCommand(params); +const command = new GetDocumentAnalysisCommand(params); ``` #### Async/await @@ -132,7 +132,7 @@ const client = new AWS.Textract({ region: "REGION" }); // async/await. try { - const data = await client.analyzeDocument(params); + const data = await client.getDocumentAnalysis(params); // process data. } catch (error) { // error handling. @@ -140,7 +140,7 @@ try { // Promises. client - .analyzeDocument(params) + .getDocumentAnalysis(params) .then((data) => { // process data. }) @@ -149,7 +149,7 @@ client }); // callbacks. -client.analyzeDocument(params, (err, data) => { +client.getDocumentAnalysis(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-timestream-query/README.md b/clients/client-timestream-query/README.md index cd82c68b27a3..c62938cb86bb 100644 --- a/clients/client-timestream-query/README.md +++ b/clients/client-timestream-query/README.md @@ -26,16 +26,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 `TimestreamQueryClient` and -the commands you need, for example `CancelQueryCommand`: +the commands you need, for example `ListScheduledQueriesCommand`: ```js // ES5 example -const { TimestreamQueryClient, CancelQueryCommand } = require("@aws-sdk/client-timestream-query"); +const { TimestreamQueryClient, ListScheduledQueriesCommand } = require("@aws-sdk/client-timestream-query"); ``` ```ts // ES6+ example -import { TimestreamQueryClient, CancelQueryCommand } from "@aws-sdk/client-timestream-query"; +import { TimestreamQueryClient, ListScheduledQueriesCommand } from "@aws-sdk/client-timestream-query"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new TimestreamQueryClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelQueryCommand(params); +const command = new ListScheduledQueriesCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.TimestreamQuery({ region: "REGION" }); // async/await. try { - const data = await client.cancelQuery(params); + const data = await client.listScheduledQueries(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .cancelQuery(params) + .listScheduledQueries(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.cancelQuery(params, (err, data) => { +client.listScheduledQueries(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-timestream-write/README.md b/clients/client-timestream-write/README.md index f4d2f19055d3..168ec8594172 100644 --- a/clients/client-timestream-write/README.md +++ b/clients/client-timestream-write/README.md @@ -36,16 +36,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 `TimestreamWriteClient` and -the commands you need, for example `CreateBatchLoadTaskCommand`: +the commands you need, for example `ListTablesCommand`: ```js // ES5 example -const { TimestreamWriteClient, CreateBatchLoadTaskCommand } = require("@aws-sdk/client-timestream-write"); +const { TimestreamWriteClient, ListTablesCommand } = require("@aws-sdk/client-timestream-write"); ``` ```ts // ES6+ example -import { TimestreamWriteClient, CreateBatchLoadTaskCommand } from "@aws-sdk/client-timestream-write"; +import { TimestreamWriteClient, ListTablesCommand } from "@aws-sdk/client-timestream-write"; ``` ### Usage @@ -64,7 +64,7 @@ const client = new TimestreamWriteClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateBatchLoadTaskCommand(params); +const command = new ListTablesCommand(params); ``` #### Async/await @@ -143,7 +143,7 @@ const client = new AWS.TimestreamWrite({ region: "REGION" }); // async/await. try { - const data = await client.createBatchLoadTask(params); + const data = await client.listTables(params); // process data. } catch (error) { // error handling. @@ -151,7 +151,7 @@ try { // Promises. client - .createBatchLoadTask(params) + .listTables(params) .then((data) => { // process data. }) @@ -160,7 +160,7 @@ client }); // callbacks. -client.createBatchLoadTask(params, (err, data) => { +client.listTables(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-tnb/README.md b/clients/client-tnb/README.md index e7b97eb6f500..032fc8804472 100644 --- a/clients/client-tnb/README.md +++ b/clients/client-tnb/README.md @@ -23,16 +23,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 `TnbClient` and -the commands you need, for example `CancelSolNetworkOperationCommand`: +the commands you need, for example `ListSolFunctionPackagesCommand`: ```js // ES5 example -const { TnbClient, CancelSolNetworkOperationCommand } = require("@aws-sdk/client-tnb"); +const { TnbClient, ListSolFunctionPackagesCommand } = require("@aws-sdk/client-tnb"); ``` ```ts // ES6+ example -import { TnbClient, CancelSolNetworkOperationCommand } from "@aws-sdk/client-tnb"; +import { TnbClient, ListSolFunctionPackagesCommand } from "@aws-sdk/client-tnb"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new TnbClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CancelSolNetworkOperationCommand(params); +const command = new ListSolFunctionPackagesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Tnb({ region: "REGION" }); // async/await. try { - const data = await client.cancelSolNetworkOperation(params); + const data = await client.listSolFunctionPackages(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .cancelSolNetworkOperation(params) + .listSolFunctionPackages(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.cancelSolNetworkOperation(params, (err, data) => { +client.listSolFunctionPackages(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-transcribe/README.md b/clients/client-transcribe/README.md index 52dbe0cc0222..76148fef0b20 100644 --- a/clients/client-transcribe/README.md +++ b/clients/client-transcribe/README.md @@ -44,16 +44,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 `TranscribeClient` and -the commands you need, for example `CreateCallAnalyticsCategoryCommand`: +the commands you need, for example `ListVocabulariesCommand`: ```js // ES5 example -const { TranscribeClient, CreateCallAnalyticsCategoryCommand } = require("@aws-sdk/client-transcribe"); +const { TranscribeClient, ListVocabulariesCommand } = require("@aws-sdk/client-transcribe"); ``` ```ts // ES6+ example -import { TranscribeClient, CreateCallAnalyticsCategoryCommand } from "@aws-sdk/client-transcribe"; +import { TranscribeClient, ListVocabulariesCommand } from "@aws-sdk/client-transcribe"; ``` ### Usage @@ -72,7 +72,7 @@ const client = new TranscribeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateCallAnalyticsCategoryCommand(params); +const command = new ListVocabulariesCommand(params); ``` #### Async/await @@ -151,7 +151,7 @@ const client = new AWS.Transcribe({ region: "REGION" }); // async/await. try { - const data = await client.createCallAnalyticsCategory(params); + const data = await client.listVocabularies(params); // process data. } catch (error) { // error handling. @@ -159,7 +159,7 @@ try { // Promises. client - .createCallAnalyticsCategory(params) + .listVocabularies(params) .then((data) => { // process data. }) @@ -168,7 +168,7 @@ client }); // callbacks. -client.createCallAnalyticsCategory(params, (err, data) => { +client.listVocabularies(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-transfer/README.md b/clients/client-transfer/README.md index 5c0968cc954b..1b34aa38a261 100644 --- a/clients/client-transfer/README.md +++ b/clients/client-transfer/README.md @@ -32,16 +32,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 `TransferClient` and -the commands you need, for example `CreateAccessCommand`: +the commands you need, for example `ListServersCommand`: ```js // ES5 example -const { TransferClient, CreateAccessCommand } = require("@aws-sdk/client-transfer"); +const { TransferClient, ListServersCommand } = require("@aws-sdk/client-transfer"); ``` ```ts // ES6+ example -import { TransferClient, CreateAccessCommand } from "@aws-sdk/client-transfer"; +import { TransferClient, ListServersCommand } from "@aws-sdk/client-transfer"; ``` ### Usage @@ -60,7 +60,7 @@ const client = new TransferClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAccessCommand(params); +const command = new ListServersCommand(params); ``` #### Async/await @@ -139,7 +139,7 @@ const client = new AWS.Transfer({ region: "REGION" }); // async/await. try { - const data = await client.createAccess(params); + const data = await client.listServers(params); // process data. } catch (error) { // error handling. @@ -147,7 +147,7 @@ try { // Promises. client - .createAccess(params) + .listServers(params) .then((data) => { // process data. }) @@ -156,7 +156,7 @@ client }); // callbacks. -client.createAccess(params, (err, data) => { +client.listServers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-translate/README.md b/clients/client-translate/README.md index 29652d71f4bb..bb9ab18556d6 100644 --- a/clients/client-translate/README.md +++ b/clients/client-translate/README.md @@ -23,16 +23,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 `TranslateClient` and -the commands you need, for example `CreateParallelDataCommand`: +the commands you need, for example `ListLanguagesCommand`: ```js // ES5 example -const { TranslateClient, CreateParallelDataCommand } = require("@aws-sdk/client-translate"); +const { TranslateClient, ListLanguagesCommand } = require("@aws-sdk/client-translate"); ``` ```ts // ES6+ example -import { TranslateClient, CreateParallelDataCommand } from "@aws-sdk/client-translate"; +import { TranslateClient, ListLanguagesCommand } from "@aws-sdk/client-translate"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new TranslateClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateParallelDataCommand(params); +const command = new ListLanguagesCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.Translate({ region: "REGION" }); // async/await. try { - const data = await client.createParallelData(params); + const data = await client.listLanguages(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .createParallelData(params) + .listLanguages(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.createParallelData(params, (err, data) => { +client.listLanguages(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-verifiedpermissions/README.md b/clients/client-verifiedpermissions/README.md index d98a1938b4ae..041e59041aa5 100644 --- a/clients/client-verifiedpermissions/README.md +++ b/clients/client-verifiedpermissions/README.md @@ -87,16 +87,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 `VerifiedPermissionsClient` and -the commands you need, for example `CreateIdentitySourceCommand`: +the commands you need, for example `ListPolicyStoresCommand`: ```js // ES5 example -const { VerifiedPermissionsClient, CreateIdentitySourceCommand } = require("@aws-sdk/client-verifiedpermissions"); +const { VerifiedPermissionsClient, ListPolicyStoresCommand } = require("@aws-sdk/client-verifiedpermissions"); ``` ```ts // ES6+ example -import { VerifiedPermissionsClient, CreateIdentitySourceCommand } from "@aws-sdk/client-verifiedpermissions"; +import { VerifiedPermissionsClient, ListPolicyStoresCommand } from "@aws-sdk/client-verifiedpermissions"; ``` ### Usage @@ -115,7 +115,7 @@ const client = new VerifiedPermissionsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateIdentitySourceCommand(params); +const command = new ListPolicyStoresCommand(params); ``` #### Async/await @@ -194,7 +194,7 @@ const client = new AWS.VerifiedPermissions({ region: "REGION" }); // async/await. try { - const data = await client.createIdentitySource(params); + const data = await client.listPolicyStores(params); // process data. } catch (error) { // error handling. @@ -202,7 +202,7 @@ try { // Promises. client - .createIdentitySource(params) + .listPolicyStores(params) .then((data) => { // process data. }) @@ -211,7 +211,7 @@ client }); // callbacks. -client.createIdentitySource(params, (err, data) => { +client.listPolicyStores(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-voice-id/README.md b/clients/client-voice-id/README.md index cf92f29a3ba8..1a7180319c3e 100644 --- a/clients/client-voice-id/README.md +++ b/clients/client-voice-id/README.md @@ -24,16 +24,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 `VoiceIDClient` and -the commands you need, for example `AssociateFraudsterCommand`: +the commands you need, for example `ListDomainsCommand`: ```js // ES5 example -const { VoiceIDClient, AssociateFraudsterCommand } = require("@aws-sdk/client-voice-id"); +const { VoiceIDClient, ListDomainsCommand } = require("@aws-sdk/client-voice-id"); ``` ```ts // ES6+ example -import { VoiceIDClient, AssociateFraudsterCommand } from "@aws-sdk/client-voice-id"; +import { VoiceIDClient, ListDomainsCommand } from "@aws-sdk/client-voice-id"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new VoiceIDClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateFraudsterCommand(params); +const command = new ListDomainsCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.VoiceID({ region: "REGION" }); // async/await. try { - const data = await client.associateFraudster(params); + const data = await client.listDomains(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .associateFraudster(params) + .listDomains(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.associateFraudster(params, (err, data) => { +client.listDomains(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-vpc-lattice/README.md b/clients/client-vpc-lattice/README.md index 4fb0b9aa4344..e693a9cf4363 100644 --- a/clients/client-vpc-lattice/README.md +++ b/clients/client-vpc-lattice/README.md @@ -27,16 +27,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 `VPCLatticeClient` and -the commands you need, for example `BatchUpdateRuleCommand`: +the commands you need, for example `ListServicesCommand`: ```js // ES5 example -const { VPCLatticeClient, BatchUpdateRuleCommand } = require("@aws-sdk/client-vpc-lattice"); +const { VPCLatticeClient, ListServicesCommand } = require("@aws-sdk/client-vpc-lattice"); ``` ```ts // ES6+ example -import { VPCLatticeClient, BatchUpdateRuleCommand } from "@aws-sdk/client-vpc-lattice"; +import { VPCLatticeClient, ListServicesCommand } from "@aws-sdk/client-vpc-lattice"; ``` ### Usage @@ -55,7 +55,7 @@ const client = new VPCLatticeClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchUpdateRuleCommand(params); +const command = new ListServicesCommand(params); ``` #### Async/await @@ -134,7 +134,7 @@ const client = new AWS.VPCLattice({ region: "REGION" }); // async/await. try { - const data = await client.batchUpdateRule(params); + const data = await client.listServices(params); // process data. } catch (error) { // error handling. @@ -142,7 +142,7 @@ try { // Promises. client - .batchUpdateRule(params) + .listServices(params) .then((data) => { // process data. }) @@ -151,7 +151,7 @@ client }); // callbacks. -client.batchUpdateRule(params, (err, data) => { +client.listServices(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-waf-regional/README.md b/clients/client-waf-regional/README.md index 6c9516878ab5..be560c4a2e0c 100644 --- a/clients/client-waf-regional/README.md +++ b/clients/client-waf-regional/README.md @@ -33,16 +33,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 `WAFRegionalClient` and -the commands you need, for example `AssociateWebACLCommand`: +the commands you need, for example `ListIPSetsCommand`: ```js // ES5 example -const { WAFRegionalClient, AssociateWebACLCommand } = require("@aws-sdk/client-waf-regional"); +const { WAFRegionalClient, ListIPSetsCommand } = require("@aws-sdk/client-waf-regional"); ``` ```ts // ES6+ example -import { WAFRegionalClient, AssociateWebACLCommand } from "@aws-sdk/client-waf-regional"; +import { WAFRegionalClient, ListIPSetsCommand } from "@aws-sdk/client-waf-regional"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new WAFRegionalClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateWebACLCommand(params); +const command = new ListIPSetsCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.WAFRegional({ region: "REGION" }); // async/await. try { - const data = await client.associateWebACL(params); + const data = await client.listIPSets(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .associateWebACL(params) + .listIPSets(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.associateWebACL(params, (err, data) => { +client.listIPSets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-waf/README.md b/clients/client-waf/README.md index aebfcb89bdd8..e181400f368c 100644 --- a/clients/client-waf/README.md +++ b/clients/client-waf/README.md @@ -33,16 +33,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 `WAFClient` and -the commands you need, for example `CreateByteMatchSetCommand`: +the commands you need, for example `ListIPSetsCommand`: ```js // ES5 example -const { WAFClient, CreateByteMatchSetCommand } = require("@aws-sdk/client-waf"); +const { WAFClient, ListIPSetsCommand } = require("@aws-sdk/client-waf"); ``` ```ts // ES6+ example -import { WAFClient, CreateByteMatchSetCommand } from "@aws-sdk/client-waf"; +import { WAFClient, ListIPSetsCommand } from "@aws-sdk/client-waf"; ``` ### Usage @@ -61,7 +61,7 @@ const client = new WAFClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateByteMatchSetCommand(params); +const command = new ListIPSetsCommand(params); ``` #### Async/await @@ -140,7 +140,7 @@ const client = new AWS.WAF({ region: "REGION" }); // async/await. try { - const data = await client.createByteMatchSet(params); + const data = await client.listIPSets(params); // process data. } catch (error) { // error handling. @@ -148,7 +148,7 @@ try { // Promises. client - .createByteMatchSet(params) + .listIPSets(params) .then((data) => { // process data. }) @@ -157,7 +157,7 @@ client }); // callbacks. -client.createByteMatchSet(params, (err, data) => { +client.listIPSets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-wafv2/README.md b/clients/client-wafv2/README.md index 72e00d7677d2..eaa8ffb32ba2 100644 --- a/clients/client-wafv2/README.md +++ b/clients/client-wafv2/README.md @@ -81,16 +81,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 `WAFV2Client` and -the commands you need, for example `AssociateWebACLCommand`: +the commands you need, for example `ListAPIKeysCommand`: ```js // ES5 example -const { WAFV2Client, AssociateWebACLCommand } = require("@aws-sdk/client-wafv2"); +const { WAFV2Client, ListAPIKeysCommand } = require("@aws-sdk/client-wafv2"); ``` ```ts // ES6+ example -import { WAFV2Client, AssociateWebACLCommand } from "@aws-sdk/client-wafv2"; +import { WAFV2Client, ListAPIKeysCommand } from "@aws-sdk/client-wafv2"; ``` ### Usage @@ -109,7 +109,7 @@ const client = new WAFV2Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateWebACLCommand(params); +const command = new ListAPIKeysCommand(params); ``` #### Async/await @@ -188,7 +188,7 @@ const client = new AWS.WAFV2({ region: "REGION" }); // async/await. try { - const data = await client.associateWebACL(params); + const data = await client.listAPIKeys(params); // process data. } catch (error) { // error handling. @@ -196,7 +196,7 @@ try { // Promises. client - .associateWebACL(params) + .listAPIKeys(params) .then((data) => { // process data. }) @@ -205,7 +205,7 @@ client }); // callbacks. -client.associateWebACL(params, (err, data) => { +client.listAPIKeys(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-wellarchitected/README.md b/clients/client-wellarchitected/README.md index d5db20c20742..7004ad213d55 100644 --- a/clients/client-wellarchitected/README.md +++ b/clients/client-wellarchitected/README.md @@ -29,16 +29,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 `WellArchitectedClient` and -the commands you need, for example `AssociateLensesCommand`: +the commands you need, for example `ListLensesCommand`: ```js // ES5 example -const { WellArchitectedClient, AssociateLensesCommand } = require("@aws-sdk/client-wellarchitected"); +const { WellArchitectedClient, ListLensesCommand } = require("@aws-sdk/client-wellarchitected"); ``` ```ts // ES6+ example -import { WellArchitectedClient, AssociateLensesCommand } from "@aws-sdk/client-wellarchitected"; +import { WellArchitectedClient, ListLensesCommand } from "@aws-sdk/client-wellarchitected"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new WellArchitectedClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateLensesCommand(params); +const command = new ListLensesCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.WellArchitected({ region: "REGION" }); // async/await. try { - const data = await client.associateLenses(params); + const data = await client.listLenses(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .associateLenses(params) + .listLenses(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.associateLenses(params, (err, data) => { +client.listLenses(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-wisdom/README.md b/clients/client-wisdom/README.md index a270aff08ea0..e773cf15598d 100644 --- a/clients/client-wisdom/README.md +++ b/clients/client-wisdom/README.md @@ -26,16 +26,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 `WisdomClient` and -the commands you need, for example `CreateAssistantCommand`: +the commands you need, for example `ListAssistantsCommand`: ```js // ES5 example -const { WisdomClient, CreateAssistantCommand } = require("@aws-sdk/client-wisdom"); +const { WisdomClient, ListAssistantsCommand } = require("@aws-sdk/client-wisdom"); ``` ```ts // ES6+ example -import { WisdomClient, CreateAssistantCommand } from "@aws-sdk/client-wisdom"; +import { WisdomClient, ListAssistantsCommand } from "@aws-sdk/client-wisdom"; ``` ### Usage @@ -54,7 +54,7 @@ const client = new WisdomClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new CreateAssistantCommand(params); +const command = new ListAssistantsCommand(params); ``` #### Async/await @@ -133,7 +133,7 @@ const client = new AWS.Wisdom({ region: "REGION" }); // async/await. try { - const data = await client.createAssistant(params); + const data = await client.listAssistants(params); // process data. } catch (error) { // error handling. @@ -141,7 +141,7 @@ try { // Promises. client - .createAssistant(params) + .listAssistants(params) .then((data) => { // process data. }) @@ -150,7 +150,7 @@ client }); // callbacks. -client.createAssistant(params, (err, data) => { +client.listAssistants(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-workdocs/README.md b/clients/client-workdocs/README.md index b8132b094f46..161b946e1ad3 100644 --- a/clients/client-workdocs/README.md +++ b/clients/client-workdocs/README.md @@ -81,16 +81,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 `WorkDocsClient` and -the commands you need, for example `AbortDocumentVersionUploadCommand`: +the commands you need, for example `DescribeUsersCommand`: ```js // ES5 example -const { WorkDocsClient, AbortDocumentVersionUploadCommand } = require("@aws-sdk/client-workdocs"); +const { WorkDocsClient, DescribeUsersCommand } = require("@aws-sdk/client-workdocs"); ``` ```ts // ES6+ example -import { WorkDocsClient, AbortDocumentVersionUploadCommand } from "@aws-sdk/client-workdocs"; +import { WorkDocsClient, DescribeUsersCommand } from "@aws-sdk/client-workdocs"; ``` ### Usage @@ -109,7 +109,7 @@ const client = new WorkDocsClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AbortDocumentVersionUploadCommand(params); +const command = new DescribeUsersCommand(params); ``` #### Async/await @@ -188,7 +188,7 @@ const client = new AWS.WorkDocs({ region: "REGION" }); // async/await. try { - const data = await client.abortDocumentVersionUpload(params); + const data = await client.describeUsers(params); // process data. } catch (error) { // error handling. @@ -196,7 +196,7 @@ try { // Promises. client - .abortDocumentVersionUpload(params) + .describeUsers(params) .then((data) => { // process data. }) @@ -205,7 +205,7 @@ client }); // callbacks. -client.abortDocumentVersionUpload(params, (err, data) => { +client.describeUsers(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-worklink/README.md b/clients/client-worklink/README.md index 303c7c5fd1c8..c815e677e64c 100644 --- a/clients/client-worklink/README.md +++ b/clients/client-worklink/README.md @@ -29,16 +29,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 `WorkLinkClient` and -the commands you need, for example `AssociateDomainCommand`: +the commands you need, for example `ListFleetsCommand`: ```js // ES5 example -const { WorkLinkClient, AssociateDomainCommand } = require("@aws-sdk/client-worklink"); +const { WorkLinkClient, ListFleetsCommand } = require("@aws-sdk/client-worklink"); ``` ```ts // ES6+ example -import { WorkLinkClient, AssociateDomainCommand } from "@aws-sdk/client-worklink"; +import { WorkLinkClient, ListFleetsCommand } from "@aws-sdk/client-worklink"; ``` ### Usage @@ -57,7 +57,7 @@ const client = new WorkLinkClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateDomainCommand(params); +const command = new ListFleetsCommand(params); ``` #### Async/await @@ -136,7 +136,7 @@ const client = new AWS.WorkLink({ region: "REGION" }); // async/await. try { - const data = await client.associateDomain(params); + const data = await client.listFleets(params); // process data. } catch (error) { // error handling. @@ -144,7 +144,7 @@ try { // Promises. client - .associateDomain(params) + .listFleets(params) .then((data) => { // process data. }) @@ -153,7 +153,7 @@ client }); // callbacks. -client.associateDomain(params, (err, data) => { +client.listFleets(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-workmail/README.md b/clients/client-workmail/README.md index 7d6b8ab0d473..2838617c34b4 100644 --- a/clients/client-workmail/README.md +++ b/clients/client-workmail/README.md @@ -58,16 +58,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 `WorkMailClient` and -the commands you need, for example `AssociateDelegateToResourceCommand`: +the commands you need, for example `ListGroupsCommand`: ```js // ES5 example -const { WorkMailClient, AssociateDelegateToResourceCommand } = require("@aws-sdk/client-workmail"); +const { WorkMailClient, ListGroupsCommand } = require("@aws-sdk/client-workmail"); ``` ```ts // ES6+ example -import { WorkMailClient, AssociateDelegateToResourceCommand } from "@aws-sdk/client-workmail"; +import { WorkMailClient, ListGroupsCommand } from "@aws-sdk/client-workmail"; ``` ### Usage @@ -86,7 +86,7 @@ const client = new WorkMailClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateDelegateToResourceCommand(params); +const command = new ListGroupsCommand(params); ``` #### Async/await @@ -165,7 +165,7 @@ const client = new AWS.WorkMail({ region: "REGION" }); // async/await. try { - const data = await client.associateDelegateToResource(params); + const data = await client.listGroups(params); // process data. } catch (error) { // error handling. @@ -173,7 +173,7 @@ try { // Promises. client - .associateDelegateToResource(params) + .listGroups(params) .then((data) => { // process data. }) @@ -182,7 +182,7 @@ client }); // callbacks. -client.associateDelegateToResource(params, (err, data) => { +client.listGroups(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-workspaces-web/README.md b/clients/client-workspaces-web/README.md index 986ecfa413b9..d5970be3f9e1 100644 --- a/clients/client-workspaces-web/README.md +++ b/clients/client-workspaces-web/README.md @@ -28,16 +28,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 `WorkSpacesWebClient` and -the commands you need, for example `AssociateBrowserSettingsCommand`: +the commands you need, for example `ListPortalsCommand`: ```js // ES5 example -const { WorkSpacesWebClient, AssociateBrowserSettingsCommand } = require("@aws-sdk/client-workspaces-web"); +const { WorkSpacesWebClient, ListPortalsCommand } = require("@aws-sdk/client-workspaces-web"); ``` ```ts // ES6+ example -import { WorkSpacesWebClient, AssociateBrowserSettingsCommand } from "@aws-sdk/client-workspaces-web"; +import { WorkSpacesWebClient, ListPortalsCommand } from "@aws-sdk/client-workspaces-web"; ``` ### Usage @@ -56,7 +56,7 @@ const client = new WorkSpacesWebClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateBrowserSettingsCommand(params); +const command = new ListPortalsCommand(params); ``` #### Async/await @@ -135,7 +135,7 @@ const client = new AWS.WorkSpacesWeb({ region: "REGION" }); // async/await. try { - const data = await client.associateBrowserSettings(params); + const data = await client.listPortals(params); // process data. } catch (error) { // error handling. @@ -143,7 +143,7 @@ try { // Promises. client - .associateBrowserSettings(params) + .listPortals(params) .then((data) => { // process data. }) @@ -152,7 +152,7 @@ client }); // callbacks. -client.associateBrowserSettings(params, (err, data) => { +client.listPortals(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-workspaces/README.md b/clients/client-workspaces/README.md index 8c24d8284bc5..d70e48885047 100644 --- a/clients/client-workspaces/README.md +++ b/clients/client-workspaces/README.md @@ -40,16 +40,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 `WorkSpacesClient` and -the commands you need, for example `AssociateConnectionAliasCommand`: +the commands you need, for example `ListAvailableManagementCidrRangesCommand`: ```js // ES5 example -const { WorkSpacesClient, AssociateConnectionAliasCommand } = require("@aws-sdk/client-workspaces"); +const { WorkSpacesClient, ListAvailableManagementCidrRangesCommand } = require("@aws-sdk/client-workspaces"); ``` ```ts // ES6+ example -import { WorkSpacesClient, AssociateConnectionAliasCommand } from "@aws-sdk/client-workspaces"; +import { WorkSpacesClient, ListAvailableManagementCidrRangesCommand } from "@aws-sdk/client-workspaces"; ``` ### Usage @@ -68,7 +68,7 @@ const client = new WorkSpacesClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AssociateConnectionAliasCommand(params); +const command = new ListAvailableManagementCidrRangesCommand(params); ``` #### Async/await @@ -147,7 +147,7 @@ const client = new AWS.WorkSpaces({ region: "REGION" }); // async/await. try { - const data = await client.associateConnectionAlias(params); + const data = await client.listAvailableManagementCidrRanges(params); // process data. } catch (error) { // error handling. @@ -155,7 +155,7 @@ try { // Promises. client - .associateConnectionAlias(params) + .listAvailableManagementCidrRanges(params) .then((data) => { // process data. }) @@ -164,7 +164,7 @@ client }); // callbacks. -client.associateConnectionAlias(params, (err, data) => { +client.listAvailableManagementCidrRanges(params, (err, data) => { // process err and data. }); ``` diff --git a/clients/client-xray/README.md b/clients/client-xray/README.md index 9fca5145ee2c..0e95e2ce3ec0 100644 --- a/clients/client-xray/README.md +++ b/clients/client-xray/README.md @@ -24,16 +24,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 `XRayClient` and -the commands you need, for example `BatchGetTracesCommand`: +the commands you need, for example `ListResourcePoliciesCommand`: ```js // ES5 example -const { XRayClient, BatchGetTracesCommand } = require("@aws-sdk/client-xray"); +const { XRayClient, ListResourcePoliciesCommand } = require("@aws-sdk/client-xray"); ``` ```ts // ES6+ example -import { XRayClient, BatchGetTracesCommand } from "@aws-sdk/client-xray"; +import { XRayClient, ListResourcePoliciesCommand } from "@aws-sdk/client-xray"; ``` ### Usage @@ -52,7 +52,7 @@ const client = new XRayClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new BatchGetTracesCommand(params); +const command = new ListResourcePoliciesCommand(params); ``` #### Async/await @@ -131,7 +131,7 @@ const client = new AWS.XRay({ region: "REGION" }); // async/await. try { - const data = await client.batchGetTraces(params); + const data = await client.listResourcePolicies(params); // process data. } catch (error) { // error handling. @@ -139,7 +139,7 @@ try { // Promises. client - .batchGetTraces(params) + .listResourcePolicies(params) .then((data) => { // process data. }) @@ -148,7 +148,7 @@ client }); // callbacks. -client.batchGetTraces(params, (err, data) => { +client.listResourcePolicies(params, (err, data) => { // process err and data. }); ``` diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java index 4e38a30eb20a..30cd4b9b4a74 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java @@ -19,8 +19,10 @@ import java.util.Arrays; import java.util.Calendar; +import java.util.Collection; import java.util.Comparator; import java.util.List; +import java.util.Optional; import java.util.Set; import java.util.function.BiConsumer; import java.util.function.Consumer; @@ -100,8 +102,11 @@ private void writeAdditionalFiles( resource = resource.replaceAll(Pattern.quote("${documentation}"), Matcher.quoteReplacement(documentation)); TopDownIndex topDownIndex = TopDownIndex.of(model); - OperationShape firstOperation = topDownIndex.getContainedOperations(service).iterator().next(); - String operationName = firstOperation.getId().getName(service); + + OperationShape sampleOperation = + getPreferredExampleOperation(topDownIndex.getContainedOperations(service), model); + + String operationName = sampleOperation.getId().getName(service); resource = resource.replaceAll(Pattern.quote("${commandName}"), operationName); resource = resource.replaceAll(Pattern.quote("${operationName}"), operationName.substring(0, 1).toLowerCase() + operationName.substring(1)); @@ -111,6 +116,61 @@ private void writeAdditionalFiles( }); } + /** + * Tries to find an operation with a read-like name prefix "get", "describe", "list" etc. + * And has few or no required input parameters. + */ + private OperationShape getPreferredExampleOperation(Collection operations, Model model) { + // Heuristic score used to rank the candidate operations. + long candidateOperationScore = Long.MIN_VALUE; + OperationShape candidateOperation = null; + + for (OperationShape operation : operations) { + long heuristicScore = 0; + + String name = operation.getId().getName().toLowerCase(); + + heuristicScore -= name.length() / 6; + + if (name.startsWith("list")) { + heuristicScore += 20; + } else if ( + name.startsWith("get") + || name.startsWith("describe") + || name.startsWith("retrieve") + || name.startsWith("fetch") + ) { + heuristicScore += 10; + } else if ( + name.startsWith("delete") + || name.startsWith("remove") + || name.startsWith("stop") + || name.startsWith("abort") + || name.startsWith("terminate") + || name.startsWith("deactivate") + || name.startsWith("toggle") + ) { + heuristicScore -= 20; + } + + Optional input = model.getShape(operation.getInputShape()); + if (input.isPresent()) { + long inputFields = input.get().getAllMembers().values().stream() + .filter(member -> member.isRequired()) + .count(); + + heuristicScore -= inputFields; + } + + if (heuristicScore > candidateOperationScore) { + candidateOperation = operation; + candidateOperationScore = heuristicScore; + } + } + + return candidateOperation; + } + private void writeOperationList(TypeScriptWriter writer, Model model, TypeScriptSettings settings) { writer.write("## Client Commands (Operations List)"); writer.write(""); diff --git a/private/aws-protocoltests-ec2/README.md b/private/aws-protocoltests-ec2/README.md index ff2e00dd7836..1a1ed0b0e681 100644 --- a/private/aws-protocoltests-ec2/README.md +++ b/private/aws-protocoltests-ec2/README.md @@ -23,16 +23,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 `EC2ProtocolClient` and -the commands you need, for example `DatetimeOffsetsCommand`: +the commands you need, for example `QueryListsCommand`: ```js // ES5 example -const { EC2ProtocolClient, DatetimeOffsetsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); +const { EC2ProtocolClient, QueryListsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); ``` ```ts // ES6+ example -import { EC2ProtocolClient, DatetimeOffsetsCommand } from "@aws-sdk/aws-protocoltests-ec2"; +import { EC2ProtocolClient, QueryListsCommand } from "@aws-sdk/aws-protocoltests-ec2"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new EC2ProtocolClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DatetimeOffsetsCommand(params); +const command = new QueryListsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.EC2Protocol({ region: "REGION" }); // async/await. try { - const data = await client.datetimeOffsets(params); + const data = await client.queryLists(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .datetimeOffsets(params) + .queryLists(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.datetimeOffsets(params, (err, data) => { +client.queryLists(params, (err, data) => { // process err and data. }); ``` diff --git a/private/aws-protocoltests-json-10/README.md b/private/aws-protocoltests-json-10/README.md index f384c041acf7..9ff2d9daaa1d 100644 --- a/private/aws-protocoltests-json-10/README.md +++ b/private/aws-protocoltests-json-10/README.md @@ -21,16 +21,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 `JSONRPC10Client` and -the commands you need, for example `EmptyInputAndEmptyOutputCommand`: +the commands you need, for example `JsonUnionsCommand`: ```js // ES5 example -const { JSONRPC10Client, EmptyInputAndEmptyOutputCommand } = require("@aws-sdk/aws-protocoltests-json-10"); +const { JSONRPC10Client, JsonUnionsCommand } = require("@aws-sdk/aws-protocoltests-json-10"); ``` ```ts // ES6+ example -import { JSONRPC10Client, EmptyInputAndEmptyOutputCommand } from "@aws-sdk/aws-protocoltests-json-10"; +import { JSONRPC10Client, JsonUnionsCommand } from "@aws-sdk/aws-protocoltests-json-10"; ``` ### Usage @@ -49,7 +49,7 @@ const client = new JSONRPC10Client({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new EmptyInputAndEmptyOutputCommand(params); +const command = new JsonUnionsCommand(params); ``` #### Async/await @@ -128,7 +128,7 @@ const client = new AWS.JSONRPC10({ region: "REGION" }); // async/await. try { - const data = await client.emptyInputAndEmptyOutput(params); + const data = await client.jsonUnions(params); // process data. } catch (error) { // error handling. @@ -136,7 +136,7 @@ try { // Promises. client - .emptyInputAndEmptyOutput(params) + .jsonUnions(params) .then((data) => { // process data. }) @@ -145,7 +145,7 @@ client }); // callbacks. -client.emptyInputAndEmptyOutput(params, (err, data) => { +client.jsonUnions(params, (err, data) => { // process err and data. }); ``` diff --git a/private/aws-protocoltests-json/README.md b/private/aws-protocoltests-json/README.md index 1aa5dd325a90..cfbec31460ec 100644 --- a/private/aws-protocoltests-json/README.md +++ b/private/aws-protocoltests-json/README.md @@ -21,16 +21,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 `JsonProtocolClient` and -the commands you need, for example `DatetimeOffsetsCommand`: +the commands you need, for example `JsonEnumsCommand`: ```js // ES5 example -const { JsonProtocolClient, DatetimeOffsetsCommand } = require("@aws-sdk/aws-protocoltests-json"); +const { JsonProtocolClient, JsonEnumsCommand } = require("@aws-sdk/aws-protocoltests-json"); ``` ```ts // ES6+ example -import { JsonProtocolClient, DatetimeOffsetsCommand } from "@aws-sdk/aws-protocoltests-json"; +import { JsonProtocolClient, JsonEnumsCommand } from "@aws-sdk/aws-protocoltests-json"; ``` ### Usage @@ -49,7 +49,7 @@ const client = new JsonProtocolClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DatetimeOffsetsCommand(params); +const command = new JsonEnumsCommand(params); ``` #### Async/await @@ -128,7 +128,7 @@ const client = new AWS.JsonProtocol({ region: "REGION" }); // async/await. try { - const data = await client.datetimeOffsets(params); + const data = await client.jsonEnums(params); // process data. } catch (error) { // error handling. @@ -136,7 +136,7 @@ try { // Promises. client - .datetimeOffsets(params) + .jsonEnums(params) .then((data) => { // process data. }) @@ -145,7 +145,7 @@ client }); // callbacks. -client.datetimeOffsets(params, (err, data) => { +client.jsonEnums(params, (err, data) => { // process err and data. }); ``` diff --git a/private/aws-protocoltests-query/README.md b/private/aws-protocoltests-query/README.md index c756d7b81d8d..1158cd7e3024 100644 --- a/private/aws-protocoltests-query/README.md +++ b/private/aws-protocoltests-query/README.md @@ -23,16 +23,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 `QueryProtocolClient` and -the commands you need, for example `DatetimeOffsetsCommand`: +the commands you need, for example `QueryListsCommand`: ```js // ES5 example -const { QueryProtocolClient, DatetimeOffsetsCommand } = require("@aws-sdk/aws-protocoltests-query"); +const { QueryProtocolClient, QueryListsCommand } = require("@aws-sdk/aws-protocoltests-query"); ``` ```ts // ES6+ example -import { QueryProtocolClient, DatetimeOffsetsCommand } from "@aws-sdk/aws-protocoltests-query"; +import { QueryProtocolClient, QueryListsCommand } from "@aws-sdk/aws-protocoltests-query"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new QueryProtocolClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new DatetimeOffsetsCommand(params); +const command = new QueryListsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.QueryProtocol({ region: "REGION" }); // async/await. try { - const data = await client.datetimeOffsets(params); + const data = await client.queryLists(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .datetimeOffsets(params) + .queryLists(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.datetimeOffsets(params, (err, data) => { +client.queryLists(params, (err, data) => { // process err and data. }); ``` diff --git a/private/aws-protocoltests-restjson/README.md b/private/aws-protocoltests-restjson/README.md index ee509f24db62..23bd92a4f8ea 100644 --- a/private/aws-protocoltests-restjson/README.md +++ b/private/aws-protocoltests-restjson/README.md @@ -23,16 +23,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 `RestJsonProtocolClient` and -the commands you need, for example `AllQueryStringTypesCommand`: +the commands you need, for example `JsonBlobsCommand`: ```js // ES5 example -const { RestJsonProtocolClient, AllQueryStringTypesCommand } = require("@aws-sdk/aws-protocoltests-restjson"); +const { RestJsonProtocolClient, JsonBlobsCommand } = require("@aws-sdk/aws-protocoltests-restjson"); ``` ```ts // ES6+ example -import { RestJsonProtocolClient, AllQueryStringTypesCommand } from "@aws-sdk/aws-protocoltests-restjson"; +import { RestJsonProtocolClient, JsonBlobsCommand } from "@aws-sdk/aws-protocoltests-restjson"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new RestJsonProtocolClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AllQueryStringTypesCommand(params); +const command = new JsonBlobsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.RestJsonProtocol({ region: "REGION" }); // async/await. try { - const data = await client.allQueryStringTypes(params); + const data = await client.jsonBlobs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .allQueryStringTypes(params) + .jsonBlobs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.allQueryStringTypes(params, (err, data) => { +client.jsonBlobs(params, (err, data) => { // process err and data. }); ``` diff --git a/private/aws-protocoltests-restxml/README.md b/private/aws-protocoltests-restxml/README.md index cb0762441493..2d2430ae670a 100644 --- a/private/aws-protocoltests-restxml/README.md +++ b/private/aws-protocoltests-restxml/README.md @@ -23,16 +23,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 `RestXmlProtocolClient` and -the commands you need, for example `AllQueryStringTypesCommand`: +the commands you need, for example `XmlBlobsCommand`: ```js // ES5 example -const { RestXmlProtocolClient, AllQueryStringTypesCommand } = require("@aws-sdk/aws-protocoltests-restxml"); +const { RestXmlProtocolClient, XmlBlobsCommand } = require("@aws-sdk/aws-protocoltests-restxml"); ``` ```ts // ES6+ example -import { RestXmlProtocolClient, AllQueryStringTypesCommand } from "@aws-sdk/aws-protocoltests-restxml"; +import { RestXmlProtocolClient, XmlBlobsCommand } from "@aws-sdk/aws-protocoltests-restxml"; ``` ### Usage @@ -51,7 +51,7 @@ const client = new RestXmlProtocolClient({ region: "REGION" }); const params = { /** input parameters */ }; -const command = new AllQueryStringTypesCommand(params); +const command = new XmlBlobsCommand(params); ``` #### Async/await @@ -130,7 +130,7 @@ const client = new AWS.RestXmlProtocol({ region: "REGION" }); // async/await. try { - const data = await client.allQueryStringTypes(params); + const data = await client.xmlBlobs(params); // process data. } catch (error) { // error handling. @@ -138,7 +138,7 @@ try { // Promises. client - .allQueryStringTypes(params) + .xmlBlobs(params) .then((data) => { // process data. }) @@ -147,7 +147,7 @@ client }); // callbacks. -client.allQueryStringTypes(params, (err, data) => { +client.xmlBlobs(params, (err, data) => { // process err and data. }); ```