AWS.Config — AWS SDK for JavaScript (original) (raw)

Property Details

acmAWS.Config, map

Returns Service-specific configuration options for AWS.ACM.

ampAWS.Config, map

Returns Service-specific configuration options for AWS.Amp.

cognitoidentityserviceproviderAWS.Config, map

computeChecksums ⇒ Boolean

Returns whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 and SQS only).

convertResponseTypes ⇒ Boolean

Returns whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

correctClockSkew ⇒ Boolean

Returns whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults tofalse.

credentialsAWS.Credentials

Returns the AWS credentials to sign requests with.

curAWS.Config, map

Returns Service-specific configuration options for AWS.CUR.

daxAWS.Config, map

Returns Service-specific configuration options for AWS.DAX.

dlmAWS.Config, map

Returns Service-specific configuration options for AWS.DLM.

dmsAWS.Config, map

Returns Service-specific configuration options for AWS.DMS.

drsAWS.Config, map

Returns Service-specific configuration options for AWS.Drs.

ebsAWS.Config, map

Returns Service-specific configuration options for AWS.EBS.

ec2AWS.Config, map

Returns Service-specific configuration options for AWS.EC2.

ecrAWS.Config, map

Returns Service-specific configuration options for AWS.ECR.

ecsAWS.Config, map

Returns Service-specific configuration options for AWS.ECS.

efsAWS.Config, map

Returns Service-specific configuration options for AWS.EFS.

eksAWS.Config, map

Returns Service-specific configuration options for AWS.EKS.

elbAWS.Config, map

Returns Service-specific configuration options for AWS.ELB.

emrAWS.Config, map

Returns Service-specific configuration options for AWS.EMR.

endpointCacheSize ⇒ Number

Returns the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000.

endpointDiscoveryEnabled ⇒ Boolean|undefined

Returns whether to call operations with endpoints given by service dynamically. Setting this config to true will enable endpoint discovery for all applicable operations. Setting it to falsewill explicitly disable endpoint discovery even though operations that require endpoint discovery will presumably fail. Leaving it toundefined means SDK only do endpoint discovery when it's required. Defaults to undefined.

esAWS.Config, map

Returns Service-specific configuration options for AWS.ES.

fisAWS.Config, map

Returns Service-specific configuration options for AWS.Fis.

fmsAWS.Config, map

Returns Service-specific configuration options for AWS.FMS.

fsxAWS.Config, map

Returns Service-specific configuration options for AWS.FSx.

hostPrefixEnabled ⇒ Boolean

Returns whether to marshal request parameters to the prefix of hostname. Defaults to true.

httpOptions ⇒ map

Returns A set of options to pass to the low-level HTTP request. Currently supported options are:

iamAWS.Config, map

Returns Service-specific configuration options for AWS.IAM.

iotAWS.Config, map

Returns Service-specific configuration options for AWS.Iot.

ivsAWS.Config, map

Returns Service-specific configuration options for AWS.IVS.

kinesisvideosignalingchannelsAWS.Config, map

kmsAWS.Config, map

Returns Service-specific configuration options for AWS.KMS.

licensemanagerlinuxsubscriptionsAWS.Config, map

licensemanagerusersubscriptionsAWS.Config, map

logger ⇒ #write, #log

Returns an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests.

m2AWS.Config, map

Returns Service-specific configuration options for AWS.M2.

marketplacecommerceanalyticsAWS.Config, map

marketplaceentitlementserviceAWS.Config, map

maxRedirects ⇒ Integer

Returns the maximum amount of redirects to follow for a service request. Defaults to 10.

maxRetries ⇒ Integer

Returns the maximum amount of retries to perform for a service request. By default this value is calculated by the specific service object that the request is being made to.

mgnAWS.Config, map

Returns Service-specific configuration options for AWS.Mgn.

mqAWS.Config, map

Returns Service-specific configuration options for AWS.MQ.

oamAWS.Config, map

Returns Service-specific configuration options for AWS.OAM.

paramValidation ⇒ Boolean|map

Returns whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

pcsAWS.Config, map

Returns Service-specific configuration options for AWS.PCS.

piAWS.Config, map

Returns Service-specific configuration options for AWS.PI.

ramAWS.Config, map

Returns Service-specific configuration options for AWS.RAM.

