1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. Tag
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.cr.Tag

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage cr tag

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        // Tag cannot be created,please import by command `terraform import volcengine_cr_tag.default registry:namespace:repository:tag`
        var @default = new Volcengine.Cr.Tag("default", new()
        {
            Namespace = "langyu",
            Registry = "enterprise-1",
            Repository = "repo",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cr"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cr.NewTag(ctx, "default", &cr.TagArgs{
    			Namespace:  pulumi.String("langyu"),
    			Registry:   pulumi.String("enterprise-1"),
    			Repository: pulumi.String("repo"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cr.Tag;
    import com.pulumi.volcengine.cr.TagArgs;
    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 default_ = new Tag("default", TagArgs.builder()        
                .namespace("langyu")
                .registry("enterprise-1")
                .repository("repo")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    # Tag cannot be created,please import by command `terraform import volcengine_cr_tag.default registry:namespace:repository:tag`
    default = volcengine.cr.Tag("default",
        namespace="langyu",
        registry="enterprise-1",
        repository="repo")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    // Tag cannot be created,please import by command `terraform import volcengine_cr_tag.default registry:namespace:repository:tag`
    const _default = new volcengine.cr.Tag("default", {
        namespace: "langyu",
        registry: "enterprise-1",
        repository: "repo",
    });
    
    resources:
      # Tag cannot be created,please import by command `terraform import volcengine_cr_tag.default registry:namespace:repository:tag`
      default:
        type: volcengine:cr:Tag
        properties:
          namespace: langyu
          registry: enterprise-1
          repository: repo
    

    Create Tag Resource

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

    Constructor syntax

    new Tag(name: string, args: TagArgs, opts?: CustomResourceOptions);
    @overload
    def Tag(resource_name: str,
            args: TagArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Tag(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            namespace: Optional[str] = None,
            registry: Optional[str] = None,
            repository: Optional[str] = None,
            name: Optional[str] = None)
    func NewTag(ctx *Context, name string, args TagArgs, opts ...ResourceOption) (*Tag, error)
    public Tag(string name, TagArgs args, CustomResourceOptions? opts = null)
    public Tag(String name, TagArgs args)
    public Tag(String name, TagArgs args, CustomResourceOptions options)
    
    type: volcengine:cr:Tag
    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 TagArgs
    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 TagArgs
    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 TagArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var tagResource = new Volcengine.Cr.Tag("tagResource", new()
    {
        Namespace = "string",
        Registry = "string",
        Repository = "string",
        Name = "string",
    });
    
    example, err := cr.NewTag(ctx, "tagResource", &cr.TagArgs{
    	Namespace:  pulumi.String("string"),
    	Registry:   pulumi.String("string"),
    	Repository: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    })
    
    var tagResource = new Tag("tagResource", TagArgs.builder()
        .namespace("string")
        .registry("string")
        .repository("string")
        .name("string")
        .build());
    
    tag_resource = volcengine.cr.Tag("tagResource",
        namespace="string",
        registry="string",
        repository="string",
        name="string")
    
    const tagResource = new volcengine.cr.Tag("tagResource", {
        namespace: "string",
        registry: "string",
        repository: "string",
        name: "string",
    });
    
    type: volcengine:cr:Tag
    properties:
        name: string
        namespace: string
        registry: string
        repository: string
    

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

    Namespace string
    The target namespace name.
    Registry string
    The CrRegistry name.
    Repository string
    The name of repository.
    Name string
    The name of OCI product.
    Namespace string
    The target namespace name.
    Registry string
    The CrRegistry name.
    Repository string
    The name of repository.
    Name string
    The name of OCI product.
    namespace String
    The target namespace name.
    registry String
    The CrRegistry name.
    repository String
    The name of repository.
    name String
    The name of OCI product.
    namespace string
    The target namespace name.
    registry string
    The CrRegistry name.
    repository string
    The name of repository.
    name string
    The name of OCI product.
    namespace str
    The target namespace name.
    registry str
    The CrRegistry name.
    repository str
    The name of repository.
    name str
    The name of OCI product.
    namespace String
    The target namespace name.
    registry String
    The CrRegistry name.
    repository String
    The name of repository.
    name String
    The name of OCI product.

    Outputs

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

    ChartAttributes List<TagChartAttribute>
    The chart attribute,valid when tag type is Chart.
    Digest string
    The digest of image.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageAttributes List<TagImageAttribute>
    The list of image attributes,valid when tag type is Image.
    PushTime string
    The last push time of OCI product.
    Size int
    The size of OCI product.
    Type string
    The type of OCI product tag.
    ChartAttributes []TagChartAttribute
    The chart attribute,valid when tag type is Chart.
    Digest string
    The digest of image.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageAttributes []TagImageAttribute
    The list of image attributes,valid when tag type is Image.
    PushTime string
    The last push time of OCI product.
    Size int
    The size of OCI product.
    Type string
    The type of OCI product tag.
    chartAttributes List<TagChartAttribute>
    The chart attribute,valid when tag type is Chart.
    digest String
    The digest of image.
    id String
    The provider-assigned unique ID for this managed resource.
    imageAttributes List<TagImageAttribute>
    The list of image attributes,valid when tag type is Image.
    pushTime String
    The last push time of OCI product.
    size Integer
    The size of OCI product.
    type String
    The type of OCI product tag.
    chartAttributes TagChartAttribute[]
    The chart attribute,valid when tag type is Chart.
    digest string
    The digest of image.
    id string
    The provider-assigned unique ID for this managed resource.
    imageAttributes TagImageAttribute[]
    The list of image attributes,valid when tag type is Image.
    pushTime string
    The last push time of OCI product.
    size number
    The size of OCI product.
    type string
    The type of OCI product tag.
    chart_attributes Sequence[TagChartAttribute]
    The chart attribute,valid when tag type is Chart.
    digest str
    The digest of image.
    id str
    The provider-assigned unique ID for this managed resource.
    image_attributes Sequence[TagImageAttribute]
    The list of image attributes,valid when tag type is Image.
    push_time str
    The last push time of OCI product.
    size int
    The size of OCI product.
    type str
    The type of OCI product tag.
    chartAttributes List<Property Map>
    The chart attribute,valid when tag type is Chart.
    digest String
    The digest of image.
    id String
    The provider-assigned unique ID for this managed resource.
    imageAttributes List<Property Map>
    The list of image attributes,valid when tag type is Image.
    pushTime String
    The last push time of OCI product.
    size Number
    The size of OCI product.
    type String
    The type of OCI product tag.

    Look up Existing Tag Resource

    Get an existing Tag 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?: TagState, opts?: CustomResourceOptions): Tag
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            chart_attributes: Optional[Sequence[TagChartAttributeArgs]] = None,
            digest: Optional[str] = None,
            image_attributes: Optional[Sequence[TagImageAttributeArgs]] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            push_time: Optional[str] = None,
            registry: Optional[str] = None,
            repository: Optional[str] = None,
            size: Optional[int] = None,
            type: Optional[str] = None) -> Tag
    func GetTag(ctx *Context, name string, id IDInput, state *TagState, opts ...ResourceOption) (*Tag, error)
    public static Tag Get(string name, Input<string> id, TagState? state, CustomResourceOptions? opts = null)
    public static Tag get(String name, Output<String> id, TagState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ChartAttributes List<TagChartAttribute>
    The chart attribute,valid when tag type is Chart.
    Digest string
    The digest of image.
    ImageAttributes List<TagImageAttribute>
    The list of image attributes,valid when tag type is Image.
    Name string
    The name of OCI product.
    Namespace string
    The target namespace name.
    PushTime string
    The last push time of OCI product.
    Registry string
    The CrRegistry name.
    Repository string
    The name of repository.
    Size int
    The size of OCI product.
    Type string
    The type of OCI product tag.
    ChartAttributes []TagChartAttributeArgs
    The chart attribute,valid when tag type is Chart.
    Digest string
    The digest of image.
    ImageAttributes []TagImageAttributeArgs
    The list of image attributes,valid when tag type is Image.
    Name string
    The name of OCI product.
    Namespace string
    The target namespace name.
    PushTime string
    The last push time of OCI product.
    Registry string
    The CrRegistry name.
    Repository string
    The name of repository.
    Size int
    The size of OCI product.
    Type string
    The type of OCI product tag.
    chartAttributes List<TagChartAttribute>
    The chart attribute,valid when tag type is Chart.
    digest String
    The digest of image.
    imageAttributes List<TagImageAttribute>
    The list of image attributes,valid when tag type is Image.
    name String
    The name of OCI product.
    namespace String
    The target namespace name.
    pushTime String
    The last push time of OCI product.
    registry String
    The CrRegistry name.
    repository String
    The name of repository.
    size Integer
    The size of OCI product.
    type String
    The type of OCI product tag.
    chartAttributes TagChartAttribute[]
    The chart attribute,valid when tag type is Chart.
    digest string
    The digest of image.
    imageAttributes TagImageAttribute[]
    The list of image attributes,valid when tag type is Image.
    name string
    The name of OCI product.
    namespace string
    The target namespace name.
    pushTime string
    The last push time of OCI product.
    registry string
    The CrRegistry name.
    repository string
    The name of repository.
    size number
    The size of OCI product.
    type string
    The type of OCI product tag.
    chart_attributes Sequence[TagChartAttributeArgs]
    The chart attribute,valid when tag type is Chart.
    digest str
    The digest of image.
    image_attributes Sequence[TagImageAttributeArgs]
    The list of image attributes,valid when tag type is Image.
    name str
    The name of OCI product.
    namespace str
    The target namespace name.
    push_time str
    The last push time of OCI product.
    registry str
    The CrRegistry name.
    repository str
    The name of repository.
    size int
    The size of OCI product.
    type str
    The type of OCI product tag.
    chartAttributes List<Property Map>
    The chart attribute,valid when tag type is Chart.
    digest String
    The digest of image.
    imageAttributes List<Property Map>
    The list of image attributes,valid when tag type is Image.
    name String
    The name of OCI product.
    namespace String
    The target namespace name.
    pushTime String
    The last push time of OCI product.
    registry String
    The CrRegistry name.
    repository String
    The name of repository.
    size Number
    The size of OCI product.
    type String
    The type of OCI product tag.

    Supporting Types

    TagChartAttribute, TagChartAttributeArgs

    ApiVersion string
    The Helm version.
    Name string
    The name of OCI product.
    Version string
    The Helm Chart version.
    ApiVersion string
    The Helm version.
    Name string
    The name of OCI product.
    Version string
    The Helm Chart version.
    apiVersion String
    The Helm version.
    name String
    The name of OCI product.
    version String
    The Helm Chart version.
    apiVersion string
    The Helm version.
    name string
    The name of OCI product.
    version string
    The Helm Chart version.
    api_version str
    The Helm version.
    name str
    The name of OCI product.
    version str
    The Helm Chart version.
    apiVersion String
    The Helm version.
    name String
    The name of OCI product.
    version String
    The Helm Chart version.

    TagImageAttribute, TagImageAttributeArgs

    Architecture string
    The image architecture.
    Author string
    The image author.
    Digest string
    The digest of image.
    Os string
    The iamge os.
    Architecture string
    The image architecture.
    Author string
    The image author.
    Digest string
    The digest of image.
    Os string
    The iamge os.
    architecture String
    The image architecture.
    author String
    The image author.
    digest String
    The digest of image.
    os String
    The iamge os.
    architecture string
    The image architecture.
    author string
    The image author.
    digest string
    The digest of image.
    os string
    The iamge os.
    architecture str
    The image architecture.
    author str
    The image author.
    digest str
    The digest of image.
    os str
    The iamge os.
    architecture String
    The image architecture.
    author String
    The image author.
    digest String
    The digest of image.
    os String
    The iamge os.

    Import

    CR tags can be imported using the registry:namespace:repository:tag, e.g.

     $ pulumi import volcengine:cr/tag:Tag default cr-basic:namespace-1:repo-1:v1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine