alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.fnf.getFlows

Explore with Pulumi AI

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

NOTE: Available in v1.105.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = AliCloud.FNF.GetFlows.Invoke(new()
    {
        Ids = new[]
        {
            "example_value",
        },
        NameRegex = "the_resource_name",
    });

    return new Dictionary<string, object?>
    {
        ["firstFnfFlowId"] = example.Apply(getFlowsResult => getFlowsResult.Flows[0]?.Id),
    };
});
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

File name where to save data source results (after running pulumi preview).

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

File name where to save data source results (after running pulumi preview).

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

File name where to save data source results (after running pulumi preview).

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

File name where to save data source results (after running pulumi preview).

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

File name where to save data source results (after running pulumi preview).

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

File name where to save data source results (after running pulumi preview).

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
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.