opentelekomcloud.FgsEventV2
Explore with Pulumi AI
Up-to-date reference of API arguments for FGS you can get at documentation portal
Manages an event for testing specified function within OpenTelekomCloud.
Example Usage
Create FgsEventV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FgsEventV2(name: string, args: FgsEventV2Args, opts?: CustomResourceOptions);
@overload
def FgsEventV2(resource_name: str,
args: FgsEventV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def FgsEventV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
function_urn: Optional[str] = None,
fgs_event_v2_id: Optional[str] = None,
name: Optional[str] = None)
func NewFgsEventV2(ctx *Context, name string, args FgsEventV2Args, opts ...ResourceOption) (*FgsEventV2, error)
public FgsEventV2(string name, FgsEventV2Args args, CustomResourceOptions? opts = null)
public FgsEventV2(String name, FgsEventV2Args args)
public FgsEventV2(String name, FgsEventV2Args args, CustomResourceOptions options)
type: opentelekomcloud:FgsEventV2
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 FgsEventV2Args
- 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 FgsEventV2Args
- 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 FgsEventV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FgsEventV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FgsEventV2Args
- 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 fgsEventV2Resource = new Opentelekomcloud.FgsEventV2("fgsEventV2Resource", new()
{
Content = "string",
FunctionUrn = "string",
FgsEventV2Id = "string",
Name = "string",
});
example, err := opentelekomcloud.NewFgsEventV2(ctx, "fgsEventV2Resource", &opentelekomcloud.FgsEventV2Args{
Content: pulumi.String("string"),
FunctionUrn: pulumi.String("string"),
FgsEventV2Id: pulumi.String("string"),
Name: pulumi.String("string"),
})
var fgsEventV2Resource = new FgsEventV2("fgsEventV2Resource", FgsEventV2Args.builder()
.content("string")
.functionUrn("string")
.fgsEventV2Id("string")
.name("string")
.build());
fgs_event_v2_resource = opentelekomcloud.FgsEventV2("fgsEventV2Resource",
content="string",
function_urn="string",
fgs_event_v2_id="string",
name="string")
const fgsEventV2Resource = new opentelekomcloud.FgsEventV2("fgsEventV2Resource", {
content: "string",
functionUrn: "string",
fgsEventV2Id: "string",
name: "string",
});
type: opentelekomcloud:FgsEventV2
properties:
content: string
fgsEventV2Id: string
functionUrn: string
name: string
FgsEventV2 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 FgsEventV2 resource accepts the following input properties:
- Content string
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- Function
Urn string - Specifies the URN of the function to which the event belongs.
- Fgs
Event stringV2Id - The resource ID in UUID format.
- Name string
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed.
- Content string
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- Function
Urn string - Specifies the URN of the function to which the event belongs.
- Fgs
Event stringV2Id - The resource ID in UUID format.
- Name string
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed.
- content String
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- function
Urn String - Specifies the URN of the function to which the event belongs.
- fgs
Event StringV2Id - The resource ID in UUID format.
- name String
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed.
- content string
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- function
Urn string - Specifies the URN of the function to which the event belongs.
- fgs
Event stringV2Id - The resource ID in UUID format.
- name string
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed.
- content str
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- function_
urn str - Specifies the URN of the function to which the event belongs.
- fgs_
event_ strv2_ id - The resource ID in UUID format.
- name str
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed.
- content String
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- function
Urn String - Specifies the URN of the function to which the event belongs.
- fgs
Event StringV2Id - The resource ID in UUID format.
- name String
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed.
Outputs
All input properties are implicitly available as output properties. Additionally, the FgsEventV2 resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- The region in which function graph resource is created.
- updated_
at float - The latest update time of the function event.
Look up Existing FgsEventV2 Resource
Get an existing FgsEventV2 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?: FgsEventV2State, opts?: CustomResourceOptions): FgsEventV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
fgs_event_v2_id: Optional[str] = None,
function_urn: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
updated_at: Optional[float] = None) -> FgsEventV2
func GetFgsEventV2(ctx *Context, name string, id IDInput, state *FgsEventV2State, opts ...ResourceOption) (*FgsEventV2, error)
public static FgsEventV2 Get(string name, Input<string> id, FgsEventV2State? state, CustomResourceOptions? opts = null)
public static FgsEventV2 get(String name, Output<String> id, FgsEventV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:FgsEventV2 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.
- Content string
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- Fgs
Event stringV2Id - The resource ID in UUID format.
- Function
Urn string - Specifies the URN of the function to which the event belongs.
- Name string
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed. - Region string
- The region in which function graph resource is created.
- Updated
At double - The latest update time of the function event.
- Content string
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- Fgs
Event stringV2Id - The resource ID in UUID format.
- Function
Urn string - Specifies the URN of the function to which the event belongs.
- Name string
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed. - Region string
- The region in which function graph resource is created.
- Updated
At float64 - The latest update time of the function event.
- content String
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- fgs
Event StringV2Id - The resource ID in UUID format.
- function
Urn String - Specifies the URN of the function to which the event belongs.
- name String
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed. - region String
- The region in which function graph resource is created.
- updated
At Double - The latest update time of the function event.
- content string
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- fgs
Event stringV2Id - The resource ID in UUID format.
- function
Urn string - Specifies the URN of the function to which the event belongs.
- name string
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed. - region string
- The region in which function graph resource is created.
- updated
At number - The latest update time of the function event.
- content str
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- fgs_
event_ strv2_ id - The resource ID in UUID format.
- function_
urn str - Specifies the URN of the function to which the event belongs.
- name str
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed. - region str
- The region in which function graph resource is created.
- updated_
at float - The latest update time of the function event.
- content String
- Specifies the function event content. The value is the base64 encoding of the JSON string.
- fgs
Event StringV2Id - The resource ID in UUID format.
- function
Urn String - Specifies the URN of the function to which the event belongs.
- name String
- Specifies the function event name.
The name can contain a maximum of
25
, only letters, digits, underscores (_) and hyphens (-) are allowed. - region String
- The region in which function graph resource is created.
- updated
At Number - The latest update time of the function event.
Import
Function event can be imported using the function_urn
and id
, separated by a slash, e.g.
bash
$ pulumi import opentelekomcloud:index/fgsEventV2:FgsEventV2 test <function_urn>/<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.