Global config options with AWS SDK 3

0

In the AWK SDK version 2 it was possible to set the global config options by doing something like:

   AWS.config.update({
    maxRetries: maxRetries,
    httpOptions: {
        timeout: requestTimeout,
        connectTimeout: connectTimeout
    }
});

Now the documentation says to configure it by service passing those options as an argument of an object like LambdaClient or EC2. But what if I use CDK and never use those client objects explicitly? Will a simple call of a constructor of such a client object change the configuration globally for all the subsequent usages the given type of resource or there is another mechanism to configure it?

已提问 6 个月前77 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则