1. Packages
  2. Yandex
  3. API Docs
  4. ContainerRepository
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.ContainerRepository

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Creates a new container repository. For more information, see the official documentation

    Example Usage

    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var my_registry = new Yandex.ContainerRegistry("my-registry", new Yandex.ContainerRegistryArgs
            {
            });
            var my_repository = new Yandex.ContainerRepository("my-repository", new Yandex.ContainerRepositoryArgs
            {
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := yandex.NewContainerRegistry(ctx, "my-registry", nil)
    		if err != nil {
    			return err
    		}
    		_, err = yandex.NewContainerRepository(ctx, "my-repository", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_yandex as yandex
    
    my_registry = yandex.ContainerRegistry("my-registry")
    my_repository = yandex.ContainerRepository("my-repository")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const my_registry = new yandex.ContainerRegistry("my-registry", {});
    const my_repository = new yandex.ContainerRepository("my-repository", {});
    

    Coming soon!

    Create ContainerRepository Resource

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

    Constructor syntax

    new ContainerRepository(name: string, args?: ContainerRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerRepository(resource_name: str,
                            args: Optional[ContainerRepositoryArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerRepository(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            name: Optional[str] = None)
    func NewContainerRepository(ctx *Context, name string, args *ContainerRepositoryArgs, opts ...ResourceOption) (*ContainerRepository, error)
    public ContainerRepository(string name, ContainerRepositoryArgs? args = null, CustomResourceOptions? opts = null)
    public ContainerRepository(String name, ContainerRepositoryArgs args)
    public ContainerRepository(String name, ContainerRepositoryArgs args, CustomResourceOptions options)
    
    type: yandex:ContainerRepository
    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 ContainerRepositoryArgs
    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 ContainerRepositoryArgs
    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 ContainerRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerRepositoryArgs
    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 containerRepositoryResource = new Yandex.ContainerRepository("containerRepositoryResource", new()
    {
        Name = "string",
    });
    
    example, err := yandex.NewContainerRepository(ctx, "containerRepositoryResource", &yandex.ContainerRepositoryArgs{
    	Name: pulumi.String("string"),
    })
    
    var containerRepositoryResource = new ContainerRepository("containerRepositoryResource", ContainerRepositoryArgs.builder()
        .name("string")
        .build());
    
    container_repository_resource = yandex.ContainerRepository("containerRepositoryResource", name="string")
    
    const containerRepositoryResource = new yandex.ContainerRepository("containerRepositoryResource", {name: "string"});
    
    type: yandex:ContainerRepository
    properties:
        name: string
    

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

    Name string
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    Name string
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name String
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name string
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name str
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name String
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.

    Outputs

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

    Get an existing ContainerRepository 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?: ContainerRepositoryState, opts?: CustomResourceOptions): ContainerRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None) -> ContainerRepository
    func GetContainerRepository(ctx *Context, name string, id IDInput, state *ContainerRepositoryState, opts ...ResourceOption) (*ContainerRepository, error)
    public static ContainerRepository Get(string name, Input<string> id, ContainerRepositoryState? state, CustomResourceOptions? opts = null)
    public static ContainerRepository get(String name, Output<String> id, ContainerRepositoryState 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:
    Name string
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    Name string
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name String
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name string
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name str
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.
    name String
    A name of the repository. The name of the repository should start with id of a container registry and match the name of the images that will be pushed in the repository.

    Import

    A repository can be imported using the id of the resource, e.g.

     $ pulumi import yandex:index/containerRepository:ContainerRepository my-repository repository_id
    

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

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi