// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Scf.Outputs
{

    [OutputType]
    public sealed class FunctionTriggerInfo
    {
        /// <summary>
        /// Create time of SCF function trigger.
        /// </summary>
        public readonly string? CreateTime;
        /// <summary>
        /// User-defined parameters of SCF function trigger.
        /// </summary>
        public readonly string? CustomArgument;
        /// <summary>
        /// Whether SCF function trigger is enable.
        /// </summary>
        public readonly bool? Enable;
        /// <summary>
        /// Modify time of SCF function trigger.
        /// </summary>
        public readonly string? ModifyTime;
        /// <summary>
        /// Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60.
        /// </summary>
        public readonly string? Name;
        /// <summary>
        /// TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"&lt;name-appid&gt;.cos.&lt;region&gt;.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`.
        /// </summary>
        public readonly string? TriggerDesc;
        /// <summary>
        /// Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`.
        /// </summary>
        public readonly string? Type;

        [OutputConstructor]
        private FunctionTriggerInfo(
            string? createTime,

            string? customArgument,

            bool? enable,

            string? modifyTime,

            string? name,

            string? triggerDesc,

            string? type)
        {
            CreateTime = createTime;
            CustomArgument = customArgument;
            Enable = enable;
            ModifyTime = modifyTime;
            Name = name;
            TriggerDesc = triggerDesc;
            Type = type;
        }
    }
}
