alicloud.fc.V3AsyncInvokeConfig
Explore with Pulumi AI
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=alicloud.fc.V3AsyncInvokeConfigDestinationConfigArgs(
on_failure=alicloud.fc.V3AsyncInvokeConfigDestinationConfigOnFailureArgs(
destination="string",
),
on_success=alicloud.fc.V3AsyncInvokeConfigDestinationConfigOnSuccessArgs(
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
The V3AsyncInvokeConfig resource accepts the following input properties:
- Function
Name string - Function Name
- Async
Task bool - Whether to enable an asynchronous task
- Destination
Config Pulumi.Ali Cloud. FC. Inputs. V3Async Invoke Config Destination Config - Target Configuration See
destination_config
below. - Max
Async intEvent Age In Seconds - Event maximum survival time
- Max
Async intRetry Attempts - Number of Asynchronous call retries
- Qualifier string
- Function version or alias
- Function
Name string - Function Name
- Async
Task bool - Whether to enable an asynchronous task
- Destination
Config V3AsyncInvoke Config Destination Config Args - Target Configuration See
destination_config
below. - Max
Async intEvent Age In Seconds - Event maximum survival time
- Max
Async intRetry Attempts - Number of Asynchronous call retries
- Qualifier string
- Function version or alias
- function
Name String - Function Name
- async
Task Boolean - Whether to enable an asynchronous task
- destination
Config V3AsyncInvoke Config Destination Config - Target Configuration See
destination_config
below. - max
Async IntegerEvent Age In Seconds - Event maximum survival time
- max
Async IntegerRetry Attempts - Number of Asynchronous call retries
- qualifier String
- Function version or alias
- function
Name string - Function Name
- async
Task boolean - Whether to enable an asynchronous task
- destination
Config V3AsyncInvoke Config Destination Config - Target Configuration See
destination_config
below. - max
Async numberEvent Age In Seconds - Event maximum survival time
- max
Async numberRetry Attempts - 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 V3AsyncInvoke Config Destination Config Args - Target Configuration See
destination_config
below. - max_
async_ intevent_ age_ in_ seconds - Event maximum survival time
- max_
async_ intretry_ attempts - Number of Asynchronous call retries
- qualifier str
- Function version or alias
- function
Name String - Function Name
- async
Task Boolean - Whether to enable an asynchronous task
- destination
Config Property Map - Target Configuration See
destination_config
below. - max
Async NumberEvent Age In Seconds - Event maximum survival time
- max
Async NumberRetry Attempts - 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:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
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_name: 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.
- Async
Task bool - Whether to enable an asynchronous task
- Create
Time string - The creation time of the resource
- Destination
Config Pulumi.Ali Cloud. FC. Inputs. V3Async Invoke Config Destination Config - Target Configuration See
destination_config
below. - Function
Name string - Function Name
- Max
Async intEvent Age In Seconds - Event maximum survival time
- Max
Async intRetry Attempts - Number of Asynchronous call retries
- Qualifier string
- Function version or alias
- Async
Task bool - Whether to enable an asynchronous task
- Create
Time string - The creation time of the resource
- Destination
Config V3AsyncInvoke Config Destination Config Args - Target Configuration See
destination_config
below. - Function
Name string - Function Name
- Max
Async intEvent Age In Seconds - Event maximum survival time
- Max
Async intRetry Attempts - Number of Asynchronous call retries
- Qualifier string
- Function version or alias
- async
Task Boolean - Whether to enable an asynchronous task
- create
Time String - The creation time of the resource
- destination
Config V3AsyncInvoke Config Destination Config - Target Configuration See
destination_config
below. - function
Name String - Function Name
- max
Async IntegerEvent Age In Seconds - Event maximum survival time
- max
Async IntegerRetry Attempts - Number of Asynchronous call retries
- qualifier String
- Function version or alias
- async
Task boolean - Whether to enable an asynchronous task
- create
Time string - The creation time of the resource
- destination
Config V3AsyncInvoke Config Destination Config - Target Configuration See
destination_config
below. - function
Name string - Function Name
- max
Async numberEvent Age In Seconds - Event maximum survival time
- max
Async numberRetry Attempts - 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 V3AsyncInvoke Config Destination Config Args - Target Configuration See
destination_config
below. - function_
name str - Function Name
- max_
async_ intevent_ age_ in_ seconds - Event maximum survival time
- max_
async_ intretry_ attempts - Number of Asynchronous call retries
- qualifier str
- Function version or alias
- async
Task Boolean - Whether to enable an asynchronous task
- create
Time String - The creation time of the resource
- destination
Config Property Map - Target Configuration See
destination_config
below. - function
Name String - Function Name
- max
Async NumberEvent Age In Seconds - Event maximum survival time
- max
Async NumberRetry Attempts - Number of Asynchronous call retries
- qualifier String
- Function version or alias
Supporting Types
V3AsyncInvokeConfigDestinationConfig, V3AsyncInvokeConfigDestinationConfigArgs
- On
Failure Pulumi.Ali Cloud. FC. Inputs. V3Async Invoke Config Destination Config On Failure - Failed callback target structure. See
on_failure
below. - On
Success Pulumi.Ali Cloud. FC. Inputs. V3Async Invoke Config Destination Config On Success - Successful callback target structure. See
on_success
below.
- On
Failure V3AsyncInvoke Config Destination Config On Failure - Failed callback target structure. See
on_failure
below. - On
Success V3AsyncInvoke Config Destination Config On Success - Successful callback target structure. See
on_success
below.
- on
Failure V3AsyncInvoke Config Destination Config On Failure - Failed callback target structure. See
on_failure
below. - on
Success V3AsyncInvoke Config Destination Config On Success - Successful callback target structure. See
on_success
below.
- on
Failure V3AsyncInvoke Config Destination Config On Failure - Failed callback target structure. See
on_failure
below. - on
Success V3AsyncInvoke Config Destination Config On Success - Successful callback target structure. See
on_success
below.
- on_
failure V3AsyncInvoke Config Destination Config On Failure - Failed callback target structure. See
on_failure
below. - on_
success V3AsyncInvoke Config Destination Config On Success - Successful callback target structure. See
on_success
below.
- on
Failure Property Map - Failed callback target structure. See
on_failure
below. - on
Success 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.