Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.eds.getCustomProperties
Explore with Pulumi AI
This data source provides the Ecd Custom Properties of the current Alibaba Cloud user.
NOTE: Available in v1.176.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.eds.getCustomProperties({
    ids: ["example_id"],
});
export const ecdCustomPropertyId1 = ids.then(ids => ids.properties?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.eds.get_custom_properties(ids=["example_id"])
pulumi.export("ecdCustomPropertyId1", ids.properties[0].id)
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 {
		ids, err := eds.GetCustomProperties(ctx, &eds.GetCustomPropertiesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ecdCustomPropertyId1", ids.Properties[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Eds.GetCustomProperties.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
    });
    return new Dictionary<string, object?>
    {
        ["ecdCustomPropertyId1"] = ids.Apply(getCustomPropertiesResult => getCustomPropertiesResult.Properties[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eds.EdsFunctions;
import com.pulumi.alicloud.eds.inputs.GetCustomPropertiesArgs;
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) {
        final var ids = EdsFunctions.getCustomProperties(GetCustomPropertiesArgs.builder()
            .ids("example_id")
            .build());
        ctx.export("ecdCustomPropertyId1", ids.applyValue(getCustomPropertiesResult -> getCustomPropertiesResult.properties()[0].id()));
    }
}
variables:
  ids:
    fn::invoke:
      function: alicloud:eds:getCustomProperties
      arguments:
        ids:
          - example_id
outputs:
  ecdCustomPropertyId1: ${ids.properties[0].id}
Using getCustomProperties
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCustomProperties(args: GetCustomPropertiesArgs, opts?: InvokeOptions): Promise<GetCustomPropertiesResult>
function getCustomPropertiesOutput(args: GetCustomPropertiesOutputArgs, opts?: InvokeOptions): Output<GetCustomPropertiesResult>def get_custom_properties(ids: Optional[Sequence[str]] = None,
                          output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCustomPropertiesResult
def get_custom_properties_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCustomPropertiesResult]func GetCustomProperties(ctx *Context, args *GetCustomPropertiesArgs, opts ...InvokeOption) (*GetCustomPropertiesResult, error)
func GetCustomPropertiesOutput(ctx *Context, args *GetCustomPropertiesOutputArgs, opts ...InvokeOption) GetCustomPropertiesResultOutput> Note: This function is named GetCustomProperties in the Go SDK.
public static class GetCustomProperties 
{
    public static Task<GetCustomPropertiesResult> InvokeAsync(GetCustomPropertiesArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomPropertiesResult> Invoke(GetCustomPropertiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomPropertiesResult> getCustomProperties(GetCustomPropertiesArgs args, InvokeOptions options)
public static Output<GetCustomPropertiesResult> getCustomProperties(GetCustomPropertiesArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:eds/getCustomProperties:getCustomProperties
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Custom Property IDs.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Ids []string
- A list of Custom Property IDs.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ids List<String>
- A list of Custom Property IDs.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- ids string[]
- A list of Custom Property IDs.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- ids Sequence[str]
- A list of Custom Property IDs.
- output_file str
- File name where to save data source results (after running pulumi preview).
- ids List<String>
- A list of Custom Property IDs.
- outputFile String
- File name where to save data source results (after running pulumi preview).
getCustomProperties Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Properties
List<Pulumi.Ali Cloud. Eds. Outputs. Get Custom Properties Property> 
- OutputFile string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Properties
[]GetCustom Properties Property 
- OutputFile string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- properties
List<GetCustom Properties Property> 
- outputFile String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- properties
GetCustom Properties Property[] 
- outputFile string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- properties
Sequence[GetCustom Properties Property] 
- output_file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- properties List<Property Map>
- outputFile String
Supporting Types
GetCustomPropertiesProperty   
- CustomProperty stringId 
- The first ID of the resource.
- Id string
- The ID of the Custom Property.
- PropertyKey string
- The Custom attribute key.
- PropertyValues List<Pulumi.Ali Cloud. Eds. Inputs. Get Custom Properties Property Property Value> 
- Custom attribute sets the value of.
- CustomProperty stringId 
- The first ID of the resource.
- Id string
- The ID of the Custom Property.
- PropertyKey string
- The Custom attribute key.
- PropertyValues []GetCustom Properties Property Property Value 
- Custom attribute sets the value of.
- customProperty StringId 
- The first ID of the resource.
- id String
- The ID of the Custom Property.
- propertyKey String
- The Custom attribute key.
- propertyValues List<GetCustom Properties Property Property Value> 
- Custom attribute sets the value of.
- customProperty stringId 
- The first ID of the resource.
- id string
- The ID of the Custom Property.
- propertyKey string
- The Custom attribute key.
- propertyValues GetCustom Properties Property Property Value[] 
- Custom attribute sets the value of.
- custom_property_ strid 
- The first ID of the resource.
- id str
- The ID of the Custom Property.
- property_key str
- The Custom attribute key.
- property_values Sequence[GetCustom Properties Property Property Value] 
- Custom attribute sets the value of.
- customProperty StringId 
- The first ID of the resource.
- id String
- The ID of the Custom Property.
- propertyKey String
- The Custom attribute key.
- propertyValues List<Property Map>
- Custom attribute sets the value of.
GetCustomPropertiesPropertyPropertyValue     
- PropertyValue string
- The value of an attribute.
- PropertyValue stringId 
- The value of an attribute id.
- PropertyValue string
- The value of an attribute.
- PropertyValue stringId 
- The value of an attribute id.
- propertyValue String
- The value of an attribute.
- propertyValue StringId 
- The value of an attribute id.
- propertyValue string
- The value of an attribute.
- propertyValue stringId 
- The value of an attribute id.
- property_value str
- The value of an attribute.
- property_value_ strid 
- The value of an attribute id.
- propertyValue String
- The value of an attribute.
- propertyValue StringId 
- The value of an attribute id.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.