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

tencentcloud.CssWatermark

Explore with Pulumi AI

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

    Provides a resource to create a css watermark

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const watermark = new tencentcloud.CssWatermark("watermark", {
        height: 0,
        pictureUrl: "picture_url",
        watermarkName: "watermark_name",
        width: 0,
        xPosition: 0,
        yPosition: 0,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    watermark = tencentcloud.CssWatermark("watermark",
        height=0,
        picture_url="picture_url",
        watermark_name="watermark_name",
        width=0,
        x_position=0,
        y_position=0)
    
    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.NewCssWatermark(ctx, "watermark", &tencentcloud.CssWatermarkArgs{
    			Height:        pulumi.Float64(0),
    			PictureUrl:    pulumi.String("picture_url"),
    			WatermarkName: pulumi.String("watermark_name"),
    			Width:         pulumi.Float64(0),
    			XPosition:     pulumi.Float64(0),
    			YPosition:     pulumi.Float64(0),
    		})
    		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 watermark = new Tencentcloud.CssWatermark("watermark", new()
        {
            Height = 0,
            PictureUrl = "picture_url",
            WatermarkName = "watermark_name",
            Width = 0,
            XPosition = 0,
            YPosition = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CssWatermark;
    import com.pulumi.tencentcloud.CssWatermarkArgs;
    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 watermark = new CssWatermark("watermark", CssWatermarkArgs.builder()
                .height(0)
                .pictureUrl("picture_url")
                .watermarkName("watermark_name")
                .width(0)
                .xPosition(0)
                .yPosition(0)
                .build());
    
        }
    }
    
    resources:
      watermark:
        type: tencentcloud:CssWatermark
        properties:
          height: 0
          pictureUrl: picture_url
          watermarkName: watermark_name
          width: 0
          xPosition: 0
          yPosition: 0
    

    Create CssWatermark Resource

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

    Constructor syntax

    new CssWatermark(name: string, args: CssWatermarkArgs, opts?: CustomResourceOptions);
    @overload
    def CssWatermark(resource_name: str,
                     args: CssWatermarkArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def CssWatermark(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     picture_url: Optional[str] = None,
                     watermark_name: Optional[str] = None,
                     css_watermark_id: Optional[str] = None,
                     height: Optional[float] = None,
                     width: Optional[float] = None,
                     x_position: Optional[float] = None,
                     y_position: Optional[float] = None)
    func NewCssWatermark(ctx *Context, name string, args CssWatermarkArgs, opts ...ResourceOption) (*CssWatermark, error)
    public CssWatermark(string name, CssWatermarkArgs args, CustomResourceOptions? opts = null)
    public CssWatermark(String name, CssWatermarkArgs args)
    public CssWatermark(String name, CssWatermarkArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CssWatermark
    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 CssWatermarkArgs
    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 CssWatermarkArgs
    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 CssWatermarkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CssWatermarkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CssWatermarkArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    PictureUrl string
    watermark url.
    WatermarkName string
    watermark name.
    CssWatermarkId string
    ID of the resource.
    Height double
    height of the picture.
    Width double
    width of the picture.
    XPosition double
    x position of the picture.
    YPosition double
    y position of the picture.
    PictureUrl string
    watermark url.
    WatermarkName string
    watermark name.
    CssWatermarkId string
    ID of the resource.
    Height float64
    height of the picture.
    Width float64
    width of the picture.
    XPosition float64
    x position of the picture.
    YPosition float64
    y position of the picture.
    pictureUrl String
    watermark url.
    watermarkName String
    watermark name.
    cssWatermarkId String
    ID of the resource.
    height Double
    height of the picture.
    width Double
    width of the picture.
    xPosition Double
    x position of the picture.
    yPosition Double
    y position of the picture.
    pictureUrl string
    watermark url.
    watermarkName string
    watermark name.
    cssWatermarkId string
    ID of the resource.
    height number
    height of the picture.
    width number
    width of the picture.
    xPosition number
    x position of the picture.
    yPosition number
    y position of the picture.
    picture_url str
    watermark url.
    watermark_name str
    watermark name.
    css_watermark_id str
    ID of the resource.
    height float
    height of the picture.
    width float
    width of the picture.
    x_position float
    x position of the picture.
    y_position float
    y position of the picture.
    pictureUrl String
    watermark url.
    watermarkName String
    watermark name.
    cssWatermarkId String
    ID of the resource.
    height Number
    height of the picture.
    width Number
    width of the picture.
    xPosition Number
    x position of the picture.
    yPosition Number
    y position of the picture.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status double
    status. 0: not used, 1: used.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status float64
    status. 0: not used, 1: used.
    id String
    The provider-assigned unique ID for this managed resource.
    status Double
    status. 0: not used, 1: used.
    id string
    The provider-assigned unique ID for this managed resource.
    status number
    status. 0: not used, 1: used.
    id str
    The provider-assigned unique ID for this managed resource.
    status float
    status. 0: not used, 1: used.
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    status. 0: not used, 1: used.

    Look up Existing CssWatermark Resource

    Get an existing CssWatermark 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?: CssWatermarkState, opts?: CustomResourceOptions): CssWatermark
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            css_watermark_id: Optional[str] = None,
            height: Optional[float] = None,
            picture_url: Optional[str] = None,
            status: Optional[float] = None,
            watermark_name: Optional[str] = None,
            width: Optional[float] = None,
            x_position: Optional[float] = None,
            y_position: Optional[float] = None) -> CssWatermark
    func GetCssWatermark(ctx *Context, name string, id IDInput, state *CssWatermarkState, opts ...ResourceOption) (*CssWatermark, error)
    public static CssWatermark Get(string name, Input<string> id, CssWatermarkState? state, CustomResourceOptions? opts = null)
    public static CssWatermark get(String name, Output<String> id, CssWatermarkState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CssWatermark    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:
    CssWatermarkId string
    ID of the resource.
    Height double
    height of the picture.
    PictureUrl string
    watermark url.
    Status double
    status. 0: not used, 1: used.
    WatermarkName string
    watermark name.
    Width double
    width of the picture.
    XPosition double
    x position of the picture.
    YPosition double
    y position of the picture.
    CssWatermarkId string
    ID of the resource.
    Height float64
    height of the picture.
    PictureUrl string
    watermark url.
    Status float64
    status. 0: not used, 1: used.
    WatermarkName string
    watermark name.
    Width float64
    width of the picture.
    XPosition float64
    x position of the picture.
    YPosition float64
    y position of the picture.
    cssWatermarkId String
    ID of the resource.
    height Double
    height of the picture.
    pictureUrl String
    watermark url.
    status Double
    status. 0: not used, 1: used.
    watermarkName String
    watermark name.
    width Double
    width of the picture.
    xPosition Double
    x position of the picture.
    yPosition Double
    y position of the picture.
    cssWatermarkId string
    ID of the resource.
    height number
    height of the picture.
    pictureUrl string
    watermark url.
    status number
    status. 0: not used, 1: used.
    watermarkName string
    watermark name.
    width number
    width of the picture.
    xPosition number
    x position of the picture.
    yPosition number
    y position of the picture.
    css_watermark_id str
    ID of the resource.
    height float
    height of the picture.
    picture_url str
    watermark url.
    status float
    status. 0: not used, 1: used.
    watermark_name str
    watermark name.
    width float
    width of the picture.
    x_position float
    x position of the picture.
    y_position float
    y position of the picture.
    cssWatermarkId String
    ID of the resource.
    height Number
    height of the picture.
    pictureUrl String
    watermark url.
    status Number
    status. 0: not used, 1: used.
    watermarkName String
    watermark name.
    width Number
    width of the picture.
    xPosition Number
    x position of the picture.
    yPosition Number
    y position of the picture.

    Import

    css watermark can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cssWatermark:CssWatermark watermark watermark_id
    

    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