@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 java.lang.Object implements AWSServiceDiscoveryResolver
Constructor and Description |
---|
AWSServiceDiscoveryClientResolver(AWSServiceDiscoveryClientConfiguration clientConfiguration)
Constructor builds standard client with given Micronaut configuration.
|
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.servicediscovery.AWSServiceDiscoveryAsync |
resolve(io.micronaut.context.env.Environment environment)
resolve the AWS Service Discovery client when making calls to AWS.
|
public AWSServiceDiscoveryClientResolver(AWSServiceDiscoveryClientConfiguration clientConfiguration)
clientConfiguration
- aws client configuration to usepublic com.amazonaws.services.servicediscovery.AWSServiceDiscoveryAsync resolve(io.micronaut.context.env.Environment environment)
resolve
in interface AWSServiceDiscoveryResolver
environment
- The environment