@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented @Conditional(value=OnAwsCloudEnvironmentCondition.class) @Deprecated public @interface ConditionalOnAwsCloudEnvironment
Conditional
annotation that returns true
if the current JVM is started inside an AWS cloud environment. Useful for beans that
should only be created if the application context is bootstrapped inside the AWS
environment (e.g. beans that fetch meta data or beans that can only connect to AWS
internal services like Elasticache)Copyright © 2021 Pivotal Software, Inc.. All rights reserved.