Support new interface of aws sdk.