@Requires(classes=com.amazonaws.services.servicediscovery.AWSServiceDiscoveryAsync.class) @Requires(env="ec2") @Requires(property="aws.route53.discovery.enabled",value="true",defaultValue="false") @Singleton public class AWSServiceDiscoveryClientResolver extends Object implements AWSServiceDiscoveryResolver
Constructor and Description |
---|
AWSServiceDiscoveryClientResolver(io.micronaut.configuration.aws.AWSClientConfiguration clientConfiguration)
Constructor builds standard client with given Micronaut configuration.
|
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.servicediscovery.AWSServiceDiscoveryAsync |
resolve(Environment environment)
resolve the AWS Service Discovery client when making calls to AWS.
|
public AWSServiceDiscoveryClientResolver(io.micronaut.configuration.aws.AWSClientConfiguration clientConfiguration)
clientConfiguration
- aws client configuration to usepublic com.amazonaws.services.servicediscovery.AWSServiceDiscoveryAsync resolve(Environment environment)
resolve
in interface AWSServiceDiscoveryResolver
environment
- The environment