Module: AWS

Defined in:
lib/core.js

Overview

The main AWS namespace

Defined Under Namespace

Modules: EventListeners Classes: ACM, ACMPCA, APIGateway, AlexaForBusiness, Amplify, ApiGatewayManagementApi, ApiGatewayV2, AppMesh, AppMesh, AppStream, AppSync, ApplicationAutoScaling, Athena, AutoScaling, AutoScalingPlans, Backup, Batch, Budgets, CUR, ChainableTemporaryCredentials, Chime, Cloud9, CloudDirectory, CloudDirectory, CloudFormation, CloudFront, CloudFront, CloudFront, CloudFront, CloudFront, CloudHSM, CloudHSMV2, CloudSearch, CloudSearchDomain, CloudSearch, CloudTrail, CloudWatch, CloudWatchEvents, CloudWatchLogs, CodeBuild, CodeCommit, CodeDeploy, CodePipeline, CodeStar, CognitoIdentity, CognitoIdentityCredentials, CognitoIdentityServiceProvider, CognitoSync, Comprehend, ComprehendMedical, Config, ConfigService, Connect, CostExplorer, CredentialProviderChain, Credentials, DAX, DLM, DMS, DataPipeline, DataSync, DeviceFarm, DirectConnect, DirectoryService, Discovery, DocDB, DynamoDB, DynamoDBStreams, DynamoDB, EC2, EC2MetadataCredentials, ECR, ECS, EFS, EKS, ELB, ELBv2, EMR, ES, ElastiCache, ElasticBeanstalk, ElasticTranscoder, Endpoint, EnvironmentCredentials, FMS, FSx, FileSystemCredentials, Firehose, GameLift, Glacier, GlobalAccelerator, Glue, Greengrass, GuardDuty, Health, HttpClient, HttpRequest, HttpResponse, IAM, ImportExport, IniLoader, Inspector, IoT1ClickDevicesService, IoT1ClickProjects, IoTAnalytics, IoTJobsDataPlane, Iot, IotData, KMS, Kafka, Kinesis, KinesisAnalytics, KinesisAnalyticsV2, KinesisVideo, KinesisVideoArchivedMedia, KinesisVideoMedia, Lambda, Lambda, LexModelBuildingService, LexRuntime, LicenseManager, Lightsail, MQ, MTurk, MachineLearning, Macie, ManagedBlockchain, MarketplaceCommerceAnalytics, MarketplaceEntitlementService, MarketplaceMetering, MediaConnect, MediaConvert, MediaLive, MediaPackage, MediaStore, MediaStoreData, MediaTailor, MetadataService, MigrationHub, Mobile, MobileAnalytics, Neptune, OpsWorks, OpsWorksCM, Organizations, PI, Pinpoint, PinpointEmail, PinpointSMSVoice, Polly, Pricing, ProcessCredentials, QuickSight, RAM, RDS, RDSDataService, RDS, RDS, RDS, RDS, Redshift, Rekognition, RemoteCredentials, Request, ResourceGroups, ResourceGroupsTaggingAPI, Response, RoboMaker, Route53, Route53Domains, Route53Resolver, S3, S3Control, SAMLCredentials, SES, SMS, SNS, SQS, SSM, STS, SWF, SageMaker, SageMakerRuntime, SecretsManager, SecurityHub, ServerlessApplicationRepository, Service, ServiceCatalog, ServiceDiscovery, SharedIniFileCredentials, Shield, Signer, SimpleDB, Snowball, StepFunctions, StorageGateway, Support, TemporaryCredentials, Textract, TranscribeService, Transfer, Translate, WAF, WAFRegional, WebIdentityCredentials, WorkDocs, WorkLink, WorkMail, WorkSpaces, XRay

Constant Summary

SimpleWorkflow =

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

AWS.SWF
VERSION =
'2.446.0'

Loading and Setting Configuration Options

Property Summary

Property Details

configAWS.Config (static, readonly)

Returns The global configuration object singleton instance

Default Value:

AWS.config = new AWS.Config()

Returns:

  • (AWS.Config)

    The global configuration object singleton instance

See Also:

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: