alicloud.eds.CustomProperty
Explore with Pulumi AI
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
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());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.eds.CustomProperty("example",
property_key="example_key",
property_values=[alicloud.eds.CustomPropertyPropertyValueArgs(
property_value="example_value",
)])
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",
}],
});
resources:
example:
type: alicloud:eds:CustomProperty
properties:
propertyKey: example_key
propertyValues:
- propertyValue: example_value
Create CustomProperty Resource
new CustomProperty(name: string, args: CustomPropertyArgs, opts?: CustomResourceOptions);
@overload
def CustomProperty(resource_name: str,
opts: Optional[ResourceOptions] = None,
property_key: Optional[str] = None,
property_values: Optional[Sequence[CustomPropertyPropertyValueArgs]] = None)
@overload
def CustomProperty(resource_name: str,
args: CustomPropertyArgs,
opts: Optional[ResourceOptions] = None)
func NewCustomProperty(ctx *Context, name string, args CustomPropertyArgs, opts ...ResourceOption) (*CustomProperty, error)
public CustomProperty(string name, CustomPropertyArgs args, CustomResourceOptions? opts = null)
public CustomProperty(String name, CustomPropertyArgs args)
public CustomProperty(String name, CustomPropertyArgs args, CustomResourceOptions options)
type: alicloud:eds:CustomProperty
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomPropertyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomPropertyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomPropertyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomPropertyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomPropertyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CustomProperty Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CustomProperty resource accepts the following input properties:
- Property
Key string The Custom attribute key.
- Property
Values List<Pulumi.Ali Cloud. Eds. Inputs. Custom Property Property Value> Custom attribute sets the value of. See
property_values
below.
- Property
Key string The Custom attribute key.
- Property
Values []CustomProperty Property Value Args Custom attribute sets the value of. See
property_values
below.
- property
Key String The Custom attribute key.
- property
Values List<CustomProperty Property Value> Custom attribute sets the value of. See
property_values
below.
- property
Key string The Custom attribute key.
- property
Values CustomProperty Property Value[] Custom attribute sets the value of. See
property_values
below.
- property_
key str The Custom attribute key.
- property_
values Sequence[CustomProperty Property Value Args] Custom attribute sets the value of. See
property_values
below.
- property
Key String The Custom attribute key.
- property
Values List<Property Map> Custom attribute sets the value of. See
property_values
below.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomProperty resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing CustomProperty Resource
Get an existing CustomProperty resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CustomPropertyState, opts?: CustomResourceOptions): CustomProperty
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
property_key: Optional[str] = None,
property_values: Optional[Sequence[CustomPropertyPropertyValueArgs]] = None) -> CustomProperty
func GetCustomProperty(ctx *Context, name string, id IDInput, state *CustomPropertyState, opts ...ResourceOption) (*CustomProperty, error)
public static CustomProperty Get(string name, Input<string> id, CustomPropertyState? state, CustomResourceOptions? opts = null)
public static CustomProperty get(String name, Output<String> id, CustomPropertyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Property
Key string The Custom attribute key.
- Property
Values List<Pulumi.Ali Cloud. Eds. Inputs. Custom Property Property Value> Custom attribute sets the value of. See
property_values
below.
- Property
Key string The Custom attribute key.
- Property
Values []CustomProperty Property Value Args Custom attribute sets the value of. See
property_values
below.
- property
Key String The Custom attribute key.
- property
Values List<CustomProperty Property Value> Custom attribute sets the value of. See
property_values
below.
- property
Key string The Custom attribute key.
- property
Values CustomProperty Property Value[] Custom attribute sets the value of. See
property_values
below.
- property_
key str The Custom attribute key.
- property_
values Sequence[CustomProperty Property Value Args] Custom attribute sets the value of. See
property_values
below.
- property
Key String The Custom attribute key.
- property
Values List<Property Map> Custom attribute sets the value of. See
property_values
below.
Supporting Types
CustomPropertyPropertyValue, CustomPropertyPropertyValueArgs
- Property
Value string The value of an attribute.
- Property
Value stringId The value of an attribute id.
- Property
Value string The value of an attribute.
- Property
Value stringId The value of an attribute id.
- property
Value String The value of an attribute.
- property
Value StringId The value of an attribute id.
- property
Value string The value of an attribute.
- property
Value stringId The value of an attribute id.
- property_
value str The value of an attribute.
- property_
value_ strid The value of an attribute id.
- property
Value String The value of an attribute.
- property
Value StringId The value of an attribute id.
Import
ECD Custom Property can be imported using the id, e.g.
$ pulumi import alicloud:eds/customProperty:CustomProperty example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.