Skip to content

Commit 0c8cb2b

Browse files
authored
removing AsyncClient and assignment in return statement in ClientBuilder (#252)
1 parent 5b8aa01 commit 0c8cb2b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/rpdk/java/templates/init/guided_aws/ClientBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package {{ package_name }};
22

33
import software.amazon.awssdk.core.SdkClient;
4-
// TODO: replace all usage of SdkClient with your service client type, e.g; YourServiceAsyncClient
5-
// import software.amazon.awssdk.services.yourservice.YourServiceAsyncClient;
4+
// TODO: replace all usage of SdkClient with your service client type, e.g; YourServiceClient
5+
// import software.amazon.awssdk.services.yourservice.YourServiceClient;
66
// import software.amazon.cloudformation.LambdaWrapper;
77

88
public class ClientBuilder {
99
/*
10-
TODO: uncomment the following, replacing YourServiceAsyncClient with your service client name
10+
TODO: uncomment the following, replacing YourServiceClient with your service client name
1111
It is recommended to use static HTTP client so less memory is consumed
1212
e.g. https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs/blob/master/aws-logs-loggroup/src/main/java/software/amazon/logs/loggroup/ClientBuilder.java#L9
1313
14-
public static YourServiceAsyncClient getClient() {
15-
return YourServiceAsyncClient SERVICE_CLIENT = YourServiceAsyncClient.builder()
14+
public static YourServiceClient getClient() {
15+
return YourServiceClient.builder()
1616
.httpClient(LambdaWrapper.HTTP_CLIENT)
1717
.build();
1818
}

0 commit comments

Comments
 (0)