1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VodEventConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VodEventConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    SubAppId double
    Sub app id.
    DeleteMediaCompleteEventSwitch string
    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.
    NotificationUrl 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.
    UploadMediaCompleteEventSwitch string
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    VodEventConfigId string
    ID of the resource.
    SubAppId float64
    Sub app id.
    DeleteMediaCompleteEventSwitch string
    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.
    NotificationUrl 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.
    UploadMediaCompleteEventSwitch string
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    VodEventConfigId string
    ID of the resource.
    subAppId Double
    Sub app id.
    deleteMediaCompleteEventSwitch String
    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.
    notificationUrl 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.
    uploadMediaCompleteEventSwitch String
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vodEventConfigId String
    ID of the resource.
    subAppId number
    Sub app id.
    deleteMediaCompleteEventSwitch string
    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.
    notificationUrl 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.
    uploadMediaCompleteEventSwitch string
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vodEventConfigId string
    ID of the resource.
    sub_app_id float
    Sub app id.
    delete_media_complete_event_switch str
    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_complete_event_switch str
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vod_event_config_id str
    ID of the resource.
    subAppId Number
    Sub app id.
    deleteMediaCompleteEventSwitch String
    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.
    notificationUrl 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.
    uploadMediaCompleteEventSwitch String
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vodEventConfigId String
    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.
    The following state arguments are supported:
    DeleteMediaCompleteEventSwitch string
    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.
    NotificationUrl 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.
    SubAppId double
    Sub app id.
    UploadMediaCompleteEventSwitch string
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    VodEventConfigId string
    ID of the resource.
    DeleteMediaCompleteEventSwitch string
    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.
    NotificationUrl 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.
    SubAppId float64
    Sub app id.
    UploadMediaCompleteEventSwitch string
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    VodEventConfigId string
    ID of the resource.
    deleteMediaCompleteEventSwitch String
    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.
    notificationUrl 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.
    subAppId Double
    Sub app id.
    uploadMediaCompleteEventSwitch String
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vodEventConfigId String
    ID of the resource.
    deleteMediaCompleteEventSwitch string
    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.
    notificationUrl 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.
    subAppId number
    Sub app id.
    uploadMediaCompleteEventSwitch string
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vodEventConfigId string
    ID of the resource.
    delete_media_complete_event_switch str
    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_id float
    Sub app id.
    upload_media_complete_event_switch str
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vod_event_config_id str
    ID of the resource.
    deleteMediaCompleteEventSwitch String
    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.
    notificationUrl 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.
    subAppId Number
    Sub app id.
    uploadMediaCompleteEventSwitch String
    Whether to receive video upload completion event notification, default OFF means to ignore the event notification, ON means to receive event notification.
    vodEventConfigId String
    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack