File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " bugfix" ,
3
+ "category" : " TypeScript" ,
4
+ "description" : " Enable the configuration credentials to be nulled so that the global config is not used."
5
+ }
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export abstract class ConfigurationOptions {
171
171
/**
172
172
* The AWS credentials to sign requests with.
173
173
*/
174
- credentials ?: Credentials | CredentialsOptions
174
+ credentials ?: Credentials | CredentialsOptions | null
175
175
/**
176
176
* The provider chain used to resolve credentials if no static credentials property is set.
177
177
*/
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ import {Endpoint} from '../lib/endpoint';
5
5
// Instantiate S3 without options
6
6
var s3 = new S3 ( ) ;
7
7
8
+ // Instantiate S3 without using the global credentials
9
+ new S3 ( {
10
+ credentials : null
11
+ } ) ;
12
+
8
13
// Instantiate S3 with config
9
14
var s3Config : S3 . Types . ClientConfiguration = {
10
15
apiVersion : '2006-03-01' ,
You can’t perform that action at this time.
0 commit comments