Skip to content

docs(clients): add missing await for client.operationName call #2243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const client = new AWS.AccessAnalyzer({ region: "REGION" });

// async/await.
try {
const data = client.createAnalyzer(params);
const data = await client.createAnalyzer(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const client = new AWS.ACMPCA({ region: "REGION" });

// async/await.
try {
const data = client.createCertificateAuthority(params);
const data = await client.createCertificateAuthority(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const client = new AWS.ACM({ region: "REGION" });

// async/await.
try {
const data = client.addTagsToCertificate(params);
const data = await client.addTagsToCertificate(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const client = new AWS.AlexaForBusiness({ region: "REGION" });

// async/await.
try {
const data = client.approveSkill(params);
const data = await client.approveSkill(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const client = new AWS.Amplify({ region: "REGION" });

// async/await.
try {
const data = client.createApp(params);
const data = await client.createApp(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const client = new AWS.AmplifyBackend({ region: "REGION" });

// async/await.
try {
const data = client.cloneBackend(params);
const data = await client.cloneBackend(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const client = new AWS.APIGateway({ region: "REGION" });

// async/await.
try {
const data = client.createApiKey(params);
const data = await client.createApiKey(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewaymanagementapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const client = new AWS.ApiGatewayManagementApi({ region: "REGION" });

// async/await.
try {
const data = client.deleteConnection(params);
const data = await client.deleteConnection(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const client = new AWS.ApiGatewayV2({ region: "REGION" });

// async/await.
try {
const data = client.createApi(params);
const data = await client.createApi(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const client = new AWS.AppMesh({ region: "REGION" });

// async/await.
try {
const data = client.createGatewayRoute(params);
const data = await client.createGatewayRoute(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appconfig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const client = new AWS.AppConfig({ region: "REGION" });

// async/await.
try {
const data = client.createApplication(params);
const data = await client.createApplication(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const client = new AWS.Appflow({ region: "REGION" });

// async/await.
try {
const data = client.createConnectorProfile(params);
const data = await client.createConnectorProfile(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appintegrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const client = new AWS.AppIntegrations({ region: "REGION" });

// async/await.
try {
const data = client.createEventIntegration(params);
const data = await client.createEventIntegration(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-application-auto-scaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const client = new AWS.ApplicationAutoScaling({ region: "REGION" });

// async/await.
try {
const data = client.deleteScalingPolicy(params);
const data = await client.deleteScalingPolicy(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-application-discovery-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const client = new AWS.ApplicationDiscoveryService({ region: "REGION" });

// async/await.
try {
const data = client.associateConfigurationItemsToApplication(params);
const data = await client.associateConfigurationItemsToApplication(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-application-insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const client = new AWS.ApplicationInsights({ region: "REGION" });

// async/await.
try {
const data = client.createApplication(params);
const data = await client.createApplication(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const client = new AWS.AppStream({ region: "REGION" });

// async/await.
try {
const data = client.associateFleet(params);
const data = await client.associateFleet(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const client = new AWS.AppSync({ region: "REGION" });

// async/await.
try {
const data = client.createApiCache(params);
const data = await client.createApiCache(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-athena/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const client = new AWS.Athena({ region: "REGION" });

// async/await.
try {
const data = client.batchGetNamedQuery(params);
const data = await client.batchGetNamedQuery(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-auditmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const client = new AWS.AuditManager({ region: "REGION" });

// async/await.
try {
const data = client.associateAssessmentReportEvidenceFolder(params);
const data = await client.associateAssessmentReportEvidenceFolder(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-auto-scaling-plans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const client = new AWS.AutoScalingPlans({ region: "REGION" });

// async/await.
try {
const data = client.createScalingPlan(params);
const data = await client.createScalingPlan(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-auto-scaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const client = new AWS.AutoScaling({ region: "REGION" });

// async/await.
try {
const data = client.attachInstances(params);
const data = await client.attachInstances(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-backup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const client = new AWS.Backup({ region: "REGION" });

// async/await.
try {
const data = client.createBackupPlan(params);
const data = await client.createBackupPlan(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const client = new AWS.Batch({ region: "REGION" });

// async/await.
try {
const data = client.cancelJob(params);
const data = await client.cancelJob(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-braket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const client = new AWS.Braket({ region: "REGION" });

// async/await.
try {
const data = client.cancelQuantumTask(params);
const data = await client.cancelQuantumTask(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-budgets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const client = new AWS.Budgets({ region: "REGION" });

// async/await.
try {
const data = client.createBudget(params);
const data = await client.createBudget(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-chime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const client = new AWS.Chime({ region: "REGION" });

// async/await.
try {
const data = client.associatePhoneNumbersWithVoiceConnector(params);
const data = await client.associatePhoneNumbersWithVoiceConnector(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloud9/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const client = new AWS.Cloud9({ region: "REGION" });

// async/await.
try {
const data = client.createEnvironmentEC2(params);
const data = await client.createEnvironmentEC2(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-clouddirectory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const client = new AWS.CloudDirectory({ region: "REGION" });

// async/await.
try {
const data = client.addFacetToObject(params);
const data = await client.addFacetToObject(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudformation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const client = new AWS.CloudFormation({ region: "REGION" });

// async/await.
try {
const data = client.cancelUpdateStack(params);
const data = await client.cancelUpdateStack(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudfront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const client = new AWS.CloudFront({ region: "REGION" });

// async/await.
try {
const data = client.createCachePolicy(params);
const data = await client.createCachePolicy(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudhsm-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const client = new AWS.CloudHSMV2({ region: "REGION" });

// async/await.
try {
const data = client.copyBackupToRegion(params);
const data = await client.copyBackupToRegion(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudhsm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const client = new AWS.CloudHSM({ region: "REGION" });

// async/await.
try {
const data = client.addTagsToResource(params);
const data = await client.addTagsToResource(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudsearch-domain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const client = new AWS.CloudSearchDomain({ region: "REGION" });

// async/await.
try {
const data = client.search(params);
const data = await client.search(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const client = new AWS.CloudSearch({ region: "REGION" });

// async/await.
try {
const data = client.buildSuggesters(params);
const data = await client.buildSuggesters(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudtrail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const client = new AWS.CloudTrail({ region: "REGION" });

// async/await.
try {
const data = client.addTags(params);
const data = await client.addTags(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudwatch-events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const client = new AWS.CloudWatchEvents({ region: "REGION" });

// async/await.
try {
const data = client.activateEventSource(params);
const data = await client.activateEventSource(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudwatch-logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const client = new AWS.CloudWatchLogs({ region: "REGION" });

// async/await.
try {
const data = client.associateKmsKey(params);
const data = await client.associateKmsKey(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cloudwatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const client = new AWS.CloudWatch({ region: "REGION" });

// async/await.
try {
const data = client.deleteAlarms(params);
const data = await client.deleteAlarms(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-codeartifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const client = new AWS.Codeartifact({ region: "REGION" });

// async/await.
try {
const data = client.associateExternalConnection(params);
const data = await client.associateExternalConnection(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-codebuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ const client = new AWS.CodeBuild({ region: "REGION" });

// async/await.
try {
const data = client.batchDeleteBuilds(params);
const data = await client.batchDeleteBuilds(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-codecommit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ const client = new AWS.CodeCommit({ region: "REGION" });

// async/await.
try {
const data = client.associateApprovalRuleTemplateWithRepository(params);
const data = await client.associateApprovalRuleTemplateWithRepository(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-codedeploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const client = new AWS.CodeDeploy({ region: "REGION" });

// async/await.
try {
const data = client.addTagsToOnPremisesInstances(params);
const data = await client.addTagsToOnPremisesInstances(params);
// process data.
} catch (error) {
// error handling.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-codeguru-reviewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const client = new AWS.CodeGuruReviewer({ region: "REGION" });

// async/await.
try {
const data = client.associateRepository(params);
const data = await client.associateRepository(params);
// process data.
} catch (error) {
// error handling.
Expand Down
Loading