PropertyArgs

data class PropertyArgs(val displayName: Output<String>? = null, val propId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val secret: Output<Boolean>? = null, val serviceName: Output<String>? = null, val tags: Output<List<String>>? = null, val value: Output<String>? = null) : ConvertibleToJava<PropertyArgs>

Property details. API Version: 2019-01-01.

Example Usage

ApiManagementCreateProperty

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var property = new AzureNative.ApiManagement.Property("property", new()
{
DisplayName = "prop3name",
PropId = "testprop2",
ResourceGroupName = "rg1",
Secret = true,
ServiceName = "apimService1",
Tags = new[]
{
"foo",
"bar",
},
Value = "propValue",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewProperty(ctx, "property", &apimanagement.PropertyArgs{
DisplayName: pulumi.String("prop3name"),
PropId: pulumi.String("testprop2"),
ResourceGroupName: pulumi.String("rg1"),
Secret: pulumi.Bool(true),
ServiceName: pulumi.String("apimService1"),
Tags: pulumi.StringArray{
pulumi.String("foo"),
pulumi.String("bar"),
},
Value: pulumi.String("propValue"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.Property;
import com.pulumi.azurenative.apimanagement.PropertyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var property = new Property("property", PropertyArgs.builder()
.displayName("prop3name")
.propId("testprop2")
.resourceGroupName("rg1")
.secret(true)
.serviceName("apimService1")
.tags(
"foo",
"bar")
.value("propValue")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:apimanagement:Property testprop2 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/properties/testprop2

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, propId: Output<String>? = null, resourceGroupName: Output<String>? = null, secret: Output<Boolean>? = null, serviceName: Output<String>? = null, tags: Output<List<String>>? = null, value: Output<String>? = null)

Properties

Link copied to clipboard
val displayName: Output<String>? = null

Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters.

Link copied to clipboard
val propId: Output<String>? = null

Identifier of the property.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val secret: Output<Boolean>? = null

Determines whether the value is a secret and should be encrypted or not. Default value is false.

Link copied to clipboard
val serviceName: Output<String>? = null

The name of the API Management service.

Link copied to clipboard
val tags: Output<List<String>>? = null

Optional tags that when provided can be used to filter the property list.

Link copied to clipboard
val value: Output<String>? = null

Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace.

Functions

Link copied to clipboard
open override fun toJava(): PropertyArgs