aws-sdk 2.737.0 → 2.741.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/README.md +1 -1
- package/apis/apigatewayv2-2018-11-29.min.json +42 -0
- package/apis/appflow-2020-08-23.examples.json +5 -0
- package/apis/appflow-2020-08-23.min.json +1541 -0
- package/apis/appflow-2020-08-23.paginators.json +23 -0
- package/apis/dms-2016-01-01.min.json +9 -0
- package/apis/ec2-2016-11-15.min.json +717 -468
- package/apis/ec2-2016-11-15.paginators.json +6 -0
- package/apis/gamelift-2015-10-01.min.json +192 -161
- package/apis/gamelift-2015-10-01.paginators.json +120 -0
- package/apis/iotsitewise-2019-12-02.min.json +11 -4
- package/apis/kafka-2018-11-14.min.json +98 -19
- package/apis/mediaconvert-2017-08-29.min.json +91 -79
- package/apis/metadata.json +3 -0
- package/apis/route53resolver-2018-04-01.min.json +292 -24
- package/apis/route53resolver-2018-04-01.paginators.json +26 -4
- package/apis/xray-2016-04-12.min.json +144 -55
- package/clients/accessanalyzer.d.ts +1 -1
- package/clients/acm.d.ts +1 -1
- package/clients/acmpca.d.ts +1 -1
- package/clients/alexaforbusiness.d.ts +1 -1
- package/clients/all.d.ts +1 -0
- package/clients/all.js +2 -1
- package/clients/amplify.d.ts +1 -1
- package/clients/apigateway.d.ts +1 -1
- package/clients/apigatewaymanagementapi.d.ts +1 -1
- package/clients/apigatewayv2.d.ts +67 -43
- package/clients/appconfig.d.ts +1 -1
- package/clients/appflow.d.ts +1967 -0
- package/clients/appflow.js +18 -0
- package/clients/applicationautoscaling.d.ts +1 -1
- package/clients/applicationinsights.d.ts +1 -1
- package/clients/appmesh.d.ts +1 -1
- package/clients/appstream.d.ts +1 -1
- package/clients/appsync.d.ts +1 -1
- package/clients/athena.d.ts +1 -1
- package/clients/augmentedairuntime.d.ts +1 -1
- package/clients/autoscaling.d.ts +1 -1
- package/clients/autoscalingplans.d.ts +1 -1
- package/clients/backup.d.ts +1 -1
- package/clients/batch.d.ts +1 -1
- package/clients/braket.d.ts +1 -1
- package/clients/budgets.d.ts +1 -1
- package/clients/chime.d.ts +4 -4
- package/clients/cloud9.d.ts +1 -1
- package/clients/clouddirectory.d.ts +1 -1
- package/clients/cloudformation.d.ts +1 -1
- package/clients/cloudfront.d.ts +1 -1
- package/clients/cloudhsm.d.ts +1 -1
- package/clients/cloudhsmv2.d.ts +1 -1
- package/clients/cloudsearch.d.ts +1 -1
- package/clients/cloudsearchdomain.d.ts +1 -1
- package/clients/cloudtrail.d.ts +1 -1
- package/clients/cloudwatch.d.ts +1 -1
- package/clients/cloudwatchevents.d.ts +1 -1
- package/clients/cloudwatchlogs.d.ts +102 -57
- package/clients/codeartifact.d.ts +1 -1
- package/clients/codebuild.d.ts +1 -1
- package/clients/codecommit.d.ts +1 -1
- package/clients/codedeploy.d.ts +1 -1
- package/clients/codeguruprofiler.d.ts +1 -1
- package/clients/codegurureviewer.d.ts +1 -1
- package/clients/codepipeline.d.ts +1 -1
- package/clients/codestar.d.ts +1 -1
- package/clients/codestarconnections.d.ts +1 -1
- package/clients/codestarnotifications.d.ts +1 -1
- package/clients/cognitoidentity.d.ts +1 -1
- package/clients/cognitoidentityserviceprovider.d.ts +1 -1
- package/clients/cognitosync.d.ts +1 -1
- package/clients/comprehend.d.ts +1 -1
- package/clients/comprehendmedical.d.ts +1 -1
- package/clients/computeoptimizer.d.ts +1 -1
- package/clients/configservice.d.ts +1 -1
- package/clients/connect.d.ts +1 -1
- package/clients/connectparticipant.d.ts +1 -1
- package/clients/costexplorer.d.ts +1 -1
- package/clients/cur.d.ts +1 -1
- package/clients/dataexchange.d.ts +1 -1
- package/clients/datapipeline.d.ts +1 -1
- package/clients/datasync.d.ts +1 -1
- package/clients/dax.d.ts +1 -1
- package/clients/detective.d.ts +1 -1
- package/clients/devicefarm.d.ts +1 -1
- package/clients/directconnect.d.ts +1 -1
- package/clients/directoryservice.d.ts +1 -1
- package/clients/discovery.d.ts +1 -1
- package/clients/dlm.d.ts +1 -1
- package/clients/dms.d.ts +50 -38
- package/clients/docdb.d.ts +1 -1
- package/clients/dynamodb.d.ts +1 -1
- package/clients/dynamodbstreams.d.ts +1 -1
- package/clients/ebs.d.ts +1 -1
- package/clients/ec2.d.ts +391 -53
- package/clients/ec2instanceconnect.d.ts +1 -1
- package/clients/ecr.d.ts +1 -1
- package/clients/ecs.d.ts +1 -1
- package/clients/efs.d.ts +1 -1
- package/clients/eks.d.ts +1 -1
- package/clients/elasticache.d.ts +1 -1
- package/clients/elasticbeanstalk.d.ts +1 -1
- package/clients/elasticinference.d.ts +1 -1
- package/clients/elastictranscoder.d.ts +1 -1
- package/clients/elb.d.ts +1 -1
- package/clients/elbv2.d.ts +1 -1
- package/clients/emr.d.ts +1 -1
- package/clients/es.d.ts +1 -1
- package/clients/eventbridge.d.ts +1 -1
- package/clients/firehose.d.ts +1 -1
- package/clients/fms.d.ts +1 -1
- package/clients/forecastqueryservice.d.ts +1 -1
- package/clients/forecastservice.d.ts +1 -1
- package/clients/frauddetector.d.ts +1 -1
- package/clients/fsx.d.ts +16 -16
- package/clients/gamelift.d.ts +245 -205
- package/clients/glacier.d.ts +1 -1
- package/clients/globalaccelerator.d.ts +1 -1
- package/clients/glue.d.ts +1 -1
- package/clients/greengrass.d.ts +1 -1
- package/clients/groundstation.d.ts +1 -1
- package/clients/guardduty.d.ts +1 -1
- package/clients/health.d.ts +1 -1
- package/clients/honeycode.d.ts +1 -1
- package/clients/iam.d.ts +1 -1
- package/clients/identitystore.d.ts +1 -1
- package/clients/imagebuilder.d.ts +1 -1
- package/clients/importexport.d.ts +1 -1
- package/clients/inspector.d.ts +1 -1
- package/clients/iot.d.ts +1 -1
- package/clients/iot1clickdevicesservice.d.ts +1 -1
- package/clients/iot1clickprojects.d.ts +1 -1
- package/clients/iotanalytics.d.ts +1 -1
- package/clients/iotdata.d.ts +1 -1
- package/clients/iotevents.d.ts +1 -1
- package/clients/ioteventsdata.d.ts +1 -1
- package/clients/iotjobsdataplane.d.ts +1 -1
- package/clients/iotsecuretunneling.d.ts +1 -1
- package/clients/iotsitewise.d.ts +74 -68
- package/clients/iotthingsgraph.d.ts +1 -1
- package/clients/ivs.d.ts +1 -1
- package/clients/kafka.d.ts +101 -1
- package/clients/kendra.d.ts +1 -1
- package/clients/kinesis.d.ts +1 -1
- package/clients/kinesisanalytics.d.ts +1 -1
- package/clients/kinesisanalyticsv2.d.ts +1 -1
- package/clients/kinesisvideo.d.ts +1 -1
- package/clients/kinesisvideoarchivedmedia.d.ts +1 -1
- package/clients/kinesisvideomedia.d.ts +1 -1
- package/clients/kinesisvideosignalingchannels.d.ts +1 -1
- package/clients/kms.d.ts +1 -1
- package/clients/lakeformation.d.ts +1 -1
- package/clients/lambda.d.ts +1 -1
- package/clients/lexmodelbuildingservice.d.ts +1 -1
- package/clients/lexruntime.d.ts +1 -1
- package/clients/licensemanager.d.ts +1 -1
- package/clients/lightsail.d.ts +1 -1
- package/clients/machinelearning.d.ts +1 -1
- package/clients/macie.d.ts +1 -1
- package/clients/macie2.d.ts +1 -1
- package/clients/managedblockchain.d.ts +1 -1
- package/clients/marketplacecatalog.d.ts +1 -1
- package/clients/marketplacecommerceanalytics.d.ts +1 -1
- package/clients/marketplaceentitlementservice.d.ts +1 -1
- package/clients/marketplacemetering.d.ts +1 -1
- package/clients/mediaconnect.d.ts +1 -1
- package/clients/mediaconvert.d.ts +22 -6
- package/clients/medialive.d.ts +1 -1
- package/clients/mediapackage.d.ts +1 -1
- package/clients/mediapackagevod.d.ts +1 -1
- package/clients/mediastore.d.ts +1 -1
- package/clients/mediastoredata.d.ts +1 -1
- package/clients/mediatailor.d.ts +1 -1
- package/clients/migrationhub.d.ts +1 -1
- package/clients/migrationhubconfig.d.ts +1 -1
- package/clients/mobile.d.ts +1 -1
- package/clients/mobileanalytics.d.ts +1 -1
- package/clients/mq.d.ts +1 -1
- package/clients/mturk.d.ts +1 -1
- package/clients/neptune.d.ts +1 -1
- package/clients/networkmanager.d.ts +1 -1
- package/clients/opsworks.d.ts +1 -1
- package/clients/opsworkscm.d.ts +1 -1
- package/clients/organizations.d.ts +1 -1
- package/clients/outposts.d.ts +1 -1
- package/clients/personalize.d.ts +1 -1
- package/clients/personalizeevents.d.ts +1 -1
- package/clients/personalizeruntime.d.ts +1 -1
- package/clients/pi.d.ts +1 -1
- package/clients/pinpoint.d.ts +1 -1
- package/clients/pinpointemail.d.ts +1 -1
- package/clients/pinpointsmsvoice.d.ts +1 -1
- package/clients/polly.d.ts +1 -1
- package/clients/pricing.d.ts +1 -1
- package/clients/qldb.d.ts +1 -1
- package/clients/qldbsession.d.ts +1 -1
- package/clients/quicksight.d.ts +1 -1
- package/clients/ram.d.ts +1 -1
- package/clients/rds.d.ts +1 -1
- package/clients/rdsdataservice.d.ts +1 -1
- package/clients/redshift.d.ts +7 -7
- package/clients/rekognition.d.ts +1 -1
- package/clients/resourcegroups.d.ts +1 -1
- package/clients/resourcegroupstaggingapi.d.ts +1 -1
- package/clients/robomaker.d.ts +1 -1
- package/clients/route53.d.ts +1 -1
- package/clients/route53domains.d.ts +1 -1
- package/clients/route53resolver.d.ts +491 -119
- package/clients/s3.d.ts +1 -1
- package/clients/s3control.d.ts +1 -1
- package/clients/sagemaker.d.ts +1 -1
- package/clients/sagemakerruntime.d.ts +1 -1
- package/clients/savingsplans.d.ts +1 -1
- package/clients/schemas.d.ts +1 -1
- package/clients/secretsmanager.d.ts +1 -1
- package/clients/securityhub.d.ts +1 -1
- package/clients/serverlessapplicationrepository.d.ts +1 -1
- package/clients/servicecatalog.d.ts +1 -1
- package/clients/servicediscovery.d.ts +1 -1
- package/clients/servicequotas.d.ts +1 -1
- package/clients/ses.d.ts +1 -1
- package/clients/sesv2.d.ts +1 -1
- package/clients/shield.d.ts +1 -1
- package/clients/signer.d.ts +1 -1
- package/clients/simpledb.d.ts +1 -1
- package/clients/sms.d.ts +1 -1
- package/clients/snowball.d.ts +1 -1
- package/clients/sns.d.ts +1 -1
- package/clients/sqs.d.ts +1 -1
- package/clients/ssm.d.ts +12 -12
- package/clients/sso.d.ts +1 -1
- package/clients/ssooidc.d.ts +1 -1
- package/clients/stepfunctions.d.ts +1 -1
- package/clients/storagegateway.d.ts +1 -1
- package/clients/sts.d.ts +1 -1
- package/clients/support.d.ts +1 -1
- package/clients/swf.d.ts +1 -1
- package/clients/synthetics.d.ts +1 -1
- package/clients/textract.d.ts +1 -1
- package/clients/transcribeservice.d.ts +1 -1
- package/clients/transfer.d.ts +1 -1
- package/clients/translate.d.ts +1 -1
- package/clients/waf.d.ts +1 -1
- package/clients/wafregional.d.ts +1 -1
- package/clients/wafv2.d.ts +1 -1
- package/clients/workdocs.d.ts +1 -1
- package/clients/worklink.d.ts +1 -1
- package/clients/workmail.d.ts +1 -1
- package/clients/workmailmessageflow.d.ts +1 -1
- package/clients/workspaces.d.ts +1 -1
- package/clients/xray.d.ts +56 -1
- package/dist/aws-sdk-core-react-native.js +2 -2
- package/dist/aws-sdk-react-native.js +53 -16
- package/dist/aws-sdk.js +1191 -689
- package/dist/aws-sdk.min.js +58 -58
- package/lib/config-base.d.ts +267 -0
- package/lib/config.d.ts +1 -266
- package/lib/config_service_placeholders.d.ts +2 -0
- package/lib/core.d.ts +1 -1
- package/lib/core.js +1 -1
- package/lib/credentials/cognito_identity_credentials.d.ts +1 -1
- package/lib/credentials/process_credentials.d.ts +1 -1
- package/lib/credentials/shared_ini_file_credentials.d.ts +1 -1
- package/lib/credentials/token_file_web_identity_credentials.d.ts +1 -1
- package/lib/credentials/web_identity_credentials.d.ts +1 -1
- package/lib/service.d.ts +1 -1
- package/package.json +1 -1
- package/scripts/lib/ts-generator.js +1 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import {Agent as httpAgent} from 'http';
|
|
2
|
+
import {Agent as httpsAgent} from 'https';
|
|
3
|
+
import {AWSError} from './error';
|
|
4
|
+
import {Credentials, CredentialsOptions} from './credentials';
|
|
5
|
+
import {CredentialProviderChain} from './credentials/credential_provider_chain';
|
|
6
|
+
|
|
7
|
+
export class ConfigBase extends ConfigurationOptions{
|
|
8
|
+
constructor(options?: ConfigurationOptions);
|
|
9
|
+
/**
|
|
10
|
+
* Loads credentials from the configuration object.
|
|
11
|
+
*/
|
|
12
|
+
getCredentials(callback: (err: AWSError) => void): void;
|
|
13
|
+
/**
|
|
14
|
+
* Loads configuration data from a JSON file into this config object.
|
|
15
|
+
* Loading configuration will reset all existing configuration on the object.
|
|
16
|
+
* This feature is not supported in the browser environment of the SDK.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} path - the path relative to your process's current working directory to load configuration from.
|
|
19
|
+
*/
|
|
20
|
+
loadFromPath(path: string): ConfigBase;
|
|
21
|
+
/**
|
|
22
|
+
* Updates the current configuration object with new options.
|
|
23
|
+
*
|
|
24
|
+
* @param {ConfigurationOptions} options - a map of option keys and values.
|
|
25
|
+
* @param {boolean} allowUnknownKeys - Whether unknown keys can be set on the configuration object.
|
|
26
|
+
*/
|
|
27
|
+
update(options: ConfigurationOptions & {[key: string]: any}, allowUnknownKeys: true): void;
|
|
28
|
+
/**
|
|
29
|
+
* Updates the current configuration object with new options.
|
|
30
|
+
*
|
|
31
|
+
* @param {ConfigurationOptions} options - a map of option keys and values.
|
|
32
|
+
* @param {boolean} allowUnknownKeys - Defaults to false. Whether unknown keys can be set on the configuration object.
|
|
33
|
+
*/
|
|
34
|
+
update(options: ConfigurationOptions, allowUnknownKeys?: false): void;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the promise dependency the SDK will use wherever Promises are returned.
|
|
37
|
+
*/
|
|
38
|
+
getPromisesDependency(): typeof Promise | void;
|
|
39
|
+
/**
|
|
40
|
+
* Sets the promise dependency the SDK will use wherever Promises are returned.
|
|
41
|
+
* @param {function} dep - a reference to a Promise constructor
|
|
42
|
+
*/
|
|
43
|
+
setPromisesDependency(dep: any): void;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface HTTPOptions {
|
|
47
|
+
/**
|
|
48
|
+
* the URL to proxy requests through.
|
|
49
|
+
*/
|
|
50
|
+
proxy?: string;
|
|
51
|
+
/**
|
|
52
|
+
* the Agent object to perform HTTP requests with.
|
|
53
|
+
* Used for connection pooling.
|
|
54
|
+
* Defaults to the global agent (http.globalAgent) for non-SSL connections.
|
|
55
|
+
*/
|
|
56
|
+
agent?: httpAgent | httpsAgent;
|
|
57
|
+
/**
|
|
58
|
+
* The maximum time in milliseconds that the connection phase of the request
|
|
59
|
+
* should be allowed to take. This only limits the connection phase and has
|
|
60
|
+
* no impact once the socket has established a connection.
|
|
61
|
+
* Used in node.js environments only.
|
|
62
|
+
*/
|
|
63
|
+
connectTimeout?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The number of milliseconds to wait before giving up on a connection attempt.
|
|
66
|
+
* Defaults to two minutes (120000).
|
|
67
|
+
*/
|
|
68
|
+
timeout?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the SDK will send asynchronous HTTP requests.
|
|
71
|
+
* Used in the browser environment only.
|
|
72
|
+
* Set to false to send requests synchronously.
|
|
73
|
+
* Defaults to true (async on).
|
|
74
|
+
*/
|
|
75
|
+
xhrAsync?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the 'withCredentials' property of an XMLHttpRequest object.
|
|
78
|
+
* Used in the browser environment only.
|
|
79
|
+
* Defaults to false.
|
|
80
|
+
*/
|
|
81
|
+
xhrWithCredentials?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface Logger {
|
|
84
|
+
write?: (chunk: any, encoding?: string, callback?: () => void) => void
|
|
85
|
+
log?: (...messages: any[]) => void;
|
|
86
|
+
}
|
|
87
|
+
export interface ParamValidation {
|
|
88
|
+
/**
|
|
89
|
+
* Validates that a value meets the min constraint.
|
|
90
|
+
* This is enabled by default when paramValidation is set to true.
|
|
91
|
+
*/
|
|
92
|
+
min?: boolean
|
|
93
|
+
/**
|
|
94
|
+
* Validates that a value meets the max constraint.
|
|
95
|
+
*/
|
|
96
|
+
max?: boolean
|
|
97
|
+
/**
|
|
98
|
+
* Validates that a string value matches a regular expression.
|
|
99
|
+
*/
|
|
100
|
+
pattern?: boolean
|
|
101
|
+
/**
|
|
102
|
+
* Validates that a string value matches one of the allowable enum values.
|
|
103
|
+
*/
|
|
104
|
+
enum?: boolean
|
|
105
|
+
}
|
|
106
|
+
export interface RetryDelayOptions {
|
|
107
|
+
/**
|
|
108
|
+
* The base number of milliseconds to use in the exponential backoff for operation retries.
|
|
109
|
+
* Defaults to 100 ms.
|
|
110
|
+
*/
|
|
111
|
+
base?: number
|
|
112
|
+
/**
|
|
113
|
+
* A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made.
|
|
114
|
+
* The base option will be ignored if this option is supplied.
|
|
115
|
+
*/
|
|
116
|
+
customBackoff?: (retryCount: number, err?: Error) => number
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export abstract class ConfigurationOptions {
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Whether to compute checksums for payload bodies when the service accepts it.
|
|
123
|
+
* Currently supported in S3 only.
|
|
124
|
+
*/
|
|
125
|
+
computeChecksums?: boolean
|
|
126
|
+
/**
|
|
127
|
+
* Whether types are converted when parsing response data.
|
|
128
|
+
*/
|
|
129
|
+
convertResponseTypes?: boolean
|
|
130
|
+
/**
|
|
131
|
+
* Whether to apply a clock skew correction and retry requests that fail because of an skewed client clock.
|
|
132
|
+
*/
|
|
133
|
+
correctClockSkew?: boolean
|
|
134
|
+
/**
|
|
135
|
+
* Sets a custom User-Agent string.
|
|
136
|
+
* In node environments this will set the User-Agent header, but
|
|
137
|
+
* browser environments this will set the X-Amz-User-Agent header.
|
|
138
|
+
*/
|
|
139
|
+
customUserAgent?: string
|
|
140
|
+
/**
|
|
141
|
+
* The AWS credentials to sign requests with.
|
|
142
|
+
*/
|
|
143
|
+
credentials?: Credentials|CredentialsOptions|null
|
|
144
|
+
/**
|
|
145
|
+
* The provider chain used to resolve credentials if no static credentials property is set.
|
|
146
|
+
*/
|
|
147
|
+
credentialProvider?: CredentialProviderChain
|
|
148
|
+
/**
|
|
149
|
+
* AWS access key ID.
|
|
150
|
+
*
|
|
151
|
+
* @deprecated
|
|
152
|
+
*/
|
|
153
|
+
accessKeyId?: string
|
|
154
|
+
/**
|
|
155
|
+
* AWS secret access key.
|
|
156
|
+
*
|
|
157
|
+
* @deprecated
|
|
158
|
+
*/
|
|
159
|
+
secretAccessKey?: string
|
|
160
|
+
/**
|
|
161
|
+
* AWS session token.
|
|
162
|
+
*
|
|
163
|
+
* @deprecated
|
|
164
|
+
*/
|
|
165
|
+
sessionToken?: string
|
|
166
|
+
/**
|
|
167
|
+
* A set of options to pass to the low-level HTTP request.
|
|
168
|
+
*/
|
|
169
|
+
httpOptions?: HTTPOptions
|
|
170
|
+
/**
|
|
171
|
+
* An object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests.
|
|
172
|
+
*/
|
|
173
|
+
logger?: Logger
|
|
174
|
+
/**
|
|
175
|
+
* The maximum amount of redirects to follow for a service request.
|
|
176
|
+
*/
|
|
177
|
+
maxRedirects?: number
|
|
178
|
+
/**
|
|
179
|
+
* The maximum amount of retries to perform for a service request.
|
|
180
|
+
*/
|
|
181
|
+
maxRetries?: number
|
|
182
|
+
/**
|
|
183
|
+
* Returns whether input parameters should be validated against the operation description before sending the request.
|
|
184
|
+
* Defaults to true.
|
|
185
|
+
* Pass a map to enable any of the following specific validation features: min|max|pattern|enum
|
|
186
|
+
*/
|
|
187
|
+
paramValidation?: ParamValidation|boolean
|
|
188
|
+
/**
|
|
189
|
+
* The region to send service requests to.
|
|
190
|
+
*/
|
|
191
|
+
region?: string
|
|
192
|
+
/**
|
|
193
|
+
* Returns A set of options to configure the retry delay on retryable errors.
|
|
194
|
+
*/
|
|
195
|
+
retryDelayOptions?: RetryDelayOptions
|
|
196
|
+
/**
|
|
197
|
+
* Whether the provided endpoint addresses an individual bucket.
|
|
198
|
+
* false if it addresses the root API endpoint.
|
|
199
|
+
*/
|
|
200
|
+
s3BucketEndpoint?: boolean
|
|
201
|
+
/**
|
|
202
|
+
* Whether to disable S3 body signing when using signature version v4.
|
|
203
|
+
*/
|
|
204
|
+
s3DisableBodySigning?: boolean
|
|
205
|
+
/**
|
|
206
|
+
* Whether to force path style URLs for S3 objects.
|
|
207
|
+
*/
|
|
208
|
+
s3ForcePathStyle?: boolean
|
|
209
|
+
/**
|
|
210
|
+
* When region is set to 'us-east-1', whether to send s3 request to global endpoints
|
|
211
|
+
* or 'us-east-1' regional endpoints. This config is only applicable to S3 client;
|
|
212
|
+
* Defaults to 'legacy'
|
|
213
|
+
*/
|
|
214
|
+
s3UsEast1RegionalEndpoint?: "regional"|"legacy"
|
|
215
|
+
/**
|
|
216
|
+
* Whether to override the request region with the region inferred
|
|
217
|
+
* from requested resource's ARN. Only available for S3 buckets
|
|
218
|
+
* Defaults to `true`
|
|
219
|
+
*/
|
|
220
|
+
s3UseArnRegion?: boolean
|
|
221
|
+
/**
|
|
222
|
+
* Whether the signature to sign requests with (overriding the API configuration) is cached.
|
|
223
|
+
*/
|
|
224
|
+
signatureCache?: boolean
|
|
225
|
+
/**
|
|
226
|
+
* The signature version to sign requests with (overriding the API configuration).
|
|
227
|
+
* Possible values: 'v2'|'v3'|'v4'
|
|
228
|
+
*/
|
|
229
|
+
signatureVersion?: "v2"|"v3"|"v4"|string
|
|
230
|
+
/**
|
|
231
|
+
* Whether SSL is enabled for requests.
|
|
232
|
+
*/
|
|
233
|
+
sslEnabled?: boolean
|
|
234
|
+
/**
|
|
235
|
+
* An offset value in milliseconds to apply to all signing times.
|
|
236
|
+
*/
|
|
237
|
+
systemClockOffset?: number
|
|
238
|
+
/**
|
|
239
|
+
* Whether to use the Accelerate endpoint with the S3 service.
|
|
240
|
+
*/
|
|
241
|
+
useAccelerateEndpoint?: boolean
|
|
242
|
+
/**
|
|
243
|
+
* Whether to validate the CRC32 checksum of HTTP response bodies returned
|
|
244
|
+
* by DynamoDB.
|
|
245
|
+
*/
|
|
246
|
+
dynamoDbCrc32?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Whether to enable endpoint discovery for operations that allow optionally using an endpoint returned by
|
|
249
|
+
* the service.
|
|
250
|
+
*/
|
|
251
|
+
endpointDiscoveryEnabled?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* The size of the global cache storing endpoints from endpoint
|
|
254
|
+
* discovery operations. Once endpoint cache is created, updating this setting
|
|
255
|
+
* cannot change existing cache size.
|
|
256
|
+
*/
|
|
257
|
+
endpointCacheSize?: number;
|
|
258
|
+
/**
|
|
259
|
+
* Whether to marshal request parameters to the prefix of hostname.
|
|
260
|
+
*/
|
|
261
|
+
hostPrefixEnabled?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Whether to send sts request to global endpoints or
|
|
264
|
+
* regional endpoints.
|
|
265
|
+
*/
|
|
266
|
+
stsRegionalEndpoints?: "legacy"|"regional";
|
|
267
|
+
}
|
package/lib/config.d.ts
CHANGED
|
@@ -1,48 +1,5 @@
|
|
|
1
|
-
import {Agent as httpAgent} from 'http';
|
|
2
|
-
import {Agent as httpsAgent} from 'https';
|
|
3
|
-
import {AWSError} from './error';
|
|
4
|
-
import {Credentials, CredentialsOptions} from './credentials';
|
|
5
|
-
import {CredentialProviderChain} from './credentials/credential_provider_chain';
|
|
6
1
|
import {ConfigurationServicePlaceholders, ConfigurationServiceApiVersions} from './config_service_placeholders';
|
|
7
|
-
|
|
8
|
-
export class ConfigBase extends ConfigurationOptions{
|
|
9
|
-
constructor(options?: ConfigurationOptions);
|
|
10
|
-
/**
|
|
11
|
-
* Loads credentials from the configuration object.
|
|
12
|
-
*/
|
|
13
|
-
getCredentials(callback: (err: AWSError) => void): void;
|
|
14
|
-
/**
|
|
15
|
-
* Loads configuration data from a JSON file into this config object.
|
|
16
|
-
* Loading configuration will reset all existing configuration on the object.
|
|
17
|
-
* This feature is not supported in the browser environment of the SDK.
|
|
18
|
-
*
|
|
19
|
-
* @param {string} path - the path relative to your process's current working directory to load configuration from.
|
|
20
|
-
*/
|
|
21
|
-
loadFromPath(path: string): ConfigBase;
|
|
22
|
-
/**
|
|
23
|
-
* Updates the current configuration object with new options.
|
|
24
|
-
*
|
|
25
|
-
* @param {ConfigurationOptions} options - a map of option keys and values.
|
|
26
|
-
* @param {boolean} allowUnknownKeys - Whether unknown keys can be set on the configuration object.
|
|
27
|
-
*/
|
|
28
|
-
update(options: ConfigurationOptions & {[key: string]: any}, allowUnknownKeys: true): void;
|
|
29
|
-
/**
|
|
30
|
-
* Updates the current configuration object with new options.
|
|
31
|
-
*
|
|
32
|
-
* @param {ConfigurationOptions} options - a map of option keys and values.
|
|
33
|
-
* @param {boolean} allowUnknownKeys - Defaults to false. Whether unknown keys can be set on the configuration object.
|
|
34
|
-
*/
|
|
35
|
-
update(options: ConfigurationOptions, allowUnknownKeys?: false): void;
|
|
36
|
-
/**
|
|
37
|
-
* Gets the promise dependency the SDK will use wherever Promises are returned.
|
|
38
|
-
*/
|
|
39
|
-
getPromisesDependency(): typeof Promise | void;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the promise dependency the SDK will use wherever Promises are returned.
|
|
42
|
-
* @param {function} dep - a reference to a Promise constructor
|
|
43
|
-
*/
|
|
44
|
-
setPromisesDependency(dep: any): void;
|
|
45
|
-
}
|
|
2
|
+
import {ConfigBase, ConfigurationOptions} from './config-base';
|
|
46
3
|
|
|
47
4
|
export class Config extends ConfigBase {
|
|
48
5
|
/**
|
|
@@ -76,78 +33,6 @@ export class Config extends ConfigBase {
|
|
|
76
33
|
|
|
77
34
|
export type GlobalConfigInstance = Config & ConfigurationServicePlaceholders & APIVersions;
|
|
78
35
|
|
|
79
|
-
export interface HTTPOptions {
|
|
80
|
-
/**
|
|
81
|
-
* the URL to proxy requests through.
|
|
82
|
-
*/
|
|
83
|
-
proxy?: string;
|
|
84
|
-
/**
|
|
85
|
-
* the Agent object to perform HTTP requests with.
|
|
86
|
-
* Used for connection pooling.
|
|
87
|
-
* Defaults to the global agent (http.globalAgent) for non-SSL connections.
|
|
88
|
-
*/
|
|
89
|
-
agent?: httpAgent | httpsAgent;
|
|
90
|
-
/**
|
|
91
|
-
* The maximum time in milliseconds that the connection phase of the request
|
|
92
|
-
* should be allowed to take. This only limits the connection phase and has
|
|
93
|
-
* no impact once the socket has established a connection.
|
|
94
|
-
* Used in node.js environments only.
|
|
95
|
-
*/
|
|
96
|
-
connectTimeout?: number;
|
|
97
|
-
/**
|
|
98
|
-
* The number of milliseconds to wait before giving up on a connection attempt.
|
|
99
|
-
* Defaults to two minutes (120000).
|
|
100
|
-
*/
|
|
101
|
-
timeout?: number;
|
|
102
|
-
/**
|
|
103
|
-
* Whether the SDK will send asynchronous HTTP requests.
|
|
104
|
-
* Used in the browser environment only.
|
|
105
|
-
* Set to false to send requests synchronously.
|
|
106
|
-
* Defaults to true (async on).
|
|
107
|
-
*/
|
|
108
|
-
xhrAsync?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Sets the 'withCredentials' property of an XMLHttpRequest object.
|
|
111
|
-
* Used in the browser environment only.
|
|
112
|
-
* Defaults to false.
|
|
113
|
-
*/
|
|
114
|
-
xhrWithCredentials?: boolean;
|
|
115
|
-
}
|
|
116
|
-
export interface Logger {
|
|
117
|
-
write?: (chunk: any, encoding?: string, callback?: () => void) => void
|
|
118
|
-
log?: (...messages: any[]) => void;
|
|
119
|
-
}
|
|
120
|
-
export interface ParamValidation {
|
|
121
|
-
/**
|
|
122
|
-
* Validates that a value meets the min constraint.
|
|
123
|
-
* This is enabled by default when paramValidation is set to true.
|
|
124
|
-
*/
|
|
125
|
-
min?: boolean
|
|
126
|
-
/**
|
|
127
|
-
* Validates that a value meets the max constraint.
|
|
128
|
-
*/
|
|
129
|
-
max?: boolean
|
|
130
|
-
/**
|
|
131
|
-
* Validates that a string value matches a regular expression.
|
|
132
|
-
*/
|
|
133
|
-
pattern?: boolean
|
|
134
|
-
/**
|
|
135
|
-
* Validates that a string value matches one of the allowable enum values.
|
|
136
|
-
*/
|
|
137
|
-
enum?: boolean
|
|
138
|
-
}
|
|
139
|
-
export interface RetryDelayOptions {
|
|
140
|
-
/**
|
|
141
|
-
* The base number of milliseconds to use in the exponential backoff for operation retries.
|
|
142
|
-
* Defaults to 100 ms.
|
|
143
|
-
*/
|
|
144
|
-
base?: number
|
|
145
|
-
/**
|
|
146
|
-
* A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made.
|
|
147
|
-
* The base option will be ignored if this option is supplied.
|
|
148
|
-
*/
|
|
149
|
-
customBackoff?: (retryCount: number, err?: Error) => number
|
|
150
|
-
}
|
|
151
36
|
|
|
152
37
|
export interface APIVersions {
|
|
153
38
|
/**
|
|
@@ -159,153 +44,3 @@ export interface APIVersions {
|
|
|
159
44
|
*/
|
|
160
45
|
apiVersions?: ConfigurationServiceApiVersions;
|
|
161
46
|
}
|
|
162
|
-
|
|
163
|
-
export abstract class ConfigurationOptions {
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Whether to compute checksums for payload bodies when the service accepts it.
|
|
167
|
-
* Currently supported in S3 only.
|
|
168
|
-
*/
|
|
169
|
-
computeChecksums?: boolean
|
|
170
|
-
/**
|
|
171
|
-
* Whether types are converted when parsing response data.
|
|
172
|
-
*/
|
|
173
|
-
convertResponseTypes?: boolean
|
|
174
|
-
/**
|
|
175
|
-
* Whether to apply a clock skew correction and retry requests that fail because of an skewed client clock.
|
|
176
|
-
*/
|
|
177
|
-
correctClockSkew?: boolean
|
|
178
|
-
/**
|
|
179
|
-
* Sets a custom User-Agent string.
|
|
180
|
-
* In node environments this will set the User-Agent header, but
|
|
181
|
-
* browser environments this will set the X-Amz-User-Agent header.
|
|
182
|
-
*/
|
|
183
|
-
customUserAgent?: string
|
|
184
|
-
/**
|
|
185
|
-
* The AWS credentials to sign requests with.
|
|
186
|
-
*/
|
|
187
|
-
credentials?: Credentials|CredentialsOptions|null
|
|
188
|
-
/**
|
|
189
|
-
* The provider chain used to resolve credentials if no static credentials property is set.
|
|
190
|
-
*/
|
|
191
|
-
credentialProvider?: CredentialProviderChain
|
|
192
|
-
/**
|
|
193
|
-
* AWS access key ID.
|
|
194
|
-
*
|
|
195
|
-
* @deprecated
|
|
196
|
-
*/
|
|
197
|
-
accessKeyId?: string
|
|
198
|
-
/**
|
|
199
|
-
* AWS secret access key.
|
|
200
|
-
*
|
|
201
|
-
* @deprecated
|
|
202
|
-
*/
|
|
203
|
-
secretAccessKey?: string
|
|
204
|
-
/**
|
|
205
|
-
* AWS session token.
|
|
206
|
-
*
|
|
207
|
-
* @deprecated
|
|
208
|
-
*/
|
|
209
|
-
sessionToken?: string
|
|
210
|
-
/**
|
|
211
|
-
* A set of options to pass to the low-level HTTP request.
|
|
212
|
-
*/
|
|
213
|
-
httpOptions?: HTTPOptions
|
|
214
|
-
/**
|
|
215
|
-
* An object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests.
|
|
216
|
-
*/
|
|
217
|
-
logger?: Logger
|
|
218
|
-
/**
|
|
219
|
-
* The maximum amount of redirects to follow for a service request.
|
|
220
|
-
*/
|
|
221
|
-
maxRedirects?: number
|
|
222
|
-
/**
|
|
223
|
-
* The maximum amount of retries to perform for a service request.
|
|
224
|
-
*/
|
|
225
|
-
maxRetries?: number
|
|
226
|
-
/**
|
|
227
|
-
* Returns whether input parameters should be validated against the operation description before sending the request.
|
|
228
|
-
* Defaults to true.
|
|
229
|
-
* Pass a map to enable any of the following specific validation features: min|max|pattern|enum
|
|
230
|
-
*/
|
|
231
|
-
paramValidation?: ParamValidation|boolean
|
|
232
|
-
/**
|
|
233
|
-
* The region to send service requests to.
|
|
234
|
-
*/
|
|
235
|
-
region?: string
|
|
236
|
-
/**
|
|
237
|
-
* Returns A set of options to configure the retry delay on retryable errors.
|
|
238
|
-
*/
|
|
239
|
-
retryDelayOptions?: RetryDelayOptions
|
|
240
|
-
/**
|
|
241
|
-
* Whether the provided endpoint addresses an individual bucket.
|
|
242
|
-
* false if it addresses the root API endpoint.
|
|
243
|
-
*/
|
|
244
|
-
s3BucketEndpoint?: boolean
|
|
245
|
-
/**
|
|
246
|
-
* Whether to disable S3 body signing when using signature version v4.
|
|
247
|
-
*/
|
|
248
|
-
s3DisableBodySigning?: boolean
|
|
249
|
-
/**
|
|
250
|
-
* Whether to force path style URLs for S3 objects.
|
|
251
|
-
*/
|
|
252
|
-
s3ForcePathStyle?: boolean
|
|
253
|
-
/**
|
|
254
|
-
* When region is set to 'us-east-1', whether to send s3 request to global endpoints
|
|
255
|
-
* or 'us-east-1' regional endpoints. This config is only applicable to S3 client;
|
|
256
|
-
* Defaults to 'legacy'
|
|
257
|
-
*/
|
|
258
|
-
s3UsEast1RegionalEndpoint?: "regional"|"legacy"
|
|
259
|
-
/**
|
|
260
|
-
* Whether to override the request region with the region inferred
|
|
261
|
-
* from requested resource's ARN. Only available for S3 buckets
|
|
262
|
-
* Defaults to `true`
|
|
263
|
-
*/
|
|
264
|
-
s3UseArnRegion?: boolean
|
|
265
|
-
/**
|
|
266
|
-
* Whether the signature to sign requests with (overriding the API configuration) is cached.
|
|
267
|
-
*/
|
|
268
|
-
signatureCache?: boolean
|
|
269
|
-
/**
|
|
270
|
-
* The signature version to sign requests with (overriding the API configuration).
|
|
271
|
-
* Possible values: 'v2'|'v3'|'v4'
|
|
272
|
-
*/
|
|
273
|
-
signatureVersion?: "v2"|"v3"|"v4"|string
|
|
274
|
-
/**
|
|
275
|
-
* Whether SSL is enabled for requests.
|
|
276
|
-
*/
|
|
277
|
-
sslEnabled?: boolean
|
|
278
|
-
/**
|
|
279
|
-
* An offset value in milliseconds to apply to all signing times.
|
|
280
|
-
*/
|
|
281
|
-
systemClockOffset?: number
|
|
282
|
-
/**
|
|
283
|
-
* Whether to use the Accelerate endpoint with the S3 service.
|
|
284
|
-
*/
|
|
285
|
-
useAccelerateEndpoint?: boolean
|
|
286
|
-
/**
|
|
287
|
-
* Whether to validate the CRC32 checksum of HTTP response bodies returned
|
|
288
|
-
* by DynamoDB.
|
|
289
|
-
*/
|
|
290
|
-
dynamoDbCrc32?: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* Whether to enable endpoint discovery for operations that allow optionally using an endpoint returned by
|
|
293
|
-
* the service.
|
|
294
|
-
*/
|
|
295
|
-
endpointDiscoveryEnabled?: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* The size of the global cache storing endpoints from endpoint
|
|
298
|
-
* discovery operations. Once endpoint cache is created, updating this setting
|
|
299
|
-
* cannot change existing cache size.
|
|
300
|
-
*/
|
|
301
|
-
endpointCacheSize?: number;
|
|
302
|
-
/**
|
|
303
|
-
* Whether to marshal request parameters to the prefix of hostname.
|
|
304
|
-
*/
|
|
305
|
-
hostPrefixEnabled?: boolean;
|
|
306
|
-
/**
|
|
307
|
-
* Whether to send sts request to global endpoints or
|
|
308
|
-
* regional endpoints.
|
|
309
|
-
*/
|
|
310
|
-
stsRegionalEndpoints?: "legacy"|"regional";
|
|
311
|
-
}
|
|
@@ -228,6 +228,7 @@ export abstract class ConfigurationServicePlaceholders {
|
|
|
228
228
|
ivs?: AWS.IVS.Types.ClientConfiguration;
|
|
229
229
|
braket?: AWS.Braket.Types.ClientConfiguration;
|
|
230
230
|
identitystore?: AWS.IdentityStore.Types.ClientConfiguration;
|
|
231
|
+
appflow?: AWS.Appflow.Types.ClientConfiguration;
|
|
231
232
|
}
|
|
232
233
|
export interface ConfigurationServiceApiVersions {
|
|
233
234
|
acm?: AWS.ACM.Types.apiVersion;
|
|
@@ -458,4 +459,5 @@ export interface ConfigurationServiceApiVersions {
|
|
|
458
459
|
ivs?: AWS.IVS.Types.apiVersion;
|
|
459
460
|
braket?: AWS.Braket.Types.apiVersion;
|
|
460
461
|
identitystore?: AWS.IdentityStore.Types.apiVersion;
|
|
462
|
+
appflow?: AWS.Appflow.Types.apiVersion;
|
|
461
463
|
}
|
package/lib/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export {Config} from './config';
|
|
2
|
-
export {HTTPOptions} from './config';
|
|
2
|
+
export {HTTPOptions} from './config-base';
|
|
3
3
|
export {Credentials} from './credentials';
|
|
4
4
|
export {CognitoIdentityCredentials} from './credentials/cognito_identity_credentials';
|
|
5
5
|
export {CredentialProviderChain} from './credentials/credential_provider_chain';
|
package/lib/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Credentials} from '../credentials';
|
|
2
2
|
import {AWSError} from '../error';
|
|
3
|
-
import {ConfigurationOptions} from '../config';
|
|
3
|
+
import {ConfigurationOptions} from '../config-base';
|
|
4
4
|
import CognitoIdentity = require('../../clients/cognitoidentity');
|
|
5
5
|
import STS = require('../../clients/sts');
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Credentials} from '../credentials';
|
|
2
2
|
import {AWSError} from '../error';
|
|
3
|
-
import {ConfigurationOptions} from '../config';
|
|
3
|
+
import {ConfigurationOptions} from '../config-base';
|
|
4
4
|
export class TokenFileWebIdentityCredentials extends Credentials {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new credentials object with optional configuraion.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Credentials} from '../credentials';
|
|
2
2
|
import {AWSError} from '../error';
|
|
3
|
-
import {ConfigurationOptions} from '../config';
|
|
3
|
+
import {ConfigurationOptions} from '../config-base';
|
|
4
4
|
import STS = require('../../clients/sts');
|
|
5
5
|
export class WebIdentityCredentials extends Credentials {
|
|
6
6
|
/**
|
package/lib/service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Request} from './request';
|
|
2
2
|
import {AWSError} from './error';
|
|
3
|
-
import {ConfigurationOptions, ConfigBase} from './config';
|
|
3
|
+
import {ConfigurationOptions, ConfigBase} from './config-base';
|
|
4
4
|
import {Endpoint} from './endpoint';
|
|
5
5
|
|
|
6
6
|
export interface WaiterConfiguration {
|
package/package.json
CHANGED
|
@@ -541,7 +541,7 @@ TSGenerator.prototype.processServiceModel = function processServiceModel(service
|
|
|
541
541
|
var customConfig = this.generateCustomConfigFromMetadata(serviceIdentifier);
|
|
542
542
|
var hasCustomConfig = !!customConfig.length;
|
|
543
543
|
var customConfigTypes = ['ServiceConfigurationOptions'];
|
|
544
|
-
code += 'import {ConfigBase as Config} from \'../lib/config\';\n';
|
|
544
|
+
code += 'import {ConfigBase as Config} from \'../lib/config-base\';\n';
|
|
545
545
|
if (hasCustomConfig) {
|
|
546
546
|
// generate import statements and custom config type
|
|
547
547
|
customConfig.forEach(function(config) {
|