alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.eds.getCustomProperties

This data source provides the Ecd Custom Properties of the current Alibaba Cloud user.

NOTE: Available in v1.176.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
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 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
	})
}
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()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.eds.get_custom_properties(ids=["example_id"])
pulumi.export("ecdCustomPropertyId1", ids.properties[0].id)
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);
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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:eds/getCustomProperties:getCustomProperties
  arguments:
    # arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Custom Property IDs.

OutputFile string
Ids []string

A list of Custom Property IDs.

OutputFile string
ids List<String>

A list of Custom Property IDs.

outputFile String
ids string[]

A list of Custom Property IDs.

outputFile string
ids Sequence[str]

A list of Custom Property IDs.

output_file str
ids List<String>

A list of Custom Property IDs.

outputFile String

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.AliCloud.Eds.Outputs.GetCustomPropertiesProperty>
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Properties []GetCustomPropertiesProperty
OutputFile string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
properties List<GetCustomPropertiesProperty>
outputFile String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
properties GetCustomPropertiesProperty[]
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
properties Sequence[GetCustomPropertiesProperty]
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

CustomPropertyId string

The first ID of the resource.

Id string

The ID of the Custom Property.

PropertyKey string

The Custom attribute key.

PropertyValues List<Pulumi.AliCloud.Eds.Inputs.GetCustomPropertiesPropertyPropertyValue>

Custom attribute sets the value of.

CustomPropertyId string

The first ID of the resource.

Id string

The ID of the Custom Property.

PropertyKey string

The Custom attribute key.

PropertyValues []GetCustomPropertiesPropertyPropertyValue

Custom attribute sets the value of.

customPropertyId String

The first ID of the resource.

id String

The ID of the Custom Property.

propertyKey String

The Custom attribute key.

propertyValues List<GetCustomPropertiesPropertyPropertyValue>

Custom attribute sets the value of.

customPropertyId string

The first ID of the resource.

id string

The ID of the Custom Property.

propertyKey string

The Custom attribute key.

propertyValues GetCustomPropertiesPropertyPropertyValue[]

Custom attribute sets the value of.

custom_property_id str

The first ID of the resource.

id str

The ID of the Custom Property.

property_key str

The Custom attribute key.

property_values Sequence[GetCustomPropertiesPropertyPropertyValue]

Custom attribute sets the value of.

customPropertyId String

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.

PropertyValueId string

The value of an attribute id.

PropertyValue string

The value of an attribute.

PropertyValueId string

The value of an attribute id.

propertyValue String

The value of an attribute.

propertyValueId String

The value of an attribute id.

propertyValue string

The value of an attribute.

propertyValueId string

The value of an attribute id.

property_value str

The value of an attribute.

property_value_id str

The value of an attribute id.

propertyValue String

The value of an attribute.

propertyValueId String

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 alicloud Terraform Provider.