Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

ContainerRepository

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
	})
}
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", {});

Create a ContainerRepository Resource

new ContainerRepository(name: string, args?: ContainerRepositoryArgs, opts?: CustomResourceOptions);
@overload
def ContainerRepository(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        name: Optional[str] = None)
@overload
def ContainerRepository(resource_name: str,
                        args: Optional[ContainerRepositoryArgs] = None,
                        opts: Optional[ResourceOptions] = None)
func NewContainerRepository(ctx *Context, name string, args *ContainerRepositoryArgs, opts ...ResourceOption) (*ContainerRepository, error)
public ContainerRepository(string name, ContainerRepositoryArgs? args = null, CustomResourceOptions? opts = null)
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.

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

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 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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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)
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.

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 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.

Import

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

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

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.