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

tencentcloud.CiBucketPicStyle

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 bucket_pic_style

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const bucketPicStyle = new tencentcloud.CiBucketPicStyle("bucketPicStyle", {
        bucket: "terraform-ci-xxxxxx",
        styleBody: "imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100",
        styleName: "rayscale_2",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    bucket_pic_style = tencentcloud.CiBucketPicStyle("bucketPicStyle",
        bucket="terraform-ci-xxxxxx",
        style_body="imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100",
        style_name="rayscale_2")
    
    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.NewCiBucketPicStyle(ctx, "bucketPicStyle", &tencentcloud.CiBucketPicStyleArgs{
    			Bucket:    pulumi.String("terraform-ci-xxxxxx"),
    			StyleBody: pulumi.String("imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100"),
    			StyleName: pulumi.String("rayscale_2"),
    		})
    		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 bucketPicStyle = new Tencentcloud.CiBucketPicStyle("bucketPicStyle", new()
        {
            Bucket = "terraform-ci-xxxxxx",
            StyleBody = "imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100",
            StyleName = "rayscale_2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CiBucketPicStyle;
    import com.pulumi.tencentcloud.CiBucketPicStyleArgs;
    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 bucketPicStyle = new CiBucketPicStyle("bucketPicStyle", CiBucketPicStyleArgs.builder()
                .bucket("terraform-ci-xxxxxx")
                .styleBody("imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100")
                .styleName("rayscale_2")
                .build());
    
        }
    }
    
    resources:
      bucketPicStyle:
        type: tencentcloud:CiBucketPicStyle
        properties:
          bucket: terraform-ci-xxxxxx
          styleBody: imageMogr2/thumbnail/20x/crop/20x20/gravity/center/interlace/0/quality/100
          styleName: rayscale_2
    

    Create CiBucketPicStyle Resource

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

    Constructor syntax

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

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

    Bucket string
    bucket name.
    StyleBody string
    style details, example: mageMogr2/grayscale/1.
    StyleName string
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    CiBucketPicStyleId string
    ID of the resource.
    Bucket string
    bucket name.
    StyleBody string
    style details, example: mageMogr2/grayscale/1.
    StyleName string
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    CiBucketPicStyleId string
    ID of the resource.
    bucket String
    bucket name.
    styleBody String
    style details, example: mageMogr2/grayscale/1.
    styleName String
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    ciBucketPicStyleId String
    ID of the resource.
    bucket string
    bucket name.
    styleBody string
    style details, example: mageMogr2/grayscale/1.
    styleName string
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    ciBucketPicStyleId string
    ID of the resource.
    bucket str
    bucket name.
    style_body str
    style details, example: mageMogr2/grayscale/1.
    style_name str
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    ci_bucket_pic_style_id str
    ID of the resource.
    bucket String
    bucket name.
    styleBody String
    style details, example: mageMogr2/grayscale/1.
    styleName String
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    ciBucketPicStyleId String
    ID of the resource.

    Outputs

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

    Get an existing CiBucketPicStyle 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?: CiBucketPicStyleState, opts?: CustomResourceOptions): CiBucketPicStyle
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            ci_bucket_pic_style_id: Optional[str] = None,
            style_body: Optional[str] = None,
            style_name: Optional[str] = None) -> CiBucketPicStyle
    func GetCiBucketPicStyle(ctx *Context, name string, id IDInput, state *CiBucketPicStyleState, opts ...ResourceOption) (*CiBucketPicStyle, error)
    public static CiBucketPicStyle Get(string name, Input<string> id, CiBucketPicStyleState? state, CustomResourceOptions? opts = null)
    public static CiBucketPicStyle get(String name, Output<String> id, CiBucketPicStyleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CiBucketPicStyle    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.
    CiBucketPicStyleId string
    ID of the resource.
    StyleBody string
    style details, example: mageMogr2/grayscale/1.
    StyleName string
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    Bucket string
    bucket name.
    CiBucketPicStyleId string
    ID of the resource.
    StyleBody string
    style details, example: mageMogr2/grayscale/1.
    StyleName string
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    bucket String
    bucket name.
    ciBucketPicStyleId String
    ID of the resource.
    styleBody String
    style details, example: mageMogr2/grayscale/1.
    styleName String
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    bucket string
    bucket name.
    ciBucketPicStyleId string
    ID of the resource.
    styleBody string
    style details, example: mageMogr2/grayscale/1.
    styleName string
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    bucket str
    bucket name.
    ci_bucket_pic_style_id str
    ID of the resource.
    style_body str
    style details, example: mageMogr2/grayscale/1.
    style_name str
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.
    bucket String
    bucket name.
    ciBucketPicStyleId String
    ID of the resource.
    styleBody String
    style details, example: mageMogr2/grayscale/1.
    styleName String
    style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and $ + _ ( ) is supported.

    Import

    ci bucket_pic_style can be imported using the bucket#styleName, e.g.

    $ pulumi import tencentcloud:index/ciBucketPicStyle:CiBucketPicStyle bucket_pic_style terraform-ci-xxxxxx#rayscale_2
    

    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