Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 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)
// 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.
- Name
Regex string - 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 []string
- A list of Flow IDs.
- Limit int
- The number of resource queries.
- Name
Regex string - 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 List<String>
- A list of Flow IDs.
- limit Integer
- The number of resource queries.
- name
Regex String - 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 string[]
- A list of Flow IDs.
- limit number
- The number of resource queries.
- name
Regex string - 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 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.
- name
Regex String - 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 string
- The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
- Description string
- The description of the flow.
- Flow
Id string - The unique ID of the flow.
- Id string
- The ID of the Flow.
- Last
Modified stringTime - 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.
- Role
Arn 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.
- Flow
Id string - The unique ID of the flow.
- Id string
- The ID of the Flow.
- Last
Modified stringTime - 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.
- Role
Arn 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.
- flow
Id String - The unique ID of the flow.
- id String
- The ID of the Flow.
- last
Modified StringTime - 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.
- role
Arn 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.
- flow
Id string - The unique ID of the flow.
- id string
- The ID of the Flow.
- last
Modified stringTime - 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.
- role
Arn 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_ strtime - 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.
- flow
Id String - The unique ID of the flow.
- id String
- The ID of the Flow.
- last
Modified StringTime - 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.
- role
Arn 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.