1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. FgsEventV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

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 This property is required. string
The unique name of the resource.
args This property is required. FgsEventV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. FgsEventV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FgsEventV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := opentelekomcloud.NewFgsEventV2(ctx, "fgsEventV2Resource", &opentelekomcloud.FgsEventV2Args{
Content: pulumi.String("string"),
FunctionUrn: pulumi.String("string"),
FgsEventV2Id: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var fgsEventV2Resource = new FgsEventV2("fgsEventV2Resource", FgsEventV2Args.builder()
    .content("string")
    .functionUrn("string")
    .fgsEventV2Id("string")
    .name("string")
    .build());
Copy
fgs_event_v2_resource = opentelekomcloud.FgsEventV2("fgsEventV2Resource",
    content="string",
    function_urn="string",
    fgs_event_v2_id="string",
    name="string")
Copy
const fgsEventV2Resource = new opentelekomcloud.FgsEventV2("fgsEventV2Resource", {
    content: "string",
    functionUrn: "string",
    fgsEventV2Id: "string",
    name: "string",
});
Copy
type: opentelekomcloud:FgsEventV2
properties:
    content: string
    fgsEventV2Id: string
    functionUrn: string
    name: string
Copy

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 This property is required. string
Specifies the function event content. The value is the base64 encoding of the JSON string.
FunctionUrn This property is required. string
Specifies the URN of the function to which the event belongs.
FgsEventV2Id string
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 This property is required. string
Specifies the function event content. The value is the base64 encoding of the JSON string.
FunctionUrn This property is required. string
Specifies the URN of the function to which the event belongs.
FgsEventV2Id string
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 This property is required. String
Specifies the function event content. The value is the base64 encoding of the JSON string.
functionUrn This property is required. String
Specifies the URN of the function to which the event belongs.
fgsEventV2Id String
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 This property is required. string
Specifies the function event content. The value is the base64 encoding of the JSON string.
functionUrn This property is required. string
Specifies the URN of the function to which the event belongs.
fgsEventV2Id string
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 This property is required. str
Specifies the function event content. The value is the base64 encoding of the JSON string.
function_urn This property is required. str
Specifies the URN of the function to which the event belongs.
fgs_event_v2_id str
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 This property is required. String
Specifies the function event content. The value is the base64 encoding of the JSON string.
functionUrn This property is required. String
Specifies the URN of the function to which the event belongs.
fgsEventV2Id String
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 string
The provider-assigned unique ID for this managed resource.
Region string
The region in which function graph resource is created.
UpdatedAt double
The latest update time of the function event.
Id string
The provider-assigned unique ID for this managed resource.
Region string
The region in which function graph resource is created.
UpdatedAt float64
The latest update time of the function event.
id String
The provider-assigned unique ID for this managed resource.
region String
The region in which function graph resource is created.
updatedAt Double
The latest update time of the function event.
id string
The provider-assigned unique ID for this managed resource.
region string
The region in which function graph resource is created.
updatedAt number
The latest update time of the function event.
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.
id String
The provider-assigned unique ID for this managed resource.
region String
The region in which function graph resource is created.
updatedAt Number
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Content string
Specifies the function event content. The value is the base64 encoding of the JSON string.
FgsEventV2Id string
The resource ID in UUID format.
FunctionUrn 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.
UpdatedAt 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.
FgsEventV2Id string
The resource ID in UUID format.
FunctionUrn 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.
UpdatedAt 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.
fgsEventV2Id String
The resource ID in UUID format.
functionUrn 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.
updatedAt 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.
fgsEventV2Id string
The resource ID in UUID format.
functionUrn 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.
updatedAt 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_v2_id str
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.
fgsEventV2Id String
The resource ID in UUID format.
functionUrn 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.
updatedAt 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>
Copy

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.