1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. Repository
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

volcengine.cr.Repository

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.25 published on Tuesday, Jul 2, 2024 by Volcengine

    Provides a resource to manage cr repository

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cr.Repository("foo", new()
        {
            AccessLevel = "Public",
            Description = "A test repository created by terraform.",
            Namespace = "namespace-1",
            Registry = "tf-2",
        });
    
    });
    
    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.NewRepository(ctx, "foo", &cr.RepositoryArgs{
    			AccessLevel: pulumi.String("Public"),
    			Description: pulumi.String("A test repository created by terraform."),
    			Namespace:   pulumi.String("namespace-1"),
    			Registry:    pulumi.String("tf-2"),
    		})
    		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.Repository;
    import com.pulumi.volcengine.cr.RepositoryArgs;
    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 foo = new Repository("foo", RepositoryArgs.builder()        
                .accessLevel("Public")
                .description("A test repository created by terraform.")
                .namespace("namespace-1")
                .registry("tf-2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cr.Repository("foo",
        access_level="Public",
        description="A test repository created by terraform.",
        namespace="namespace-1",
        registry="tf-2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cr.Repository("foo", {
        accessLevel: "Public",
        description: "A test repository created by terraform.",
        namespace: "namespace-1",
        registry: "tf-2",
    });
    
    resources:
      foo:
        type: volcengine:cr:Repository
        properties:
          accessLevel: Public
          description: A test repository created by terraform.
          namespace: namespace-1
          registry: tf-2
    

    Create Repository Resource

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

    Constructor syntax

    new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def Repository(resource_name: str,
                   args: RepositoryArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Repository(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   namespace: Optional[str] = None,
                   registry: Optional[str] = None,
                   access_level: Optional[str] = None,
                   description: Optional[str] = None,
                   name: Optional[str] = None)
    func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
    public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
    public Repository(String name, RepositoryArgs args)
    public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
    
    type: volcengine:cr:Repository
    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 RepositoryArgs
    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 RepositoryArgs
    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 RepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryArgs
    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 repositoryResource = new Volcengine.Cr.Repository("repositoryResource", new()
    {
        Namespace = "string",
        Registry = "string",
        AccessLevel = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := cr.NewRepository(ctx, "repositoryResource", &cr.RepositoryArgs{
    	Namespace:   pulumi.String("string"),
    	Registry:    pulumi.String("string"),
    	AccessLevel: pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
        .namespace("string")
        .registry("string")
        .accessLevel("string")
        .description("string")
        .name("string")
        .build());
    
    repository_resource = volcengine.cr.Repository("repositoryResource",
        namespace="string",
        registry="string",
        access_level="string",
        description="string",
        name="string")
    
    const repositoryResource = new volcengine.cr.Repository("repositoryResource", {
        namespace: "string",
        registry: "string",
        accessLevel: "string",
        description: "string",
        name: "string",
    });
    
    type: volcengine:cr:Repository
    properties:
        accessLevel: string
        description: string
        name: string
        namespace: string
        registry: string
    

    Repository Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Repository resource accepts the following input properties:

    Namespace string
    The target namespace name.
    Registry string
    The CrRegistry name.
    AccessLevel string
    The access level of CrRepository.
    Description string
    The description of CrRepository.
    Name string
    The name of CrRepository.
    Namespace string
    The target namespace name.
    Registry string
    The CrRegistry name.
    AccessLevel string
    The access level of CrRepository.
    Description string
    The description of CrRepository.
    Name string
    The name of CrRepository.
    namespace String
    The target namespace name.
    registry String
    The CrRegistry name.
    accessLevel String
    The access level of CrRepository.
    description String
    The description of CrRepository.
    name String
    The name of CrRepository.
    namespace string
    The target namespace name.
    registry string
    The CrRegistry name.
    accessLevel string
    The access level of CrRepository.
    description string
    The description of CrRepository.
    name string
    The name of CrRepository.
    namespace str
    The target namespace name.
    registry str
    The CrRegistry name.
    access_level str
    The access level of CrRepository.
    description str
    The description of CrRepository.
    name str
    The name of CrRepository.
    namespace String
    The target namespace name.
    registry String
    The CrRegistry name.
    accessLevel String
    The access level of CrRepository.
    description String
    The description of CrRepository.
    name String
    The name of CrRepository.

    Outputs

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

    CreateTime string
    The creation time of repository.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The last update time of repository.
    CreateTime string
    The creation time of repository.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The last update time of repository.
    createTime String
    The creation time of repository.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The last update time of repository.
    createTime string
    The creation time of repository.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    The last update time of repository.
    create_time str
    The creation time of repository.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    The last update time of repository.
    createTime String
    The creation time of repository.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The last update time of repository.

    Look up Existing Repository Resource

    Get an existing Repository 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?: RepositoryState, opts?: CustomResourceOptions): Repository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_level: Optional[str] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            registry: Optional[str] = None,
            update_time: Optional[str] = None) -> Repository
    func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
    public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
    public static Repository get(String name, Output<String> id, RepositoryState 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:
    AccessLevel string
    The access level of CrRepository.
    CreateTime string
    The creation time of repository.
    Description string
    The description of CrRepository.
    Name string
    The name of CrRepository.
    Namespace string
    The target namespace name.
    Registry string
    The CrRegistry name.
    UpdateTime string
    The last update time of repository.
    AccessLevel string
    The access level of CrRepository.
    CreateTime string
    The creation time of repository.
    Description string
    The description of CrRepository.
    Name string
    The name of CrRepository.
    Namespace string
    The target namespace name.
    Registry string
    The CrRegistry name.
    UpdateTime string
    The last update time of repository.
    accessLevel String
    The access level of CrRepository.
    createTime String
    The creation time of repository.
    description String
    The description of CrRepository.
    name String
    The name of CrRepository.
    namespace String
    The target namespace name.
    registry String
    The CrRegistry name.
    updateTime String
    The last update time of repository.
    accessLevel string
    The access level of CrRepository.
    createTime string
    The creation time of repository.
    description string
    The description of CrRepository.
    name string
    The name of CrRepository.
    namespace string
    The target namespace name.
    registry string
    The CrRegistry name.
    updateTime string
    The last update time of repository.
    access_level str
    The access level of CrRepository.
    create_time str
    The creation time of repository.
    description str
    The description of CrRepository.
    name str
    The name of CrRepository.
    namespace str
    The target namespace name.
    registry str
    The CrRegistry name.
    update_time str
    The last update time of repository.
    accessLevel String
    The access level of CrRepository.
    createTime String
    The creation time of repository.
    description String
    The description of CrRepository.
    name String
    The name of CrRepository.
    namespace String
    The target namespace name.
    registry String
    The CrRegistry name.
    updateTime String
    The last update time of repository.

    Import

    CR Repository can be imported using the registry:namespace:name, e.g.

     $ pulumi import volcengine:cr/repository:Repository default cr-basic:namespace-1:repo-1
    

    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.25 published on Tuesday, Jul 2, 2024 by Volcengine