opentelekomcloud.FgsTriggerV2
Explore with Pulumi AI
Up-to-date reference of API arguments for FGS you can get at documentation portal
Manages a V2 function graph trigger resource within OpenTelekomCloud.
Example Usage
Create FgsTriggerV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FgsTriggerV2(name: string, args: FgsTriggerV2Args, opts?: CustomResourceOptions);
@overload
def FgsTriggerV2(resource_name: str,
args: FgsTriggerV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def FgsTriggerV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_data: Optional[str] = None,
function_urn: Optional[str] = None,
type: Optional[str] = None,
fgs_trigger_v2_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[FgsTriggerV2TimeoutsArgs] = None)
func NewFgsTriggerV2(ctx *Context, name string, args FgsTriggerV2Args, opts ...ResourceOption) (*FgsTriggerV2, error)
public FgsTriggerV2(string name, FgsTriggerV2Args args, CustomResourceOptions? opts = null)
public FgsTriggerV2(String name, FgsTriggerV2Args args)
public FgsTriggerV2(String name, FgsTriggerV2Args args, CustomResourceOptions options)
type: opentelekomcloud:FgsTriggerV2
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 FgsTriggerV2Args
- 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 FgsTriggerV2Args
- 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 FgsTriggerV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FgsTriggerV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FgsTriggerV2Args
- 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 fgsTriggerV2Resource = new Opentelekomcloud.FgsTriggerV2("fgsTriggerV2Resource", new()
{
EventData = "string",
FunctionUrn = "string",
Type = "string",
FgsTriggerV2Id = "string",
Status = "string",
Timeouts = new Opentelekomcloud.Inputs.FgsTriggerV2TimeoutsArgs
{
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewFgsTriggerV2(ctx, "fgsTriggerV2Resource", &opentelekomcloud.FgsTriggerV2Args{
EventData: pulumi.String("string"),
FunctionUrn: pulumi.String("string"),
Type: pulumi.String("string"),
FgsTriggerV2Id: pulumi.String("string"),
Status: pulumi.String("string"),
Timeouts: &opentelekomcloud.FgsTriggerV2TimeoutsArgs{
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var fgsTriggerV2Resource = new FgsTriggerV2("fgsTriggerV2Resource", FgsTriggerV2Args.builder()
.eventData("string")
.functionUrn("string")
.type("string")
.fgsTriggerV2Id("string")
.status("string")
.timeouts(FgsTriggerV2TimeoutsArgs.builder()
.delete("string")
.update("string")
.build())
.build());
fgs_trigger_v2_resource = opentelekomcloud.FgsTriggerV2("fgsTriggerV2Resource",
event_data="string",
function_urn="string",
type="string",
fgs_trigger_v2_id="string",
status="string",
timeouts={
"delete": "string",
"update": "string",
})
const fgsTriggerV2Resource = new opentelekomcloud.FgsTriggerV2("fgsTriggerV2Resource", {
eventData: "string",
functionUrn: "string",
type: "string",
fgsTriggerV2Id: "string",
status: "string",
timeouts: {
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:FgsTriggerV2
properties:
eventData: string
fgsTriggerV2Id: string
functionUrn: string
status: string
timeouts:
delete: string
update: string
type: string
FgsTriggerV2 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 FgsTriggerV2 resource accepts the following input properties:
- Event
Data string Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- Function
Urn string - Specifies the function URN to which the function trigger belongs.
- Type string
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- Fgs
Trigger stringV2Id - resource ID in UUID format.
- Status string
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- Timeouts
Fgs
Trigger V2Timeouts
- Event
Data string Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- Function
Urn string - Specifies the function URN to which the function trigger belongs.
- Type string
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- Fgs
Trigger stringV2Id - resource ID in UUID format.
- Status string
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- Timeouts
Fgs
Trigger V2Timeouts Args
- event
Data String Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- function
Urn String - Specifies the function URN to which the function trigger belongs.
- type String
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- fgs
Trigger StringV2Id - resource ID in UUID format.
- status String
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts
Fgs
Trigger V2Timeouts
- event
Data string Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- function
Urn string - Specifies the function URN to which the function trigger belongs.
- type string
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- fgs
Trigger stringV2Id - resource ID in UUID format.
- status string
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts
Fgs
Trigger V2Timeouts
- event_
data str Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- function_
urn str - Specifies the function URN to which the function trigger belongs.
- type str
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- fgs_
trigger_ strv2_ id - resource ID in UUID format.
- status str
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts
Fgs
Trigger V2Timeouts Args
- event
Data String Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- function
Urn String - Specifies the function URN to which the function trigger belongs.
- type String
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- fgs
Trigger StringV2Id - resource ID in UUID format.
- status String
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the FgsTriggerV2 resource produces the following output properties:
- created_
at str - The creation time of the function trigger.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The region where the function trigger is located.
- updated_
at str - The latest update time of the function trigger.
Look up Existing FgsTriggerV2 Resource
Get an existing FgsTriggerV2 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?: FgsTriggerV2State, opts?: CustomResourceOptions): FgsTriggerV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
event_data: Optional[str] = None,
fgs_trigger_v2_id: Optional[str] = None,
function_urn: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[FgsTriggerV2TimeoutsArgs] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> FgsTriggerV2
func GetFgsTriggerV2(ctx *Context, name string, id IDInput, state *FgsTriggerV2State, opts ...ResourceOption) (*FgsTriggerV2, error)
public static FgsTriggerV2 Get(string name, Input<string> id, FgsTriggerV2State? state, CustomResourceOptions? opts = null)
public static FgsTriggerV2 get(String name, Output<String> id, FgsTriggerV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:FgsTriggerV2 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.
- Created
At string - The creation time of the function trigger.
- Event
Data string Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- Fgs
Trigger stringV2Id - resource ID in UUID format.
- Function
Urn string - Specifies the function URN to which the function trigger belongs.
- Region string
- The region where the function trigger is located.
- Status string
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- Timeouts
Fgs
Trigger V2Timeouts - Type string
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- Updated
At string - The latest update time of the function trigger.
- Created
At string - The creation time of the function trigger.
- Event
Data string Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- Fgs
Trigger stringV2Id - resource ID in UUID format.
- Function
Urn string - Specifies the function URN to which the function trigger belongs.
- Region string
- The region where the function trigger is located.
- Status string
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- Timeouts
Fgs
Trigger V2Timeouts Args - Type string
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- Updated
At string - The latest update time of the function trigger.
- created
At String - The creation time of the function trigger.
- event
Data String Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- fgs
Trigger StringV2Id - resource ID in UUID format.
- function
Urn String - Specifies the function URN to which the function trigger belongs.
- region String
- The region where the function trigger is located.
- status String
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts
Fgs
Trigger V2Timeouts - type String
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- updated
At String - The latest update time of the function trigger.
- created
At string - The creation time of the function trigger.
- event
Data string Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- fgs
Trigger stringV2Id - resource ID in UUID format.
- function
Urn string - Specifies the function URN to which the function trigger belongs.
- region string
- The region where the function trigger is located.
- status string
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts
Fgs
Trigger V2Timeouts - type string
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- updated
At string - The latest update time of the function trigger.
- created_
at str - The creation time of the function trigger.
- event_
data str Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- fgs_
trigger_ strv2_ id - resource ID in UUID format.
- function_
urn str - Specifies the function URN to which the function trigger belongs.
- region str
- The region where the function trigger is located.
- status str
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts
Fgs
Trigger V2Timeouts Args - type str
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- updated_
at str - The latest update time of the function trigger.
- created
At String - The creation time of the function trigger.
- event
Data String Specifies the detailed configuration of the function trigger event. For various types of trigger parameter configurations, please refer to the documentation.
Please refer to the documentation for updatable fields.
- fgs
Trigger StringV2Id - resource ID in UUID format.
- function
Urn String - Specifies the function URN to which the function trigger belongs.
- region String
- The region where the function trigger is located.
- status String
Specifies the status of the function trigger. The valid values are ACTIVE and DISABLED. For
DDS
andKafka
triggers the default value is DISABLED, for other triggers= the default value is ACTIVE.Currently, only some triggers support setting the DISABLED value, such as
TIMER
,DDS
,DMS
,KAFKA
andLTS
. For more details, please refer to the documentation.- timeouts Property Map
- type String
Specifies the type of the function trigger. The valid values are TIMER, APIG, CTS, DDS, DEDICATEDGATEWAY, etc.
For more available values, please refer to the documentation table 3.
- updated
At String - The latest update time of the function trigger.
Supporting Types
FgsTriggerV2Timeouts, FgsTriggerV2TimeoutsArgs
Import
Function trigger can be imported using the function_urn
, type
and id
, separated by the slashes (/), e.g.
bash
$ pulumi import opentelekomcloud:index/fgsTriggerV2:FgsTriggerV2 test <function_urn>/<type>/<id>
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.