Documentation
¶
Index ¶
- type Execution
- type ExecutionArgs
- type ExecutionArray
- type ExecutionArrayInput
- type ExecutionArrayOutput
- func (ExecutionArrayOutput) ElementType() reflect.Type
- func (o ExecutionArrayOutput) Index(i pulumi.IntInput) ExecutionOutput
- func (o ExecutionArrayOutput) ToExecutionArrayOutput() ExecutionArrayOutput
- func (o ExecutionArrayOutput) ToExecutionArrayOutputWithContext(ctx context.Context) ExecutionArrayOutput
- type ExecutionInput
- type ExecutionMap
- type ExecutionMapInput
- type ExecutionMapOutput
- type ExecutionOutput
- func (ExecutionOutput) ElementType() reflect.Type
- func (o ExecutionOutput) ExecutionName() pulumi.StringOutput
- func (o ExecutionOutput) FlowName() pulumi.StringOutput
- func (o ExecutionOutput) Input() pulumi.StringPtrOutput
- func (o ExecutionOutput) Status() pulumi.StringOutput
- func (o ExecutionOutput) ToExecutionOutput() ExecutionOutput
- func (o ExecutionOutput) ToExecutionOutputWithContext(ctx context.Context) ExecutionOutput
- type ExecutionState
- type Flow
- type FlowArgs
- type FlowArray
- type FlowArrayInput
- type FlowArrayOutput
- type FlowInput
- type FlowMap
- type FlowMapInput
- type FlowMapOutput
- type FlowOutput
- func (o FlowOutput) Definition() pulumi.StringOutput
- func (o FlowOutput) Description() pulumi.StringOutput
- func (FlowOutput) ElementType() reflect.Type
- func (o FlowOutput) FlowId() pulumi.StringOutput
- func (o FlowOutput) LastModifiedTime() pulumi.StringOutput
- func (o FlowOutput) Name() pulumi.StringOutput
- func (o FlowOutput) RoleArn() pulumi.StringPtrOutput
- func (o FlowOutput) ToFlowOutput() FlowOutput
- func (o FlowOutput) ToFlowOutputWithContext(ctx context.Context) FlowOutput
- func (o FlowOutput) Type() pulumi.StringOutput
- type FlowState
- type GetExecutionsArgs
- type GetExecutionsExecution
- type GetExecutionsExecutionArgs
- type GetExecutionsExecutionArray
- func (GetExecutionsExecutionArray) ElementType() reflect.Type
- func (i GetExecutionsExecutionArray) ToGetExecutionsExecutionArrayOutput() GetExecutionsExecutionArrayOutput
- func (i GetExecutionsExecutionArray) ToGetExecutionsExecutionArrayOutputWithContext(ctx context.Context) GetExecutionsExecutionArrayOutput
- type GetExecutionsExecutionArrayInput
- type GetExecutionsExecutionArrayOutput
- func (GetExecutionsExecutionArrayOutput) ElementType() reflect.Type
- func (o GetExecutionsExecutionArrayOutput) Index(i pulumi.IntInput) GetExecutionsExecutionOutput
- func (o GetExecutionsExecutionArrayOutput) ToGetExecutionsExecutionArrayOutput() GetExecutionsExecutionArrayOutput
- func (o GetExecutionsExecutionArrayOutput) ToGetExecutionsExecutionArrayOutputWithContext(ctx context.Context) GetExecutionsExecutionArrayOutput
- type GetExecutionsExecutionInput
- type GetExecutionsExecutionOutput
- func (GetExecutionsExecutionOutput) ElementType() reflect.Type
- func (o GetExecutionsExecutionOutput) ExecutionName() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) FlowName() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) Id() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) Input() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) Output() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) StartedTime() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) Status() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) StoppedTime() pulumi.StringOutput
- func (o GetExecutionsExecutionOutput) ToGetExecutionsExecutionOutput() GetExecutionsExecutionOutput
- func (o GetExecutionsExecutionOutput) ToGetExecutionsExecutionOutputWithContext(ctx context.Context) GetExecutionsExecutionOutput
- type GetExecutionsOutputArgs
- type GetExecutionsResult
- type GetExecutionsResultOutput
- func (GetExecutionsResultOutput) ElementType() reflect.Type
- func (o GetExecutionsResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetExecutionsResultOutput) Executions() GetExecutionsExecutionArrayOutput
- func (o GetExecutionsResultOutput) FlowName() pulumi.StringOutput
- func (o GetExecutionsResultOutput) Id() pulumi.StringOutput
- func (o GetExecutionsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetExecutionsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetExecutionsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetExecutionsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetExecutionsResultOutput) Status() pulumi.StringPtrOutput
- func (o GetExecutionsResultOutput) ToGetExecutionsResultOutput() GetExecutionsResultOutput
- func (o GetExecutionsResultOutput) ToGetExecutionsResultOutputWithContext(ctx context.Context) GetExecutionsResultOutput
- type GetFlowsArgs
- type GetFlowsFlow
- type GetFlowsFlowArgs
- type GetFlowsFlowArray
- type GetFlowsFlowArrayInput
- type GetFlowsFlowArrayOutput
- func (GetFlowsFlowArrayOutput) ElementType() reflect.Type
- func (o GetFlowsFlowArrayOutput) Index(i pulumi.IntInput) GetFlowsFlowOutput
- func (o GetFlowsFlowArrayOutput) ToGetFlowsFlowArrayOutput() GetFlowsFlowArrayOutput
- func (o GetFlowsFlowArrayOutput) ToGetFlowsFlowArrayOutputWithContext(ctx context.Context) GetFlowsFlowArrayOutput
- type GetFlowsFlowInput
- type GetFlowsFlowOutput
- func (o GetFlowsFlowOutput) Definition() pulumi.StringOutput
- func (o GetFlowsFlowOutput) Description() pulumi.StringOutput
- func (GetFlowsFlowOutput) ElementType() reflect.Type
- func (o GetFlowsFlowOutput) FlowId() pulumi.StringOutput
- func (o GetFlowsFlowOutput) Id() pulumi.StringOutput
- func (o GetFlowsFlowOutput) LastModifiedTime() pulumi.StringOutput
- func (o GetFlowsFlowOutput) Name() pulumi.StringOutput
- func (o GetFlowsFlowOutput) RoleArn() pulumi.StringOutput
- func (o GetFlowsFlowOutput) ToGetFlowsFlowOutput() GetFlowsFlowOutput
- func (o GetFlowsFlowOutput) ToGetFlowsFlowOutputWithContext(ctx context.Context) GetFlowsFlowOutput
- func (o GetFlowsFlowOutput) Type() pulumi.StringOutput
- type GetFlowsOutputArgs
- type GetFlowsResult
- type GetFlowsResultOutput
- func (GetFlowsResultOutput) ElementType() reflect.Type
- func (o GetFlowsResultOutput) Flows() GetFlowsFlowArrayOutput
- func (o GetFlowsResultOutput) Id() pulumi.StringOutput
- func (o GetFlowsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetFlowsResultOutput) Limit() pulumi.IntPtrOutput
- func (o GetFlowsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetFlowsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetFlowsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetFlowsResultOutput) ToGetFlowsResultOutput() GetFlowsResultOutput
- func (o GetFlowsResultOutput) ToGetFlowsResultOutputWithContext(ctx context.Context) GetFlowsResultOutput
- type GetSchedulesArgs
- type GetSchedulesOutputArgs
- type GetSchedulesResult
- type GetSchedulesResultOutput
- func (GetSchedulesResultOutput) ElementType() reflect.Type
- func (o GetSchedulesResultOutput) FlowName() pulumi.StringOutput
- func (o GetSchedulesResultOutput) Id() pulumi.StringOutput
- func (o GetSchedulesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetSchedulesResultOutput) Limit() pulumi.IntPtrOutput
- func (o GetSchedulesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetSchedulesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetSchedulesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetSchedulesResultOutput) Schedules() GetSchedulesScheduleArrayOutput
- func (o GetSchedulesResultOutput) ToGetSchedulesResultOutput() GetSchedulesResultOutput
- func (o GetSchedulesResultOutput) ToGetSchedulesResultOutputWithContext(ctx context.Context) GetSchedulesResultOutput
- type GetSchedulesSchedule
- type GetSchedulesScheduleArgs
- type GetSchedulesScheduleArray
- type GetSchedulesScheduleArrayInput
- type GetSchedulesScheduleArrayOutput
- func (GetSchedulesScheduleArrayOutput) ElementType() reflect.Type
- func (o GetSchedulesScheduleArrayOutput) Index(i pulumi.IntInput) GetSchedulesScheduleOutput
- func (o GetSchedulesScheduleArrayOutput) ToGetSchedulesScheduleArrayOutput() GetSchedulesScheduleArrayOutput
- func (o GetSchedulesScheduleArrayOutput) ToGetSchedulesScheduleArrayOutputWithContext(ctx context.Context) GetSchedulesScheduleArrayOutput
- type GetSchedulesScheduleInput
- type GetSchedulesScheduleOutput
- func (o GetSchedulesScheduleOutput) CronExpression() pulumi.StringOutput
- func (o GetSchedulesScheduleOutput) Description() pulumi.StringOutput
- func (GetSchedulesScheduleOutput) ElementType() reflect.Type
- func (o GetSchedulesScheduleOutput) Enable() pulumi.BoolOutput
- func (o GetSchedulesScheduleOutput) Id() pulumi.StringOutput
- func (o GetSchedulesScheduleOutput) LastModifiedTime() pulumi.StringOutput
- func (o GetSchedulesScheduleOutput) Payload() pulumi.StringOutput
- func (o GetSchedulesScheduleOutput) ScheduleId() pulumi.StringOutput
- func (o GetSchedulesScheduleOutput) ScheduleName() pulumi.StringOutput
- func (o GetSchedulesScheduleOutput) ToGetSchedulesScheduleOutput() GetSchedulesScheduleOutput
- func (o GetSchedulesScheduleOutput) ToGetSchedulesScheduleOutputWithContext(ctx context.Context) GetSchedulesScheduleOutput
- type GetServiceArgs
- type GetServiceOutputArgs
- type GetServiceResult
- type GetServiceResultOutput
- func (GetServiceResultOutput) ElementType() reflect.Type
- func (o GetServiceResultOutput) Enable() pulumi.StringPtrOutput
- func (o GetServiceResultOutput) Id() pulumi.StringOutput
- func (o GetServiceResultOutput) Status() pulumi.StringOutput
- func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput
- func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput
- type Schedule
- type ScheduleArgs
- type ScheduleArray
- type ScheduleArrayInput
- type ScheduleArrayOutput
- type ScheduleInput
- type ScheduleMap
- type ScheduleMapInput
- type ScheduleMapOutput
- type ScheduleOutput
- func (o ScheduleOutput) CronExpression() pulumi.StringOutput
- func (o ScheduleOutput) Description() pulumi.StringPtrOutput
- func (ScheduleOutput) ElementType() reflect.Type
- func (o ScheduleOutput) Enable() pulumi.BoolPtrOutput
- func (o ScheduleOutput) FlowName() pulumi.StringOutput
- func (o ScheduleOutput) LastModifiedTime() pulumi.StringOutput
- func (o ScheduleOutput) Payload() pulumi.StringPtrOutput
- func (o ScheduleOutput) ScheduleId() pulumi.StringOutput
- func (o ScheduleOutput) ScheduleName() pulumi.StringOutput
- func (o ScheduleOutput) ToScheduleOutput() ScheduleOutput
- func (o ScheduleOutput) ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput
- type ScheduleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execution ¶ added in v3.13.0
type Execution struct { pulumi.CustomResourceState // The name of the execution. ExecutionName pulumi.StringOutput `pulumi:"executionName"` // The name of the flow. FlowName pulumi.StringOutput `pulumi:"flowName"` // The Input information for this execution. Input pulumi.StringPtrOutput `pulumi:"input"` // The status of the resource. Valid values: `Stopped`. Status pulumi.StringOutput `pulumi:"status"` }
Provides a Serverless Workflow Execution resource.
For information about Serverless Workflow Execution and how to use it, see [What is Execution](https://www.alibabacloud.com/help/en/doc-detail/122628.html).
> **NOTE:** Available since v1.149.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fnf" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "tf-example-fnfflow" if param := cfg.Get("name"); param != "" { name = param } _, err := ram.NewRole(ctx, "default", &ram.RoleArgs{ Name: pulumi.String(name), Document: pulumi.String(` { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": [ "fnf.aliyuncs.com" ] } } ], "Version": "1" }
`),
}) if err != nil { return err } defaultFlow, err := fnf.NewFlow(ctx, "default", &fnf.FlowArgs{ Definition: pulumi.String(` version: v1beta1 type: flow steps: - type: wait name: custom_wait duration: $.wait
`),
RoleArn: _default.Arn, Description: pulumi.String("Test for terraform fnf_flow."), Name: pulumi.String(name), Type: pulumi.String("FDL"), }) if err != nil { return err } _, err = fnf.NewExecution(ctx, "default", &fnf.ExecutionArgs{ ExecutionName: pulumi.String(name), FlowName: defaultFlow.Name, Input: pulumi.String("{\"wait\": 600}"), }) if err != nil { return err } return nil }) }
```
## Import
Serverless Workflow Execution can be imported using the id, e.g.
```sh $ pulumi import alicloud:fnf/execution:Execution example <flow_name>:<execution_name> ```
func GetExecution ¶ added in v3.13.0
func GetExecution(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ExecutionState, opts ...pulumi.ResourceOption) (*Execution, error)
GetExecution gets an existing Execution resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewExecution ¶ added in v3.13.0
func NewExecution(ctx *pulumi.Context, name string, args *ExecutionArgs, opts ...pulumi.ResourceOption) (*Execution, error)
NewExecution registers a new resource with the given unique name, arguments, and options.
func (*Execution) ElementType ¶ added in v3.13.0
func (*Execution) ToExecutionOutput ¶ added in v3.13.0
func (i *Execution) ToExecutionOutput() ExecutionOutput
func (*Execution) ToExecutionOutputWithContext ¶ added in v3.13.0
func (i *Execution) ToExecutionOutputWithContext(ctx context.Context) ExecutionOutput
type ExecutionArgs ¶ added in v3.13.0
type ExecutionArgs struct { // The name of the execution. ExecutionName pulumi.StringInput // The name of the flow. FlowName pulumi.StringInput // The Input information for this execution. Input pulumi.StringPtrInput // The status of the resource. Valid values: `Stopped`. Status pulumi.StringPtrInput }
The set of arguments for constructing a Execution resource.
func (ExecutionArgs) ElementType ¶ added in v3.13.0
func (ExecutionArgs) ElementType() reflect.Type
type ExecutionArray ¶ added in v3.13.0
type ExecutionArray []ExecutionInput
func (ExecutionArray) ElementType ¶ added in v3.13.0
func (ExecutionArray) ElementType() reflect.Type
func (ExecutionArray) ToExecutionArrayOutput ¶ added in v3.13.0
func (i ExecutionArray) ToExecutionArrayOutput() ExecutionArrayOutput
func (ExecutionArray) ToExecutionArrayOutputWithContext ¶ added in v3.13.0
func (i ExecutionArray) ToExecutionArrayOutputWithContext(ctx context.Context) ExecutionArrayOutput
type ExecutionArrayInput ¶ added in v3.13.0
type ExecutionArrayInput interface { pulumi.Input ToExecutionArrayOutput() ExecutionArrayOutput ToExecutionArrayOutputWithContext(context.Context) ExecutionArrayOutput }
ExecutionArrayInput is an input type that accepts ExecutionArray and ExecutionArrayOutput values. You can construct a concrete instance of `ExecutionArrayInput` via:
ExecutionArray{ ExecutionArgs{...} }
type ExecutionArrayOutput ¶ added in v3.13.0
type ExecutionArrayOutput struct{ *pulumi.OutputState }
func (ExecutionArrayOutput) ElementType ¶ added in v3.13.0
func (ExecutionArrayOutput) ElementType() reflect.Type
func (ExecutionArrayOutput) Index ¶ added in v3.13.0
func (o ExecutionArrayOutput) Index(i pulumi.IntInput) ExecutionOutput
func (ExecutionArrayOutput) ToExecutionArrayOutput ¶ added in v3.13.0
func (o ExecutionArrayOutput) ToExecutionArrayOutput() ExecutionArrayOutput
func (ExecutionArrayOutput) ToExecutionArrayOutputWithContext ¶ added in v3.13.0
func (o ExecutionArrayOutput) ToExecutionArrayOutputWithContext(ctx context.Context) ExecutionArrayOutput
type ExecutionInput ¶ added in v3.13.0
type ExecutionInput interface { pulumi.Input ToExecutionOutput() ExecutionOutput ToExecutionOutputWithContext(ctx context.Context) ExecutionOutput }
type ExecutionMap ¶ added in v3.13.0
type ExecutionMap map[string]ExecutionInput
func (ExecutionMap) ElementType ¶ added in v3.13.0
func (ExecutionMap) ElementType() reflect.Type
func (ExecutionMap) ToExecutionMapOutput ¶ added in v3.13.0
func (i ExecutionMap) ToExecutionMapOutput() ExecutionMapOutput
func (ExecutionMap) ToExecutionMapOutputWithContext ¶ added in v3.13.0
func (i ExecutionMap) ToExecutionMapOutputWithContext(ctx context.Context) ExecutionMapOutput
type ExecutionMapInput ¶ added in v3.13.0
type ExecutionMapInput interface { pulumi.Input ToExecutionMapOutput() ExecutionMapOutput ToExecutionMapOutputWithContext(context.Context) ExecutionMapOutput }
ExecutionMapInput is an input type that accepts ExecutionMap and ExecutionMapOutput values. You can construct a concrete instance of `ExecutionMapInput` via:
ExecutionMap{ "key": ExecutionArgs{...} }
type ExecutionMapOutput ¶ added in v3.13.0
type ExecutionMapOutput struct{ *pulumi.OutputState }
func (ExecutionMapOutput) ElementType ¶ added in v3.13.0
func (ExecutionMapOutput) ElementType() reflect.Type
func (ExecutionMapOutput) MapIndex ¶ added in v3.13.0
func (o ExecutionMapOutput) MapIndex(k pulumi.StringInput) ExecutionOutput
func (ExecutionMapOutput) ToExecutionMapOutput ¶ added in v3.13.0
func (o ExecutionMapOutput) ToExecutionMapOutput() ExecutionMapOutput
func (ExecutionMapOutput) ToExecutionMapOutputWithContext ¶ added in v3.13.0
func (o ExecutionMapOutput) ToExecutionMapOutputWithContext(ctx context.Context) ExecutionMapOutput
type ExecutionOutput ¶ added in v3.13.0
type ExecutionOutput struct{ *pulumi.OutputState }
func (ExecutionOutput) ElementType ¶ added in v3.13.0
func (ExecutionOutput) ElementType() reflect.Type
func (ExecutionOutput) ExecutionName ¶ added in v3.27.0
func (o ExecutionOutput) ExecutionName() pulumi.StringOutput
The name of the execution.
func (ExecutionOutput) FlowName ¶ added in v3.27.0
func (o ExecutionOutput) FlowName() pulumi.StringOutput
The name of the flow.
func (ExecutionOutput) Input ¶ added in v3.27.0
func (o ExecutionOutput) Input() pulumi.StringPtrOutput
The Input information for this execution.
func (ExecutionOutput) Status ¶ added in v3.27.0
func (o ExecutionOutput) Status() pulumi.StringOutput
The status of the resource. Valid values: `Stopped`.
func (ExecutionOutput) ToExecutionOutput ¶ added in v3.13.0
func (o ExecutionOutput) ToExecutionOutput() ExecutionOutput
func (ExecutionOutput) ToExecutionOutputWithContext ¶ added in v3.13.0
func (o ExecutionOutput) ToExecutionOutputWithContext(ctx context.Context) ExecutionOutput
type ExecutionState ¶ added in v3.13.0
type ExecutionState struct { // The name of the execution. ExecutionName pulumi.StringPtrInput // The name of the flow. FlowName pulumi.StringPtrInput // The Input information for this execution. Input pulumi.StringPtrInput // The status of the resource. Valid values: `Stopped`. Status pulumi.StringPtrInput }
func (ExecutionState) ElementType ¶ added in v3.13.0
func (ExecutionState) ElementType() reflect.Type
type Flow ¶
type Flow struct { pulumi.CustomResourceState // The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax. Definition pulumi.StringOutput `pulumi:"definition"` // The description of the flow. Description pulumi.StringOutput `pulumi:"description"` // The unique ID of the flow. FlowId pulumi.StringOutput `pulumi:"flowId"` // The time when the flow was last modified. LastModifiedTime pulumi.StringOutput `pulumi:"lastModifiedTime"` // The name of the flow. The name must be unique in an Alibaba Cloud account. Name pulumi.StringOutput `pulumi:"name"` // The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. RoleArn pulumi.StringPtrOutput `pulumi:"roleArn"` // The type of the flow. Valid values are `FDL` or `DEFAULT`. Type pulumi.StringOutput `pulumi:"type"` }
Provides a Serverless Workflow Flow resource.
For information about Serverless Workflow Flow and how to use it, see [What is Flow](https://www.alibabacloud.com/help/en/doc-detail/123079.htm).
> **NOTE:** Available since v1.105.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fnf" "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ram.NewRole(ctx, "default", &ram.RoleArgs{ Name: pulumi.String("tf-example-fnfflow"), Document: pulumi.String(` { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": [ "fnf.aliyuncs.com" ] } } ], "Version": "1" }
`),
}) if err != nil { return err } _, err = fnf.NewFlow(ctx, "example", &fnf.FlowArgs{ Definition: pulumi.String(` version: v1beta1 type: flow steps: - type: pass name: helloworld
`),
RoleArn: _default.Arn, Description: pulumi.String("Test for terraform fnf_flow."), Name: pulumi.String("tf-example-flow"), Type: pulumi.String("FDL"), }) if err != nil { return err } return nil }) }
```
## Import
Serverless Workflow Flow can be imported using the id, e.g.
```sh $ pulumi import alicloud:fnf/flow:Flow example <name> ```
func GetFlow ¶
func GetFlow(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FlowState, opts ...pulumi.ResourceOption) (*Flow, error)
GetFlow gets an existing Flow resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFlow ¶
func NewFlow(ctx *pulumi.Context, name string, args *FlowArgs, opts ...pulumi.ResourceOption) (*Flow, error)
NewFlow registers a new resource with the given unique name, arguments, and options.
func (*Flow) ElementType ¶
func (*Flow) ToFlowOutput ¶
func (i *Flow) ToFlowOutput() FlowOutput
func (*Flow) ToFlowOutputWithContext ¶
func (i *Flow) ToFlowOutputWithContext(ctx context.Context) FlowOutput
type FlowArgs ¶
type FlowArgs struct { // The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax. Definition pulumi.StringInput // The description of the flow. Description pulumi.StringInput // The name of the flow. The name must be unique in an Alibaba Cloud account. Name pulumi.StringPtrInput // The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. RoleArn pulumi.StringPtrInput // The type of the flow. Valid values are `FDL` or `DEFAULT`. Type pulumi.StringInput }
The set of arguments for constructing a Flow resource.
func (FlowArgs) ElementType ¶
type FlowArray ¶
type FlowArray []FlowInput
func (FlowArray) ElementType ¶
func (FlowArray) ToFlowArrayOutput ¶
func (i FlowArray) ToFlowArrayOutput() FlowArrayOutput
func (FlowArray) ToFlowArrayOutputWithContext ¶
func (i FlowArray) ToFlowArrayOutputWithContext(ctx context.Context) FlowArrayOutput
type FlowArrayInput ¶
type FlowArrayInput interface { pulumi.Input ToFlowArrayOutput() FlowArrayOutput ToFlowArrayOutputWithContext(context.Context) FlowArrayOutput }
FlowArrayInput is an input type that accepts FlowArray and FlowArrayOutput values. You can construct a concrete instance of `FlowArrayInput` via:
FlowArray{ FlowArgs{...} }
type FlowArrayOutput ¶
type FlowArrayOutput struct{ *pulumi.OutputState }
func (FlowArrayOutput) ElementType ¶
func (FlowArrayOutput) ElementType() reflect.Type
func (FlowArrayOutput) Index ¶
func (o FlowArrayOutput) Index(i pulumi.IntInput) FlowOutput
func (FlowArrayOutput) ToFlowArrayOutput ¶
func (o FlowArrayOutput) ToFlowArrayOutput() FlowArrayOutput
func (FlowArrayOutput) ToFlowArrayOutputWithContext ¶
func (o FlowArrayOutput) ToFlowArrayOutputWithContext(ctx context.Context) FlowArrayOutput
type FlowInput ¶
type FlowInput interface { pulumi.Input ToFlowOutput() FlowOutput ToFlowOutputWithContext(ctx context.Context) FlowOutput }
type FlowMap ¶
func (FlowMap) ElementType ¶
func (FlowMap) ToFlowMapOutput ¶
func (i FlowMap) ToFlowMapOutput() FlowMapOutput
func (FlowMap) ToFlowMapOutputWithContext ¶
func (i FlowMap) ToFlowMapOutputWithContext(ctx context.Context) FlowMapOutput
type FlowMapInput ¶
type FlowMapInput interface { pulumi.Input ToFlowMapOutput() FlowMapOutput ToFlowMapOutputWithContext(context.Context) FlowMapOutput }
FlowMapInput is an input type that accepts FlowMap and FlowMapOutput values. You can construct a concrete instance of `FlowMapInput` via:
FlowMap{ "key": FlowArgs{...} }
type FlowMapOutput ¶
type FlowMapOutput struct{ *pulumi.OutputState }
func (FlowMapOutput) ElementType ¶
func (FlowMapOutput) ElementType() reflect.Type
func (FlowMapOutput) MapIndex ¶
func (o FlowMapOutput) MapIndex(k pulumi.StringInput) FlowOutput
func (FlowMapOutput) ToFlowMapOutput ¶
func (o FlowMapOutput) ToFlowMapOutput() FlowMapOutput
func (FlowMapOutput) ToFlowMapOutputWithContext ¶
func (o FlowMapOutput) ToFlowMapOutputWithContext(ctx context.Context) FlowMapOutput
type FlowOutput ¶
type FlowOutput struct{ *pulumi.OutputState }
func (FlowOutput) Definition ¶ added in v3.27.0
func (o FlowOutput) Definition() pulumi.StringOutput
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
func (FlowOutput) Description ¶ added in v3.27.0
func (o FlowOutput) Description() pulumi.StringOutput
The description of the flow.
func (FlowOutput) ElementType ¶
func (FlowOutput) ElementType() reflect.Type
func (FlowOutput) FlowId ¶ added in v3.27.0
func (o FlowOutput) FlowId() pulumi.StringOutput
The unique ID of the flow.
func (FlowOutput) LastModifiedTime ¶ added in v3.27.0
func (o FlowOutput) LastModifiedTime() pulumi.StringOutput
The time when the flow was last modified.
func (FlowOutput) Name ¶ added in v3.27.0
func (o FlowOutput) Name() pulumi.StringOutput
The name of the flow. The name must be unique in an Alibaba Cloud account.
func (FlowOutput) RoleArn ¶ added in v3.27.0
func (o FlowOutput) RoleArn() pulumi.StringPtrOutput
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
func (FlowOutput) ToFlowOutput ¶
func (o FlowOutput) ToFlowOutput() FlowOutput
func (FlowOutput) ToFlowOutputWithContext ¶
func (o FlowOutput) ToFlowOutputWithContext(ctx context.Context) FlowOutput
func (FlowOutput) Type ¶ added in v3.27.0
func (o FlowOutput) Type() pulumi.StringOutput
The type of the flow. Valid values are `FDL` or `DEFAULT`.
type FlowState ¶
type FlowState struct { // The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax. Definition pulumi.StringPtrInput // The description of the flow. Description pulumi.StringPtrInput // The unique ID of the flow. FlowId pulumi.StringPtrInput // The time when the flow was last modified. LastModifiedTime pulumi.StringPtrInput // The name of the flow. The name must be unique in an Alibaba Cloud account. Name pulumi.StringPtrInput // The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. RoleArn pulumi.StringPtrInput // The type of the flow. Valid values are `FDL` or `DEFAULT`. Type pulumi.StringPtrInput }
func (FlowState) ElementType ¶
type GetExecutionsArgs ¶ added in v3.13.0
type GetExecutionsArgs struct { // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails *bool `pulumi:"enableDetails"` // The name of the flow. FlowName string `pulumi:"flowName"` // A list of Execution IDs. The value formats as `<flow_name>:<execution_name>`. Ids []string `pulumi:"ids"` // A regex string to filter results by Execution name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` // The status of the resource. Valid values: `Running`, `Stopped`, `Succeeded`, `Failed`, `TimedOut`. Status *string `pulumi:"status"` }
A collection of arguments for invoking getExecutions.
type GetExecutionsExecution ¶ added in v3.13.0
type GetExecutionsExecution struct { // The name of the execution. ExecutionName string `pulumi:"executionName"` // The name of the flow. FlowName string `pulumi:"flowName"` // The ID of the Execution. The value formats as `<flow_name>:<execution_name>`. Id string `pulumi:"id"` // The Input information for this execution. Input string `pulumi:"input"` // The output of the execution. Output string `pulumi:"output"` // The started time of the execution. StartedTime string `pulumi:"startedTime"` // The status of the resource. Status string `pulumi:"status"` // The stopped time of the execution. StoppedTime string `pulumi:"stoppedTime"` }
type GetExecutionsExecutionArgs ¶ added in v3.13.0
type GetExecutionsExecutionArgs struct { // The name of the execution. ExecutionName pulumi.StringInput `pulumi:"executionName"` // The name of the flow. FlowName pulumi.StringInput `pulumi:"flowName"` // The ID of the Execution. The value formats as `<flow_name>:<execution_name>`. Id pulumi.StringInput `pulumi:"id"` // The Input information for this execution. Input pulumi.StringInput `pulumi:"input"` // The output of the execution. Output pulumi.StringInput `pulumi:"output"` // The started time of the execution. StartedTime pulumi.StringInput `pulumi:"startedTime"` // The status of the resource. Status pulumi.StringInput `pulumi:"status"` // The stopped time of the execution. StoppedTime pulumi.StringInput `pulumi:"stoppedTime"` }
func (GetExecutionsExecutionArgs) ElementType ¶ added in v3.13.0
func (GetExecutionsExecutionArgs) ElementType() reflect.Type
func (GetExecutionsExecutionArgs) ToGetExecutionsExecutionOutput ¶ added in v3.13.0
func (i GetExecutionsExecutionArgs) ToGetExecutionsExecutionOutput() GetExecutionsExecutionOutput
func (GetExecutionsExecutionArgs) ToGetExecutionsExecutionOutputWithContext ¶ added in v3.13.0
func (i GetExecutionsExecutionArgs) ToGetExecutionsExecutionOutputWithContext(ctx context.Context) GetExecutionsExecutionOutput
type GetExecutionsExecutionArray ¶ added in v3.13.0
type GetExecutionsExecutionArray []GetExecutionsExecutionInput
func (GetExecutionsExecutionArray) ElementType ¶ added in v3.13.0
func (GetExecutionsExecutionArray) ElementType() reflect.Type
func (GetExecutionsExecutionArray) ToGetExecutionsExecutionArrayOutput ¶ added in v3.13.0
func (i GetExecutionsExecutionArray) ToGetExecutionsExecutionArrayOutput() GetExecutionsExecutionArrayOutput
func (GetExecutionsExecutionArray) ToGetExecutionsExecutionArrayOutputWithContext ¶ added in v3.13.0
func (i GetExecutionsExecutionArray) ToGetExecutionsExecutionArrayOutputWithContext(ctx context.Context) GetExecutionsExecutionArrayOutput
type GetExecutionsExecutionArrayInput ¶ added in v3.13.0
type GetExecutionsExecutionArrayInput interface { pulumi.Input ToGetExecutionsExecutionArrayOutput() GetExecutionsExecutionArrayOutput ToGetExecutionsExecutionArrayOutputWithContext(context.Context) GetExecutionsExecutionArrayOutput }
GetExecutionsExecutionArrayInput is an input type that accepts GetExecutionsExecutionArray and GetExecutionsExecutionArrayOutput values. You can construct a concrete instance of `GetExecutionsExecutionArrayInput` via:
GetExecutionsExecutionArray{ GetExecutionsExecutionArgs{...} }
type GetExecutionsExecutionArrayOutput ¶ added in v3.13.0
type GetExecutionsExecutionArrayOutput struct{ *pulumi.OutputState }
func (GetExecutionsExecutionArrayOutput) ElementType ¶ added in v3.13.0
func (GetExecutionsExecutionArrayOutput) ElementType() reflect.Type
func (GetExecutionsExecutionArrayOutput) Index ¶ added in v3.13.0
func (o GetExecutionsExecutionArrayOutput) Index(i pulumi.IntInput) GetExecutionsExecutionOutput
func (GetExecutionsExecutionArrayOutput) ToGetExecutionsExecutionArrayOutput ¶ added in v3.13.0
func (o GetExecutionsExecutionArrayOutput) ToGetExecutionsExecutionArrayOutput() GetExecutionsExecutionArrayOutput
func (GetExecutionsExecutionArrayOutput) ToGetExecutionsExecutionArrayOutputWithContext ¶ added in v3.13.0
func (o GetExecutionsExecutionArrayOutput) ToGetExecutionsExecutionArrayOutputWithContext(ctx context.Context) GetExecutionsExecutionArrayOutput
type GetExecutionsExecutionInput ¶ added in v3.13.0
type GetExecutionsExecutionInput interface { pulumi.Input ToGetExecutionsExecutionOutput() GetExecutionsExecutionOutput ToGetExecutionsExecutionOutputWithContext(context.Context) GetExecutionsExecutionOutput }
GetExecutionsExecutionInput is an input type that accepts GetExecutionsExecutionArgs and GetExecutionsExecutionOutput values. You can construct a concrete instance of `GetExecutionsExecutionInput` via:
GetExecutionsExecutionArgs{...}
type GetExecutionsExecutionOutput ¶ added in v3.13.0
type GetExecutionsExecutionOutput struct{ *pulumi.OutputState }
func (GetExecutionsExecutionOutput) ElementType ¶ added in v3.13.0
func (GetExecutionsExecutionOutput) ElementType() reflect.Type
func (GetExecutionsExecutionOutput) ExecutionName ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) ExecutionName() pulumi.StringOutput
The name of the execution.
func (GetExecutionsExecutionOutput) FlowName ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) FlowName() pulumi.StringOutput
The name of the flow.
func (GetExecutionsExecutionOutput) Id ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) Id() pulumi.StringOutput
The ID of the Execution. The value formats as `<flow_name>:<execution_name>`.
func (GetExecutionsExecutionOutput) Input ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) Input() pulumi.StringOutput
The Input information for this execution.
func (GetExecutionsExecutionOutput) Output ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) Output() pulumi.StringOutput
The output of the execution.
func (GetExecutionsExecutionOutput) StartedTime ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) StartedTime() pulumi.StringOutput
The started time of the execution.
func (GetExecutionsExecutionOutput) Status ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) Status() pulumi.StringOutput
The status of the resource.
func (GetExecutionsExecutionOutput) StoppedTime ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) StoppedTime() pulumi.StringOutput
The stopped time of the execution.
func (GetExecutionsExecutionOutput) ToGetExecutionsExecutionOutput ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) ToGetExecutionsExecutionOutput() GetExecutionsExecutionOutput
func (GetExecutionsExecutionOutput) ToGetExecutionsExecutionOutputWithContext ¶ added in v3.13.0
func (o GetExecutionsExecutionOutput) ToGetExecutionsExecutionOutputWithContext(ctx context.Context) GetExecutionsExecutionOutput
type GetExecutionsOutputArgs ¶ added in v3.13.0
type GetExecutionsOutputArgs struct { // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` // The name of the flow. FlowName pulumi.StringInput `pulumi:"flowName"` // A list of Execution IDs. The value formats as `<flow_name>:<execution_name>`. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter results by Execution name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The status of the resource. Valid values: `Running`, `Stopped`, `Succeeded`, `Failed`, `TimedOut`. Status pulumi.StringPtrInput `pulumi:"status"` }
A collection of arguments for invoking getExecutions.
func (GetExecutionsOutputArgs) ElementType ¶ added in v3.13.0
func (GetExecutionsOutputArgs) ElementType() reflect.Type
type GetExecutionsResult ¶ added in v3.13.0
type GetExecutionsResult struct { EnableDetails *bool `pulumi:"enableDetails"` Executions []GetExecutionsExecution `pulumi:"executions"` FlowName string `pulumi:"flowName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Status *string `pulumi:"status"` }
A collection of values returned by getExecutions.
func GetExecutions ¶ added in v3.13.0
func GetExecutions(ctx *pulumi.Context, args *GetExecutionsArgs, opts ...pulumi.InvokeOption) (*GetExecutionsResult, error)
This data source provides the FnF Executions of the current Alibaba Cloud user.
> **NOTE:** Available in v1.149.0+.
## Example Usage
Basic Usage ¶
```go 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 { _, err := fnf.GetExecutions(ctx, &fnf.GetExecutionsArgs{ FlowName: "example_value", Ids: []string{ "my-Execution-1", "my-Execution-2", }, }, nil) if err != nil { return err } ctx.Export("fnfExecutionId1", idsAlicloudFnFExecutions.Executions[0].Id) return nil }) }
```
type GetExecutionsResultOutput ¶ added in v3.13.0
type GetExecutionsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getExecutions.
func GetExecutionsOutput ¶ added in v3.13.0
func GetExecutionsOutput(ctx *pulumi.Context, args GetExecutionsOutputArgs, opts ...pulumi.InvokeOption) GetExecutionsResultOutput
func (GetExecutionsResultOutput) ElementType ¶ added in v3.13.0
func (GetExecutionsResultOutput) ElementType() reflect.Type
func (GetExecutionsResultOutput) EnableDetails ¶ added in v3.13.0
func (o GetExecutionsResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetExecutionsResultOutput) Executions ¶ added in v3.13.0
func (o GetExecutionsResultOutput) Executions() GetExecutionsExecutionArrayOutput
func (GetExecutionsResultOutput) FlowName ¶ added in v3.13.0
func (o GetExecutionsResultOutput) FlowName() pulumi.StringOutput
func (GetExecutionsResultOutput) Id ¶ added in v3.13.0
func (o GetExecutionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetExecutionsResultOutput) Ids ¶ added in v3.13.0
func (o GetExecutionsResultOutput) Ids() pulumi.StringArrayOutput
func (GetExecutionsResultOutput) NameRegex ¶ added in v3.13.0
func (o GetExecutionsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetExecutionsResultOutput) Names ¶ added in v3.13.0
func (o GetExecutionsResultOutput) Names() pulumi.StringArrayOutput
func (GetExecutionsResultOutput) OutputFile ¶ added in v3.13.0
func (o GetExecutionsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetExecutionsResultOutput) Status ¶ added in v3.13.0
func (o GetExecutionsResultOutput) Status() pulumi.StringPtrOutput
func (GetExecutionsResultOutput) ToGetExecutionsResultOutput ¶ added in v3.13.0
func (o GetExecutionsResultOutput) ToGetExecutionsResultOutput() GetExecutionsResultOutput
func (GetExecutionsResultOutput) ToGetExecutionsResultOutputWithContext ¶ added in v3.13.0
func (o GetExecutionsResultOutput) ToGetExecutionsResultOutputWithContext(ctx context.Context) GetExecutionsResultOutput
type GetFlowsArgs ¶
type GetFlowsArgs struct { // A list of Flow IDs. Ids []string `pulumi:"ids"` // The number of resource queries. Limit *int `pulumi:"limit"` // A regex string to filter results by Flow name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getFlows.
type GetFlowsFlow ¶
type GetFlowsFlow struct { // The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax. Definition string `pulumi:"definition"` // The description of the flow. Description string `pulumi:"description"` // The unique ID of the flow. FlowId string `pulumi:"flowId"` // The ID of the Flow. Id string `pulumi:"id"` // The time when the flow was last modified. LastModifiedTime string `pulumi:"lastModifiedTime"` // The name of the flow. The name must be unique in an Alibaba Cloud account. Name string `pulumi:"name"` // The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. RoleArn string `pulumi:"roleArn"` // The type of the flow. Set the value to `FDL`. Type string `pulumi:"type"` }
type GetFlowsFlowArgs ¶
type GetFlowsFlowArgs struct { // The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax. Definition pulumi.StringInput `pulumi:"definition"` // The description of the flow. Description pulumi.StringInput `pulumi:"description"` // The unique ID of the flow. FlowId pulumi.StringInput `pulumi:"flowId"` // The ID of the Flow. Id pulumi.StringInput `pulumi:"id"` // The time when the flow was last modified. LastModifiedTime pulumi.StringInput `pulumi:"lastModifiedTime"` // The name of the flow. The name must be unique in an Alibaba Cloud account. Name pulumi.StringInput `pulumi:"name"` // The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. RoleArn pulumi.StringInput `pulumi:"roleArn"` // The type of the flow. Set the value to `FDL`. Type pulumi.StringInput `pulumi:"type"` }
func (GetFlowsFlowArgs) ElementType ¶
func (GetFlowsFlowArgs) ElementType() reflect.Type
func (GetFlowsFlowArgs) ToGetFlowsFlowOutput ¶
func (i GetFlowsFlowArgs) ToGetFlowsFlowOutput() GetFlowsFlowOutput
func (GetFlowsFlowArgs) ToGetFlowsFlowOutputWithContext ¶
func (i GetFlowsFlowArgs) ToGetFlowsFlowOutputWithContext(ctx context.Context) GetFlowsFlowOutput
type GetFlowsFlowArray ¶
type GetFlowsFlowArray []GetFlowsFlowInput
func (GetFlowsFlowArray) ElementType ¶
func (GetFlowsFlowArray) ElementType() reflect.Type
func (GetFlowsFlowArray) ToGetFlowsFlowArrayOutput ¶
func (i GetFlowsFlowArray) ToGetFlowsFlowArrayOutput() GetFlowsFlowArrayOutput
func (GetFlowsFlowArray) ToGetFlowsFlowArrayOutputWithContext ¶
func (i GetFlowsFlowArray) ToGetFlowsFlowArrayOutputWithContext(ctx context.Context) GetFlowsFlowArrayOutput
type GetFlowsFlowArrayInput ¶
type GetFlowsFlowArrayInput interface { pulumi.Input ToGetFlowsFlowArrayOutput() GetFlowsFlowArrayOutput ToGetFlowsFlowArrayOutputWithContext(context.Context) GetFlowsFlowArrayOutput }
GetFlowsFlowArrayInput is an input type that accepts GetFlowsFlowArray and GetFlowsFlowArrayOutput values. You can construct a concrete instance of `GetFlowsFlowArrayInput` via:
GetFlowsFlowArray{ GetFlowsFlowArgs{...} }
type GetFlowsFlowArrayOutput ¶
type GetFlowsFlowArrayOutput struct{ *pulumi.OutputState }
func (GetFlowsFlowArrayOutput) ElementType ¶
func (GetFlowsFlowArrayOutput) ElementType() reflect.Type
func (GetFlowsFlowArrayOutput) Index ¶
func (o GetFlowsFlowArrayOutput) Index(i pulumi.IntInput) GetFlowsFlowOutput
func (GetFlowsFlowArrayOutput) ToGetFlowsFlowArrayOutput ¶
func (o GetFlowsFlowArrayOutput) ToGetFlowsFlowArrayOutput() GetFlowsFlowArrayOutput
func (GetFlowsFlowArrayOutput) ToGetFlowsFlowArrayOutputWithContext ¶
func (o GetFlowsFlowArrayOutput) ToGetFlowsFlowArrayOutputWithContext(ctx context.Context) GetFlowsFlowArrayOutput
type GetFlowsFlowInput ¶
type GetFlowsFlowInput interface { pulumi.Input ToGetFlowsFlowOutput() GetFlowsFlowOutput ToGetFlowsFlowOutputWithContext(context.Context) GetFlowsFlowOutput }
GetFlowsFlowInput is an input type that accepts GetFlowsFlowArgs and GetFlowsFlowOutput values. You can construct a concrete instance of `GetFlowsFlowInput` via:
GetFlowsFlowArgs{...}
type GetFlowsFlowOutput ¶
type GetFlowsFlowOutput struct{ *pulumi.OutputState }
func (GetFlowsFlowOutput) Definition ¶
func (o GetFlowsFlowOutput) Definition() pulumi.StringOutput
The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.
func (GetFlowsFlowOutput) Description ¶
func (o GetFlowsFlowOutput) Description() pulumi.StringOutput
The description of the flow.
func (GetFlowsFlowOutput) ElementType ¶
func (GetFlowsFlowOutput) ElementType() reflect.Type
func (GetFlowsFlowOutput) FlowId ¶
func (o GetFlowsFlowOutput) FlowId() pulumi.StringOutput
The unique ID of the flow.
func (GetFlowsFlowOutput) Id ¶
func (o GetFlowsFlowOutput) Id() pulumi.StringOutput
The ID of the Flow.
func (GetFlowsFlowOutput) LastModifiedTime ¶
func (o GetFlowsFlowOutput) LastModifiedTime() pulumi.StringOutput
The time when the flow was last modified.
func (GetFlowsFlowOutput) Name ¶
func (o GetFlowsFlowOutput) Name() pulumi.StringOutput
The name of the flow. The name must be unique in an Alibaba Cloud account.
func (GetFlowsFlowOutput) RoleArn ¶
func (o GetFlowsFlowOutput) RoleArn() pulumi.StringOutput
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.
func (GetFlowsFlowOutput) ToGetFlowsFlowOutput ¶
func (o GetFlowsFlowOutput) ToGetFlowsFlowOutput() GetFlowsFlowOutput
func (GetFlowsFlowOutput) ToGetFlowsFlowOutputWithContext ¶
func (o GetFlowsFlowOutput) ToGetFlowsFlowOutputWithContext(ctx context.Context) GetFlowsFlowOutput
func (GetFlowsFlowOutput) Type ¶
func (o GetFlowsFlowOutput) Type() pulumi.StringOutput
The type of the flow. Set the value to `FDL`.
type GetFlowsOutputArgs ¶ added in v3.9.0
type GetFlowsOutputArgs struct { // A list of Flow IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` // The number of resource queries. Limit pulumi.IntPtrInput `pulumi:"limit"` // A regex string to filter results by Flow name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getFlows.
func (GetFlowsOutputArgs) ElementType ¶ added in v3.9.0
func (GetFlowsOutputArgs) ElementType() reflect.Type
type GetFlowsResult ¶
type GetFlowsResult struct { Flows []GetFlowsFlow `pulumi:"flows"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` Limit *int `pulumi:"limit"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getFlows.
func GetFlows ¶
func GetFlows(ctx *pulumi.Context, args *GetFlowsArgs, opts ...pulumi.InvokeOption) (*GetFlowsResult, error)
This data source provides the Fnf Flows of the current Alibaba Cloud user.
> **NOTE:** Available in v1.105.0+.
## Example Usage
Basic Usage ¶
```go 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 }) }
```
type GetFlowsResultOutput ¶ added in v3.9.0
type GetFlowsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getFlows.
func GetFlowsOutput ¶ added in v3.9.0
func GetFlowsOutput(ctx *pulumi.Context, args GetFlowsOutputArgs, opts ...pulumi.InvokeOption) GetFlowsResultOutput
func (GetFlowsResultOutput) ElementType ¶ added in v3.9.0
func (GetFlowsResultOutput) ElementType() reflect.Type
func (GetFlowsResultOutput) Flows ¶ added in v3.9.0
func (o GetFlowsResultOutput) Flows() GetFlowsFlowArrayOutput
func (GetFlowsResultOutput) Id ¶ added in v3.9.0
func (o GetFlowsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetFlowsResultOutput) Ids ¶ added in v3.9.0
func (o GetFlowsResultOutput) Ids() pulumi.StringArrayOutput
func (GetFlowsResultOutput) Limit ¶ added in v3.9.0
func (o GetFlowsResultOutput) Limit() pulumi.IntPtrOutput
func (GetFlowsResultOutput) NameRegex ¶ added in v3.9.0
func (o GetFlowsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetFlowsResultOutput) Names ¶ added in v3.9.0
func (o GetFlowsResultOutput) Names() pulumi.StringArrayOutput
func (GetFlowsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetFlowsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetFlowsResultOutput) ToGetFlowsResultOutput ¶ added in v3.9.0
func (o GetFlowsResultOutput) ToGetFlowsResultOutput() GetFlowsResultOutput
func (GetFlowsResultOutput) ToGetFlowsResultOutputWithContext ¶ added in v3.9.0
func (o GetFlowsResultOutput) ToGetFlowsResultOutputWithContext(ctx context.Context) GetFlowsResultOutput
type GetSchedulesArgs ¶
type GetSchedulesArgs struct { // The name of the flow bound to the time-based schedule you want to create. FlowName string `pulumi:"flowName"` // A list of Schedule IDs. Ids []string `pulumi:"ids"` // The number of resource queries. Limit *int `pulumi:"limit"` // A regex string to filter results by Schedule name. NameRegex *string `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getSchedules.
type GetSchedulesOutputArgs ¶ added in v3.9.0
type GetSchedulesOutputArgs struct { // The name of the flow bound to the time-based schedule you want to create. FlowName pulumi.StringInput `pulumi:"flowName"` // A list of Schedule IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` // The number of resource queries. Limit pulumi.IntPtrInput `pulumi:"limit"` // A regex string to filter results by Schedule name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getSchedules.
func (GetSchedulesOutputArgs) ElementType ¶ added in v3.9.0
func (GetSchedulesOutputArgs) ElementType() reflect.Type
type GetSchedulesResult ¶
type GetSchedulesResult struct { FlowName string `pulumi:"flowName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` Limit *int `pulumi:"limit"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Schedules []GetSchedulesSchedule `pulumi:"schedules"` }
A collection of values returned by getSchedules.
func GetSchedules ¶
func GetSchedules(ctx *pulumi.Context, args *GetSchedulesArgs, opts ...pulumi.InvokeOption) (*GetSchedulesResult, error)
This data source provides the Fnf Schedules of the current Alibaba Cloud user.
> **NOTE:** Available in v1.105.0+.
## Example Usage
Basic Usage ¶
```go 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 }) }
```
type GetSchedulesResultOutput ¶ added in v3.9.0
type GetSchedulesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSchedules.
func GetSchedulesOutput ¶ added in v3.9.0
func GetSchedulesOutput(ctx *pulumi.Context, args GetSchedulesOutputArgs, opts ...pulumi.InvokeOption) GetSchedulesResultOutput
func (GetSchedulesResultOutput) ElementType ¶ added in v3.9.0
func (GetSchedulesResultOutput) ElementType() reflect.Type
func (GetSchedulesResultOutput) FlowName ¶ added in v3.9.0
func (o GetSchedulesResultOutput) FlowName() pulumi.StringOutput
func (GetSchedulesResultOutput) Id ¶ added in v3.9.0
func (o GetSchedulesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSchedulesResultOutput) Ids ¶ added in v3.9.0
func (o GetSchedulesResultOutput) Ids() pulumi.StringArrayOutput
func (GetSchedulesResultOutput) Limit ¶ added in v3.9.0
func (o GetSchedulesResultOutput) Limit() pulumi.IntPtrOutput
func (GetSchedulesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetSchedulesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetSchedulesResultOutput) Names ¶ added in v3.9.0
func (o GetSchedulesResultOutput) Names() pulumi.StringArrayOutput
func (GetSchedulesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetSchedulesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetSchedulesResultOutput) Schedules ¶ added in v3.9.0
func (o GetSchedulesResultOutput) Schedules() GetSchedulesScheduleArrayOutput
func (GetSchedulesResultOutput) ToGetSchedulesResultOutput ¶ added in v3.9.0
func (o GetSchedulesResultOutput) ToGetSchedulesResultOutput() GetSchedulesResultOutput
func (GetSchedulesResultOutput) ToGetSchedulesResultOutputWithContext ¶ added in v3.9.0
func (o GetSchedulesResultOutput) ToGetSchedulesResultOutputWithContext(ctx context.Context) GetSchedulesResultOutput
type GetSchedulesSchedule ¶
type GetSchedulesSchedule struct { // The CRON expression of the time-based schedule to be created. CronExpression string `pulumi:"cronExpression"` // The description of the time-based schedule to be created. Description string `pulumi:"description"` // Specifies whether to enable the time-based schedule you want to create. Enable bool `pulumi:"enable"` // The ID of the Schedule. Id string `pulumi:"id"` // The time when the time-based schedule was last updated. LastModifiedTime string `pulumi:"lastModifiedTime"` // The trigger message of the time-based schedule to be created. It must be in JSON object format. Payload string `pulumi:"payload"` // The ID of the time-based schedule. ScheduleId string `pulumi:"scheduleId"` // The name of the time-based schedule to be created. ScheduleName string `pulumi:"scheduleName"` }
type GetSchedulesScheduleArgs ¶
type GetSchedulesScheduleArgs struct { // The CRON expression of the time-based schedule to be created. CronExpression pulumi.StringInput `pulumi:"cronExpression"` // The description of the time-based schedule to be created. Description pulumi.StringInput `pulumi:"description"` // Specifies whether to enable the time-based schedule you want to create. Enable pulumi.BoolInput `pulumi:"enable"` // The ID of the Schedule. Id pulumi.StringInput `pulumi:"id"` // The time when the time-based schedule was last updated. LastModifiedTime pulumi.StringInput `pulumi:"lastModifiedTime"` // The trigger message of the time-based schedule to be created. It must be in JSON object format. Payload pulumi.StringInput `pulumi:"payload"` // The ID of the time-based schedule. ScheduleId pulumi.StringInput `pulumi:"scheduleId"` // The name of the time-based schedule to be created. ScheduleName pulumi.StringInput `pulumi:"scheduleName"` }
func (GetSchedulesScheduleArgs) ElementType ¶
func (GetSchedulesScheduleArgs) ElementType() reflect.Type
func (GetSchedulesScheduleArgs) ToGetSchedulesScheduleOutput ¶
func (i GetSchedulesScheduleArgs) ToGetSchedulesScheduleOutput() GetSchedulesScheduleOutput
func (GetSchedulesScheduleArgs) ToGetSchedulesScheduleOutputWithContext ¶
func (i GetSchedulesScheduleArgs) ToGetSchedulesScheduleOutputWithContext(ctx context.Context) GetSchedulesScheduleOutput
type GetSchedulesScheduleArray ¶
type GetSchedulesScheduleArray []GetSchedulesScheduleInput
func (GetSchedulesScheduleArray) ElementType ¶
func (GetSchedulesScheduleArray) ElementType() reflect.Type
func (GetSchedulesScheduleArray) ToGetSchedulesScheduleArrayOutput ¶
func (i GetSchedulesScheduleArray) ToGetSchedulesScheduleArrayOutput() GetSchedulesScheduleArrayOutput
func (GetSchedulesScheduleArray) ToGetSchedulesScheduleArrayOutputWithContext ¶
func (i GetSchedulesScheduleArray) ToGetSchedulesScheduleArrayOutputWithContext(ctx context.Context) GetSchedulesScheduleArrayOutput
type GetSchedulesScheduleArrayInput ¶
type GetSchedulesScheduleArrayInput interface { pulumi.Input ToGetSchedulesScheduleArrayOutput() GetSchedulesScheduleArrayOutput ToGetSchedulesScheduleArrayOutputWithContext(context.Context) GetSchedulesScheduleArrayOutput }
GetSchedulesScheduleArrayInput is an input type that accepts GetSchedulesScheduleArray and GetSchedulesScheduleArrayOutput values. You can construct a concrete instance of `GetSchedulesScheduleArrayInput` via:
GetSchedulesScheduleArray{ GetSchedulesScheduleArgs{...} }
type GetSchedulesScheduleArrayOutput ¶
type GetSchedulesScheduleArrayOutput struct{ *pulumi.OutputState }
func (GetSchedulesScheduleArrayOutput) ElementType ¶
func (GetSchedulesScheduleArrayOutput) ElementType() reflect.Type
func (GetSchedulesScheduleArrayOutput) Index ¶
func (o GetSchedulesScheduleArrayOutput) Index(i pulumi.IntInput) GetSchedulesScheduleOutput
func (GetSchedulesScheduleArrayOutput) ToGetSchedulesScheduleArrayOutput ¶
func (o GetSchedulesScheduleArrayOutput) ToGetSchedulesScheduleArrayOutput() GetSchedulesScheduleArrayOutput
func (GetSchedulesScheduleArrayOutput) ToGetSchedulesScheduleArrayOutputWithContext ¶
func (o GetSchedulesScheduleArrayOutput) ToGetSchedulesScheduleArrayOutputWithContext(ctx context.Context) GetSchedulesScheduleArrayOutput
type GetSchedulesScheduleInput ¶
type GetSchedulesScheduleInput interface { pulumi.Input ToGetSchedulesScheduleOutput() GetSchedulesScheduleOutput ToGetSchedulesScheduleOutputWithContext(context.Context) GetSchedulesScheduleOutput }
GetSchedulesScheduleInput is an input type that accepts GetSchedulesScheduleArgs and GetSchedulesScheduleOutput values. You can construct a concrete instance of `GetSchedulesScheduleInput` via:
GetSchedulesScheduleArgs{...}
type GetSchedulesScheduleOutput ¶
type GetSchedulesScheduleOutput struct{ *pulumi.OutputState }
func (GetSchedulesScheduleOutput) CronExpression ¶
func (o GetSchedulesScheduleOutput) CronExpression() pulumi.StringOutput
The CRON expression of the time-based schedule to be created.
func (GetSchedulesScheduleOutput) Description ¶
func (o GetSchedulesScheduleOutput) Description() pulumi.StringOutput
The description of the time-based schedule to be created.
func (GetSchedulesScheduleOutput) ElementType ¶
func (GetSchedulesScheduleOutput) ElementType() reflect.Type
func (GetSchedulesScheduleOutput) Enable ¶
func (o GetSchedulesScheduleOutput) Enable() pulumi.BoolOutput
Specifies whether to enable the time-based schedule you want to create.
func (GetSchedulesScheduleOutput) Id ¶
func (o GetSchedulesScheduleOutput) Id() pulumi.StringOutput
The ID of the Schedule.
func (GetSchedulesScheduleOutput) LastModifiedTime ¶
func (o GetSchedulesScheduleOutput) LastModifiedTime() pulumi.StringOutput
The time when the time-based schedule was last updated.
func (GetSchedulesScheduleOutput) Payload ¶
func (o GetSchedulesScheduleOutput) Payload() pulumi.StringOutput
The trigger message of the time-based schedule to be created. It must be in JSON object format.
func (GetSchedulesScheduleOutput) ScheduleId ¶
func (o GetSchedulesScheduleOutput) ScheduleId() pulumi.StringOutput
The ID of the time-based schedule.
func (GetSchedulesScheduleOutput) ScheduleName ¶
func (o GetSchedulesScheduleOutput) ScheduleName() pulumi.StringOutput
The name of the time-based schedule to be created.
func (GetSchedulesScheduleOutput) ToGetSchedulesScheduleOutput ¶
func (o GetSchedulesScheduleOutput) ToGetSchedulesScheduleOutput() GetSchedulesScheduleOutput
func (GetSchedulesScheduleOutput) ToGetSchedulesScheduleOutputWithContext ¶
func (o GetSchedulesScheduleOutput) ToGetSchedulesScheduleOutputWithContext(ctx context.Context) GetSchedulesScheduleOutput
type GetServiceArgs ¶
type GetServiceArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". // // > **NOTE:** Setting `enable = "On"` to open the Fnf service that means you have read and agreed the [Fnf Terms of Service](https://help.aliyun.com/document_detail/117831.html). The service can not closed once it is opened. Enable *string `pulumi:"enable"` }
A collection of arguments for invoking getService.
type GetServiceOutputArgs ¶ added in v3.9.0
type GetServiceOutputArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". // // > **NOTE:** Setting `enable = "On"` to open the Fnf service that means you have read and agreed the [Fnf Terms of Service](https://help.aliyun.com/document_detail/117831.html). The service can not closed once it is opened. Enable pulumi.StringPtrInput `pulumi:"enable"` }
A collection of arguments for invoking getService.
func (GetServiceOutputArgs) ElementType ¶ added in v3.9.0
func (GetServiceOutputArgs) ElementType() reflect.Type
type GetServiceResult ¶
type GetServiceResult struct { Enable *string `pulumi:"enable"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The current service enable status. Status string `pulumi:"status"` }
A collection of values returned by getService.
func GetService ¶
func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)
Using this data source can open Fnf service automatically. If the service has been opened, it will return opened.
For information about Fnf and how to use it, see [What is Fnf](https://www.alibabacloud.com/help/en/product/113549.htm).
> **NOTE:** Available in v1.114.0+
## Example Usage
```go 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 { _, err := fnf.GetService(ctx, &fnf.GetServiceArgs{ Enable: pulumi.StringRef("On"), }, nil) if err != nil { return err } return nil }) }
```
type GetServiceResultOutput ¶ added in v3.9.0
type GetServiceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getService.
func GetServiceOutput ¶ added in v3.9.0
func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput
func (GetServiceResultOutput) ElementType ¶ added in v3.9.0
func (GetServiceResultOutput) ElementType() reflect.Type
func (GetServiceResultOutput) Enable ¶ added in v3.9.0
func (o GetServiceResultOutput) Enable() pulumi.StringPtrOutput
func (GetServiceResultOutput) Id ¶ added in v3.9.0
func (o GetServiceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetServiceResultOutput) Status ¶ added in v3.9.0
func (o GetServiceResultOutput) Status() pulumi.StringOutput
The current service enable status.
func (GetServiceResultOutput) ToGetServiceResultOutput ¶ added in v3.9.0
func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput
func (GetServiceResultOutput) ToGetServiceResultOutputWithContext ¶ added in v3.9.0
func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput
type Schedule ¶
type Schedule struct { pulumi.CustomResourceState // The CRON expression of the time-based schedule to be created. CronExpression pulumi.StringOutput `pulumi:"cronExpression"` // The description of the time-based schedule to be created. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies whether to enable the time-based schedule you want to create. Valid values: `false`, `true`. Enable pulumi.BoolPtrOutput `pulumi:"enable"` // The name of the flow bound to the time-based schedule you want to create. FlowName pulumi.StringOutput `pulumi:"flowName"` // The time when the time-based schedule was last updated. LastModifiedTime pulumi.StringOutput `pulumi:"lastModifiedTime"` // The trigger message of the time-based schedule to be created. It must be in JSON object format. Payload pulumi.StringPtrOutput `pulumi:"payload"` // The ID of the time-based schedule. ScheduleId pulumi.StringOutput `pulumi:"scheduleId"` // The name of the time-based schedule to be created. ScheduleName pulumi.StringOutput `pulumi:"scheduleName"` }
Provides a Serverless Workflow Schedule resource.
For information about Serverless Workflow Schedule and how to use it, see [What is Schedule](https://www.alibabacloud.com/help/en/doc-detail/168934.htm).
> **NOTE:** Available since v1.105.0+.
## Example Usage
Basic Usage ¶
```go 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.NewFlow(ctx, "example", &fnf.FlowArgs{ Definition: pulumi.String(` version: v1beta1 type: flow steps: - type: pass name: helloworld
`),
Description: pulumi.String("tf-exampleFnFFlow983041"), Name: pulumi.String("tf-exampleSchedule"), Type: pulumi.String("FDL"), }) if err != nil { return err } _, err = fnf.NewSchedule(ctx, "example", &fnf.ScheduleArgs{ CronExpression: pulumi.String("30 9 * * * *"), Description: pulumi.String("tf-exampleFnFSchedule983041"), Enable: pulumi.Bool(true), FlowName: example.Name, Payload: pulumi.String("{\"tf-example\": \"example success\"}"), ScheduleName: pulumi.String("tf-exampleFnFSchedule983041"), }) if err != nil { return err } return nil }) }
```
## Import
Serverless Workflow Schedule can be imported using the id, e.g.
```sh $ pulumi import alicloud:fnf/schedule:Schedule example <schedule_name>:<flow_name> ```
func GetSchedule ¶
func GetSchedule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ScheduleState, opts ...pulumi.ResourceOption) (*Schedule, error)
GetSchedule gets an existing Schedule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSchedule ¶
func NewSchedule(ctx *pulumi.Context, name string, args *ScheduleArgs, opts ...pulumi.ResourceOption) (*Schedule, error)
NewSchedule registers a new resource with the given unique name, arguments, and options.
func (*Schedule) ElementType ¶
func (*Schedule) ToScheduleOutput ¶
func (i *Schedule) ToScheduleOutput() ScheduleOutput
func (*Schedule) ToScheduleOutputWithContext ¶
func (i *Schedule) ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput
type ScheduleArgs ¶
type ScheduleArgs struct { // The CRON expression of the time-based schedule to be created. CronExpression pulumi.StringInput // The description of the time-based schedule to be created. Description pulumi.StringPtrInput // Specifies whether to enable the time-based schedule you want to create. Valid values: `false`, `true`. Enable pulumi.BoolPtrInput // The name of the flow bound to the time-based schedule you want to create. FlowName pulumi.StringInput // The trigger message of the time-based schedule to be created. It must be in JSON object format. Payload pulumi.StringPtrInput // The name of the time-based schedule to be created. ScheduleName pulumi.StringInput }
The set of arguments for constructing a Schedule resource.
func (ScheduleArgs) ElementType ¶
func (ScheduleArgs) ElementType() reflect.Type
type ScheduleArray ¶
type ScheduleArray []ScheduleInput
func (ScheduleArray) ElementType ¶
func (ScheduleArray) ElementType() reflect.Type
func (ScheduleArray) ToScheduleArrayOutput ¶
func (i ScheduleArray) ToScheduleArrayOutput() ScheduleArrayOutput
func (ScheduleArray) ToScheduleArrayOutputWithContext ¶
func (i ScheduleArray) ToScheduleArrayOutputWithContext(ctx context.Context) ScheduleArrayOutput
type ScheduleArrayInput ¶
type ScheduleArrayInput interface { pulumi.Input ToScheduleArrayOutput() ScheduleArrayOutput ToScheduleArrayOutputWithContext(context.Context) ScheduleArrayOutput }
ScheduleArrayInput is an input type that accepts ScheduleArray and ScheduleArrayOutput values. You can construct a concrete instance of `ScheduleArrayInput` via:
ScheduleArray{ ScheduleArgs{...} }
type ScheduleArrayOutput ¶
type ScheduleArrayOutput struct{ *pulumi.OutputState }
func (ScheduleArrayOutput) ElementType ¶
func (ScheduleArrayOutput) ElementType() reflect.Type
func (ScheduleArrayOutput) Index ¶
func (o ScheduleArrayOutput) Index(i pulumi.IntInput) ScheduleOutput
func (ScheduleArrayOutput) ToScheduleArrayOutput ¶
func (o ScheduleArrayOutput) ToScheduleArrayOutput() ScheduleArrayOutput
func (ScheduleArrayOutput) ToScheduleArrayOutputWithContext ¶
func (o ScheduleArrayOutput) ToScheduleArrayOutputWithContext(ctx context.Context) ScheduleArrayOutput
type ScheduleInput ¶
type ScheduleInput interface { pulumi.Input ToScheduleOutput() ScheduleOutput ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput }
type ScheduleMap ¶
type ScheduleMap map[string]ScheduleInput
func (ScheduleMap) ElementType ¶
func (ScheduleMap) ElementType() reflect.Type
func (ScheduleMap) ToScheduleMapOutput ¶
func (i ScheduleMap) ToScheduleMapOutput() ScheduleMapOutput
func (ScheduleMap) ToScheduleMapOutputWithContext ¶
func (i ScheduleMap) ToScheduleMapOutputWithContext(ctx context.Context) ScheduleMapOutput
type ScheduleMapInput ¶
type ScheduleMapInput interface { pulumi.Input ToScheduleMapOutput() ScheduleMapOutput ToScheduleMapOutputWithContext(context.Context) ScheduleMapOutput }
ScheduleMapInput is an input type that accepts ScheduleMap and ScheduleMapOutput values. You can construct a concrete instance of `ScheduleMapInput` via:
ScheduleMap{ "key": ScheduleArgs{...} }
type ScheduleMapOutput ¶
type ScheduleMapOutput struct{ *pulumi.OutputState }
func (ScheduleMapOutput) ElementType ¶
func (ScheduleMapOutput) ElementType() reflect.Type
func (ScheduleMapOutput) MapIndex ¶
func (o ScheduleMapOutput) MapIndex(k pulumi.StringInput) ScheduleOutput
func (ScheduleMapOutput) ToScheduleMapOutput ¶
func (o ScheduleMapOutput) ToScheduleMapOutput() ScheduleMapOutput
func (ScheduleMapOutput) ToScheduleMapOutputWithContext ¶
func (o ScheduleMapOutput) ToScheduleMapOutputWithContext(ctx context.Context) ScheduleMapOutput
type ScheduleOutput ¶
type ScheduleOutput struct{ *pulumi.OutputState }
func (ScheduleOutput) CronExpression ¶ added in v3.27.0
func (o ScheduleOutput) CronExpression() pulumi.StringOutput
The CRON expression of the time-based schedule to be created.
func (ScheduleOutput) Description ¶ added in v3.27.0
func (o ScheduleOutput) Description() pulumi.StringPtrOutput
The description of the time-based schedule to be created.
func (ScheduleOutput) ElementType ¶
func (ScheduleOutput) ElementType() reflect.Type
func (ScheduleOutput) Enable ¶ added in v3.27.0
func (o ScheduleOutput) Enable() pulumi.BoolPtrOutput
Specifies whether to enable the time-based schedule you want to create. Valid values: `false`, `true`.
func (ScheduleOutput) FlowName ¶ added in v3.27.0
func (o ScheduleOutput) FlowName() pulumi.StringOutput
The name of the flow bound to the time-based schedule you want to create.
func (ScheduleOutput) LastModifiedTime ¶ added in v3.27.0
func (o ScheduleOutput) LastModifiedTime() pulumi.StringOutput
The time when the time-based schedule was last updated.
func (ScheduleOutput) Payload ¶ added in v3.27.0
func (o ScheduleOutput) Payload() pulumi.StringPtrOutput
The trigger message of the time-based schedule to be created. It must be in JSON object format.
func (ScheduleOutput) ScheduleId ¶ added in v3.27.0
func (o ScheduleOutput) ScheduleId() pulumi.StringOutput
The ID of the time-based schedule.
func (ScheduleOutput) ScheduleName ¶ added in v3.27.0
func (o ScheduleOutput) ScheduleName() pulumi.StringOutput
The name of the time-based schedule to be created.
func (ScheduleOutput) ToScheduleOutput ¶
func (o ScheduleOutput) ToScheduleOutput() ScheduleOutput
func (ScheduleOutput) ToScheduleOutputWithContext ¶
func (o ScheduleOutput) ToScheduleOutputWithContext(ctx context.Context) ScheduleOutput
type ScheduleState ¶
type ScheduleState struct { // The CRON expression of the time-based schedule to be created. CronExpression pulumi.StringPtrInput // The description of the time-based schedule to be created. Description pulumi.StringPtrInput // Specifies whether to enable the time-based schedule you want to create. Valid values: `false`, `true`. Enable pulumi.BoolPtrInput // The name of the flow bound to the time-based schedule you want to create. FlowName pulumi.StringPtrInput // The time when the time-based schedule was last updated. LastModifiedTime pulumi.StringPtrInput // The trigger message of the time-based schedule to be created. It must be in JSON object format. Payload pulumi.StringPtrInput // The ID of the time-based schedule. ScheduleId pulumi.StringPtrInput // The name of the time-based schedule to be created. ScheduleName pulumi.StringPtrInput }
func (ScheduleState) ElementType ¶
func (ScheduleState) ElementType() reflect.Type