1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fnf
  5. getFlows
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.fnf.getFlows

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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

NOTE: Available in v1.105.0+.

Example Usage

Basic Usage

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:fnf:getFlows
      arguments:
        ids:
          - example_value
        nameRegex: the_resource_name
outputs:
  firstFnfFlowId: ${example.flows[0].id}
Copy

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>
Copy
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]
Copy
func GetFlows(ctx *Context, args *GetFlowsArgs, opts ...InvokeOption) (*GetFlowsResult, error)
func GetFlowsOutput(ctx *Context, args *GetFlowsOutputArgs, opts ...InvokeOption) GetFlowsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFlowsResult> getFlows(GetFlowsArgs args, InvokeOptions options)
public static Output<GetFlowsResult> getFlows(GetFlowsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:fnf/getFlows:getFlows
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of Flow IDs.
Limit Changes to this property will trigger replacement. int
The number of resource queries.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. []string
A list of Flow IDs.
Limit Changes to this property will trigger replacement. int
The number of resource queries.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
A list of Flow IDs.
limit Changes to this property will trigger replacement. Integer
The number of resource queries.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string[]
A list of Flow IDs.
limit Changes to this property will trigger replacement. number
The number of resource queries.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Sequence[str]
A list of Flow IDs.
limit Changes to this property will trigger replacement. int
The number of resource queries.
name_regex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. List<String>
A list of Flow IDs.
limit Changes to this property will trigger replacement. Number
The number of resource queries.
nameRegex Changes to this property will trigger replacement. 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 This property is required. string
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
Description This property is required. string
The description of the flow.
FlowId This property is required. string
The unique ID of the flow.
Id This property is required. string
The ID of the Flow.
LastModifiedTime This property is required. string
The time when the flow was last modified.
Name This property is required. string
The name of the flow. The name must be unique in an Alibaba Cloud account.
RoleArn This property is required. string
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
Type This property is required. string
The type of the flow. Set the value to FDL.
Definition This property is required. string
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
Description This property is required. string
The description of the flow.
FlowId This property is required. string
The unique ID of the flow.
Id This property is required. string
The ID of the Flow.
LastModifiedTime This property is required. string
The time when the flow was last modified.
Name This property is required. string
The name of the flow. The name must be unique in an Alibaba Cloud account.
RoleArn This property is required. string
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
Type This property is required. string
The type of the flow. Set the value to FDL.
definition This property is required. String
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
description This property is required. String
The description of the flow.
flowId This property is required. String
The unique ID of the flow.
id This property is required. String
The ID of the Flow.
lastModifiedTime This property is required. String
The time when the flow was last modified.
name This property is required. String
The name of the flow. The name must be unique in an Alibaba Cloud account.
roleArn This property is required. String
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
type This property is required. String
The type of the flow. Set the value to FDL.
definition This property is required. string
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
description This property is required. string
The description of the flow.
flowId This property is required. string
The unique ID of the flow.
id This property is required. string
The ID of the Flow.
lastModifiedTime This property is required. string
The time when the flow was last modified.
name This property is required. string
The name of the flow. The name must be unique in an Alibaba Cloud account.
roleArn This property is required. string
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
type This property is required. string
The type of the flow. Set the value to FDL.
definition This property is required. str
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
description This property is required. str
The description of the flow.
flow_id This property is required. str
The unique ID of the flow.
id This property is required. str
The ID of the Flow.
last_modified_time This property is required. str
The time when the flow was last modified.
name This property is required. str
The name of the flow. The name must be unique in an Alibaba Cloud account.
role_arn This property is required. str
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
type This property is required. str
The type of the flow. Set the value to FDL.
definition This property is required. String
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
description This property is required. String
The description of the flow.
flowId This property is required. String
The unique ID of the flow.
id This property is required. String
The ID of the Flow.
lastModifiedTime This property is required. String
The time when the flow was last modified.
name This property is required. String
The name of the flow. The name must be unique in an Alibaba Cloud account.
roleArn This property is required. String
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
type This property is required. 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.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi