alicloud.fc.FunctionAsyncInvokeConfig
Manages an asynchronous invocation configuration for a FC Function or Alias.
For the detailed information, please refer to the developer guide.
NOTE: Available in 1.100.0+
Example Usage
Destination Configuration
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.FC.FunctionAsyncInvokeConfig("example", new()
{
ServiceName = alicloud_fc_service.Example.Name,
FunctionName = alicloud_fc_function.Example.Name,
DestinationConfig = new AliCloud.FC.Inputs.FunctionAsyncInvokeConfigDestinationConfigArgs
{
OnFailure = new AliCloud.FC.Inputs.FunctionAsyncInvokeConfigDestinationConfigOnFailureArgs
{
Destination = the_example_mns_queue_arn,
},
OnSuccess = new AliCloud.FC.Inputs.FunctionAsyncInvokeConfigDestinationConfigOnSuccessArgs
{
Destination = the_example_mns_topic_arn,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fc.NewFunctionAsyncInvokeConfig(ctx, "example", &fc.FunctionAsyncInvokeConfigArgs{
ServiceName: pulumi.Any(alicloud_fc_service.Example.Name),
FunctionName: pulumi.Any(alicloud_fc_function.Example.Name),
DestinationConfig: &fc.FunctionAsyncInvokeConfigDestinationConfigArgs{
OnFailure: &fc.FunctionAsyncInvokeConfigDestinationConfigOnFailureArgs{
Destination: pulumi.Any(the_example_mns_queue_arn),
},
OnSuccess: &fc.FunctionAsyncInvokeConfigDestinationConfigOnSuccessArgs{
Destination: pulumi.Any(the_example_mns_topic_arn),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfig;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfigArgs;
import com.pulumi.alicloud.fc.inputs.FunctionAsyncInvokeConfigDestinationConfigArgs;
import com.pulumi.alicloud.fc.inputs.FunctionAsyncInvokeConfigDestinationConfigOnFailureArgs;
import com.pulumi.alicloud.fc.inputs.FunctionAsyncInvokeConfigDestinationConfigOnSuccessArgs;
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) {
var example = new FunctionAsyncInvokeConfig("example", FunctionAsyncInvokeConfigArgs.builder()
.serviceName(alicloud_fc_service.example().name())
.functionName(alicloud_fc_function.example().name())
.destinationConfig(FunctionAsyncInvokeConfigDestinationConfigArgs.builder()
.onFailure(FunctionAsyncInvokeConfigDestinationConfigOnFailureArgs.builder()
.destination(the_example_mns_queue_arn)
.build())
.onSuccess(FunctionAsyncInvokeConfigDestinationConfigOnSuccessArgs.builder()
.destination(the_example_mns_topic_arn)
.build())
.build())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.fc.FunctionAsyncInvokeConfig("example",
service_name=alicloud_fc_service["example"]["name"],
function_name=alicloud_fc_function["example"]["name"],
destination_config=alicloud.fc.FunctionAsyncInvokeConfigDestinationConfigArgs(
on_failure=alicloud.fc.FunctionAsyncInvokeConfigDestinationConfigOnFailureArgs(
destination=the_example_mns_queue_arn,
),
on_success=alicloud.fc.FunctionAsyncInvokeConfigDestinationConfigOnSuccessArgs(
destination=the_example_mns_topic_arn,
),
))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.fc.FunctionAsyncInvokeConfig("example", {
serviceName: alicloud_fc_service.example.name,
functionName: alicloud_fc_function.example.name,
destinationConfig: {
onFailure: {
destination: the_example_mns_queue_arn,
},
onSuccess: {
destination: the_example_mns_topic_arn,
},
},
});
resources:
example:
type: alicloud:fc:FunctionAsyncInvokeConfig
properties:
serviceName: ${alicloud_fc_service.example.name}
functionName: ${alicloud_fc_function.example.name}
destinationConfig:
onFailure:
destination: ${the_example_mns_queue_arn}
onSuccess:
destination: ${the_example_mns_topic_arn}
Error Handling Configuration
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.FC.FunctionAsyncInvokeConfig("example", new()
{
ServiceName = alicloud_fc_service.Example.Name,
FunctionName = alicloud_fc_function.Example.Name,
MaximumEventAgeInSeconds = 60,
MaximumRetryAttempts = 0,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fc.NewFunctionAsyncInvokeConfig(ctx, "example", &fc.FunctionAsyncInvokeConfigArgs{
ServiceName: pulumi.Any(alicloud_fc_service.Example.Name),
FunctionName: pulumi.Any(alicloud_fc_function.Example.Name),
MaximumEventAgeInSeconds: pulumi.Int(60),
MaximumRetryAttempts: pulumi.Int(0),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfig;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfigArgs;
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) {
var example = new FunctionAsyncInvokeConfig("example", FunctionAsyncInvokeConfigArgs.builder()
.serviceName(alicloud_fc_service.example().name())
.functionName(alicloud_fc_function.example().name())
.maximumEventAgeInSeconds(60)
.maximumRetryAttempts(0)
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.fc.FunctionAsyncInvokeConfig("example",
service_name=alicloud_fc_service["example"]["name"],
function_name=alicloud_fc_function["example"]["name"],
maximum_event_age_in_seconds=60,
maximum_retry_attempts=0)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.fc.FunctionAsyncInvokeConfig("example", {
serviceName: alicloud_fc_service.example.name,
functionName: alicloud_fc_function.example.name,
maximumEventAgeInSeconds: 60,
maximumRetryAttempts: 0,
});
resources:
example:
type: alicloud:fc:FunctionAsyncInvokeConfig
properties:
serviceName: ${alicloud_fc_service.example.name}
functionName: ${alicloud_fc_function.example.name}
maximumEventAgeInSeconds: 60
maximumRetryAttempts: 0
Async Job Configuration
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.FC.FunctionAsyncInvokeConfig("example", new()
{
ServiceName = alicloud_fc_service.Example.Name,
FunctionName = alicloud_fc_function.Example.Name,
StatefulInvocation = true,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fc.NewFunctionAsyncInvokeConfig(ctx, "example", &fc.FunctionAsyncInvokeConfigArgs{
ServiceName: pulumi.Any(alicloud_fc_service.Example.Name),
FunctionName: pulumi.Any(alicloud_fc_function.Example.Name),
StatefulInvocation: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfig;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfigArgs;
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) {
var example = new FunctionAsyncInvokeConfig("example", FunctionAsyncInvokeConfigArgs.builder()
.serviceName(alicloud_fc_service.example().name())
.functionName(alicloud_fc_function.example().name())
.statefulInvocation(true)
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.fc.FunctionAsyncInvokeConfig("example",
service_name=alicloud_fc_service["example"]["name"],
function_name=alicloud_fc_function["example"]["name"],
stateful_invocation=True)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.fc.FunctionAsyncInvokeConfig("example", {
serviceName: alicloud_fc_service.example.name,
functionName: alicloud_fc_function.example.name,
statefulInvocation: true,
});
resources:
example:
type: alicloud:fc:FunctionAsyncInvokeConfig
properties:
serviceName: ${alicloud_fc_service.example.name}
functionName: ${alicloud_fc_function.example.name}
statefulInvocation: true
Configuration for Function Latest Unpublished Version
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.FC.FunctionAsyncInvokeConfig("example", new()
{
ServiceName = alicloud_fc_service.Example.Name,
FunctionName = alicloud_fc_function.Example.Name,
Qualifier = "LATEST",
});
// ... other configuration ...
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fc.NewFunctionAsyncInvokeConfig(ctx, "example", &fc.FunctionAsyncInvokeConfigArgs{
ServiceName: pulumi.Any(alicloud_fc_service.Example.Name),
FunctionName: pulumi.Any(alicloud_fc_function.Example.Name),
Qualifier: pulumi.String("LATEST"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfig;
import com.pulumi.alicloud.fc.FunctionAsyncInvokeConfigArgs;
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) {
var example = new FunctionAsyncInvokeConfig("example", FunctionAsyncInvokeConfigArgs.builder()
.serviceName(alicloud_fc_service.example().name())
.functionName(alicloud_fc_function.example().name())
.qualifier("LATEST")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.fc.FunctionAsyncInvokeConfig("example",
service_name=alicloud_fc_service["example"]["name"],
function_name=alicloud_fc_function["example"]["name"],
qualifier="LATEST")
# ... other configuration ...
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.fc.FunctionAsyncInvokeConfig("example", {
serviceName: alicloud_fc_service.example.name,
functionName: alicloud_fc_function.example.name,
qualifier: "LATEST",
});
// ... other configuration ...
resources:
example:
type: alicloud:fc:FunctionAsyncInvokeConfig
properties:
serviceName: ${alicloud_fc_service.example.name}
functionName: ${alicloud_fc_function.example.name}
qualifier: LATEST
Create FunctionAsyncInvokeConfig Resource
new FunctionAsyncInvokeConfig(name: string, args: FunctionAsyncInvokeConfigArgs, opts?: CustomResourceOptions);
@overload
def FunctionAsyncInvokeConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_config: Optional[FunctionAsyncInvokeConfigDestinationConfigArgs] = None,
function_name: Optional[str] = None,
maximum_event_age_in_seconds: Optional[int] = None,
maximum_retry_attempts: Optional[int] = None,
qualifier: Optional[str] = None,
service_name: Optional[str] = None,
stateful_invocation: Optional[bool] = None)
@overload
def FunctionAsyncInvokeConfig(resource_name: str,
args: FunctionAsyncInvokeConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewFunctionAsyncInvokeConfig(ctx *Context, name string, args FunctionAsyncInvokeConfigArgs, opts ...ResourceOption) (*FunctionAsyncInvokeConfig, error)
public FunctionAsyncInvokeConfig(string name, FunctionAsyncInvokeConfigArgs args, CustomResourceOptions? opts = null)
public FunctionAsyncInvokeConfig(String name, FunctionAsyncInvokeConfigArgs args)
public FunctionAsyncInvokeConfig(String name, FunctionAsyncInvokeConfigArgs args, CustomResourceOptions options)
type: alicloud:fc:FunctionAsyncInvokeConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionAsyncInvokeConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionAsyncInvokeConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionAsyncInvokeConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionAsyncInvokeConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionAsyncInvokeConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FunctionAsyncInvokeConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FunctionAsyncInvokeConfig resource accepts the following input properties:
- Function
Name string Name of the Function Compute Function.
- Service
Name string Name of the Function Compute Function, omitting any version or alias qualifier.
- Destination
Config Pulumi.Ali Cloud. FC. Inputs. Function Async Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- Maximum
Event intAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- Maximum
Retry intAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- Qualifier string
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- Stateful
Invocation bool Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- Function
Name string Name of the Function Compute Function.
- Service
Name string Name of the Function Compute Function, omitting any version or alias qualifier.
- Destination
Config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- Maximum
Event intAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- Maximum
Retry intAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- Qualifier string
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- Stateful
Invocation bool Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- function
Name String Name of the Function Compute Function.
- service
Name String Name of the Function Compute Function, omitting any version or alias qualifier.
- destination
Config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- maximum
Event IntegerAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum
Retry IntegerAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier String
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- stateful
Invocation Boolean Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- function
Name string Name of the Function Compute Function.
- service
Name string Name of the Function Compute Function, omitting any version or alias qualifier.
- destination
Config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- maximum
Event numberAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum
Retry numberAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier string
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- stateful
Invocation boolean Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- function_
name str Name of the Function Compute Function.
- service_
name str Name of the Function Compute Function, omitting any version or alias qualifier.
- destination_
config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- maximum_
event_ intage_ in_ seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum_
retry_ intattempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier str
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- stateful_
invocation bool Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- function
Name String Name of the Function Compute Function.
- service
Name String Name of the Function Compute Function, omitting any version or alias qualifier.
- destination
Config Property Map Configuration block with destination configuration. See below for details.
- maximum
Event NumberAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum
Retry NumberAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier String
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- stateful
Invocation Boolean Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
Outputs
All input properties are implicitly available as output properties. Additionally, the FunctionAsyncInvokeConfig resource produces the following output properties:
- Created
Time string The date this resource was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime The date this resource was last modified.
- Created
Time string The date this resource was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime The date this resource was last modified.
- created
Time String The date this resource was created.
- id String
The provider-assigned unique ID for this managed resource.
- last
Modified StringTime The date this resource was last modified.
- created
Time string The date this resource was created.
- id string
The provider-assigned unique ID for this managed resource.
- last
Modified stringTime The date this resource was last modified.
- created_
time str The date this resource was created.
- id str
The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime The date this resource was last modified.
- created
Time String The date this resource was created.
- id String
The provider-assigned unique ID for this managed resource.
- last
Modified StringTime The date this resource was last modified.
Look up Existing FunctionAsyncInvokeConfig Resource
Get an existing FunctionAsyncInvokeConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionAsyncInvokeConfigState, opts?: CustomResourceOptions): FunctionAsyncInvokeConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[str] = None,
destination_config: Optional[FunctionAsyncInvokeConfigDestinationConfigArgs] = None,
function_name: Optional[str] = None,
last_modified_time: Optional[str] = None,
maximum_event_age_in_seconds: Optional[int] = None,
maximum_retry_attempts: Optional[int] = None,
qualifier: Optional[str] = None,
service_name: Optional[str] = None,
stateful_invocation: Optional[bool] = None) -> FunctionAsyncInvokeConfig
func GetFunctionAsyncInvokeConfig(ctx *Context, name string, id IDInput, state *FunctionAsyncInvokeConfigState, opts ...ResourceOption) (*FunctionAsyncInvokeConfig, error)
public static FunctionAsyncInvokeConfig Get(string name, Input<string> id, FunctionAsyncInvokeConfigState? state, CustomResourceOptions? opts = null)
public static FunctionAsyncInvokeConfig get(String name, Output<String> id, FunctionAsyncInvokeConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
Time string The date this resource was created.
- Destination
Config Pulumi.Ali Cloud. FC. Inputs. Function Async Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- Function
Name string Name of the Function Compute Function.
- Last
Modified stringTime The date this resource was last modified.
- Maximum
Event intAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- Maximum
Retry intAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- Qualifier string
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- Service
Name string Name of the Function Compute Function, omitting any version or alias qualifier.
- Stateful
Invocation bool Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- Created
Time string The date this resource was created.
- Destination
Config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- Function
Name string Name of the Function Compute Function.
- Last
Modified stringTime The date this resource was last modified.
- Maximum
Event intAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- Maximum
Retry intAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- Qualifier string
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- Service
Name string Name of the Function Compute Function, omitting any version or alias qualifier.
- Stateful
Invocation bool Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- created
Time String The date this resource was created.
- destination
Config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- function
Name String Name of the Function Compute Function.
- last
Modified StringTime The date this resource was last modified.
- maximum
Event IntegerAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum
Retry IntegerAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier String
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- service
Name String Name of the Function Compute Function, omitting any version or alias qualifier.
- stateful
Invocation Boolean Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- created
Time string The date this resource was created.
- destination
Config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- function
Name string Name of the Function Compute Function.
- last
Modified stringTime The date this resource was last modified.
- maximum
Event numberAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum
Retry numberAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier string
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- service
Name string Name of the Function Compute Function, omitting any version or alias qualifier.
- stateful
Invocation boolean Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- created_
time str The date this resource was created.
- destination_
config FunctionAsync Invoke Config Destination Config Args Configuration block with destination configuration. See below for details.
- function_
name str Name of the Function Compute Function.
- last_
modified_ strtime The date this resource was last modified.
- maximum_
event_ intage_ in_ seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum_
retry_ intattempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier str
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- service_
name str Name of the Function Compute Function, omitting any version or alias qualifier.
- stateful_
invocation bool Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
- created
Time String The date this resource was created.
- destination
Config Property Map Configuration block with destination configuration. See below for details.
- function
Name String Name of the Function Compute Function.
- last
Modified StringTime The date this resource was last modified.
- maximum
Event NumberAge In Seconds Maximum age of a request that Function Compute sends to a function for processing in seconds. Valid values between 1 and 2592000 (between 60 and 21600 before v1.167.0).
- maximum
Retry NumberAttempts Maximum number of times to retry when the function returns an error. Valid values between 0 and 8 (between 0 and 2 before v1.167.0). Defaults to 2.
- qualifier String
Function Compute Function published version,
LATEST
, or Function Compute Alias name. The default value isLATEST
.- service
Name String Name of the Function Compute Function, omitting any version or alias qualifier.
- stateful
Invocation Boolean Function Compute async job configuration(also known as Task Mode). valid values true or false, default
false
Supporting Types
FunctionAsyncInvokeConfigDestinationConfig
- On
Failure Pulumi.Ali Cloud. FC. Inputs. Function Async Invoke Config Destination Config On Failure Configuration block with destination configuration for failed asynchronous invocations. See below for details.
- On
Success Pulumi.Ali Cloud. FC. Inputs. Function Async Invoke Config Destination Config On Success Configuration block with destination configuration for successful asynchronous invocations. See below for details.
- On
Failure FunctionAsync Invoke Config Destination Config On Failure Configuration block with destination configuration for failed asynchronous invocations. See below for details.
- On
Success FunctionAsync Invoke Config Destination Config On Success Configuration block with destination configuration for successful asynchronous invocations. See below for details.
- on
Failure FunctionAsync Invoke Config Destination Config On Failure Configuration block with destination configuration for failed asynchronous invocations. See below for details.
- on
Success FunctionAsync Invoke Config Destination Config On Success Configuration block with destination configuration for successful asynchronous invocations. See below for details.
- on
Failure FunctionAsync Invoke Config Destination Config On Failure Configuration block with destination configuration for failed asynchronous invocations. See below for details.
- on
Success FunctionAsync Invoke Config Destination Config On Success Configuration block with destination configuration for successful asynchronous invocations. See below for details.
- on_
failure FunctionAsync Invoke Config Destination Config On Failure Configuration block with destination configuration for failed asynchronous invocations. See below for details.
- on_
success FunctionAsync Invoke Config Destination Config On Success Configuration block with destination configuration for successful asynchronous invocations. See below for details.
- on
Failure Property Map Configuration block with destination configuration for failed asynchronous invocations. See below for details.
- on
Success Property Map Configuration block with destination configuration for successful asynchronous invocations. See below for details.
FunctionAsyncInvokeConfigDestinationConfigOnFailure
- Destination string
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- Destination string
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination String
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination string
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination str
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination String
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
FunctionAsyncInvokeConfigDestinationConfigOnSuccess
- Destination string
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- Destination string
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination String
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination string
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination str
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
- destination String
Alicloud Resource Name (ARN) of the destination resource. See the Developer Guide for acceptable resource types and associated RAM permissions.
Import
Function Compute Function Async Invoke Configs can be imported using the id, e.g.
$ pulumi import alicloud:fc/functionAsyncInvokeConfig:FunctionAsyncInvokeConfig example my_function
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.