import * as pulumi from "@pulumi/pulumi";
/**
 * This resource is used for the ServiceStage service to establish the authorization relationship through username
 * and password with various types of the Open-Source repository.
 *
 * ## Import
 *
 * Authorizations can be imported using their `id` or `name`, e.g.bash
 *
 * ```sh
 *  $ pulumi import huaweicloud:ServiceStage/repoPasswordAuthorization:RepoPasswordAuthorization test terraform-test
 * ```
 */
export declare class RepoPasswordAuthorization extends pulumi.CustomResource {
    /**
     * Get an existing RepoPasswordAuthorization 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?: RepoPasswordAuthorizationState, opts?: pulumi.CustomResourceOptions): RepoPasswordAuthorization;
    /**
     * Returns true if the given object is an instance of RepoPasswordAuthorization.  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 RepoPasswordAuthorization;
    /**
     * Specified the authorization name.
     * The name can contain of `4` to `63` characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are
     * allowed. Changing this parameter will create a new authorization.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Specified the repository password.
     * Changing this parameter will create a new authorization.
     */
    readonly password: pulumi.Output<string>;
    /**
     * Specified the region in which to create the repository authorization.
     * If omitted, the provider-level region will be used. Changing this parameter will create a new authorization.
     */
    readonly region: pulumi.Output<string>;
    /**
     * Specified the repository type. The valid values are as follows:
     * + **devcloud**
     * + **bitbucket**
     */
    readonly type: pulumi.Output<string>;
    /**
     * Specified the user name of the repository.
     * The format for each type is as follows:
     * + **devcloud**: `{domain name}/{tenant name}`
     * + **bitbucket**: `{account name}`
     */
    readonly userName: pulumi.Output<string>;
    /**
     * Create a RepoPasswordAuthorization 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: RepoPasswordAuthorizationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering RepoPasswordAuthorization resources.
 */
export interface RepoPasswordAuthorizationState {
    /**
     * Specified the authorization name.
     * The name can contain of `4` to `63` characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are
     * allowed. Changing this parameter will create a new authorization.
     */
    name?: pulumi.Input<string>;
    /**
     * Specified the repository password.
     * Changing this parameter will create a new authorization.
     */
    password?: pulumi.Input<string>;
    /**
     * Specified the region in which to create the repository authorization.
     * If omitted, the provider-level region will be used. Changing this parameter will create a new authorization.
     */
    region?: pulumi.Input<string>;
    /**
     * Specified the repository type. The valid values are as follows:
     * + **devcloud**
     * + **bitbucket**
     */
    type?: pulumi.Input<string>;
    /**
     * Specified the user name of the repository.
     * The format for each type is as follows:
     * + **devcloud**: `{domain name}/{tenant name}`
     * + **bitbucket**: `{account name}`
     */
    userName?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a RepoPasswordAuthorization resource.
 */
export interface RepoPasswordAuthorizationArgs {
    /**
     * Specified the authorization name.
     * The name can contain of `4` to `63` characters, only letters, digits, underscores (_), hyphens (-) and dots (.) are
     * allowed. Changing this parameter will create a new authorization.
     */
    name?: pulumi.Input<string>;
    /**
     * Specified the repository password.
     * Changing this parameter will create a new authorization.
     */
    password: pulumi.Input<string>;
    /**
     * Specified the region in which to create the repository authorization.
     * If omitted, the provider-level region will be used. Changing this parameter will create a new authorization.
     */
    region?: pulumi.Input<string>;
    /**
     * Specified the repository type. The valid values are as follows:
     * + **devcloud**
     * + **bitbucket**
     */
    type: pulumi.Input<string>;
    /**
     * Specified the user name of the repository.
     * The format for each type is as follows:
     * + **devcloud**: `{domain name}/{tenant name}`
     * + **bitbucket**: `{account name}`
     */
    userName: pulumi.Input<string>;
}
