tencentcloud.CiBucketPicStyle
Explore with Pulumi AI
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.
- Style
Body string - style details, example: mageMogr2/grayscale/1.
- Style
Name string - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported. - Ci
Bucket stringPic Style Id - ID of the resource.
- Bucket string
- bucket name.
- Style
Body string - style details, example: mageMogr2/grayscale/1.
- Style
Name string - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported. - Ci
Bucket stringPic Style Id - ID of the resource.
- bucket String
- bucket name.
- style
Body String - style details, example: mageMogr2/grayscale/1.
- style
Name String - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported. - ci
Bucket StringPic Style Id - ID of the resource.
- bucket string
- bucket name.
- style
Body string - style details, example: mageMogr2/grayscale/1.
- style
Name string - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported. - ci
Bucket stringPic Style Id - 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_ strpic_ style_ id - ID of the resource.
- bucket String
- bucket name.
- style
Body String - style details, example: mageMogr2/grayscale/1.
- style
Name String - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported. - ci
Bucket StringPic Style Id - 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.
- Bucket string
- bucket name.
- Ci
Bucket stringPic Style Id - ID of the resource.
- Style
Body string - style details, example: mageMogr2/grayscale/1.
- Style
Name string - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported.
- Bucket string
- bucket name.
- Ci
Bucket stringPic Style Id - ID of the resource.
- Style
Body string - style details, example: mageMogr2/grayscale/1.
- Style
Name string - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported.
- bucket String
- bucket name.
- ci
Bucket StringPic Style Id - ID of the resource.
- style
Body String - style details, example: mageMogr2/grayscale/1.
- style
Name String - style name, style names are case-sensitive, and a combination of uppercase and lowercase letters, numbers, and
$ + _ ( )
is supported.
- bucket string
- bucket name.
- ci
Bucket stringPic Style Id - ID of the resource.
- style
Body string - style details, example: mageMogr2/grayscale/1.
- style
Name 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_ strpic_ style_ id - 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.
- ci
Bucket StringPic Style Id - ID of the resource.
- style
Body String - style details, example: mageMogr2/grayscale/1.
- style
Name 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.