|
16 | 16 | package software.amazon.awssdk.awscore.internal.client.handler;
|
17 | 17 |
|
18 | 18 | import software.amazon.awssdk.annotations.SdkInternalApi;
|
19 |
| -import software.amazon.awssdk.auth.AwsExecutionAttribute; |
20 | 19 | import software.amazon.awssdk.auth.credentials.AwsCredentials;
|
21 | 20 | import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
|
| 21 | +import software.amazon.awssdk.auth.signer.AwsSignerExecutionAttribute; |
| 22 | +import software.amazon.awssdk.awscore.AwsExecutionAttribute; |
22 | 23 | import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
|
23 | 24 | import software.amazon.awssdk.awscore.client.config.AwsAdvancedClientOption;
|
24 | 25 | import software.amazon.awssdk.awscore.client.config.AwsClientOption;
|
@@ -54,16 +55,16 @@ public static ExecutionContext createExecutionContext(SdkRequest originalRequest
|
54 | 55 | Validate.validState(credentials != null, "Credential providers must never return null.");
|
55 | 56 |
|
56 | 57 | ExecutionAttributes executionAttributes = new ExecutionAttributes()
|
57 |
| - .putAttribute(AwsExecutionAttribute.SERVICE_CONFIG, clientConfig.option(SdkClientOption.SERVICE_CONFIGURATION)) |
58 |
| - .putAttribute(AwsExecutionAttribute.AWS_CREDENTIALS, credentials) |
59 |
| - .putAttribute(AwsExecutionAttribute.REQUEST_CONFIG, originalRequest.overrideConfiguration() |
60 |
| - .map(c -> (RequestOverrideConfiguration) c) |
61 |
| - .orElse(AwsRequestOverrideConfiguration.builder() |
62 |
| - .build())) |
63 |
| - .putAttribute(AwsExecutionAttribute.SERVICE_SIGNING_NAME, |
| 58 | + .putAttribute(AwsSignerExecutionAttribute.SERVICE_CONFIG, clientConfig.option(SdkClientOption.SERVICE_CONFIGURATION)) |
| 59 | + .putAttribute(AwsSignerExecutionAttribute.AWS_CREDENTIALS, credentials) |
| 60 | + .putAttribute(AwsSignerExecutionAttribute.REQUEST_CONFIG, |
| 61 | + originalRequest.overrideConfiguration() |
| 62 | + .map(c -> (RequestOverrideConfiguration) c) |
| 63 | + .orElse(AwsRequestOverrideConfiguration.builder().build())) |
| 64 | + .putAttribute(AwsSignerExecutionAttribute.SERVICE_SIGNING_NAME, |
64 | 65 | clientConfig.option(AwsClientOption.SERVICE_SIGNING_NAME))
|
65 | 66 | .putAttribute(AwsExecutionAttribute.AWS_REGION, clientConfig.option(AwsClientOption.AWS_REGION))
|
66 |
| - .putAttribute(AwsExecutionAttribute.SIGNING_REGION, clientConfig.option(AwsClientOption.SIGNING_REGION)); |
| 67 | + .putAttribute(AwsSignerExecutionAttribute.SIGNING_REGION, clientConfig.option(AwsClientOption.SIGNING_REGION)); |
67 | 68 |
|
68 | 69 | ExecutionInterceptorChain executionInterceptorChain =
|
69 | 70 | new ExecutionInterceptorChain(clientConfig.option(SdkClientOption.EXECUTION_INTERCEPTORS));
|
|
0 commit comments