tencentcloud.VodEventConfig
Explore with Pulumi AI
Provide a resource to create a vod event config.
Create VodEventConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VodEventConfig(name: string, args: VodEventConfigArgs, opts?: CustomResourceOptions);
@overload
def VodEventConfig(resource_name: str,
args: VodEventConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VodEventConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
sub_app_id: Optional[float] = None,
delete_media_complete_event_switch: Optional[str] = None,
mode: Optional[str] = None,
notification_url: Optional[str] = None,
upload_media_complete_event_switch: Optional[str] = None,
vod_event_config_id: Optional[str] = None)
func NewVodEventConfig(ctx *Context, name string, args VodEventConfigArgs, opts ...ResourceOption) (*VodEventConfig, error)
public VodEventConfig(string name, VodEventConfigArgs args, CustomResourceOptions? opts = null)
public VodEventConfig(String name, VodEventConfigArgs args)
public VodEventConfig(String name, VodEventConfigArgs args, CustomResourceOptions options)
type: tencentcloud:VodEventConfig
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 VodEventConfigArgs
- 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 VodEventConfigArgs
- 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 VodEventConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VodEventConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VodEventConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VodEventConfig 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 VodEventConfig resource accepts the following input properties:
- Sub
App doubleId - Sub app id.
- Delete
Media stringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - Mode string
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- Notification
Url string - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- Upload
Media stringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - Vod
Event stringConfig Id - ID of the resource.
- Sub
App float64Id - Sub app id.
- Delete
Media stringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - Mode string
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- Notification
Url string - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- Upload
Media stringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - Vod
Event stringConfig Id - ID of the resource.
- sub
App DoubleId - Sub app id.
- delete
Media StringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode String
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification
Url String - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- upload
Media StringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod
Event StringConfig Id - ID of the resource.
- sub
App numberId - Sub app id.
- delete
Media stringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode string
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification
Url string - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- upload
Media stringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod
Event stringConfig Id - ID of the resource.
- sub_
app_ floatid - Sub app id.
- delete_
media_ strcomplete_ event_ switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode str
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification_
url str - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- upload_
media_ strcomplete_ event_ switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod_
event_ strconfig_ id - ID of the resource.
- sub
App NumberId - Sub app id.
- delete
Media StringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode String
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification
Url String - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- upload
Media StringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod
Event StringConfig Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VodEventConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VodEventConfig Resource
Get an existing VodEventConfig 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?: VodEventConfigState, opts?: CustomResourceOptions): VodEventConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_media_complete_event_switch: Optional[str] = None,
mode: Optional[str] = None,
notification_url: Optional[str] = None,
sub_app_id: Optional[float] = None,
upload_media_complete_event_switch: Optional[str] = None,
vod_event_config_id: Optional[str] = None) -> VodEventConfig
func GetVodEventConfig(ctx *Context, name string, id IDInput, state *VodEventConfigState, opts ...ResourceOption) (*VodEventConfig, error)
public static VodEventConfig Get(string name, Input<string> id, VodEventConfigState? state, CustomResourceOptions? opts = null)
public static VodEventConfig get(String name, Output<String> id, VodEventConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:VodEventConfig 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.
- Delete
Media stringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - Mode string
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- Notification
Url string - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- Sub
App doubleId - Sub app id.
- Upload
Media stringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - Vod
Event stringConfig Id - ID of the resource.
- Delete
Media stringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - Mode string
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- Notification
Url string - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- Sub
App float64Id - Sub app id.
- Upload
Media stringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - Vod
Event stringConfig Id - ID of the resource.
- delete
Media StringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode String
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification
Url String - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- sub
App DoubleId - Sub app id.
- upload
Media StringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod
Event StringConfig Id - ID of the resource.
- delete
Media stringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode string
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification
Url string - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- sub
App numberId - Sub app id.
- upload
Media stringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod
Event stringConfig Id - ID of the resource.
- delete_
media_ strcomplete_ event_ switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode str
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification_
url str - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- sub_
app_ floatid - Sub app id.
- upload_
media_ strcomplete_ event_ switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod_
event_ strconfig_ id - ID of the resource.
- delete
Media StringComplete Event Switch - Whether to receive video deletion completion event notification, default
OFF
is to ignore the event notification,ON
is to receive event notification. - mode String
- How to receive event notifications. Valid values:
- Push: HTTP callback notification;
- PULL: Reliable notification based on message queuing.
- notification
Url String - The address used to receive 3.0 format callbacks when receiving HTTP callback notifications. Note: If you take the NotificationUrl parameter and the value is an empty string, the 3.0 format callback address is cleared.
- sub
App NumberId - Sub app id.
- upload
Media StringComplete Event Switch - Whether to receive video upload completion event notification, default
OFF
means to ignore the event notification,ON
means to receive event notification. - vod
Event StringConfig Id - ID of the resource.
Import
VOD event config can be imported using the subAppId, e.g.
$ pulumi import tencentcloud:index/vodEventConfig:VodEventConfig foo $subAppId
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.