Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.fnf.getSchedules
Explore with Pulumi AI
This data source provides the Fnf Schedules 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.getSchedules({
flowName: "example_value",
ids: ["example_value"],
nameRegex: "the_resource_name",
});
export const firstFnfScheduleId = example.then(example => example.schedules?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.fnf.get_schedules(flow_name="example_value",
ids=["example_value"],
name_regex="the_resource_name")
pulumi.export("firstFnfScheduleId", example.schedules[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.GetSchedules(ctx, &fnf.GetSchedulesArgs{
FlowName: "example_value",
Ids: []string{
"example_value",
},
NameRegex: pulumi.StringRef("the_resource_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstFnfScheduleId", example.Schedules[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.GetSchedules.Invoke(new()
{
FlowName = "example_value",
Ids = new[]
{
"example_value",
},
NameRegex = "the_resource_name",
});
return new Dictionary<string, object?>
{
["firstFnfScheduleId"] = example.Apply(getSchedulesResult => getSchedulesResult.Schedules[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.GetSchedulesArgs;
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.getSchedules(GetSchedulesArgs.builder()
.flowName("example_value")
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstFnfScheduleId", example.applyValue(getSchedulesResult -> getSchedulesResult.schedules()[0].id()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:fnf:getSchedules
Arguments:
flowName: example_value
ids:
- example_value
nameRegex: the_resource_name
outputs:
firstFnfScheduleId: ${example.schedules[0].id}
Using getSchedules
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 getSchedules(args: GetSchedulesArgs, opts?: InvokeOptions): Promise<GetSchedulesResult>
function getSchedulesOutput(args: GetSchedulesOutputArgs, opts?: InvokeOptions): Output<GetSchedulesResult>
def get_schedules(flow_name: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
limit: Optional[int] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchedulesResult
def get_schedules_output(flow_name: Optional[pulumi.Input[str]] = None,
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[GetSchedulesResult]
func GetSchedules(ctx *Context, args *GetSchedulesArgs, opts ...InvokeOption) (*GetSchedulesResult, error)
func GetSchedulesOutput(ctx *Context, args *GetSchedulesOutputArgs, opts ...InvokeOption) GetSchedulesResultOutput
> Note: This function is named GetSchedules
in the Go SDK.
public static class GetSchedules
{
public static Task<GetSchedulesResult> InvokeAsync(GetSchedulesArgs args, InvokeOptions? opts = null)
public static Output<GetSchedulesResult> Invoke(GetSchedulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchedulesResult> getSchedules(GetSchedulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:fnf/getSchedules:getSchedules
arguments:
# arguments dictionary
The following arguments are supported:
- Flow
Name string - The name of the flow bound to the time-based schedule you want to create.
- Ids List<string>
- A list of Schedule IDs.
- Limit int
- The number of resource queries.
- Name
Regex string - A regex string to filter results by Schedule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Flow
Name string - The name of the flow bound to the time-based schedule you want to create.
- Ids []string
- A list of Schedule IDs.
- Limit int
- The number of resource queries.
- Name
Regex string - A regex string to filter results by Schedule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- flow
Name String - The name of the flow bound to the time-based schedule you want to create.
- ids List<String>
- A list of Schedule IDs.
- limit Integer
- The number of resource queries.
- name
Regex String - A regex string to filter results by Schedule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- flow
Name string - The name of the flow bound to the time-based schedule you want to create.
- ids string[]
- A list of Schedule IDs.
- limit number
- The number of resource queries.
- name
Regex string - A regex string to filter results by Schedule name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- flow_
name str - The name of the flow bound to the time-based schedule you want to create.
- ids Sequence[str]
- A list of Schedule IDs.
- limit int
- The number of resource queries.
- name_
regex str - A regex string to filter results by Schedule name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- flow
Name String - The name of the flow bound to the time-based schedule you want to create.
- ids List<String>
- A list of Schedule IDs.
- limit Number
- The number of resource queries.
- name
Regex String - A regex string to filter results by Schedule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getSchedules Result
The following output properties are available:
- Flow
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Schedules
List<Pulumi.
Ali Cloud. FNF. Outputs. Get Schedules Schedule> - Limit int
- Name
Regex string - Output
File string
- Flow
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Schedules
[]Get
Schedules Schedule - Limit int
- Name
Regex string - Output
File string
- flow
Name String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- schedules
List<Get
Schedules Schedule> - limit Integer
- name
Regex String - output
File String
- flow
Name string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- schedules
Get
Schedules Schedule[] - limit number
- name
Regex string - output
File string
- flow_
name str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- schedules
Sequence[Get
Schedules Schedule] - limit int
- name_
regex str - output_
file str
- flow
Name String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- schedules List<Property Map>
- limit Number
- name
Regex String - output
File String
Supporting Types
GetSchedulesSchedule
- Cron
Expression string - The CRON expression of the time-based schedule to be created.
- Description string
- The description of the time-based schedule to be created.
- Enable bool
- Specifies whether to enable the time-based schedule you want to create.
- Id string
- The ID of the Schedule.
- Last
Modified stringTime - The time when the time-based schedule was last updated.
- Payload string
- The trigger message of the time-based schedule to be created. It must be in JSON object format.
- Schedule
Id string - The ID of the time-based schedule.
- Schedule
Name string - The name of the time-based schedule to be created.
- Cron
Expression string - The CRON expression of the time-based schedule to be created.
- Description string
- The description of the time-based schedule to be created.
- Enable bool
- Specifies whether to enable the time-based schedule you want to create.
- Id string
- The ID of the Schedule.
- Last
Modified stringTime - The time when the time-based schedule was last updated.
- Payload string
- The trigger message of the time-based schedule to be created. It must be in JSON object format.
- Schedule
Id string - The ID of the time-based schedule.
- Schedule
Name string - The name of the time-based schedule to be created.
- cron
Expression String - The CRON expression of the time-based schedule to be created.
- description String
- The description of the time-based schedule to be created.
- enable Boolean
- Specifies whether to enable the time-based schedule you want to create.
- id String
- The ID of the Schedule.
- last
Modified StringTime - The time when the time-based schedule was last updated.
- payload String
- The trigger message of the time-based schedule to be created. It must be in JSON object format.
- schedule
Id String - The ID of the time-based schedule.
- schedule
Name String - The name of the time-based schedule to be created.
- cron
Expression string - The CRON expression of the time-based schedule to be created.
- description string
- The description of the time-based schedule to be created.
- enable boolean
- Specifies whether to enable the time-based schedule you want to create.
- id string
- The ID of the Schedule.
- last
Modified stringTime - The time when the time-based schedule was last updated.
- payload string
- The trigger message of the time-based schedule to be created. It must be in JSON object format.
- schedule
Id string - The ID of the time-based schedule.
- schedule
Name string - The name of the time-based schedule to be created.
- cron_
expression str - The CRON expression of the time-based schedule to be created.
- description str
- The description of the time-based schedule to be created.
- enable bool
- Specifies whether to enable the time-based schedule you want to create.
- id str
- The ID of the Schedule.
- last_
modified_ strtime - The time when the time-based schedule was last updated.
- payload str
- The trigger message of the time-based schedule to be created. It must be in JSON object format.
- schedule_
id str - The ID of the time-based schedule.
- schedule_
name str - The name of the time-based schedule to be created.
- cron
Expression String - The CRON expression of the time-based schedule to be created.
- description String
- The description of the time-based schedule to be created.
- enable Boolean
- Specifies whether to enable the time-based schedule you want to create.
- id String
- The ID of the Schedule.
- last
Modified StringTime - The time when the time-based schedule was last updated.
- payload String
- The trigger message of the time-based schedule to be created. It must be in JSON object format.
- schedule
Id String - The ID of the time-based schedule.
- schedule
Name String - The name of the time-based schedule to be created.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.