rdsAWS.Config, map

Returns Service-specific configuration options for AWS.RDS.

regionAWS.Credentials

Returns The region to send service requests to.

retryDelayOptions ⇒ map

Returns A set of options to configure the retry delay on retryable errors. Currently supported options are:

route53recoverycontrolconfigAWS.Config, map

rumAWS.Config, map

Returns Service-specific configuration options for AWS.RUM.

s3AWS.Config, map

Returns Service-specific configuration options for AWS.S3.

s3BucketEndpoint ⇒ Boolean

Note:

Setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

Returns whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint).

s3DisableBodySigning ⇒ Boolean

Returns whether to disable S3 body signing when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

s3ForcePathStyle ⇒ Boolean

Returns whether to force path style URLs for S3 objects.

s3UseArnRegion ⇒ Boolean

Returns whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true.

s3UsEast1RegionalEndpoint ⇒ 'legacy'|'regional'

Returns when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client; Defaults to 'legacy'.

sagemakerfeaturestoreruntimeAWS.Config, map

serverlessapplicationrepositoryAWS.Config, map

sesAWS.Config, map

Returns Service-specific configuration options for AWS.SES.

signatureCache ⇒ Boolean

Returns whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

signatureVersion ⇒ String

Returns the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

smsAWS.Config, map

Returns Service-specific configuration options for AWS.SMS.

snsAWS.Config, map

Returns Service-specific configuration options for AWS.SNS.

sqsAWS.Config, map

Returns Service-specific configuration options for AWS.SQS.

sslEnabled ⇒ Boolean

Returns whether SSL is enabled for requests.

ssmAWS.Config, map

Returns Service-specific configuration options for AWS.SSM.

ssoAWS.Config, map

Returns Service-specific configuration options for AWS.SSO.

stsAWS.Config, map

Returns Service-specific configuration options for AWS.STS.

stsRegionalEndpoints ⇒ 'legacy'|'regional'

Returns whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

swfAWS.Config, map

Returns Service-specific configuration options for AWS.SWF.

systemClockOffset ⇒ Number

Returns an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

Returns Service-specific configuration options for AWS.Textract.

tnbAWS.Config, map

Returns Service-specific configuration options for AWS.Tnb.

useAccelerateEndpoint ⇒ Boolean

Note:

This configuration option is only compatible with S3 while accessing dns-compatible buckets.

Returns Whether to use the Accelerate endpoint with the S3 service. Defaults to false.

useDualstackEndpoint ⇒ Boolean

Returns Enables IPv6 dualstack endpoint. Defaults to false.

useFipsEndpoint ⇒ Boolean

Returns Enables FIPS compatible endpoints. Defaults to false.

wafAWS.Config, map

Returns Service-specific configuration options for AWS.WAF.

Method Details

getCredentials(callback) ⇒ void

Note:

If you configure the SDK with static or environment credentials, the credential data should already be present in credentials attribute. This method is primarily necessary to load credentials from asynchronous sources, or sources that can refresh credentials periodically.

Loads credentials from the configuration object. This is used internally by the SDK to ensure that refreshable AWS.Credentials objects are properly refreshed and loaded when sending a request. If you want to ensure that your credentials are loaded prior to a request, you can use this method directly to provide accurate credential data stored in the object.

getPromisesDependency() ⇒ void

Gets the promise dependency set by AWS.config.setPromisesDependency.

getToken(callback) ⇒ void

Note:

If you configure the SDK with static token, the token data should already be present in AWS.Config.token attribute. This method is primarily necessary to load token from asynchronous sources, or sources that can refresh token periodically.

Loads token from the configuration object. This is used internally by the SDK to ensure that refreshable AWS.Token objects are properly refreshed and loaded when sending a request. If you want to ensure that your token is loaded prior to a request, you can use this method directly to provide accurate token data stored in the object.

loadFromPath(path) ⇒ AWS.Config

Note:

Loading configuration will reset all existing configuration on the object.

Note:

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

Loads configuration data from a JSON file into this config object.

setPromisesDependency(dep) ⇒ void

Sets the promise dependency the SDK will use wherever Promises are returned. Passing null will force the SDK to use native Promises if they are available. If native Promises are not available, passing null will have no effect.

update(options, allowUnknownKeys = false) ⇒ void