Show / Hide Table of Contents

Class GetServices

Inheritance
System.Object
GetServices
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.FC
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetServices

Methods

View Source

InvokeAsync(GetServicesArgs, InvokeOptions)

This data source provides the Function Compute services of the current Alibaba Cloud user.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var fcServicesDs = Output.Create(AliCloud.FC.GetServices.InvokeAsync(new AliCloud.FC.GetServicesArgs
    {
        NameRegex = "sample_fc_service",
    }));
    this.FirstFcServiceName = fcServicesDs.Apply(fcServicesDs => fcServicesDs.Services[0].Name);
}

[Output("firstFcServiceName")]
public Output<string> FirstFcServiceName { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetServicesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetServicesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.