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.
Files changed (267) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/README.md +1 -1
  3. package/apis/apigatewayv2-2018-11-29.min.json +42 -0
  4. package/apis/appflow-2020-08-23.examples.json +5 -0
  5. package/apis/appflow-2020-08-23.min.json +1541 -0
  6. package/apis/appflow-2020-08-23.paginators.json +23 -0
  7. package/apis/dms-2016-01-01.min.json +9 -0
  8. package/apis/ec2-2016-11-15.min.json +717 -468
  9. package/apis/ec2-2016-11-15.paginators.json +6 -0
  10. package/apis/gamelift-2015-10-01.min.json +192 -161
  11. package/apis/gamelift-2015-10-01.paginators.json +120 -0
  12. package/apis/iotsitewise-2019-12-02.min.json +11 -4
  13. package/apis/kafka-2018-11-14.min.json +98 -19
  14. package/apis/mediaconvert-2017-08-29.min.json +91 -79
  15. package/apis/metadata.json +3 -0
  16. package/apis/route53resolver-2018-04-01.min.json +292 -24
  17. package/apis/route53resolver-2018-04-01.paginators.json +26 -4
  18. package/apis/xray-2016-04-12.min.json +144 -55
  19. package/clients/accessanalyzer.d.ts +1 -1
  20. package/clients/acm.d.ts +1 -1
  21. package/clients/acmpca.d.ts +1 -1
  22. package/clients/alexaforbusiness.d.ts +1 -1
  23. package/clients/all.d.ts +1 -0
  24. package/clients/all.js +2 -1
  25. package/clients/amplify.d.ts +1 -1
  26. package/clients/apigateway.d.ts +1 -1
  27. package/clients/apigatewaymanagementapi.d.ts +1 -1
  28. package/clients/apigatewayv2.d.ts +67 -43
  29. package/clients/appconfig.d.ts +1 -1
  30. package/clients/appflow.d.ts +1967 -0
  31. package/clients/appflow.js +18 -0
  32. package/clients/applicationautoscaling.d.ts +1 -1
  33. package/clients/applicationinsights.d.ts +1 -1
  34. package/clients/appmesh.d.ts +1 -1
  35. package/clients/appstream.d.ts +1 -1
  36. package/clients/appsync.d.ts +1 -1
  37. package/clients/athena.d.ts +1 -1
  38. package/clients/augmentedairuntime.d.ts +1 -1
  39. package/clients/autoscaling.d.ts +1 -1
  40. package/clients/autoscalingplans.d.ts +1 -1
  41. package/clients/backup.d.ts +1 -1
  42. package/clients/batch.d.ts +1 -1
  43. package/clients/braket.d.ts +1 -1
  44. package/clients/budgets.d.ts +1 -1
  45. package/clients/chime.d.ts +4 -4
  46. package/clients/cloud9.d.ts +1 -1
  47. package/clients/clouddirectory.d.ts +1 -1
  48. package/clients/cloudformation.d.ts +1 -1
  49. package/clients/cloudfront.d.ts +1 -1
  50. package/clients/cloudhsm.d.ts +1 -1
  51. package/clients/cloudhsmv2.d.ts +1 -1
  52. package/clients/cloudsearch.d.ts +1 -1
  53. package/clients/cloudsearchdomain.d.ts +1 -1
  54. package/clients/cloudtrail.d.ts +1 -1
  55. package/clients/cloudwatch.d.ts +1 -1
  56. package/clients/cloudwatchevents.d.ts +1 -1
  57. package/clients/cloudwatchlogs.d.ts +102 -57
  58. package/clients/codeartifact.d.ts +1 -1
  59. package/clients/codebuild.d.ts +1 -1
  60. package/clients/codecommit.d.ts +1 -1
  61. package/clients/codedeploy.d.ts +1 -1
  62. package/clients/codeguruprofiler.d.ts +1 -1
  63. package/clients/codegurureviewer.d.ts +1 -1
  64. package/clients/codepipeline.d.ts +1 -1
  65. package/clients/codestar.d.ts +1 -1
  66. package/clients/codestarconnections.d.ts +1 -1
  67. package/clients/codestarnotifications.d.ts +1 -1
  68. package/clients/cognitoidentity.d.ts +1 -1
  69. package/clients/cognitoidentityserviceprovider.d.ts +1 -1
  70. package/clients/cognitosync.d.ts +1 -1
  71. package/clients/comprehend.d.ts +1 -1
  72. package/clients/comprehendmedical.d.ts +1 -1
  73. package/clients/computeoptimizer.d.ts +1 -1
  74. package/clients/configservice.d.ts +1 -1
  75. package/clients/connect.d.ts +1 -1
  76. package/clients/connectparticipant.d.ts +1 -1
  77. package/clients/costexplorer.d.ts +1 -1
  78. package/clients/cur.d.ts +1 -1
  79. package/clients/dataexchange.d.ts +1 -1
  80. package/clients/datapipeline.d.ts +1 -1
  81. package/clients/datasync.d.ts +1 -1
  82. package/clients/dax.d.ts +1 -1
  83. package/clients/detective.d.ts +1 -1
  84. package/clients/devicefarm.d.ts +1 -1
  85. package/clients/directconnect.d.ts +1 -1
  86. package/clients/directoryservice.d.ts +1 -1
  87. package/clients/discovery.d.ts +1 -1
  88. package/clients/dlm.d.ts +1 -1
  89. package/clients/dms.d.ts +50 -38
  90. package/clients/docdb.d.ts +1 -1
  91. package/clients/dynamodb.d.ts +1 -1
  92. package/clients/dynamodbstreams.d.ts +1 -1
  93. package/clients/ebs.d.ts +1 -1
  94. package/clients/ec2.d.ts +391 -53
  95. package/clients/ec2instanceconnect.d.ts +1 -1
  96. package/clients/ecr.d.ts +1 -1
  97. package/clients/ecs.d.ts +1 -1
  98. package/clients/efs.d.ts +1 -1
  99. package/clients/eks.d.ts +1 -1
  100. package/clients/elasticache.d.ts +1 -1
  101. package/clients/elasticbeanstalk.d.ts +1 -1
  102. package/clients/elasticinference.d.ts +1 -1
  103. package/clients/elastictranscoder.d.ts +1 -1
  104. package/clients/elb.d.ts +1 -1
  105. package/clients/elbv2.d.ts +1 -1
  106. package/clients/emr.d.ts +1 -1
  107. package/clients/es.d.ts +1 -1
  108. package/clients/eventbridge.d.ts +1 -1
  109. package/clients/firehose.d.ts +1 -1
  110. package/clients/fms.d.ts +1 -1
  111. package/clients/forecastqueryservice.d.ts +1 -1
  112. package/clients/forecastservice.d.ts +1 -1
  113. package/clients/frauddetector.d.ts +1 -1
  114. package/clients/fsx.d.ts +16 -16
  115. package/clients/gamelift.d.ts +245 -205
  116. package/clients/glacier.d.ts +1 -1
  117. package/clients/globalaccelerator.d.ts +1 -1
  118. package/clients/glue.d.ts +1 -1
  119. package/clients/greengrass.d.ts +1 -1
  120. package/clients/groundstation.d.ts +1 -1
  121. package/clients/guardduty.d.ts +1 -1
  122. package/clients/health.d.ts +1 -1
  123. package/clients/honeycode.d.ts +1 -1
  124. package/clients/iam.d.ts +1 -1
  125. package/clients/identitystore.d.ts +1 -1
  126. package/clients/imagebuilder.d.ts +1 -1
  127. package/clients/importexport.d.ts +1 -1
  128. package/clients/inspector.d.ts +1 -1
  129. package/clients/iot.d.ts +1 -1
  130. package/clients/iot1clickdevicesservice.d.ts +1 -1
  131. package/clients/iot1clickprojects.d.ts +1 -1
  132. package/clients/iotanalytics.d.ts +1 -1
  133. package/clients/iotdata.d.ts +1 -1
  134. package/clients/iotevents.d.ts +1 -1
  135. package/clients/ioteventsdata.d.ts +1 -1
  136. package/clients/iotjobsdataplane.d.ts +1 -1
  137. package/clients/iotsecuretunneling.d.ts +1 -1
  138. package/clients/iotsitewise.d.ts +74 -68
  139. package/clients/iotthingsgraph.d.ts +1 -1
  140. package/clients/ivs.d.ts +1 -1
  141. package/clients/kafka.d.ts +101 -1
  142. package/clients/kendra.d.ts +1 -1
  143. package/clients/kinesis.d.ts +1 -1
  144. package/clients/kinesisanalytics.d.ts +1 -1
  145. package/clients/kinesisanalyticsv2.d.ts +1 -1
  146. package/clients/kinesisvideo.d.ts +1 -1
  147. package/clients/kinesisvideoarchivedmedia.d.ts +1 -1
  148. package/clients/kinesisvideomedia.d.ts +1 -1
  149. package/clients/kinesisvideosignalingchannels.d.ts +1 -1
  150. package/clients/kms.d.ts +1 -1
  151. package/clients/lakeformation.d.ts +1 -1
  152. package/clients/lambda.d.ts +1 -1
  153. package/clients/lexmodelbuildingservice.d.ts +1 -1
  154. package/clients/lexruntime.d.ts +1 -1
  155. package/clients/licensemanager.d.ts +1 -1
  156. package/clients/lightsail.d.ts +1 -1
  157. package/clients/machinelearning.d.ts +1 -1
  158. package/clients/macie.d.ts +1 -1
  159. package/clients/macie2.d.ts +1 -1
  160. package/clients/managedblockchain.d.ts +1 -1
  161. package/clients/marketplacecatalog.d.ts +1 -1
  162. package/clients/marketplacecommerceanalytics.d.ts +1 -1
  163. package/clients/marketplaceentitlementservice.d.ts +1 -1
  164. package/clients/marketplacemetering.d.ts +1 -1
  165. package/clients/mediaconnect.d.ts +1 -1
  166. package/clients/mediaconvert.d.ts +22 -6
  167. package/clients/medialive.d.ts +1 -1
  168. package/clients/mediapackage.d.ts +1 -1
  169. package/clients/mediapackagevod.d.ts +1 -1
  170. package/clients/mediastore.d.ts +1 -1
  171. package/clients/mediastoredata.d.ts +1 -1
  172. package/clients/mediatailor.d.ts +1 -1
  173. package/clients/migrationhub.d.ts +1 -1
  174. package/clients/migrationhubconfig.d.ts +1 -1
  175. package/clients/mobile.d.ts +1 -1
  176. package/clients/mobileanalytics.d.ts +1 -1
  177. package/clients/mq.d.ts +1 -1
  178. package/clients/mturk.d.ts +1 -1
  179. package/clients/neptune.d.ts +1 -1
  180. package/clients/networkmanager.d.ts +1 -1
  181. package/clients/opsworks.d.ts +1 -1
  182. package/clients/opsworkscm.d.ts +1 -1
  183. package/clients/organizations.d.ts +1 -1
  184. package/clients/outposts.d.ts +1 -1
  185. package/clients/personalize.d.ts +1 -1
  186. package/clients/personalizeevents.d.ts +1 -1
  187. package/clients/personalizeruntime.d.ts +1 -1
  188. package/clients/pi.d.ts +1 -1
  189. package/clients/pinpoint.d.ts +1 -1
  190. package/clients/pinpointemail.d.ts +1 -1
  191. package/clients/pinpointsmsvoice.d.ts +1 -1
  192. package/clients/polly.d.ts +1 -1
  193. package/clients/pricing.d.ts +1 -1
  194. package/clients/qldb.d.ts +1 -1
  195. package/clients/qldbsession.d.ts +1 -1
  196. package/clients/quicksight.d.ts +1 -1
  197. package/clients/ram.d.ts +1 -1
  198. package/clients/rds.d.ts +1 -1
  199. package/clients/rdsdataservice.d.ts +1 -1
  200. package/clients/redshift.d.ts +7 -7
  201. package/clients/rekognition.d.ts +1 -1
  202. package/clients/resourcegroups.d.ts +1 -1
  203. package/clients/resourcegroupstaggingapi.d.ts +1 -1
  204. package/clients/robomaker.d.ts +1 -1
  205. package/clients/route53.d.ts +1 -1
  206. package/clients/route53domains.d.ts +1 -1
  207. package/clients/route53resolver.d.ts +491 -119
  208. package/clients/s3.d.ts +1 -1
  209. package/clients/s3control.d.ts +1 -1
  210. package/clients/sagemaker.d.ts +1 -1
  211. package/clients/sagemakerruntime.d.ts +1 -1
  212. package/clients/savingsplans.d.ts +1 -1
  213. package/clients/schemas.d.ts +1 -1
  214. package/clients/secretsmanager.d.ts +1 -1
  215. package/clients/securityhub.d.ts +1 -1
  216. package/clients/serverlessapplicationrepository.d.ts +1 -1
  217. package/clients/servicecatalog.d.ts +1 -1
  218. package/clients/servicediscovery.d.ts +1 -1
  219. package/clients/servicequotas.d.ts +1 -1
  220. package/clients/ses.d.ts +1 -1
  221. package/clients/sesv2.d.ts +1 -1
  222. package/clients/shield.d.ts +1 -1
  223. package/clients/signer.d.ts +1 -1
  224. package/clients/simpledb.d.ts +1 -1
  225. package/clients/sms.d.ts +1 -1
  226. package/clients/snowball.d.ts +1 -1
  227. package/clients/sns.d.ts +1 -1
  228. package/clients/sqs.d.ts +1 -1
  229. package/clients/ssm.d.ts +12 -12
  230. package/clients/sso.d.ts +1 -1
  231. package/clients/ssooidc.d.ts +1 -1
  232. package/clients/stepfunctions.d.ts +1 -1
  233. package/clients/storagegateway.d.ts +1 -1
  234. package/clients/sts.d.ts +1 -1
  235. package/clients/support.d.ts +1 -1
  236. package/clients/swf.d.ts +1 -1
  237. package/clients/synthetics.d.ts +1 -1
  238. package/clients/textract.d.ts +1 -1
  239. package/clients/transcribeservice.d.ts +1 -1
  240. package/clients/transfer.d.ts +1 -1
  241. package/clients/translate.d.ts +1 -1
  242. package/clients/waf.d.ts +1 -1
  243. package/clients/wafregional.d.ts +1 -1
  244. package/clients/wafv2.d.ts +1 -1
  245. package/clients/workdocs.d.ts +1 -1
  246. package/clients/worklink.d.ts +1 -1
  247. package/clients/workmail.d.ts +1 -1
  248. package/clients/workmailmessageflow.d.ts +1 -1
  249. package/clients/workspaces.d.ts +1 -1
  250. package/clients/xray.d.ts +56 -1
  251. package/dist/aws-sdk-core-react-native.js +2 -2
  252. package/dist/aws-sdk-react-native.js +53 -16
  253. package/dist/aws-sdk.js +1191 -689
  254. package/dist/aws-sdk.min.js +58 -58
  255. package/lib/config-base.d.ts +267 -0
  256. package/lib/config.d.ts +1 -266
  257. package/lib/config_service_placeholders.d.ts +2 -0
  258. package/lib/core.d.ts +1 -1
  259. package/lib/core.js +1 -1
  260. package/lib/credentials/cognito_identity_credentials.d.ts +1 -1
  261. package/lib/credentials/process_credentials.d.ts +1 -1
  262. package/lib/credentials/shared_ini_file_credentials.d.ts +1 -1
  263. package/lib/credentials/token_file_web_identity_credentials.d.ts +1 -1
  264. package/lib/credentials/web_identity_credentials.d.ts +1 -1
  265. package/lib/service.d.ts +1 -1
  266. package/package.json +1 -1
  267. 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
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.737.0',
23
+ VERSION: '2.741.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -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,5 +1,5 @@
1
1
  import {Credentials} from '../credentials';
2
- import {HTTPOptions} from '../config';
2
+ import {HTTPOptions} from '../config-base';
3
3
  export class ProcessCredentials extends Credentials {
4
4
  /**
5
5
  * Creates a new ProcessCredentials object.
@@ -1,5 +1,5 @@
1
1
  import {Credentials} from '../credentials';
2
- import {HTTPOptions} from '../config';
2
+ import {HTTPOptions} from '../config-base';
3
3
  export class SharedIniFileCredentials extends Credentials {
4
4
  /**
5
5
  * Creates a new SharedIniFileCredentials object.
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.737.0",
4
+ "version": "2.741.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -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) {