import * as pulumi from "@pulumi/pulumi"; /** * ## yandex\_container\_registry\_iam\_binding * * Allows creation and management of a single binding within IAM policy for * an existing Yandex Container Registry. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const your_registry = new yandex.ContainerRegistry("your-registry", {folderId: "your-folder-id"}); * const puller = new yandex.ContainerRegistryIamBinding("puller", { * registryId: your_registry.id, * role: "container-registry.images.puller", * members: ["system:allUsers"], * }); * ``` * * ## Import * * IAM binding imports use space-delimited identifiers; first the resource in question and then the role. These bindings can be imported using the `registry_id` and role, e.g. * * ```sh * $ pulumi import yandex:index/containerRegistryIamBinding:ContainerRegistryIamBinding puller "registry_id container-registry.images.puller" * ``` */ export declare class ContainerRegistryIamBinding extends pulumi.CustomResource { /** * Get an existing ContainerRegistryIamBinding 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, state?: ContainerRegistryIamBindingState, opts?: pulumi.CustomResourceOptions): ContainerRegistryIamBinding; /** * Returns true if the given object is an instance of ContainerRegistryIamBinding. 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 ContainerRegistryIamBinding; /** * Identities that will be granted the privilege in `role`. * Each entry can have one of the following values: * * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account. * * **serviceAccount:{service_account_id}**: A unique service account ID. * * **system:{allUsers|allAuthenticatedUsers}**: see [system groups](https://cloud.yandex.com/docs/iam/concepts/access-control/system-group) */ readonly members: pulumi.Output; /** * The [Yandex Container Registry](https://cloud.yandex.com/docs/container-registry/) ID to apply a binding to. */ readonly registryId: pulumi.Output; /** * The role that should be applied. See [roles](https://cloud.yandex.com/docs/container-registry/security/). */ readonly role: pulumi.Output; readonly sleepAfter: pulumi.Output; /** * Create a ContainerRegistryIamBinding 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: ContainerRegistryIamBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ContainerRegistryIamBinding resources. */ export interface ContainerRegistryIamBindingState { /** * Identities that will be granted the privilege in `role`. * Each entry can have one of the following values: * * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account. * * **serviceAccount:{service_account_id}**: A unique service account ID. * * **system:{allUsers|allAuthenticatedUsers}**: see [system groups](https://cloud.yandex.com/docs/iam/concepts/access-control/system-group) */ members?: pulumi.Input[]>; /** * The [Yandex Container Registry](https://cloud.yandex.com/docs/container-registry/) ID to apply a binding to. */ registryId?: pulumi.Input; /** * The role that should be applied. See [roles](https://cloud.yandex.com/docs/container-registry/security/). */ role?: pulumi.Input; sleepAfter?: pulumi.Input; } /** * The set of arguments for constructing a ContainerRegistryIamBinding resource. */ export interface ContainerRegistryIamBindingArgs { /** * Identities that will be granted the privilege in `role`. * Each entry can have one of the following values: * * **userAccount:{user_id}**: A unique user ID that represents a specific Yandex account. * * **serviceAccount:{service_account_id}**: A unique service account ID. * * **system:{allUsers|allAuthenticatedUsers}**: see [system groups](https://cloud.yandex.com/docs/iam/concepts/access-control/system-group) */ members: pulumi.Input[]>; /** * The [Yandex Container Registry](https://cloud.yandex.com/docs/container-registry/) ID to apply a binding to. */ registryId: pulumi.Input; /** * The role that should be applied. See [roles](https://cloud.yandex.com/docs/container-registry/security/). */ role: pulumi.Input; sleepAfter?: pulumi.Input; }