1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. FgsAsyncInvokeConfigV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.FgsAsyncInvokeConfigV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for FGS you can get at documentation portal

    Manages the configuration of the asynchronous invocation within OpenTelekomCloud.

    A function only supports configuring one resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const functionUrn = config.requireObject("functionUrn");
    const bucketName = config.requireObject("bucketName");
    const topicUrn = config.requireObject("topicUrn");
    const test = new opentelekomcloud.FgsAsyncInvokeConfigV2("test", {
        functionUrn: functionUrn,
        maxAsyncEventAgeInSeconds: 3500,
        maxAsyncRetryAttempts: 2,
        onSuccess: {
            destination: "OBS",
            param: JSON.stringify({
                bucket: bucketName,
                prefix: "/success",
                expires: 5,
            }),
        },
        onFailure: {
            destination: "SMN",
            param: JSON.stringify({
                topic_urn: topicUrn,
            }),
        },
    });
    
    import pulumi
    import json
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    function_urn = config.require_object("functionUrn")
    bucket_name = config.require_object("bucketName")
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.FgsAsyncInvokeConfigV2("test",
        function_urn=function_urn,
        max_async_event_age_in_seconds=3500,
        max_async_retry_attempts=2,
        on_success={
            "destination": "OBS",
            "param": json.dumps({
                "bucket": bucket_name,
                "prefix": "/success",
                "expires": 5,
            }),
        },
        on_failure={
            "destination": "SMN",
            "param": json.dumps({
                "topic_urn": topic_urn,
            }),
        })
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"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, "")
    		functionUrn := cfg.RequireObject("functionUrn")
    		bucketName := cfg.RequireObject("bucketName")
    		topicUrn := cfg.RequireObject("topicUrn")
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"bucket":  bucketName,
    			"prefix":  "/success",
    			"expires": 5,
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		tmpJSON1, err := json.Marshal(map[string]interface{}{
    			"topic_urn": topicUrn,
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		_, err = opentelekomcloud.NewFgsAsyncInvokeConfigV2(ctx, "test", &opentelekomcloud.FgsAsyncInvokeConfigV2Args{
    			FunctionUrn:               pulumi.Any(functionUrn),
    			MaxAsyncEventAgeInSeconds: pulumi.Float64(3500),
    			MaxAsyncRetryAttempts:     pulumi.Float64(2),
    			OnSuccess: &opentelekomcloud.FgsAsyncInvokeConfigV2OnSuccessArgs{
    				Destination: pulumi.String("OBS"),
    				Param:       pulumi.String(json0),
    			},
    			OnFailure: &opentelekomcloud.FgsAsyncInvokeConfigV2OnFailureArgs{
    				Destination: pulumi.String("SMN"),
    				Param:       pulumi.String(json1),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var functionUrn = config.RequireObject<dynamic>("functionUrn");
        var bucketName = config.RequireObject<dynamic>("bucketName");
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Opentelekomcloud.FgsAsyncInvokeConfigV2("test", new()
        {
            FunctionUrn = functionUrn,
            MaxAsyncEventAgeInSeconds = 3500,
            MaxAsyncRetryAttempts = 2,
            OnSuccess = new Opentelekomcloud.Inputs.FgsAsyncInvokeConfigV2OnSuccessArgs
            {
                Destination = "OBS",
                Param = JsonSerializer.Serialize(new Dictionary<string, object?>
                {
                    ["bucket"] = bucketName,
                    ["prefix"] = "/success",
                    ["expires"] = 5,
                }),
            },
            OnFailure = new Opentelekomcloud.Inputs.FgsAsyncInvokeConfigV2OnFailureArgs
            {
                Destination = "SMN",
                Param = JsonSerializer.Serialize(new Dictionary<string, object?>
                {
                    ["topic_urn"] = topicUrn,
                }),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.FgsAsyncInvokeConfigV2;
    import com.pulumi.opentelekomcloud.FgsAsyncInvokeConfigV2Args;
    import com.pulumi.opentelekomcloud.inputs.FgsAsyncInvokeConfigV2OnSuccessArgs;
    import com.pulumi.opentelekomcloud.inputs.FgsAsyncInvokeConfigV2OnFailureArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var functionUrn = config.get("functionUrn");
            final var bucketName = config.get("bucketName");
            final var topicUrn = config.get("topicUrn");
            var test = new FgsAsyncInvokeConfigV2("test", FgsAsyncInvokeConfigV2Args.builder()
                .functionUrn(functionUrn)
                .maxAsyncEventAgeInSeconds(3500)
                .maxAsyncRetryAttempts(2)
                .onSuccess(FgsAsyncInvokeConfigV2OnSuccessArgs.builder()
                    .destination("OBS")
                    .param(serializeJson(
                        jsonObject(
                            jsonProperty("bucket", bucketName),
                            jsonProperty("prefix", "/success"),
                            jsonProperty("expires", 5)
                        )))
                    .build())
                .onFailure(FgsAsyncInvokeConfigV2OnFailureArgs.builder()
                    .destination("SMN")
                    .param(serializeJson(
                        jsonObject(
                            jsonProperty("topic_urn", topicUrn)
                        )))
                    .build())
                .build());
    
        }
    }
    
    configuration:
      functionUrn:
        type: dynamic
      bucketName:
        type: dynamic
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:FgsAsyncInvokeConfigV2
        properties:
          functionUrn: ${functionUrn}
          maxAsyncEventAgeInSeconds: 3500
          maxAsyncRetryAttempts: 2
          onSuccess:
            destination: OBS
            param:
              fn::toJSON:
                bucket: ${bucketName}
                prefix: /success
                expires: 5
          onFailure:
            destination: SMN
            param:
              fn::toJSON:
                topic_urn: ${topicUrn}
    

    Create FgsAsyncInvokeConfigV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FgsAsyncInvokeConfigV2(name: string, args: FgsAsyncInvokeConfigV2Args, opts?: CustomResourceOptions);
    @overload
    def FgsAsyncInvokeConfigV2(resource_name: str,
                               args: FgsAsyncInvokeConfigV2Args,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def FgsAsyncInvokeConfigV2(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               function_urn: Optional[str] = None,
                               max_async_event_age_in_seconds: Optional[float] = None,
                               max_async_retry_attempts: Optional[float] = None,
                               fgs_async_invoke_config_v2_id: Optional[str] = None,
                               on_failure: Optional[FgsAsyncInvokeConfigV2OnFailureArgs] = None,
                               on_success: Optional[FgsAsyncInvokeConfigV2OnSuccessArgs] = None)
    func NewFgsAsyncInvokeConfigV2(ctx *Context, name string, args FgsAsyncInvokeConfigV2Args, opts ...ResourceOption) (*FgsAsyncInvokeConfigV2, error)
    public FgsAsyncInvokeConfigV2(string name, FgsAsyncInvokeConfigV2Args args, CustomResourceOptions? opts = null)
    public FgsAsyncInvokeConfigV2(String name, FgsAsyncInvokeConfigV2Args args)
    public FgsAsyncInvokeConfigV2(String name, FgsAsyncInvokeConfigV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:FgsAsyncInvokeConfigV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FgsAsyncInvokeConfigV2Args
    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 FgsAsyncInvokeConfigV2Args
    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 FgsAsyncInvokeConfigV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FgsAsyncInvokeConfigV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FgsAsyncInvokeConfigV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var fgsAsyncInvokeConfigV2Resource = new Opentelekomcloud.FgsAsyncInvokeConfigV2("fgsAsyncInvokeConfigV2Resource", new()
    {
        FunctionUrn = "string",
        MaxAsyncEventAgeInSeconds = 0,
        MaxAsyncRetryAttempts = 0,
        FgsAsyncInvokeConfigV2Id = "string",
        OnFailure = new Opentelekomcloud.Inputs.FgsAsyncInvokeConfigV2OnFailureArgs
        {
            Destination = "string",
            Param = "string",
        },
        OnSuccess = new Opentelekomcloud.Inputs.FgsAsyncInvokeConfigV2OnSuccessArgs
        {
            Destination = "string",
            Param = "string",
        },
    });
    
    example, err := opentelekomcloud.NewFgsAsyncInvokeConfigV2(ctx, "fgsAsyncInvokeConfigV2Resource", &opentelekomcloud.FgsAsyncInvokeConfigV2Args{
    	FunctionUrn:               pulumi.String("string"),
    	MaxAsyncEventAgeInSeconds: pulumi.Float64(0),
    	MaxAsyncRetryAttempts:     pulumi.Float64(0),
    	FgsAsyncInvokeConfigV2Id:  pulumi.String("string"),
    	OnFailure: &opentelekomcloud.FgsAsyncInvokeConfigV2OnFailureArgs{
    		Destination: pulumi.String("string"),
    		Param:       pulumi.String("string"),
    	},
    	OnSuccess: &opentelekomcloud.FgsAsyncInvokeConfigV2OnSuccessArgs{
    		Destination: pulumi.String("string"),
    		Param:       pulumi.String("string"),
    	},
    })
    
    var fgsAsyncInvokeConfigV2Resource = new FgsAsyncInvokeConfigV2("fgsAsyncInvokeConfigV2Resource", FgsAsyncInvokeConfigV2Args.builder()
        .functionUrn("string")
        .maxAsyncEventAgeInSeconds(0)
        .maxAsyncRetryAttempts(0)
        .fgsAsyncInvokeConfigV2Id("string")
        .onFailure(FgsAsyncInvokeConfigV2OnFailureArgs.builder()
            .destination("string")
            .param("string")
            .build())
        .onSuccess(FgsAsyncInvokeConfigV2OnSuccessArgs.builder()
            .destination("string")
            .param("string")
            .build())
        .build());
    
    fgs_async_invoke_config_v2_resource = opentelekomcloud.FgsAsyncInvokeConfigV2("fgsAsyncInvokeConfigV2Resource",
        function_urn="string",
        max_async_event_age_in_seconds=0,
        max_async_retry_attempts=0,
        fgs_async_invoke_config_v2_id="string",
        on_failure={
            "destination": "string",
            "param": "string",
        },
        on_success={
            "destination": "string",
            "param": "string",
        })
    
    const fgsAsyncInvokeConfigV2Resource = new opentelekomcloud.FgsAsyncInvokeConfigV2("fgsAsyncInvokeConfigV2Resource", {
        functionUrn: "string",
        maxAsyncEventAgeInSeconds: 0,
        maxAsyncRetryAttempts: 0,
        fgsAsyncInvokeConfigV2Id: "string",
        onFailure: {
            destination: "string",
            param: "string",
        },
        onSuccess: {
            destination: "string",
            param: "string",
        },
    });
    
    type: opentelekomcloud:FgsAsyncInvokeConfigV2
    properties:
        fgsAsyncInvokeConfigV2Id: string
        functionUrn: string
        maxAsyncEventAgeInSeconds: 0
        maxAsyncRetryAttempts: 0
        onFailure:
            destination: string
            param: string
        onSuccess:
            destination: string
            param: string
    

    FgsAsyncInvokeConfigV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FgsAsyncInvokeConfigV2 resource accepts the following input properties:

    FunctionUrn string
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    MaxAsyncEventAgeInSeconds double
    Specifies the maximum validity period of a message.
    MaxAsyncRetryAttempts double
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    FgsAsyncInvokeConfigV2Id string
    Specifies a resource ID in UUID format.
    OnFailure FgsAsyncInvokeConfigV2OnFailure

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    OnSuccess FgsAsyncInvokeConfigV2OnSuccess
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    FunctionUrn string
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    MaxAsyncEventAgeInSeconds float64
    Specifies the maximum validity period of a message.
    MaxAsyncRetryAttempts float64
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    FgsAsyncInvokeConfigV2Id string
    Specifies a resource ID in UUID format.
    OnFailure FgsAsyncInvokeConfigV2OnFailureArgs

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    OnSuccess FgsAsyncInvokeConfigV2OnSuccessArgs
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    functionUrn String
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    maxAsyncEventAgeInSeconds Double
    Specifies the maximum validity period of a message.
    maxAsyncRetryAttempts Double
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    fgsAsyncInvokeConfigV2Id String
    Specifies a resource ID in UUID format.
    onFailure FgsAsyncInvokeConfigV2OnFailure

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    onSuccess FgsAsyncInvokeConfigV2OnSuccess
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    functionUrn string
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    maxAsyncEventAgeInSeconds number
    Specifies the maximum validity period of a message.
    maxAsyncRetryAttempts number
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    fgsAsyncInvokeConfigV2Id string
    Specifies a resource ID in UUID format.
    onFailure FgsAsyncInvokeConfigV2OnFailure

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    onSuccess FgsAsyncInvokeConfigV2OnSuccess
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    function_urn str
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    max_async_event_age_in_seconds float
    Specifies the maximum validity period of a message.
    max_async_retry_attempts float
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    fgs_async_invoke_config_v2_id str
    Specifies a resource ID in UUID format.
    on_failure FgsAsyncInvokeConfigV2OnFailureArgs

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    on_success FgsAsyncInvokeConfigV2OnSuccessArgs
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    functionUrn String
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    maxAsyncEventAgeInSeconds Number
    Specifies the maximum validity period of a message.
    maxAsyncRetryAttempts Number
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    fgsAsyncInvokeConfigV2Id String
    Specifies a resource ID in UUID format.
    onFailure Property Map

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    onSuccess Property Map
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FgsAsyncInvokeConfigV2 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Specifies the region in which the asynchronous invocation is configured.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Specifies the region in which the asynchronous invocation is configured.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Specifies the region in which the asynchronous invocation is configured.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    Specifies the region in which the asynchronous invocation is configured.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    Specifies the region in which the asynchronous invocation is configured.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Specifies the region in which the asynchronous invocation is configured.

    Look up Existing FgsAsyncInvokeConfigV2 Resource

    Get an existing FgsAsyncInvokeConfigV2 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?: FgsAsyncInvokeConfigV2State, opts?: CustomResourceOptions): FgsAsyncInvokeConfigV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            fgs_async_invoke_config_v2_id: Optional[str] = None,
            function_urn: Optional[str] = None,
            max_async_event_age_in_seconds: Optional[float] = None,
            max_async_retry_attempts: Optional[float] = None,
            on_failure: Optional[FgsAsyncInvokeConfigV2OnFailureArgs] = None,
            on_success: Optional[FgsAsyncInvokeConfigV2OnSuccessArgs] = None,
            region: Optional[str] = None) -> FgsAsyncInvokeConfigV2
    func GetFgsAsyncInvokeConfigV2(ctx *Context, name string, id IDInput, state *FgsAsyncInvokeConfigV2State, opts ...ResourceOption) (*FgsAsyncInvokeConfigV2, error)
    public static FgsAsyncInvokeConfigV2 Get(string name, Input<string> id, FgsAsyncInvokeConfigV2State? state, CustomResourceOptions? opts = null)
    public static FgsAsyncInvokeConfigV2 get(String name, Output<String> id, FgsAsyncInvokeConfigV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:FgsAsyncInvokeConfigV2    get:      id: ${id}
    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.
    The following state arguments are supported:
    FgsAsyncInvokeConfigV2Id string
    Specifies a resource ID in UUID format.
    FunctionUrn string
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    MaxAsyncEventAgeInSeconds double
    Specifies the maximum validity period of a message.
    MaxAsyncRetryAttempts double
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    OnFailure FgsAsyncInvokeConfigV2OnFailure

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    OnSuccess FgsAsyncInvokeConfigV2OnSuccess
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    Region string
    Specifies the region in which the asynchronous invocation is configured.
    FgsAsyncInvokeConfigV2Id string
    Specifies a resource ID in UUID format.
    FunctionUrn string
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    MaxAsyncEventAgeInSeconds float64
    Specifies the maximum validity period of a message.
    MaxAsyncRetryAttempts float64
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    OnFailure FgsAsyncInvokeConfigV2OnFailureArgs

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    OnSuccess FgsAsyncInvokeConfigV2OnSuccessArgs
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    Region string
    Specifies the region in which the asynchronous invocation is configured.
    fgsAsyncInvokeConfigV2Id String
    Specifies a resource ID in UUID format.
    functionUrn String
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    maxAsyncEventAgeInSeconds Double
    Specifies the maximum validity period of a message.
    maxAsyncRetryAttempts Double
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    onFailure FgsAsyncInvokeConfigV2OnFailure

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    onSuccess FgsAsyncInvokeConfigV2OnSuccess
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    region String
    Specifies the region in which the asynchronous invocation is configured.
    fgsAsyncInvokeConfigV2Id string
    Specifies a resource ID in UUID format.
    functionUrn string
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    maxAsyncEventAgeInSeconds number
    Specifies the maximum validity period of a message.
    maxAsyncRetryAttempts number
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    onFailure FgsAsyncInvokeConfigV2OnFailure

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    onSuccess FgsAsyncInvokeConfigV2OnSuccess
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    region string
    Specifies the region in which the asynchronous invocation is configured.
    fgs_async_invoke_config_v2_id str
    Specifies a resource ID in UUID format.
    function_urn str
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    max_async_event_age_in_seconds float
    Specifies the maximum validity period of a message.
    max_async_retry_attempts float
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    on_failure FgsAsyncInvokeConfigV2OnFailureArgs

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    on_success FgsAsyncInvokeConfigV2OnSuccessArgs
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    region str
    Specifies the region in which the asynchronous invocation is configured.
    fgsAsyncInvokeConfigV2Id String
    Specifies a resource ID in UUID format.
    functionUrn String
    Specifies the function URN to which the asynchronous invocation belongs. Changing this will create a new resource.
    maxAsyncEventAgeInSeconds Number
    Specifies the maximum validity period of a message.
    maxAsyncRetryAttempts Number
    Specifies the maximum number of retry attempts to be made if asynchronous invocation fails.
    onFailure Property Map

    Specifies the target to be invoked when a function fails to be executed due to a system error or an internal error. The object structure is documented below.

    The on_success and the on_failure blocks support:

    onSuccess Property Map
    Specifies the target to be invoked when a function is successfully executed. The object structure is documented below.
    region String
    Specifies the region in which the asynchronous invocation is configured.

    Supporting Types

    FgsAsyncInvokeConfigV2OnFailure, FgsAsyncInvokeConfigV2OnFailureArgs

    Destination string
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    Param string

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    Destination string
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    Param string

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination String
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param String

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination string
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param string

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination str
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param str

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination String
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param String

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    FgsAsyncInvokeConfigV2OnSuccess, FgsAsyncInvokeConfigV2OnSuccessArgs

    Destination string
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    Param string

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    Destination string
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    Param string

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination String
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param String

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination string
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param string

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination str
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param str

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    destination String
    Specifies the object type. The valid values are as follows:

    • OBS
    • SMN
    • DIS
    • FunctionGraph
    param String

    Specifies the parameters (map object in JSON format) corresponding to the target service.

    • The OBS objects include: bucket (bucket name), prefix (object directory prefix) and expires (object expiration time, the valid value ranges from 0 to 365. If the value is 0, the object will not expire.).
    • The SMN objects include: topic_urn.
    • The DIS objects include: stream_name.
    • The FunctionGraph objects include: func_urn (function URN).

    If you enable the destination function, you must ensure that the agent contains the operation authority of the corresponding service.

    Import

    The configurations can be imported using their related function_urn, e.g.

    bash

    $ pulumi import opentelekomcloud:index/fgsAsyncInvokeConfigV2:FgsAsyncInvokeConfigV2 test <function_urn>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud