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

tencentcloud.CiMediaPicProcessTemplate

Explore with Pulumi AI

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

    Provides a resource to create a ci media_pic_process_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mediaPicProcessTemplate = new tencentcloud.CiMediaPicProcessTemplate("mediaPicProcessTemplate", {
        bucket: "terraform-ci-xxxxxx",
        picProcess: {
            isPicInfo: "true",
            processRule: "imageMogr2/rotate/90",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    media_pic_process_template = tencentcloud.CiMediaPicProcessTemplate("mediaPicProcessTemplate",
        bucket="terraform-ci-xxxxxx",
        pic_process={
            "is_pic_info": "true",
            "process_rule": "imageMogr2/rotate/90",
        })
    
    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.NewCiMediaPicProcessTemplate(ctx, "mediaPicProcessTemplate", &tencentcloud.CiMediaPicProcessTemplateArgs{
    			Bucket: pulumi.String("terraform-ci-xxxxxx"),
    			PicProcess: &tencentcloud.CiMediaPicProcessTemplatePicProcessArgs{
    				IsPicInfo:   pulumi.String("true"),
    				ProcessRule: pulumi.String("imageMogr2/rotate/90"),
    			},
    		})
    		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 mediaPicProcessTemplate = new Tencentcloud.CiMediaPicProcessTemplate("mediaPicProcessTemplate", new()
        {
            Bucket = "terraform-ci-xxxxxx",
            PicProcess = new Tencentcloud.Inputs.CiMediaPicProcessTemplatePicProcessArgs
            {
                IsPicInfo = "true",
                ProcessRule = "imageMogr2/rotate/90",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CiMediaPicProcessTemplate;
    import com.pulumi.tencentcloud.CiMediaPicProcessTemplateArgs;
    import com.pulumi.tencentcloud.inputs.CiMediaPicProcessTemplatePicProcessArgs;
    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 mediaPicProcessTemplate = new CiMediaPicProcessTemplate("mediaPicProcessTemplate", CiMediaPicProcessTemplateArgs.builder()
                .bucket("terraform-ci-xxxxxx")
                .picProcess(CiMediaPicProcessTemplatePicProcessArgs.builder()
                    .isPicInfo("true")
                    .processRule("imageMogr2/rotate/90")
                    .build())
                .build());
    
        }
    }
    
    resources:
      mediaPicProcessTemplate:
        type: tencentcloud:CiMediaPicProcessTemplate
        properties:
          bucket: terraform-ci-xxxxxx
          picProcess:
            isPicInfo: 'true'
            processRule: imageMogr2/rotate/90
    

    Create CiMediaPicProcessTemplate Resource

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

    Constructor syntax

    new CiMediaPicProcessTemplate(name: string, args: CiMediaPicProcessTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CiMediaPicProcessTemplate(resource_name: str,
                                  args: CiMediaPicProcessTemplateArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CiMediaPicProcessTemplate(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  bucket: Optional[str] = None,
                                  ci_media_pic_process_template_id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  pic_process: Optional[CiMediaPicProcessTemplatePicProcessArgs] = None)
    func NewCiMediaPicProcessTemplate(ctx *Context, name string, args CiMediaPicProcessTemplateArgs, opts ...ResourceOption) (*CiMediaPicProcessTemplate, error)
    public CiMediaPicProcessTemplate(string name, CiMediaPicProcessTemplateArgs args, CustomResourceOptions? opts = null)
    public CiMediaPicProcessTemplate(String name, CiMediaPicProcessTemplateArgs args)
    public CiMediaPicProcessTemplate(String name, CiMediaPicProcessTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CiMediaPicProcessTemplate
    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 CiMediaPicProcessTemplateArgs
    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 CiMediaPicProcessTemplateArgs
    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 CiMediaPicProcessTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CiMediaPicProcessTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CiMediaPicProcessTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Bucket string
    bucket name.
    CiMediaPicProcessTemplateId string
    ID of the resource.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    PicProcess CiMediaPicProcessTemplatePicProcess
    container format.
    Bucket string
    bucket name.
    CiMediaPicProcessTemplateId string
    ID of the resource.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    PicProcess CiMediaPicProcessTemplatePicProcessArgs
    container format.
    bucket String
    bucket name.
    ciMediaPicProcessTemplateId String
    ID of the resource.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    picProcess CiMediaPicProcessTemplatePicProcess
    container format.
    bucket string
    bucket name.
    ciMediaPicProcessTemplateId string
    ID of the resource.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    picProcess CiMediaPicProcessTemplatePicProcess
    container format.
    bucket str
    bucket name.
    ci_media_pic_process_template_id str
    ID of the resource.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    pic_process CiMediaPicProcessTemplatePicProcessArgs
    container format.
    bucket String
    bucket name.
    ciMediaPicProcessTemplateId String
    ID of the resource.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    picProcess Property Map
    container format.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CiMediaPicProcessTemplate 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 CiMediaPicProcessTemplate Resource

    Get an existing CiMediaPicProcessTemplate 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?: CiMediaPicProcessTemplateState, opts?: CustomResourceOptions): CiMediaPicProcessTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            ci_media_pic_process_template_id: Optional[str] = None,
            name: Optional[str] = None,
            pic_process: Optional[CiMediaPicProcessTemplatePicProcessArgs] = None) -> CiMediaPicProcessTemplate
    func GetCiMediaPicProcessTemplate(ctx *Context, name string, id IDInput, state *CiMediaPicProcessTemplateState, opts ...ResourceOption) (*CiMediaPicProcessTemplate, error)
    public static CiMediaPicProcessTemplate Get(string name, Input<string> id, CiMediaPicProcessTemplateState? state, CustomResourceOptions? opts = null)
    public static CiMediaPicProcessTemplate get(String name, Output<String> id, CiMediaPicProcessTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CiMediaPicProcessTemplate    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:
    Bucket string
    bucket name.
    CiMediaPicProcessTemplateId string
    ID of the resource.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    PicProcess CiMediaPicProcessTemplatePicProcess
    container format.
    Bucket string
    bucket name.
    CiMediaPicProcessTemplateId string
    ID of the resource.
    Name string
    The template name only supports Chinese, English, numbers, _, - and *.
    PicProcess CiMediaPicProcessTemplatePicProcessArgs
    container format.
    bucket String
    bucket name.
    ciMediaPicProcessTemplateId String
    ID of the resource.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    picProcess CiMediaPicProcessTemplatePicProcess
    container format.
    bucket string
    bucket name.
    ciMediaPicProcessTemplateId string
    ID of the resource.
    name string
    The template name only supports Chinese, English, numbers, _, - and *.
    picProcess CiMediaPicProcessTemplatePicProcess
    container format.
    bucket str
    bucket name.
    ci_media_pic_process_template_id str
    ID of the resource.
    name str
    The template name only supports Chinese, English, numbers, _, - and *.
    pic_process CiMediaPicProcessTemplatePicProcessArgs
    container format.
    bucket String
    bucket name.
    ciMediaPicProcessTemplateId String
    ID of the resource.
    name String
    The template name only supports Chinese, English, numbers, _, - and *.
    picProcess Property Map
    container format.

    Supporting Types

    CiMediaPicProcessTemplatePicProcess, CiMediaPicProcessTemplatePicProcessArgs

    ProcessRule string
    Image processing rules, 1: basic image processing, please refer to the basic image processing document, 2: image compression, please refer to the image compression document, 3: blind watermark, please refer to the blind watermark document.
    IsPicInfo string
    Whether to return the original image information.
    ProcessRule string
    Image processing rules, 1: basic image processing, please refer to the basic image processing document, 2: image compression, please refer to the image compression document, 3: blind watermark, please refer to the blind watermark document.
    IsPicInfo string
    Whether to return the original image information.
    processRule String
    Image processing rules, 1: basic image processing, please refer to the basic image processing document, 2: image compression, please refer to the image compression document, 3: blind watermark, please refer to the blind watermark document.
    isPicInfo String
    Whether to return the original image information.
    processRule string
    Image processing rules, 1: basic image processing, please refer to the basic image processing document, 2: image compression, please refer to the image compression document, 3: blind watermark, please refer to the blind watermark document.
    isPicInfo string
    Whether to return the original image information.
    process_rule str
    Image processing rules, 1: basic image processing, please refer to the basic image processing document, 2: image compression, please refer to the image compression document, 3: blind watermark, please refer to the blind watermark document.
    is_pic_info str
    Whether to return the original image information.
    processRule String
    Image processing rules, 1: basic image processing, please refer to the basic image processing document, 2: image compression, please refer to the image compression document, 3: blind watermark, please refer to the blind watermark document.
    isPicInfo String
    Whether to return the original image information.

    Import

    ci media_pic_process_template can be imported using the bucket#templateId, e.g.

    $ pulumi import tencentcloud:index/ciMediaPicProcessTemplate:CiMediaPicProcessTemplate media_pic_process_template terraform-ci-xxxxx#t184a8a26da4674c80bf260c1e34131a65
    

    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