import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an API Management Named Value. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleService = new azure.apimanagement.Service("example", { * name: "example-apim", * location: example.location, * resourceGroupName: example.name, * publisherName: "pub1", * publisherEmail: "pub1@email.com", * skuName: "Developer_1", * }); * const exampleNamedValue = new azure.apimanagement.NamedValue("example", { * name: "example-apimg", * resourceGroupName: example.name, * apiManagementName: exampleService.name, * displayName: "ExampleProperty", * value: "Example Value", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management Properties can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/namedValue:NamedValue example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.ApiManagement/service/example-apim/namedValues/example-apimp * ``` */ export declare class NamedValue extends pulumi.CustomResource { /** * Get an existing NamedValue resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NamedValueState, opts?: pulumi.CustomResourceOptions): NamedValue; /** * Returns true if the given object is an instance of NamedValue. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NamedValue; /** * The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created. */ readonly apiManagementName: pulumi.Output; /** * The display name of this API Management Named Value. */ readonly displayName: pulumi.Output; /** * The name of the API Management Named Value. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`. * * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure. */ readonly secret: pulumi.Output; /** * A list of tags to be applied to the API Management Named Value. */ readonly tags: pulumi.Output; /** * The value of this API Management Named Value. */ readonly value: pulumi.Output; /** * A `valueFromKeyVault` block as defined below. If specified, `secret` must also be set to `true`. */ readonly valueFromKeyVault: pulumi.Output; /** * Create a NamedValue resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NamedValueArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NamedValue resources. */ export interface NamedValueState { /** * The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created. */ apiManagementName?: pulumi.Input; /** * The display name of this API Management Named Value. */ displayName?: pulumi.Input; /** * The name of the API Management Named Value. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`. * * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure. */ secret?: pulumi.Input; /** * A list of tags to be applied to the API Management Named Value. */ tags?: pulumi.Input[]>; /** * The value of this API Management Named Value. */ value?: pulumi.Input; /** * A `valueFromKeyVault` block as defined below. If specified, `secret` must also be set to `true`. */ valueFromKeyVault?: pulumi.Input; } /** * The set of arguments for constructing a NamedValue resource. */ export interface NamedValueArgs { /** * The name of the API Management Service in which the API Management Named Value should exist. Changing this forces a new resource to be created. */ apiManagementName: pulumi.Input; /** * The display name of this API Management Named Value. */ displayName: pulumi.Input; /** * The name of the API Management Named Value. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group in which the API Management Named Value should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Specifies whether the API Management Named Value is secret. Valid values are `true` or `false`. The default value is `false`. * * > **NOTE:** setting the field `secret` to `true` doesn't make this field sensitive in the provider, instead it marks the value as secret and encrypts the value in Azure. */ secret?: pulumi.Input; /** * A list of tags to be applied to the API Management Named Value. */ tags?: pulumi.Input[]>; /** * The value of this API Management Named Value. */ value?: pulumi.Input; /** * A `valueFromKeyVault` block as defined below. If specified, `secret` must also be set to `true`. */ valueFromKeyVault?: pulumi.Input; }