CustomProperty

class CustomProperty : KotlinCustomResource

Provides a ECD Custom Property resource. For information about ECD Custom Property and how to use it, see What is Custom Property.

NOTE: Available since v1.176.0. NOTE: Up to 10 different attributes can be created under an alibaba cloud account. Up to 50 different attribute values can be added under an attribute.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.eds.CustomProperty("example", {
propertyKey: "example_key",
propertyValues: [{
propertyValue: "example_value",
}],
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.eds.CustomProperty("example",
property_key="example_key",
property_values=[{
"property_value": "example_value",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Eds.CustomProperty("example", new()
{
PropertyKey = "example_key",
PropertyValues = new[]
{
new AliCloud.Eds.Inputs.CustomPropertyPropertyValueArgs
{
PropertyValue = "example_value",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eds.NewCustomProperty(ctx, "example", &eds.CustomPropertyArgs{
PropertyKey: pulumi.String("example_key"),
PropertyValues: eds.CustomPropertyPropertyValueArray{
&eds.CustomPropertyPropertyValueArgs{
PropertyValue: pulumi.String("example_value"),
},
},
})
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.alicloud.eds.CustomProperty;
import com.pulumi.alicloud.eds.CustomPropertyArgs;
import com.pulumi.alicloud.eds.inputs.CustomPropertyPropertyValueArgs;
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 example = new CustomProperty("example", CustomPropertyArgs.builder()
.propertyKey("example_key")
.propertyValues(CustomPropertyPropertyValueArgs.builder()
.propertyValue("example_value")
.build())
.build());
}
}
resources:
example:
type: alicloud:eds:CustomProperty
properties:
propertyKey: example_key
propertyValues:
- propertyValue: example_value

Import

ECD Custom Property can be imported using the id, e.g.

$ pulumi import alicloud:eds/customProperty:CustomProperty example <id>

Properties

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

The Custom attribute key.

Link copied to clipboard

Custom attribute sets the value of. See property_values below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>