blob: 9657d044321df2e2e7246fc1beb3ecc8b0d1b0f9 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.spring.boot.vault;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "camel.vault.aws")
public class AwsVaultConfigurationProperties {
/**
* The AWS access key
*/
private String accessKey;
/**
* The AWS secret key
*/
private String secretKey;
/**
* The AWS region
*/
private String region;
/**
* Define if we want to use the AWS Default Credentials Provider or not
*/
private boolean defaultCredentialsProvider;
/**
* Define if we want to refresh the secrets on update
*/
private boolean refreshEnabled;
/**
* Define the refresh period
*/
private long refreshPeriod = 30000;
/**
* Define the secrets to look at
*/
private String secrets;
public String getAccessKey() {
return accessKey;
}
public void setAccessKey(String accessKey) {
this.accessKey = accessKey;
}
public String getSecretKey() {
return secretKey;
}
public void setSecretKey(String secretKey) {
this.secretKey = secretKey;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public boolean isDefaultCredentialsProvider() {
return defaultCredentialsProvider;
}
public void setDefaultCredentialsProvider(boolean defaultCredentialsProvider) {
this.defaultCredentialsProvider = defaultCredentialsProvider;
}
public boolean isRefreshEnabled() {
return refreshEnabled;
}
public void setRefreshEnabled(boolean refreshEnabled) {
this.refreshEnabled = refreshEnabled;
}
public long getRefreshPeriod() {
return refreshPeriod;
}
public void setRefreshPeriod(long refreshPeriod) {
this.refreshPeriod = refreshPeriod;
}
public String getSecrets() {
return secrets;
}
public void setSecrets(String secrets) {
this.secrets = secrets;
}
}