All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.otto.edison.aws.config.paramstore.ParamStoreConfiguration Maven / Gradle / Ivy

package de.otto.edison.aws.config.paramstore;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
import software.amazon.awssdk.services.ssm.SsmClient;

@Configuration
@EnableConfigurationProperties(ParamStoreConfigProperties.class)
@ConditionalOnProperty(name = "edison.aws.config.paramstore.enabled", havingValue = "true")
public class ParamStoreConfiguration {

    @Bean
    public SsmClient awsSSM(AwsCredentialsProvider awsCredentialsProvider) {
        return SsmClient.builder()
            .credentialsProvider(awsCredentialsProvider)
            .build();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy