Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getFlows

This data source provides the Fnf Flows of the current Alibaba Cloud user.

NOTE: Available in v1.105.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.FNF.GetFlows.InvokeAsync(new AliCloud.FNF.GetFlowsArgs
        {
            Ids = 
            {
                "example_value",
            },
            NameRegex = "the_resource_name",
        }));
        this.FirstFnfFlowId = example.Apply(example => example.Flows?[0]?.Id);
    }

    [Output("firstFnfFlowId")]
    public Output<string> FirstFnfFlowId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fnf"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := fnf.GetFlows(ctx, &fnf.GetFlowsArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: pulumi.StringRef("the_resource_name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstFnfFlowId", example.Flows[0].Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fnf.FnfFunctions;
import com.pulumi.alicloud.fnf.inputs.GetFlowsArgs;
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 example = FnfFunctions.getFlows(GetFlowsArgs.builder()
            .ids("example_value")
            .nameRegex("the_resource_name")
            .build());

        ctx.export("firstFnfFlowId", example.applyValue(getFlowsResult -> getFlowsResult.flows()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.fnf.get_flows(ids=["example_value"],
    name_regex="the_resource_name")
pulumi.export("firstFnfFlowId", example.flows[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = alicloud.fnf.getFlows({
    ids: ["example_value"],
    nameRegex: "the_resource_name",
});
export const firstFnfFlowId = example.then(example => example.flows?[0]?.id);
variables:
  example:
    Fn::Invoke:
      Function: alicloud:fnf:getFlows
      Arguments:
        ids:
          - example_value
        nameRegex: the_resource_name
outputs:
  firstFnfFlowId: ${example.flows[0].id}

Using getFlows

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 getFlows(args: GetFlowsArgs, opts?: InvokeOptions): Promise<GetFlowsResult>
function getFlowsOutput(args: GetFlowsOutputArgs, opts?: InvokeOptions): Output<GetFlowsResult>
def get_flows(ids: Optional[Sequence[str]] = None,
              limit: Optional[int] = None,
              name_regex: Optional[str] = None,
              output_file: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetFlowsResult
def get_flows_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              limit: Optional[pulumi.Input[int]] = None,
              name_regex: Optional[pulumi.Input[str]] = None,
              output_file: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetFlowsResult]
func GetFlows(ctx *Context, args *GetFlowsArgs, opts ...InvokeOption) (*GetFlowsResult, error)
func GetFlowsOutput(ctx *Context, args *GetFlowsOutputArgs, opts ...InvokeOption) GetFlowsResultOutput

> Note: This function is named GetFlows in the Go SDK.

public static class GetFlows 
{
    public static Task<GetFlowsResult> InvokeAsync(GetFlowsArgs args, InvokeOptions? opts = null)
    public static Output<GetFlowsResult> Invoke(GetFlowsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFlowsResult> getFlows(GetFlowsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:fnf/getFlows:getFlows
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Ids List<string>

A list of Flow IDs.

Limit int

The number of resource queries.

NameRegex string

A regex string to filter results by Flow name.

OutputFile string
Ids []string

A list of Flow IDs.

Limit int

The number of resource queries.

NameRegex string

A regex string to filter results by Flow name.

OutputFile string
ids List<String>

A list of Flow IDs.

limit Integer

The number of resource queries.

nameRegex String

A regex string to filter results by Flow name.

outputFile String
ids string[]

A list of Flow IDs.

limit number

The number of resource queries.

nameRegex string

A regex string to filter results by Flow name.

outputFile string
ids Sequence[str]

A list of Flow IDs.

limit int

The number of resource queries.

name_regex str

A regex string to filter results by Flow name.

output_file str
ids List<String>

A list of Flow IDs.

limit Number

The number of resource queries.

nameRegex String

A regex string to filter results by Flow name.

outputFile String

getFlows Result

The following output properties are available:

Flows List<Pulumi.AliCloud.FNF.Outputs.GetFlowsFlow>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Names List<string>
Limit int
NameRegex string
OutputFile string
Flows []GetFlowsFlow
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Names []string
Limit int
NameRegex string
OutputFile string
flows List<GetFlowsFlow>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
limit Integer
nameRegex String
outputFile String
flows GetFlowsFlow[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
names string[]
limit number
nameRegex string
outputFile string
flows Sequence[GetFlowsFlow]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
names Sequence[str]
limit int
name_regex str
output_file str
flows List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
names List<String>
limit Number
nameRegex String
outputFile String

Supporting Types

GetFlowsFlow

Definition string

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

Description string

The description of the flow.

FlowId string

The unique ID of the flow.

Id string

The ID of the Flow.

LastModifiedTime string

The time when the flow was last modified.

Name string

The name of the flow. The name must be unique in an Alibaba Cloud account.

RoleArn string

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

Type string

The type of the flow. Set the value to FDL.

Definition string

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

Description string

The description of the flow.

FlowId string

The unique ID of the flow.

Id string

The ID of the Flow.

LastModifiedTime string

The time when the flow was last modified.

Name string

The name of the flow. The name must be unique in an Alibaba Cloud account.

RoleArn string

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

Type string

The type of the flow. Set the value to FDL.

definition String

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

description String

The description of the flow.

flowId String

The unique ID of the flow.

id String

The ID of the Flow.

lastModifiedTime String

The time when the flow was last modified.

name String

The name of the flow. The name must be unique in an Alibaba Cloud account.

roleArn String

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

type String

The type of the flow. Set the value to FDL.

definition string

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

description string

The description of the flow.

flowId string

The unique ID of the flow.

id string

The ID of the Flow.

lastModifiedTime string

The time when the flow was last modified.

name string

The name of the flow. The name must be unique in an Alibaba Cloud account.

roleArn string

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

type string

The type of the flow. Set the value to FDL.

definition str

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

description str

The description of the flow.

flow_id str

The unique ID of the flow.

id str

The ID of the Flow.

last_modified_time str

The time when the flow was last modified.

name str

The name of the flow. The name must be unique in an Alibaba Cloud account.

role_arn str

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

type str

The type of the flow. Set the value to FDL.

definition String

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

description String

The description of the flow.

flowId String

The unique ID of the flow.

id String

The ID of the Flow.

lastModifiedTime String

The time when the flow was last modified.

name String

The name of the flow. The name must be unique in an Alibaba Cloud account.

roleArn String

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

type String

The type of the flow. Set the value to FDL.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.