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.
- Output
File string
- Ids []string
A list of Custom Property IDs.
- Output
File string
- ids List<String>
A list of Custom Property IDs.
- output
File String
- ids string[]
A list of Custom Property IDs.
- output
File string
- ids Sequence[str]
A list of Custom Property IDs.
- output_
file str
- ids List<String>
A list of Custom Property IDs.
- output
File 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.
Ali Cloud. Eds. Outputs. Get Custom Properties Property> - Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Properties
[]Get
Custom Properties Property - Output
File string
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- properties
List<Get
Custom Properties Property> - output
File String
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- properties
Get
Custom Properties Property[] - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- properties
Sequence[Get
Custom Properties Property] - output_
file str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- properties List<Property Map>
- output
File String
Supporting Types
GetCustomPropertiesProperty
- Custom
Property stringId The first ID of the resource.
- Id string
The ID of the Custom Property.
- Property
Key string The Custom attribute key.
- Property
Values List<Pulumi.Ali Cloud. Eds. Inputs. Get Custom Properties Property Property Value> Custom attribute sets the value of.
- Custom
Property stringId The first ID of the resource.
- Id string
The ID of the Custom Property.
- Property
Key string The Custom attribute key.
- Property
Values []GetCustom Properties Property Property Value Custom attribute sets the value of.
- custom
Property StringId The first ID of the resource.
- id String
The ID of the Custom Property.
- property
Key String The Custom attribute key.
- property
Values List<GetCustom Properties Property Property Value> Custom attribute sets the value of.
- custom
Property stringId The first ID of the resource.
- id string
The ID of the Custom Property.
- property
Key string The Custom attribute key.
- property
Values 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.
- custom
Property StringId The first ID of the resource.
- id String
The ID of the Custom Property.
- property
Key String The Custom attribute key.
- property
Values List<Property Map> Custom attribute sets the value of.
GetCustomPropertiesPropertyPropertyValue
- 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.