1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TeoConfigGroupVersion
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack

    Provides a resource to create a teo config group version

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const teoConfigGroupVersion = new tencentcloud.TeoConfigGroupVersion("teo_config_group_version", {
        content: `{
      \\"FormatVersion\\": \\"1.0\\",
      \\"ZoneConfig\\": {
        \\"SmartRouting\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"Cache\\": {
          \\"NoCache\\": {
            \\"Switch\\": \\"off\\"
          },
          \\"FollowOrigin\\": {
            \\"Switch\\": \\"on\\",
            \\"DefaultCache\\": \\"on\\",
            \\"DefaultCacheStrategy\\": \\"on\\",
            \\"DefaultCacheTime\\": 0
          },
          \\"CustomTime\\": {
            \\"Switch\\": \\"off\\",
            \\"CacheTime\\": 2592000
          }
        },
        \\"MaxAge\\": {
          \\"FollowOrigin\\": \\"on\\",
          \\"CacheTime\\": 600
        },
        \\"CacheKey\\": {
          \\"FullURLCache\\": \\"on\\",
          \\"QueryString\\": {
            \\"Switch\\": \\"off\\",
            \\"Action\\": \\"includeCustom\\"
          },
          \\"IgnoreCase\\": \\"off\\"
        },
        \\"CachePrefresh\\": {
          \\"Switch\\": \\"off\\",
          \\"CacheTimePercent\\": 90
        },
        \\"OfflineCache\\": {
          \\"Switch\\": \\"on\\"
        },
        \\"Compression\\": {
          \\"Switch\\": \\"off\\",
          \\"Algorithms\\": [
            \\"brotli\\",
            \\"gzip\\"
          ]
        },
        \\"ForceRedirectHTTPS\\": {
          \\"Switch\\": \\"off\\",
          \\"RedirectStatusCode\\": 302
        },
        \\"HSTS\\": {
          \\"Switch\\": \\"off\\",
          \\"Timeout\\": 0,
          \\"IncludeSubDomains\\": \\"off\\",
          \\"Preload\\": \\"off\\"
        },
        \\"TLSConfig\\": {
          \\"Version\\": [
            \\"TLSv1\\",
            \\"TLSv1.1\\",
            \\"TLSv1.2\\",
            \\"TLSv1.3\\"
          ],
          \\"CipherSuite\\": \\"loose-v2023\\"
        },
        \\"OCSPStapling\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"HTTP2\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"QUIC\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"UpstreamHTTP2\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"IPv6\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"WebSocket\\": {
          \\"Switch\\": \\"off\\",
          \\"Timeout\\": 30
        },
        \\"PostMaxSize\\": {
          \\"Switch\\": \\"on\\",
          \\"MaxSize\\": 838860800
        },
        \\"ClientIPHeader\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"ClientIPCountry\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"gRPC\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"NetworkErrorLogging\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"AccelerateMainland\\": {
          \\"Switch\\": \\"off\\"
        },
        \\"StandardDebug\\": {
          \\"Switch\\": \\"off\\",
          \\"AllowClientIPList\\": [
            \\"1.14.231.0/24\\",
            \\"1.194.255.0/24\\"
          ],
          \\"Expires\\": \\"2025-09-01T12:45:37Z\\"
        }
      },
      \\"Rules\\": [
        {
          \\"RuleName\\": \\"Web Acceleration - cdn.defaultsetting.cn\\",
          \\"Branches\\": [
            {
              \\"Condition\\": \\"\${http.request.host} in ['cdn.defaultsetting.cn']\\",
              \\"Actions\\": [
                {
                  \\"Name\\": \\"Cache\\",
                  \\"CacheParameters\\": {
                    \\"CustomTime\\": {
                      \\"Switch\\": \\"on\\",
                      \\"IgnoreCacheControl\\": \\"off\\",
                      \\"CacheTime\\": 2592000
                    }
                  }
                },
                {
                  \\"Name\\": \\"CacheKey\\",
                  \\"CacheKeyParameters\\": {
                    \\"FullURLCache\\": \\"on\\",
                    \\"QueryString\\": {
                      \\"Switch\\": \\"off\\"
                    },
                    \\"IgnoreCase\\": \\"off\\"
                  }
                }
              ],
              \\"SubRules\\": [
                {
                  \\"Branches\\": [
                    {
                      \\"Condition\\": \\"lower(\${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\\",
                      \\"Actions\\": [
                        {
                          \\"Name\\": \\"Cache\\",
                          \\"CacheParameters\\": {
                            \\"NoCache\\": {
                              \\"Switch\\": \\"on\\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \\"Branches\\": [
                    {
                      \\"Condition\\": \\"\${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\\",
                      \\"Actions\\": [
                        {
                          \\"Name\\": \\"MaxAge\\",
                          \\"MaxAgeParameters\\": {
                            \\"FollowOrigin\\": \\"off\\",
                            \\"CacheTime\\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \\"RuleName\\": \\"Web Acceleration - pages.migraine.com.cn\\",
          \\"Branches\\": [
            {
              \\"Condition\\": \\"\${http.request.host} in ['pages.migraine.com.cn']\\",
              \\"Actions\\": [
                {
                  \\"Name\\": \\"Cache\\",
                  \\"CacheParameters\\": {
                    \\"CustomTime\\": {
                      \\"Switch\\": \\"on\\",
                      \\"IgnoreCacheControl\\": \\"off\\",
                      \\"CacheTime\\": 0
                    }
                  }
                },
                {
                  \\"Name\\": \\"CacheKey\\",
                  \\"CacheKeyParameters\\": {
                    \\"FullURLCache\\": \\"on\\",
                    \\"QueryString\\": {
                      \\"Switch\\": \\"off\\"
                    },
                    \\"IgnoreCase\\": \\"off\\"
                  }
                }
              ],
              \\"SubRules\\": [
                {
                  \\"Branches\\": [
                    {
                      \\"Condition\\": \\"lower(\${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\\",
                      \\"Actions\\": [
                        {
                          \\"Name\\": \\"Cache\\",
                          \\"CacheParameters\\": {
                            \\"NoCache\\": {
                              \\"Switch\\": \\"on\\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \\"Branches\\": [
                    {
                      \\"Condition\\": \\"\${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\\",
                      \\"Actions\\": [
                        {
                          \\"Name\\": \\"MaxAge\\",
                          \\"MaxAgeParameters\\": {
                            \\"FollowOrigin\\": \\"off\\",
                            \\"CacheTime\\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \\"RuleName\\": \\"Skip Pages Authentication Verification\\",
          \\"Branches\\": [
            {
              \\"Condition\\": \\"\${http.request.host} in ['pages.migraine.com.cn']\\",
              \\"Actions\\": [
                {
                  \\"Name\\": \\"ModifyRequestHeader\\",
                  \\"ModifyRequestHeaderParameters\\": {
                    \\"HeaderActions\\": [
                      {
                        \\"Action\\": \\"add\\",
                        \\"Name\\": \\"X-SKIP-TOKEN\\",
                        \\"Value\\": \\"eop-1022\\"
                      }
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          \\"RuleName\\": \\"Regional Origin Pull\\",
          \\"Branches\\": [
            {
              \\"Condition\\": \\"\${http.request.host} in ['abc.migraine.com.cn']\\",
              \\"SubRules\\": [
                {
                  \\"Branches\\": [
                    {
                      \\"Condition\\": \\"\${http.request.ip.country} in ['Asia']\\",
                      \\"Actions\\": [
                        {
                          \\"Name\\": \\"ModifyOrigin\\",
                          \\"ModifyOriginParameters\\": {
                            \\"OriginType\\": \\"IPDomain\\",
                            \\"Origin\\": \\"1.2.3.4\\",
                            \\"OriginProtocol\\": \\"follow\\",
                            \\"HTTPOriginPort\\": 80,
                            \\"HTTPSOriginPort\\": 443
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \\"Branches\\": [
                    {
                      \\"Condition\\": \\"\${http.request.ip.country} in ['Africa']\\",
                      \\"Actions\\": [
                        {
                          \\"Name\\": \\"ModifyOrigin\\",
                          \\"ModifyOriginParameters\\": {
                            \\"OriginType\\": \\"IPDomain\\",
                            \\"Origin\\": \\"3.4.5.6\\",
                            \\"OriginProtocol\\": \\"follow\\",
                            \\"HTTPOriginPort\\": 80,
                            \\"HTTPSOriginPort\\": 443
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
    `,
        description: "test version",
        groupId: "cg-3lchxitnb5pb",
        zoneId: "zone-2xkazzl8yf6k",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    teo_config_group_version = tencentcloud.TeoConfigGroupVersion("teo_config_group_version",
        content="""{
      \"FormatVersion\": \"1.0\",
      \"ZoneConfig\": {
        \"SmartRouting\": {
          \"Switch\": \"off\"
        },
        \"Cache\": {
          \"NoCache\": {
            \"Switch\": \"off\"
          },
          \"FollowOrigin\": {
            \"Switch\": \"on\",
            \"DefaultCache\": \"on\",
            \"DefaultCacheStrategy\": \"on\",
            \"DefaultCacheTime\": 0
          },
          \"CustomTime\": {
            \"Switch\": \"off\",
            \"CacheTime\": 2592000
          }
        },
        \"MaxAge\": {
          \"FollowOrigin\": \"on\",
          \"CacheTime\": 600
        },
        \"CacheKey\": {
          \"FullURLCache\": \"on\",
          \"QueryString\": {
            \"Switch\": \"off\",
            \"Action\": \"includeCustom\"
          },
          \"IgnoreCase\": \"off\"
        },
        \"CachePrefresh\": {
          \"Switch\": \"off\",
          \"CacheTimePercent\": 90
        },
        \"OfflineCache\": {
          \"Switch\": \"on\"
        },
        \"Compression\": {
          \"Switch\": \"off\",
          \"Algorithms\": [
            \"brotli\",
            \"gzip\"
          ]
        },
        \"ForceRedirectHTTPS\": {
          \"Switch\": \"off\",
          \"RedirectStatusCode\": 302
        },
        \"HSTS\": {
          \"Switch\": \"off\",
          \"Timeout\": 0,
          \"IncludeSubDomains\": \"off\",
          \"Preload\": \"off\"
        },
        \"TLSConfig\": {
          \"Version\": [
            \"TLSv1\",
            \"TLSv1.1\",
            \"TLSv1.2\",
            \"TLSv1.3\"
          ],
          \"CipherSuite\": \"loose-v2023\"
        },
        \"OCSPStapling\": {
          \"Switch\": \"off\"
        },
        \"HTTP2\": {
          \"Switch\": \"off\"
        },
        \"QUIC\": {
          \"Switch\": \"off\"
        },
        \"UpstreamHTTP2\": {
          \"Switch\": \"off\"
        },
        \"IPv6\": {
          \"Switch\": \"off\"
        },
        \"WebSocket\": {
          \"Switch\": \"off\",
          \"Timeout\": 30
        },
        \"PostMaxSize\": {
          \"Switch\": \"on\",
          \"MaxSize\": 838860800
        },
        \"ClientIPHeader\": {
          \"Switch\": \"off\"
        },
        \"ClientIPCountry\": {
          \"Switch\": \"off\"
        },
        \"gRPC\": {
          \"Switch\": \"off\"
        },
        \"NetworkErrorLogging\": {
          \"Switch\": \"off\"
        },
        \"AccelerateMainland\": {
          \"Switch\": \"off\"
        },
        \"StandardDebug\": {
          \"Switch\": \"off\",
          \"AllowClientIPList\": [
            \"1.14.231.0/24\",
            \"1.194.255.0/24\"
          ],
          \"Expires\": \"2025-09-01T12:45:37Z\"
        }
      },
      \"Rules\": [
        {
          \"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['cdn.defaultsetting.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"Cache\",
                  \"CacheParameters\": {
                    \"CustomTime\": {
                      \"Switch\": \"on\",
                      \"IgnoreCacheControl\": \"off\",
                      \"CacheTime\": 2592000
                    }
                  }
                },
                {
                  \"Name\": \"CacheKey\",
                  \"CacheKeyParameters\": {
                    \"FullURLCache\": \"on\",
                    \"QueryString\": {
                      \"Switch\": \"off\"
                    },
                    \"IgnoreCase\": \"off\"
                  }
                }
              ],
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"NoCache\": {
                              \"Switch\": \"on\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                      \"Actions\": [
                        {
                          \"Name\": \"MaxAge\",
                          \"MaxAgeParameters\": {
                            \"FollowOrigin\": \"off\",
                            \"CacheTime\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"Cache\",
                  \"CacheParameters\": {
                    \"CustomTime\": {
                      \"Switch\": \"on\",
                      \"IgnoreCacheControl\": \"off\",
                      \"CacheTime\": 0
                    }
                  }
                },
                {
                  \"Name\": \"CacheKey\",
                  \"CacheKeyParameters\": {
                    \"FullURLCache\": \"on\",
                    \"QueryString\": {
                      \"Switch\": \"off\"
                    },
                    \"IgnoreCase\": \"off\"
                  }
                }
              ],
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"NoCache\": {
                              \"Switch\": \"on\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                      \"Actions\": [
                        {
                          \"Name\": \"MaxAge\",
                          \"MaxAgeParameters\": {
                            \"FollowOrigin\": \"off\",
                            \"CacheTime\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Skip Pages Authentication Verification\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"ModifyRequestHeader\",
                  \"ModifyRequestHeaderParameters\": {
                    \"HeaderActions\": [
                      {
                        \"Action\": \"add\",
                        \"Name\": \"X-SKIP-TOKEN\",
                        \"Value\": \"eop-1022\"
                      }
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Regional Origin Pull\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['abc.migraine.com.cn']\",
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.ip.country} in ['Asia']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyOrigin\",
                          \"ModifyOriginParameters\": {
                            \"OriginType\": \"IPDomain\",
                            \"Origin\": \"1.2.3.4\",
                            \"OriginProtocol\": \"follow\",
                            \"HTTPOriginPort\": 80,
                            \"HTTPSOriginPort\": 443
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.ip.country} in ['Africa']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyOrigin\",
                          \"ModifyOriginParameters\": {
                            \"OriginType\": \"IPDomain\",
                            \"Origin\": \"3.4.5.6\",
                            \"OriginProtocol\": \"follow\",
                            \"HTTPOriginPort\": 80,
                            \"HTTPSOriginPort\": 443
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
    """,
        description="test version",
        group_id="cg-3lchxitnb5pb",
        zone_id="zone-2xkazzl8yf6k")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTeoConfigGroupVersion(ctx, "teo_config_group_version", &tencentcloud.TeoConfigGroupVersionArgs{
    			Content: pulumi.String(`{
      \"FormatVersion\": \"1.0\",
      \"ZoneConfig\": {
        \"SmartRouting\": {
          \"Switch\": \"off\"
        },
        \"Cache\": {
          \"NoCache\": {
            \"Switch\": \"off\"
          },
          \"FollowOrigin\": {
            \"Switch\": \"on\",
            \"DefaultCache\": \"on\",
            \"DefaultCacheStrategy\": \"on\",
            \"DefaultCacheTime\": 0
          },
          \"CustomTime\": {
            \"Switch\": \"off\",
            \"CacheTime\": 2592000
          }
        },
        \"MaxAge\": {
          \"FollowOrigin\": \"on\",
          \"CacheTime\": 600
        },
        \"CacheKey\": {
          \"FullURLCache\": \"on\",
          \"QueryString\": {
            \"Switch\": \"off\",
            \"Action\": \"includeCustom\"
          },
          \"IgnoreCase\": \"off\"
        },
        \"CachePrefresh\": {
          \"Switch\": \"off\",
          \"CacheTimePercent\": 90
        },
        \"OfflineCache\": {
          \"Switch\": \"on\"
        },
        \"Compression\": {
          \"Switch\": \"off\",
          \"Algorithms\": [
            \"brotli\",
            \"gzip\"
          ]
        },
        \"ForceRedirectHTTPS\": {
          \"Switch\": \"off\",
          \"RedirectStatusCode\": 302
        },
        \"HSTS\": {
          \"Switch\": \"off\",
          \"Timeout\": 0,
          \"IncludeSubDomains\": \"off\",
          \"Preload\": \"off\"
        },
        \"TLSConfig\": {
          \"Version\": [
            \"TLSv1\",
            \"TLSv1.1\",
            \"TLSv1.2\",
            \"TLSv1.3\"
          ],
          \"CipherSuite\": \"loose-v2023\"
        },
        \"OCSPStapling\": {
          \"Switch\": \"off\"
        },
        \"HTTP2\": {
          \"Switch\": \"off\"
        },
        \"QUIC\": {
          \"Switch\": \"off\"
        },
        \"UpstreamHTTP2\": {
          \"Switch\": \"off\"
        },
        \"IPv6\": {
          \"Switch\": \"off\"
        },
        \"WebSocket\": {
          \"Switch\": \"off\",
          \"Timeout\": 30
        },
        \"PostMaxSize\": {
          \"Switch\": \"on\",
          \"MaxSize\": 838860800
        },
        \"ClientIPHeader\": {
          \"Switch\": \"off\"
        },
        \"ClientIPCountry\": {
          \"Switch\": \"off\"
        },
        \"gRPC\": {
          \"Switch\": \"off\"
        },
        \"NetworkErrorLogging\": {
          \"Switch\": \"off\"
        },
        \"AccelerateMainland\": {
          \"Switch\": \"off\"
        },
        \"StandardDebug\": {
          \"Switch\": \"off\",
          \"AllowClientIPList\": [
            \"1.14.231.0/24\",
            \"1.194.255.0/24\"
          ],
          \"Expires\": \"2025-09-01T12:45:37Z\"
        }
      },
      \"Rules\": [
        {
          \"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['cdn.defaultsetting.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"Cache\",
                  \"CacheParameters\": {
                    \"CustomTime\": {
                      \"Switch\": \"on\",
                      \"IgnoreCacheControl\": \"off\",
                      \"CacheTime\": 2592000
                    }
                  }
                },
                {
                  \"Name\": \"CacheKey\",
                  \"CacheKeyParameters\": {
                    \"FullURLCache\": \"on\",
                    \"QueryString\": {
                      \"Switch\": \"off\"
                    },
                    \"IgnoreCase\": \"off\"
                  }
                }
              ],
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"NoCache\": {
                              \"Switch\": \"on\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                      \"Actions\": [
                        {
                          \"Name\": \"MaxAge\",
                          \"MaxAgeParameters\": {
                            \"FollowOrigin\": \"off\",
                            \"CacheTime\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"Cache\",
                  \"CacheParameters\": {
                    \"CustomTime\": {
                      \"Switch\": \"on\",
                      \"IgnoreCacheControl\": \"off\",
                      \"CacheTime\": 0
                    }
                  }
                },
                {
                  \"Name\": \"CacheKey\",
                  \"CacheKeyParameters\": {
                    \"FullURLCache\": \"on\",
                    \"QueryString\": {
                      \"Switch\": \"off\"
                    },
                    \"IgnoreCase\": \"off\"
                  }
                }
              ],
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"NoCache\": {
                              \"Switch\": \"on\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                      \"Actions\": [
                        {
                          \"Name\": \"MaxAge\",
                          \"MaxAgeParameters\": {
                            \"FollowOrigin\": \"off\",
                            \"CacheTime\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Skip Pages Authentication Verification\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"ModifyRequestHeader\",
                  \"ModifyRequestHeaderParameters\": {
                    \"HeaderActions\": [
                      {
                        \"Action\": \"add\",
                        \"Name\": \"X-SKIP-TOKEN\",
                        \"Value\": \"eop-1022\"
                      }
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Regional Origin Pull\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['abc.migraine.com.cn']\",
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.ip.country} in ['Asia']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyOrigin\",
                          \"ModifyOriginParameters\": {
                            \"OriginType\": \"IPDomain\",
                            \"Origin\": \"1.2.3.4\",
                            \"OriginProtocol\": \"follow\",
                            \"HTTPOriginPort\": 80,
                            \"HTTPSOriginPort\": 443
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.ip.country} in ['Africa']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyOrigin\",
                          \"ModifyOriginParameters\": {
                            \"OriginType\": \"IPDomain\",
                            \"Origin\": \"3.4.5.6\",
                            \"OriginProtocol\": \"follow\",
                            \"HTTPOriginPort\": 80,
                            \"HTTPSOriginPort\": 443
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
    `),
    			Description: pulumi.String("test version"),
    			GroupId:     pulumi.String("cg-3lchxitnb5pb"),
    			ZoneId:      pulumi.String("zone-2xkazzl8yf6k"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var teoConfigGroupVersion = new Tencentcloud.TeoConfigGroupVersion("teo_config_group_version", new()
        {
            Content = @"{
      \""FormatVersion\"": \""1.0\"",
      \""ZoneConfig\"": {
        \""SmartRouting\"": {
          \""Switch\"": \""off\""
        },
        \""Cache\"": {
          \""NoCache\"": {
            \""Switch\"": \""off\""
          },
          \""FollowOrigin\"": {
            \""Switch\"": \""on\"",
            \""DefaultCache\"": \""on\"",
            \""DefaultCacheStrategy\"": \""on\"",
            \""DefaultCacheTime\"": 0
          },
          \""CustomTime\"": {
            \""Switch\"": \""off\"",
            \""CacheTime\"": 2592000
          }
        },
        \""MaxAge\"": {
          \""FollowOrigin\"": \""on\"",
          \""CacheTime\"": 600
        },
        \""CacheKey\"": {
          \""FullURLCache\"": \""on\"",
          \""QueryString\"": {
            \""Switch\"": \""off\"",
            \""Action\"": \""includeCustom\""
          },
          \""IgnoreCase\"": \""off\""
        },
        \""CachePrefresh\"": {
          \""Switch\"": \""off\"",
          \""CacheTimePercent\"": 90
        },
        \""OfflineCache\"": {
          \""Switch\"": \""on\""
        },
        \""Compression\"": {
          \""Switch\"": \""off\"",
          \""Algorithms\"": [
            \""brotli\"",
            \""gzip\""
          ]
        },
        \""ForceRedirectHTTPS\"": {
          \""Switch\"": \""off\"",
          \""RedirectStatusCode\"": 302
        },
        \""HSTS\"": {
          \""Switch\"": \""off\"",
          \""Timeout\"": 0,
          \""IncludeSubDomains\"": \""off\"",
          \""Preload\"": \""off\""
        },
        \""TLSConfig\"": {
          \""Version\"": [
            \""TLSv1\"",
            \""TLSv1.1\"",
            \""TLSv1.2\"",
            \""TLSv1.3\""
          ],
          \""CipherSuite\"": \""loose-v2023\""
        },
        \""OCSPStapling\"": {
          \""Switch\"": \""off\""
        },
        \""HTTP2\"": {
          \""Switch\"": \""off\""
        },
        \""QUIC\"": {
          \""Switch\"": \""off\""
        },
        \""UpstreamHTTP2\"": {
          \""Switch\"": \""off\""
        },
        \""IPv6\"": {
          \""Switch\"": \""off\""
        },
        \""WebSocket\"": {
          \""Switch\"": \""off\"",
          \""Timeout\"": 30
        },
        \""PostMaxSize\"": {
          \""Switch\"": \""on\"",
          \""MaxSize\"": 838860800
        },
        \""ClientIPHeader\"": {
          \""Switch\"": \""off\""
        },
        \""ClientIPCountry\"": {
          \""Switch\"": \""off\""
        },
        \""gRPC\"": {
          \""Switch\"": \""off\""
        },
        \""NetworkErrorLogging\"": {
          \""Switch\"": \""off\""
        },
        \""AccelerateMainland\"": {
          \""Switch\"": \""off\""
        },
        \""StandardDebug\"": {
          \""Switch\"": \""off\"",
          \""AllowClientIPList\"": [
            \""1.14.231.0/24\"",
            \""1.194.255.0/24\""
          ],
          \""Expires\"": \""2025-09-01T12:45:37Z\""
        }
      },
      \""Rules\"": [
        {
          \""RuleName\"": \""Web Acceleration - cdn.defaultsetting.cn\"",
          \""Branches\"": [
            {
              \""Condition\"": \""${http.request.host} in ['cdn.defaultsetting.cn']\"",
              \""Actions\"": [
                {
                  \""Name\"": \""Cache\"",
                  \""CacheParameters\"": {
                    \""CustomTime\"": {
                      \""Switch\"": \""on\"",
                      \""IgnoreCacheControl\"": \""off\"",
                      \""CacheTime\"": 2592000
                    }
                  }
                },
                {
                  \""Name\"": \""CacheKey\"",
                  \""CacheKeyParameters\"": {
                    \""FullURLCache\"": \""on\"",
                    \""QueryString\"": {
                      \""Switch\"": \""off\""
                    },
                    \""IgnoreCase\"": \""off\""
                  }
                }
              ],
              \""SubRules\"": [
                {
                  \""Branches\"": [
                    {
                      \""Condition\"": \""lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\"",
                      \""Actions\"": [
                        {
                          \""Name\"": \""Cache\"",
                          \""CacheParameters\"": {
                            \""NoCache\"": {
                              \""Switch\"": \""on\""
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \""Branches\"": [
                    {
                      \""Condition\"": \""${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\"",
                      \""Actions\"": [
                        {
                          \""Name\"": \""MaxAge\"",
                          \""MaxAgeParameters\"": {
                            \""FollowOrigin\"": \""off\"",
                            \""CacheTime\"": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \""RuleName\"": \""Web Acceleration - pages.migraine.com.cn\"",
          \""Branches\"": [
            {
              \""Condition\"": \""${http.request.host} in ['pages.migraine.com.cn']\"",
              \""Actions\"": [
                {
                  \""Name\"": \""Cache\"",
                  \""CacheParameters\"": {
                    \""CustomTime\"": {
                      \""Switch\"": \""on\"",
                      \""IgnoreCacheControl\"": \""off\"",
                      \""CacheTime\"": 0
                    }
                  }
                },
                {
                  \""Name\"": \""CacheKey\"",
                  \""CacheKeyParameters\"": {
                    \""FullURLCache\"": \""on\"",
                    \""QueryString\"": {
                      \""Switch\"": \""off\""
                    },
                    \""IgnoreCase\"": \""off\""
                  }
                }
              ],
              \""SubRules\"": [
                {
                  \""Branches\"": [
                    {
                      \""Condition\"": \""lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\"",
                      \""Actions\"": [
                        {
                          \""Name\"": \""Cache\"",
                          \""CacheParameters\"": {
                            \""NoCache\"": {
                              \""Switch\"": \""on\""
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \""Branches\"": [
                    {
                      \""Condition\"": \""${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\"",
                      \""Actions\"": [
                        {
                          \""Name\"": \""MaxAge\"",
                          \""MaxAgeParameters\"": {
                            \""FollowOrigin\"": \""off\"",
                            \""CacheTime\"": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \""RuleName\"": \""Skip Pages Authentication Verification\"",
          \""Branches\"": [
            {
              \""Condition\"": \""${http.request.host} in ['pages.migraine.com.cn']\"",
              \""Actions\"": [
                {
                  \""Name\"": \""ModifyRequestHeader\"",
                  \""ModifyRequestHeaderParameters\"": {
                    \""HeaderActions\"": [
                      {
                        \""Action\"": \""add\"",
                        \""Name\"": \""X-SKIP-TOKEN\"",
                        \""Value\"": \""eop-1022\""
                      }
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          \""RuleName\"": \""Regional Origin Pull\"",
          \""Branches\"": [
            {
              \""Condition\"": \""${http.request.host} in ['abc.migraine.com.cn']\"",
              \""SubRules\"": [
                {
                  \""Branches\"": [
                    {
                      \""Condition\"": \""${http.request.ip.country} in ['Asia']\"",
                      \""Actions\"": [
                        {
                          \""Name\"": \""ModifyOrigin\"",
                          \""ModifyOriginParameters\"": {
                            \""OriginType\"": \""IPDomain\"",
                            \""Origin\"": \""1.2.3.4\"",
                            \""OriginProtocol\"": \""follow\"",
                            \""HTTPOriginPort\"": 80,
                            \""HTTPSOriginPort\"": 443
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \""Branches\"": [
                    {
                      \""Condition\"": \""${http.request.ip.country} in ['Africa']\"",
                      \""Actions\"": [
                        {
                          \""Name\"": \""ModifyOrigin\"",
                          \""ModifyOriginParameters\"": {
                            \""OriginType\"": \""IPDomain\"",
                            \""Origin\"": \""3.4.5.6\"",
                            \""OriginProtocol\"": \""follow\"",
                            \""HTTPOriginPort\"": 80,
                            \""HTTPSOriginPort\"": 443
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
    ",
            Description = "test version",
            GroupId = "cg-3lchxitnb5pb",
            ZoneId = "zone-2xkazzl8yf6k",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoConfigGroupVersion;
    import com.pulumi.tencentcloud.TeoConfigGroupVersionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var teoConfigGroupVersion = new TeoConfigGroupVersion("teoConfigGroupVersion", TeoConfigGroupVersionArgs.builder()
                .content("""
    {
      \"FormatVersion\": \"1.0\",
      \"ZoneConfig\": {
        \"SmartRouting\": {
          \"Switch\": \"off\"
        },
        \"Cache\": {
          \"NoCache\": {
            \"Switch\": \"off\"
          },
          \"FollowOrigin\": {
            \"Switch\": \"on\",
            \"DefaultCache\": \"on\",
            \"DefaultCacheStrategy\": \"on\",
            \"DefaultCacheTime\": 0
          },
          \"CustomTime\": {
            \"Switch\": \"off\",
            \"CacheTime\": 2592000
          }
        },
        \"MaxAge\": {
          \"FollowOrigin\": \"on\",
          \"CacheTime\": 600
        },
        \"CacheKey\": {
          \"FullURLCache\": \"on\",
          \"QueryString\": {
            \"Switch\": \"off\",
            \"Action\": \"includeCustom\"
          },
          \"IgnoreCase\": \"off\"
        },
        \"CachePrefresh\": {
          \"Switch\": \"off\",
          \"CacheTimePercent\": 90
        },
        \"OfflineCache\": {
          \"Switch\": \"on\"
        },
        \"Compression\": {
          \"Switch\": \"off\",
          \"Algorithms\": [
            \"brotli\",
            \"gzip\"
          ]
        },
        \"ForceRedirectHTTPS\": {
          \"Switch\": \"off\",
          \"RedirectStatusCode\": 302
        },
        \"HSTS\": {
          \"Switch\": \"off\",
          \"Timeout\": 0,
          \"IncludeSubDomains\": \"off\",
          \"Preload\": \"off\"
        },
        \"TLSConfig\": {
          \"Version\": [
            \"TLSv1\",
            \"TLSv1.1\",
            \"TLSv1.2\",
            \"TLSv1.3\"
          ],
          \"CipherSuite\": \"loose-v2023\"
        },
        \"OCSPStapling\": {
          \"Switch\": \"off\"
        },
        \"HTTP2\": {
          \"Switch\": \"off\"
        },
        \"QUIC\": {
          \"Switch\": \"off\"
        },
        \"UpstreamHTTP2\": {
          \"Switch\": \"off\"
        },
        \"IPv6\": {
          \"Switch\": \"off\"
        },
        \"WebSocket\": {
          \"Switch\": \"off\",
          \"Timeout\": 30
        },
        \"PostMaxSize\": {
          \"Switch\": \"on\",
          \"MaxSize\": 838860800
        },
        \"ClientIPHeader\": {
          \"Switch\": \"off\"
        },
        \"ClientIPCountry\": {
          \"Switch\": \"off\"
        },
        \"gRPC\": {
          \"Switch\": \"off\"
        },
        \"NetworkErrorLogging\": {
          \"Switch\": \"off\"
        },
        \"AccelerateMainland\": {
          \"Switch\": \"off\"
        },
        \"StandardDebug\": {
          \"Switch\": \"off\",
          \"AllowClientIPList\": [
            \"1.14.231.0/24\",
            \"1.194.255.0/24\"
          ],
          \"Expires\": \"2025-09-01T12:45:37Z\"
        }
      },
      \"Rules\": [
        {
          \"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['cdn.defaultsetting.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"Cache\",
                  \"CacheParameters\": {
                    \"CustomTime\": {
                      \"Switch\": \"on\",
                      \"IgnoreCacheControl\": \"off\",
                      \"CacheTime\": 2592000
                    }
                  }
                },
                {
                  \"Name\": \"CacheKey\",
                  \"CacheKeyParameters\": {
                    \"FullURLCache\": \"on\",
                    \"QueryString\": {
                      \"Switch\": \"off\"
                    },
                    \"IgnoreCase\": \"off\"
                  }
                }
              ],
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"NoCache\": {
                              \"Switch\": \"on\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                      \"Actions\": [
                        {
                          \"Name\": \"MaxAge\",
                          \"MaxAgeParameters\": {
                            \"FollowOrigin\": \"off\",
                            \"CacheTime\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"Cache\",
                  \"CacheParameters\": {
                    \"CustomTime\": {
                      \"Switch\": \"on\",
                      \"IgnoreCacheControl\": \"off\",
                      \"CacheTime\": 0
                    }
                  }
                },
                {
                  \"Name\": \"CacheKey\",
                  \"CacheKeyParameters\": {
                    \"FullURLCache\": \"on\",
                    \"QueryString\": {
                      \"Switch\": \"off\"
                    },
                    \"IgnoreCase\": \"off\"
                  }
                }
              ],
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"NoCache\": {
                              \"Switch\": \"on\"
                            }
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                      \"Actions\": [
                        {
                          \"Name\": \"MaxAge\",
                          \"MaxAgeParameters\": {
                            \"FollowOrigin\": \"off\",
                            \"CacheTime\": 3600
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Skip Pages Authentication Verification\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
              \"Actions\": [
                {
                  \"Name\": \"ModifyRequestHeader\",
                  \"ModifyRequestHeaderParameters\": {
                    \"HeaderActions\": [
                      {
                        \"Action\": \"add\",
                        \"Name\": \"X-SKIP-TOKEN\",
                        \"Value\": \"eop-1022\"
                      }
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          \"RuleName\": \"Regional Origin Pull\",
          \"Branches\": [
            {
              \"Condition\": \"${http.request.host} in ['abc.migraine.com.cn']\",
              \"SubRules\": [
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.ip.country} in ['Asia']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyOrigin\",
                          \"ModifyOriginParameters\": {
                            \"OriginType\": \"IPDomain\",
                            \"Origin\": \"1.2.3.4\",
                            \"OriginProtocol\": \"follow\",
                            \"HTTPOriginPort\": 80,
                            \"HTTPSOriginPort\": 443
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"Branches\": [
                    {
                      \"Condition\": \"${http.request.ip.country} in ['Africa']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyOrigin\",
                          \"ModifyOriginParameters\": {
                            \"OriginType\": \"IPDomain\",
                            \"Origin\": \"3.4.5.6\",
                            \"OriginProtocol\": \"follow\",
                            \"HTTPOriginPort\": 80,
                            \"HTTPSOriginPort\": 443
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
                """)
                .description("test version")
                .groupId("cg-3lchxitnb5pb")
                .zoneId("zone-2xkazzl8yf6k")
                .build());
    
        }
    }
    
    resources:
      teoConfigGroupVersion:
        type: tencentcloud:TeoConfigGroupVersion
        name: teo_config_group_version
        properties:
          content: |
            {
              \"FormatVersion\": \"1.0\",
              \"ZoneConfig\": {
                \"SmartRouting\": {
                  \"Switch\": \"off\"
                },
                \"Cache\": {
                  \"NoCache\": {
                    \"Switch\": \"off\"
                  },
                  \"FollowOrigin\": {
                    \"Switch\": \"on\",
                    \"DefaultCache\": \"on\",
                    \"DefaultCacheStrategy\": \"on\",
                    \"DefaultCacheTime\": 0
                  },
                  \"CustomTime\": {
                    \"Switch\": \"off\",
                    \"CacheTime\": 2592000
                  }
                },
                \"MaxAge\": {
                  \"FollowOrigin\": \"on\",
                  \"CacheTime\": 600
                },
                \"CacheKey\": {
                  \"FullURLCache\": \"on\",
                  \"QueryString\": {
                    \"Switch\": \"off\",
                    \"Action\": \"includeCustom\"
                  },
                  \"IgnoreCase\": \"off\"
                },
                \"CachePrefresh\": {
                  \"Switch\": \"off\",
                  \"CacheTimePercent\": 90
                },
                \"OfflineCache\": {
                  \"Switch\": \"on\"
                },
                \"Compression\": {
                  \"Switch\": \"off\",
                  \"Algorithms\": [
                    \"brotli\",
                    \"gzip\"
                  ]
                },
                \"ForceRedirectHTTPS\": {
                  \"Switch\": \"off\",
                  \"RedirectStatusCode\": 302
                },
                \"HSTS\": {
                  \"Switch\": \"off\",
                  \"Timeout\": 0,
                  \"IncludeSubDomains\": \"off\",
                  \"Preload\": \"off\"
                },
                \"TLSConfig\": {
                  \"Version\": [
                    \"TLSv1\",
                    \"TLSv1.1\",
                    \"TLSv1.2\",
                    \"TLSv1.3\"
                  ],
                  \"CipherSuite\": \"loose-v2023\"
                },
                \"OCSPStapling\": {
                  \"Switch\": \"off\"
                },
                \"HTTP2\": {
                  \"Switch\": \"off\"
                },
                \"QUIC\": {
                  \"Switch\": \"off\"
                },
                \"UpstreamHTTP2\": {
                  \"Switch\": \"off\"
                },
                \"IPv6\": {
                  \"Switch\": \"off\"
                },
                \"WebSocket\": {
                  \"Switch\": \"off\",
                  \"Timeout\": 30
                },
                \"PostMaxSize\": {
                  \"Switch\": \"on\",
                  \"MaxSize\": 838860800
                },
                \"ClientIPHeader\": {
                  \"Switch\": \"off\"
                },
                \"ClientIPCountry\": {
                  \"Switch\": \"off\"
                },
                \"gRPC\": {
                  \"Switch\": \"off\"
                },
                \"NetworkErrorLogging\": {
                  \"Switch\": \"off\"
                },
                \"AccelerateMainland\": {
                  \"Switch\": \"off\"
                },
                \"StandardDebug\": {
                  \"Switch\": \"off\",
                  \"AllowClientIPList\": [
                    \"1.14.231.0/24\",
                    \"1.194.255.0/24\"
                  ],
                  \"Expires\": \"2025-09-01T12:45:37Z\"
                }
              },
              \"Rules\": [
                {
                  \"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
                  \"Branches\": [
                    {
                      \"Condition\": \"$${http.request.host} in ['cdn.defaultsetting.cn']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"CustomTime\": {
                              \"Switch\": \"on\",
                              \"IgnoreCacheControl\": \"off\",
                              \"CacheTime\": 2592000
                            }
                          }
                        },
                        {
                          \"Name\": \"CacheKey\",
                          \"CacheKeyParameters\": {
                            \"FullURLCache\": \"on\",
                            \"QueryString\": {
                              \"Switch\": \"off\"
                            },
                            \"IgnoreCase\": \"off\"
                          }
                        }
                      ],
                      \"SubRules\": [
                        {
                          \"Branches\": [
                            {
                              \"Condition\": \"lower($${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                              \"Actions\": [
                                {
                                  \"Name\": \"Cache\",
                                  \"CacheParameters\": {
                                    \"NoCache\": {
                                      \"Switch\": \"on\"
                                    }
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          \"Branches\": [
                            {
                              \"Condition\": \"$${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                              \"Actions\": [
                                {
                                  \"Name\": \"MaxAge\",
                                  \"MaxAgeParameters\": {
                                    \"FollowOrigin\": \"off\",
                                    \"CacheTime\": 3600
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  \"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
                  \"Branches\": [
                    {
                      \"Condition\": \"$${http.request.host} in ['pages.migraine.com.cn']\",
                      \"Actions\": [
                        {
                          \"Name\": \"Cache\",
                          \"CacheParameters\": {
                            \"CustomTime\": {
                              \"Switch\": \"on\",
                              \"IgnoreCacheControl\": \"off\",
                              \"CacheTime\": 0
                            }
                          }
                        },
                        {
                          \"Name\": \"CacheKey\",
                          \"CacheKeyParameters\": {
                            \"FullURLCache\": \"on\",
                            \"QueryString\": {
                              \"Switch\": \"off\"
                            },
                            \"IgnoreCase\": \"off\"
                          }
                        }
                      ],
                      \"SubRules\": [
                        {
                          \"Branches\": [
                            {
                              \"Condition\": \"lower($${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
                              \"Actions\": [
                                {
                                  \"Name\": \"Cache\",
                                  \"CacheParameters\": {
                                    \"NoCache\": {
                                      \"Switch\": \"on\"
                                    }
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          \"Branches\": [
                            {
                              \"Condition\": \"$${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
                              \"Actions\": [
                                {
                                  \"Name\": \"MaxAge\",
                                  \"MaxAgeParameters\": {
                                    \"FollowOrigin\": \"off\",
                                    \"CacheTime\": 3600
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  \"RuleName\": \"Skip Pages Authentication Verification\",
                  \"Branches\": [
                    {
                      \"Condition\": \"$${http.request.host} in ['pages.migraine.com.cn']\",
                      \"Actions\": [
                        {
                          \"Name\": \"ModifyRequestHeader\",
                          \"ModifyRequestHeaderParameters\": {
                            \"HeaderActions\": [
                              {
                                \"Action\": \"add\",
                                \"Name\": \"X-SKIP-TOKEN\",
                                \"Value\": \"eop-1022\"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  \"RuleName\": \"Regional Origin Pull\",
                  \"Branches\": [
                    {
                      \"Condition\": \"$${http.request.host} in ['abc.migraine.com.cn']\",
                      \"SubRules\": [
                        {
                          \"Branches\": [
                            {
                              \"Condition\": \"$${http.request.ip.country} in ['Asia']\",
                              \"Actions\": [
                                {
                                  \"Name\": \"ModifyOrigin\",
                                  \"ModifyOriginParameters\": {
                                    \"OriginType\": \"IPDomain\",
                                    \"Origin\": \"1.2.3.4\",
                                    \"OriginProtocol\": \"follow\",
                                    \"HTTPOriginPort\": 80,
                                    \"HTTPSOriginPort\": 443
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          \"Branches\": [
                            {
                              \"Condition\": \"$${http.request.ip.country} in ['Africa']\",
                              \"Actions\": [
                                {
                                  \"Name\": \"ModifyOrigin\",
                                  \"ModifyOriginParameters\": {
                                    \"OriginType\": \"IPDomain\",
                                    \"Origin\": \"3.4.5.6\",
                                    \"OriginProtocol\": \"follow\",
                                    \"HTTPOriginPort\": 80,
                                    \"HTTPSOriginPort\": 443
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          description: test version
          groupId: cg-3lchxitnb5pb
          zoneId: zone-2xkazzl8yf6k
    

    Create TeoConfigGroupVersion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeoConfigGroupVersion(name: string, args: TeoConfigGroupVersionArgs, opts?: CustomResourceOptions);
    @overload
    def TeoConfigGroupVersion(resource_name: str,
                              args: TeoConfigGroupVersionArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoConfigGroupVersion(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              content: Optional[str] = None,
                              group_id: Optional[str] = None,
                              zone_id: Optional[str] = None,
                              description: Optional[str] = None,
                              teo_config_group_version_id: Optional[str] = None)
    func NewTeoConfigGroupVersion(ctx *Context, name string, args TeoConfigGroupVersionArgs, opts ...ResourceOption) (*TeoConfigGroupVersion, error)
    public TeoConfigGroupVersion(string name, TeoConfigGroupVersionArgs args, CustomResourceOptions? opts = null)
    public TeoConfigGroupVersion(String name, TeoConfigGroupVersionArgs args)
    public TeoConfigGroupVersion(String name, TeoConfigGroupVersionArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoConfigGroupVersion
    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 TeoConfigGroupVersionArgs
    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 TeoConfigGroupVersionArgs
    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 TeoConfigGroupVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoConfigGroupVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoConfigGroupVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoConfigGroupVersion 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 TeoConfigGroupVersion resource accepts the following input properties:

    Content string
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    GroupId string
    GroupId of the version to be created.
    ZoneId string
    Zone ID.
    Description string
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    TeoConfigGroupVersionId string
    ID of the resource.
    Content string
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    GroupId string
    GroupId of the version to be created.
    ZoneId string
    Zone ID.
    Description string
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    TeoConfigGroupVersionId string
    ID of the resource.
    content String
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    groupId String
    GroupId of the version to be created.
    zoneId String
    Zone ID.
    description String
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    teoConfigGroupVersionId String
    ID of the resource.
    content string
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    groupId string
    GroupId of the version to be created.
    zoneId string
    Zone ID.
    description string
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    teoConfigGroupVersionId string
    ID of the resource.
    content str
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    group_id str
    GroupId of the version to be created.
    zone_id str
    Zone ID.
    description str
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    teo_config_group_version_id str
    ID of the resource.
    content String
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    groupId String
    GroupId of the version to be created.
    zoneId String
    Zone ID.
    description String
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    teoConfigGroupVersionId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoConfigGroupVersion resource produces the following output properties:

    CreateTime string
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    GroupType string
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    VersionId string
    Version ID.
    VersionNumber string
    Version number.
    CreateTime string
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    GroupType string
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    VersionId string
    Version ID.
    VersionNumber string
    Version number.
    createTime String
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    groupType String
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    versionId String
    Version ID.
    versionNumber String
    Version number.
    createTime string
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    groupType string
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    versionId string
    Version ID.
    versionNumber string
    Version number.
    create_time str
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    group_type str
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    version_id str
    Version ID.
    version_number str
    Version number.
    createTime String
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    groupType String
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    versionId String
    Version ID.
    versionNumber String
    Version number.

    Look up Existing TeoConfigGroupVersion Resource

    Get an existing TeoConfigGroupVersion 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?: TeoConfigGroupVersionState, opts?: CustomResourceOptions): TeoConfigGroupVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            group_id: Optional[str] = None,
            group_type: Optional[str] = None,
            status: Optional[str] = None,
            teo_config_group_version_id: Optional[str] = None,
            version_id: Optional[str] = None,
            version_number: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoConfigGroupVersion
    func GetTeoConfigGroupVersion(ctx *Context, name string, id IDInput, state *TeoConfigGroupVersionState, opts ...ResourceOption) (*TeoConfigGroupVersion, error)
    public static TeoConfigGroupVersion Get(string name, Input<string> id, TeoConfigGroupVersionState? state, CustomResourceOptions? opts = null)
    public static TeoConfigGroupVersion get(String name, Output<String> id, TeoConfigGroupVersionState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoConfigGroupVersion    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:
    Content string
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    CreateTime string
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    Description string
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    GroupId string
    GroupId of the version to be created.
    GroupType string
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    Status string
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    TeoConfigGroupVersionId string
    ID of the resource.
    VersionId string
    Version ID.
    VersionNumber string
    Version number.
    ZoneId string
    Zone ID.
    Content string
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    CreateTime string
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    Description string
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    GroupId string
    GroupId of the version to be created.
    GroupType string
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    Status string
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    TeoConfigGroupVersionId string
    ID of the resource.
    VersionId string
    Version ID.
    VersionNumber string
    Version number.
    ZoneId string
    Zone ID.
    content String
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    createTime String
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    description String
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    groupId String
    GroupId of the version to be created.
    groupType String
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    status String
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    teoConfigGroupVersionId String
    ID of the resource.
    versionId String
    Version ID.
    versionNumber String
    Version number.
    zoneId String
    Zone ID.
    content string
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    createTime string
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    description string
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    groupId string
    GroupId of the version to be created.
    groupType string
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    status string
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    teoConfigGroupVersionId string
    ID of the resource.
    versionId string
    Version ID.
    versionNumber string
    Version number.
    zoneId string
    Zone ID.
    content str
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    create_time str
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    description str
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    group_id str
    GroupId of the version to be created.
    group_type str
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    status str
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    teo_config_group_version_id str
    ID of the resource.
    version_id str
    Version ID.
    version_number str
    Version number.
    zone_id str
    Zone ID.
    content String
    Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
    createTime String
    Version creation time. The time follows the ISO 8601 standard in the date and time format.
    description String
    Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
    groupId String
    GroupId of the version to be created.
    groupType String
    Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
    status String
    Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
    teoConfigGroupVersionId String
    ID of the resource.
    versionId String
    Version ID.
    versionNumber String
    Version number.
    zoneId String
    Zone ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    Viewing docs for tencentcloud 1.82.79
    published on Friday, Mar 27, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.