com.microsoft.azure.functions.dapr.annotation.DaprSecretInput Maven / Gradle / Ivy
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.functions.dapr.annotation;
import com.microsoft.azure.functions.annotation.CustomBinding;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* Attribute to specify parameters for the Dapr secret input binding.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@CustomBinding(direction = "in", name = "daprSecretInputMessage", type = "daprSecret")
public @interface DaprSecretInput {
/**
* Dapr runtime endpoint.
*/
String daprAddress() default "";
/**
* Name of the secret store to get the secret from.
*/
String secretStoreName() default "";
/**
* Key identifying the name of the secret to get.
*/
String key() default "";
/**
* An array of metadata properties in the form "key1=value1&key2=value2".
*/
String metadata() default "";
}