1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fc
  5. V3AsyncInvokeConfig
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.fc.V3AsyncInvokeConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a FCV3 Async Invoke Config resource.

    Function Asynchronous Configuration.

    For information about FCV3 Async Invoke Config and how to use it, see What is Async Invoke Config.

    NOTE: Available since v1.228.0.

    Create V3AsyncInvokeConfig Resource

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

    Constructor syntax

    new V3AsyncInvokeConfig(name: string, args: V3AsyncInvokeConfigArgs, opts?: CustomResourceOptions);
    @overload
    def V3AsyncInvokeConfig(resource_name: str,
                            args: V3AsyncInvokeConfigArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def V3AsyncInvokeConfig(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            function_name: Optional[str] = None,
                            async_task: Optional[bool] = None,
                            destination_config: Optional[V3AsyncInvokeConfigDestinationConfigArgs] = None,
                            max_async_event_age_in_seconds: Optional[int] = None,
                            max_async_retry_attempts: Optional[int] = None,
                            qualifier: Optional[str] = None)
    func NewV3AsyncInvokeConfig(ctx *Context, name string, args V3AsyncInvokeConfigArgs, opts ...ResourceOption) (*V3AsyncInvokeConfig, error)
    public V3AsyncInvokeConfig(string name, V3AsyncInvokeConfigArgs args, CustomResourceOptions? opts = null)
    public V3AsyncInvokeConfig(String name, V3AsyncInvokeConfigArgs args)
    public V3AsyncInvokeConfig(String name, V3AsyncInvokeConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:fc:V3AsyncInvokeConfig
    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 V3AsyncInvokeConfigArgs
    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 V3AsyncInvokeConfigArgs
    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 V3AsyncInvokeConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V3AsyncInvokeConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V3AsyncInvokeConfigArgs
    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 v3asyncInvokeConfigResource = new AliCloud.FC.V3AsyncInvokeConfig("v3asyncInvokeConfigResource", new()
    {
        FunctionName = "string",
        AsyncTask = false,
        DestinationConfig = new AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfigArgs
        {
            OnFailure = new AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfigOnFailureArgs
            {
                Destination = "string",
            },
            OnSuccess = new AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfigOnSuccessArgs
            {
                Destination = "string",
            },
        },
        MaxAsyncEventAgeInSeconds = 0,
        MaxAsyncRetryAttempts = 0,
        Qualifier = "string",
    });
    
    example, err := fc.NewV3AsyncInvokeConfig(ctx, "v3asyncInvokeConfigResource", &fc.V3AsyncInvokeConfigArgs{
    	FunctionName: pulumi.String("string"),
    	AsyncTask:    pulumi.Bool(false),
    	DestinationConfig: &fc.V3AsyncInvokeConfigDestinationConfigArgs{
    		OnFailure: &fc.V3AsyncInvokeConfigDestinationConfigOnFailureArgs{
    			Destination: pulumi.String("string"),
    		},
    		OnSuccess: &fc.V3AsyncInvokeConfigDestinationConfigOnSuccessArgs{
    			Destination: pulumi.String("string"),
    		},
    	},
    	MaxAsyncEventAgeInSeconds: pulumi.Int(0),
    	MaxAsyncRetryAttempts:     pulumi.Int(0),
    	Qualifier:                 pulumi.String("string"),
    })
    
    var v3asyncInvokeConfigResource = new V3AsyncInvokeConfig("v3asyncInvokeConfigResource", V3AsyncInvokeConfigArgs.builder()
        .functionName("string")
        .asyncTask(false)
        .destinationConfig(V3AsyncInvokeConfigDestinationConfigArgs.builder()
            .onFailure(V3AsyncInvokeConfigDestinationConfigOnFailureArgs.builder()
                .destination("string")
                .build())
            .onSuccess(V3AsyncInvokeConfigDestinationConfigOnSuccessArgs.builder()
                .destination("string")
                .build())
            .build())
        .maxAsyncEventAgeInSeconds(0)
        .maxAsyncRetryAttempts(0)
        .qualifier("string")
        .build());
    
    v3async_invoke_config_resource = alicloud.fc.V3AsyncInvokeConfig("v3asyncInvokeConfigResource",
        function_name="string",
        async_task=False,
        destination_config={
            "on_failure": {
                "destination": "string",
            },
            "on_success": {
                "destination": "string",
            },
        },
        max_async_event_age_in_seconds=0,
        max_async_retry_attempts=0,
        qualifier="string")
    
    const v3asyncInvokeConfigResource = new alicloud.fc.V3AsyncInvokeConfig("v3asyncInvokeConfigResource", {
        functionName: "string",
        asyncTask: false,
        destinationConfig: {
            onFailure: {
                destination: "string",
            },
            onSuccess: {
                destination: "string",
            },
        },
        maxAsyncEventAgeInSeconds: 0,
        maxAsyncRetryAttempts: 0,
        qualifier: "string",
    });
    
    type: alicloud:fc:V3AsyncInvokeConfig
    properties:
        asyncTask: false
        destinationConfig:
            onFailure:
                destination: string
            onSuccess:
                destination: string
        functionName: string
        maxAsyncEventAgeInSeconds: 0
        maxAsyncRetryAttempts: 0
        qualifier: string
    

    V3AsyncInvokeConfig 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 V3AsyncInvokeConfig resource accepts the following input properties:

    FunctionName string
    Function Name
    AsyncTask bool
    Whether to enable an asynchronous task
    DestinationConfig Pulumi.AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfig
    Target Configuration See destination_config below.
    MaxAsyncEventAgeInSeconds int
    Event maximum survival time
    MaxAsyncRetryAttempts int
    Number of Asynchronous call retries
    Qualifier string
    Function version or alias
    FunctionName string
    Function Name
    AsyncTask bool
    Whether to enable an asynchronous task
    DestinationConfig V3AsyncInvokeConfigDestinationConfigArgs
    Target Configuration See destination_config below.
    MaxAsyncEventAgeInSeconds int
    Event maximum survival time
    MaxAsyncRetryAttempts int
    Number of Asynchronous call retries
    Qualifier string
    Function version or alias
    functionName String
    Function Name
    asyncTask Boolean
    Whether to enable an asynchronous task
    destinationConfig V3AsyncInvokeConfigDestinationConfig
    Target Configuration See destination_config below.
    maxAsyncEventAgeInSeconds Integer
    Event maximum survival time
    maxAsyncRetryAttempts Integer
    Number of Asynchronous call retries
    qualifier String
    Function version or alias
    functionName string
    Function Name
    asyncTask boolean
    Whether to enable an asynchronous task
    destinationConfig V3AsyncInvokeConfigDestinationConfig
    Target Configuration See destination_config below.
    maxAsyncEventAgeInSeconds number
    Event maximum survival time
    maxAsyncRetryAttempts number
    Number of Asynchronous call retries
    qualifier string
    Function version or alias
    function_name str
    Function Name
    async_task bool
    Whether to enable an asynchronous task
    destination_config V3AsyncInvokeConfigDestinationConfigArgs
    Target Configuration See destination_config below.
    max_async_event_age_in_seconds int
    Event maximum survival time
    max_async_retry_attempts int
    Number of Asynchronous call retries
    qualifier str
    Function version or alias
    functionName String
    Function Name
    asyncTask Boolean
    Whether to enable an asynchronous task
    destinationConfig Property Map
    Target Configuration See destination_config below.
    maxAsyncEventAgeInSeconds Number
    Event maximum survival time
    maxAsyncRetryAttempts Number
    Number of Asynchronous call retries
    qualifier String
    Function version or alias

    Outputs

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

    CreateTime string
    The creation time of the resource
    FunctionArn string
    (Available since v1.234.0) Function resource identification
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    (Available since v1.234.0) Last modification time
    CreateTime string
    The creation time of the resource
    FunctionArn string
    (Available since v1.234.0) Function resource identification
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    (Available since v1.234.0) Last modification time
    createTime String
    The creation time of the resource
    functionArn String
    (Available since v1.234.0) Function resource identification
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    (Available since v1.234.0) Last modification time
    createTime string
    The creation time of the resource
    functionArn string
    (Available since v1.234.0) Function resource identification
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    (Available since v1.234.0) Last modification time
    create_time str
    The creation time of the resource
    function_arn str
    (Available since v1.234.0) Function resource identification
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    (Available since v1.234.0) Last modification time
    createTime String
    The creation time of the resource
    functionArn String
    (Available since v1.234.0) Function resource identification
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    (Available since v1.234.0) Last modification time

    Look up Existing V3AsyncInvokeConfig Resource

    Get an existing V3AsyncInvokeConfig 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?: V3AsyncInvokeConfigState, opts?: CustomResourceOptions): V3AsyncInvokeConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            async_task: Optional[bool] = None,
            create_time: Optional[str] = None,
            destination_config: Optional[V3AsyncInvokeConfigDestinationConfigArgs] = None,
            function_arn: Optional[str] = None,
            function_name: Optional[str] = None,
            last_modified_time: Optional[str] = None,
            max_async_event_age_in_seconds: Optional[int] = None,
            max_async_retry_attempts: Optional[int] = None,
            qualifier: Optional[str] = None) -> V3AsyncInvokeConfig
    func GetV3AsyncInvokeConfig(ctx *Context, name string, id IDInput, state *V3AsyncInvokeConfigState, opts ...ResourceOption) (*V3AsyncInvokeConfig, error)
    public static V3AsyncInvokeConfig Get(string name, Input<string> id, V3AsyncInvokeConfigState? state, CustomResourceOptions? opts = null)
    public static V3AsyncInvokeConfig get(String name, Output<String> id, V3AsyncInvokeConfigState 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.
    The following state arguments are supported:
    AsyncTask bool
    Whether to enable an asynchronous task
    CreateTime string
    The creation time of the resource
    DestinationConfig Pulumi.AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfig
    Target Configuration See destination_config below.
    FunctionArn string
    (Available since v1.234.0) Function resource identification
    FunctionName string
    Function Name
    LastModifiedTime string
    (Available since v1.234.0) Last modification time
    MaxAsyncEventAgeInSeconds int
    Event maximum survival time
    MaxAsyncRetryAttempts int
    Number of Asynchronous call retries
    Qualifier string
    Function version or alias
    AsyncTask bool
    Whether to enable an asynchronous task
    CreateTime string
    The creation time of the resource
    DestinationConfig V3AsyncInvokeConfigDestinationConfigArgs
    Target Configuration See destination_config below.
    FunctionArn string
    (Available since v1.234.0) Function resource identification
    FunctionName string
    Function Name
    LastModifiedTime string
    (Available since v1.234.0) Last modification time
    MaxAsyncEventAgeInSeconds int
    Event maximum survival time
    MaxAsyncRetryAttempts int
    Number of Asynchronous call retries
    Qualifier string
    Function version or alias
    asyncTask Boolean
    Whether to enable an asynchronous task
    createTime String
    The creation time of the resource
    destinationConfig V3AsyncInvokeConfigDestinationConfig
    Target Configuration See destination_config below.
    functionArn String
    (Available since v1.234.0) Function resource identification
    functionName String
    Function Name
    lastModifiedTime String
    (Available since v1.234.0) Last modification time
    maxAsyncEventAgeInSeconds Integer
    Event maximum survival time
    maxAsyncRetryAttempts Integer
    Number of Asynchronous call retries
    qualifier String
    Function version or alias
    asyncTask boolean
    Whether to enable an asynchronous task
    createTime string
    The creation time of the resource
    destinationConfig V3AsyncInvokeConfigDestinationConfig
    Target Configuration See destination_config below.
    functionArn string
    (Available since v1.234.0) Function resource identification
    functionName string
    Function Name
    lastModifiedTime string
    (Available since v1.234.0) Last modification time
    maxAsyncEventAgeInSeconds number
    Event maximum survival time
    maxAsyncRetryAttempts number
    Number of Asynchronous call retries
    qualifier string
    Function version or alias
    async_task bool
    Whether to enable an asynchronous task
    create_time str
    The creation time of the resource
    destination_config V3AsyncInvokeConfigDestinationConfigArgs
    Target Configuration See destination_config below.
    function_arn str
    (Available since v1.234.0) Function resource identification
    function_name str
    Function Name
    last_modified_time str
    (Available since v1.234.0) Last modification time
    max_async_event_age_in_seconds int
    Event maximum survival time
    max_async_retry_attempts int
    Number of Asynchronous call retries
    qualifier str
    Function version or alias
    asyncTask Boolean
    Whether to enable an asynchronous task
    createTime String
    The creation time of the resource
    destinationConfig Property Map
    Target Configuration See destination_config below.
    functionArn String
    (Available since v1.234.0) Function resource identification
    functionName String
    Function Name
    lastModifiedTime String
    (Available since v1.234.0) Last modification time
    maxAsyncEventAgeInSeconds Number
    Event maximum survival time
    maxAsyncRetryAttempts Number
    Number of Asynchronous call retries
    qualifier String
    Function version or alias

    Supporting Types

    V3AsyncInvokeConfigDestinationConfig, V3AsyncInvokeConfigDestinationConfigArgs

    OnFailure Pulumi.AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfigOnFailure
    Failed callback target structure See on_failure below.
    OnSuccess Pulumi.AliCloud.FC.Inputs.V3AsyncInvokeConfigDestinationConfigOnSuccess
    Successful callback target structure See on_success below.
    OnFailure V3AsyncInvokeConfigDestinationConfigOnFailure
    Failed callback target structure See on_failure below.
    OnSuccess V3AsyncInvokeConfigDestinationConfigOnSuccess
    Successful callback target structure See on_success below.
    onFailure V3AsyncInvokeConfigDestinationConfigOnFailure
    Failed callback target structure See on_failure below.
    onSuccess V3AsyncInvokeConfigDestinationConfigOnSuccess
    Successful callback target structure See on_success below.
    onFailure V3AsyncInvokeConfigDestinationConfigOnFailure
    Failed callback target structure See on_failure below.
    onSuccess V3AsyncInvokeConfigDestinationConfigOnSuccess
    Successful callback target structure See on_success below.
    on_failure V3AsyncInvokeConfigDestinationConfigOnFailure
    Failed callback target structure See on_failure below.
    on_success V3AsyncInvokeConfigDestinationConfigOnSuccess
    Successful callback target structure See on_success below.
    onFailure Property Map
    Failed callback target structure See on_failure below.
    onSuccess Property Map
    Successful callback target structure See on_success below.

    V3AsyncInvokeConfigDestinationConfigOnFailure, V3AsyncInvokeConfigDestinationConfigOnFailureArgs

    Destination string
    Asynchronous call target Resource Descriptor
    Destination string
    Asynchronous call target Resource Descriptor
    destination String
    Asynchronous call target Resource Descriptor
    destination string
    Asynchronous call target Resource Descriptor
    destination str
    Asynchronous call target Resource Descriptor
    destination String
    Asynchronous call target Resource Descriptor

    V3AsyncInvokeConfigDestinationConfigOnSuccess, V3AsyncInvokeConfigDestinationConfigOnSuccessArgs

    Destination string
    Asynchronous call target Resource Descriptor
    Destination string
    Asynchronous call target Resource Descriptor
    destination String
    Asynchronous call target Resource Descriptor
    destination string
    Asynchronous call target Resource Descriptor
    destination str
    Asynchronous call target Resource Descriptor
    destination String
    Asynchronous call target Resource Descriptor

    Import

    FCV3 Async Invoke Config can be imported using the id, e.g.

    $ pulumi import alicloud:fc/v3AsyncInvokeConfig:V3AsyncInvokeConfig example <id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi