Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
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
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);
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)
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
})
}
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 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()));
}
}
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)
public static Output<GetFlowsResult> getFlows(GetFlowsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:fnf/getFlows:getFlows
arguments:
# arguments dictionary
The following arguments are supported:
- Ids
Changes to this property will trigger replacement.
- A list of Flow IDs.
- Limit
Changes to this property will trigger replacement.
- The number of resource queries.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Flow name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Ids
Changes to this property will trigger replacement.
- A list of Flow IDs.
- Limit
Changes to this property will trigger replacement.
- The number of resource queries.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Flow name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- ids
Changes to this property will trigger replacement.
- A list of Flow IDs.
- limit
Changes to this property will trigger replacement.
- The number of resource queries.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Flow name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- ids
Changes to this property will trigger replacement.
- A list of Flow IDs.
- limit
Changes to this property will trigger replacement.
- The number of resource queries.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Flow name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- ids
Changes to this property will trigger replacement.
- A list of Flow IDs.
- limit
Changes to this property will trigger replacement.
- The number of resource queries.
- name_
regex Changes to this property will trigger replacement.
- 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.
- A list of Flow IDs.
- limit
Changes to this property will trigger replacement.
- The number of resource queries.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by Flow name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getFlows Result
The following output properties are available:
- Flows
List<Pulumi.
Ali Cloud. FNF. Outputs. Get Flows Flow> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Limit int
- Name
Regex string - Output
File string
- Flows
[]Get
Flows Flow - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Limit int
- Name
Regex string - Output
File string
- flows
List<Get
Flows Flow> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- limit Integer
- name
Regex String - output
File String
- flows
Get
Flows Flow[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- limit number
- name
Regex string - output
File string
- flows
Sequence[Get
Flows Flow] - 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
- name
Regex String - output
File 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.
- Flow
Id This property is required. string - The unique ID of the flow.
- Id
This property is required. string - The ID of the Flow.
- Last
Modified Time 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.
- Role
Arn 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.
- Flow
Id This property is required. string - The unique ID of the flow.
- Id
This property is required. string - The ID of the Flow.
- Last
Modified Time 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.
- Role
Arn 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.
- flow
Id This property is required. String - The unique ID of the flow.
- id
This property is required. String - The ID of the Flow.
- last
Modified Time 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.
- role
Arn 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.
- flow
Id This property is required. string - The unique ID of the flow.
- id
This property is required. string - The ID of the Flow.
- last
Modified Time 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.
- role
Arn 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.
- flow
Id This property is required. String - The unique ID of the flow.
- id
This property is required. String - The ID of the Flow.
- last
Modified Time 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.
- role
Arn 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.