Property

class Property : KotlinCustomResource

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

Properties

Link copied to clipboard
val displayName: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val secret: Output<Boolean>?

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

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

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

Link copied to clipboard
val type: Output<String>

Resource type for API Management resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val value: Output<String>

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