Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.26.0 published on Friday, Jul 29, 2022 by Pulumi

getCustomProperties

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

NOTE: Available in v1.176.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Eds.GetCustomProperties.InvokeAsync(new AliCloud.Eds.GetCustomPropertiesArgs
        {
            Ids = 
            {
                "example_id",
            },
        }));
        this.EcdCustomPropertyId1 = ids.Apply(ids => ids.Properties?[0]?.Id);
    }

    [Output("ecdCustomPropertyId1")]
    public Output<string> EcdCustomPropertyId1 { get; set; }
}
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
	})
}

Coming soon!

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);

Coming soon!

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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.