Module: AWS

Defined in:
lib/core.js

Overview

The main AWS namespace

Defined Under Namespace

Modules: EventListeners Classes: ACM, APIGateway, AlexaForBusiness, AppStream, AppSync, ApplicationAutoScaling, Athena, AutoScaling, Batch, Budgets, CUR, Cloud9, CloudDirectory, CloudFormation, CloudFront, CloudFront, CloudHSM, CloudHSMV2, CloudSearch, CloudSearchDomain, CloudSearch, CloudTrail, CloudWatch, CloudWatchEvents, CloudWatchLogs, CodeBuild, CodeCommit, CodeDeploy, CodePipeline, CodeStar, CognitoIdentity, CognitoIdentityCredentials, CognitoIdentityServiceProvider, CognitoSync, Comprehend, Config, ConfigService, CostExplorer, CredentialProviderChain, Credentials, DAX, DMS, DataPipeline, DeviceFarm, DirectConnect, DirectoryService, Discovery, DynamoDB, DynamoDBStreams, DynamoDB, EC2, EC2MetadataCredentials, ECR, ECS, EFS, ELB, ELBv2, EMR, ES, ElastiCache, ElasticBeanstalk, ElasticTranscoder, Endpoint, EnvironmentCredentials, FileSystemCredentials, Firehose, GameLift, Glacier, Glue, Greengrass, GuardDuty, Health, HttpClient, HttpRequest, HttpResponse, IAM, ImportExport, Inspector, IoTJobsDataPlane, Iot, IotData, KMS, Kinesis, KinesisAnalytics, KinesisVideo, KinesisVideoArchivedMedia, KinesisVideoMedia, Lambda, Lambda, LexModelBuildingService, LexRuntime, Lightsail, MQ, MTurk, MachineLearning, MarketplaceCommerceAnalytics, MarketplaceEntitlementService, MarketplaceMetering, MediaConvert, MediaLive, MediaPackage, MediaStore, MediaStoreData, MetadataService, MigrationHub, Mobile, MobileAnalytics, OpsWorks, OpsWorksCM, Organizations, Pinpoint, Polly, Pricing, RDS, RDS, RDS, RDS, RDS, Redshift, Rekognition, RemoteCredentials, Request, ResourceGroups, ResourceGroupsTaggingAPI, Response, Route53, Route53Domains, S3, SAMLCredentials, SES, SMS, SNS, SQS, SSM, STS, SWF, SageMaker, SageMakerRuntime, ServerlessApplicationRepository, Service, ServiceCatalog, ServiceDiscovery, SharedIniFileCredentials, Shield, SimpleDB, Snowball, StepFunctions, StorageGateway, Support, TemporaryCredentials, Translate, WAF, WAFRegional, WebIdentityCredentials, WorkDocs, WorkSpaces, XRay

Constant Summary

SimpleWorkflow =

Backwards compatibility for access to the AWS.SWF service class.

AWS.SWF
VERSION =
'2.167.0'

Loading and Setting Configuration Options collapse

Property Summary collapse

Property Details

configObject (static, readwrite)

Reset configuration

Default Value:

AWS.config = new AWS.Config()

ECSCredentialsObject (static, readwrite)

Note:

This feature is not supported in the browser environment of the SDK.

Represents credentials received from relative URI specified in the ECS container.

This class will request refreshable credentials from the relative URI specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials are returned in the response, these will be used with zero configuration.

This credentials class will by default timeout after 1 second of inactivity and retry 3 times. If your requests to the relative URI are timing out, you can increase the value by configuring them directly:

AWS.config.credentials = new AWS.ECSCredentials({
  httpOptions: { timeout: 5000 }, // 5 second timeout
  maxRetries: 10, // retry 10 times
  retryDelayOptions: { base: 200 } // see AWS.Config for information
});

Default Value:

AWS.ECSCredentials = AWS.RemoteCredentials

See Also:

eventsAWS.SequentialExecutor (static, readonly)

Returns a collection of global event listeners that are attached to every sent request.

Default Value:

AWS.events = new AWS.SequentialExecutor()

Examples:

Logging the time taken to send a request

AWS.events.on('send', function startSend(resp) {
  resp.startTime = new Date().getTime();
}).on('complete', function calculateTime(resp) {
  var time = (new Date().getTime() - resp.startTime) / 1000;
  console.log('Request took ' + time + ' seconds');
});

new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds'

Returns:

  • (AWS.SequentialExecutor)

    a collection of global event listeners that are attached to every sent request.

See Also: