@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
71 lines (70 loc) • 3.05 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates a new container repository. For more information, see
* [the official documentation](https://cloud.yandex.com/docs/container-registry/concepts/repository)
*
* ## Example Usage
*
* ```typescript
* 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", {});
* ```
*
* ## Import
*
* A repository can be imported using the `id` of the resource, e.g.
*
* ```sh
* $ pulumi import yandex:index/containerRepository:ContainerRepository my-repository repository_id
* ```
*/
export declare class ContainerRepository extends pulumi.CustomResource {
/**
* Get an existing ContainerRepository resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ContainerRepositoryState, opts?: pulumi.CustomResourceOptions): ContainerRepository;
/**
* Returns true if the given object is an instance of ContainerRepository. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ContainerRepository;
/**
* 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.
*/
readonly name: pulumi.Output<string>;
/**
* Create a ContainerRepository resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: ContainerRepositoryArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ContainerRepository resources.
*/
export interface ContainerRepositoryState {
/**
* 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?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ContainerRepository resource.
*/
export interface ContainerRepositoryArgs {
/**
* 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?: pulumi.Input<string>;
}