import * as pulumi from "@pulumi/pulumi"; /** * Creates an IAM configuration in an OVHcloud Managed Private Registry. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const registryIam = new ovh.CloudProjectContainerregistryIam("registry_iam", { * serviceName: "XXXXXX", * registryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx", * deleteUsers: false, * }); * export const iamEnabled = registryIam.iamEnabled; * ``` * * ## Import * * OVHcloud Managed Private Registry IAM can be imported using the tenant `service_name` and registry id `registry_id` separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:index/cloudProjectContainerregistryIam:CloudProjectContainerregistryIam my-iam service_name/registry_id * ``` */ export declare class CloudProjectContainerregistryIam extends pulumi.CustomResource { /** * Get an existing CloudProjectContainerregistryIam 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?: CloudProjectContainerregistryIamState, opts?: pulumi.CustomResourceOptions): CloudProjectContainerregistryIam; /** * Returns true if the given object is an instance of CloudProjectContainerregistryIam. 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 CloudProjectContainerregistryIam; /** * Delete existing users from Harbor. IAM can't be enabled if there is at least one user already created. This parameter is only used at IAM configuration creation. **Changing this value recreates the resource.** */ readonly deleteUsers: pulumi.Output; readonly iamEnabled: pulumi.Output; /** * The ID of the Managed Private Registry. **Changing this value recreates the resource.** */ readonly registryId: pulumi.Output; /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * Create a CloudProjectContainerregistryIam 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: CloudProjectContainerregistryIamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudProjectContainerregistryIam resources. */ export interface CloudProjectContainerregistryIamState { /** * Delete existing users from Harbor. IAM can't be enabled if there is at least one user already created. This parameter is only used at IAM configuration creation. **Changing this value recreates the resource.** */ deleteUsers?: pulumi.Input; iamEnabled?: pulumi.Input; /** * The ID of the Managed Private Registry. **Changing this value recreates the resource.** */ registryId?: pulumi.Input; /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; } /** * The set of arguments for constructing a CloudProjectContainerregistryIam resource. */ export interface CloudProjectContainerregistryIamArgs { /** * Delete existing users from Harbor. IAM can't be enabled if there is at least one user already created. This parameter is only used at IAM configuration creation. **Changing this value recreates the resource.** */ deleteUsers?: pulumi.Input; /** * The ID of the Managed Private Registry. **Changing this value recreates the resource.** */ registryId: pulumi.Input; /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; }