import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages the registration of a Resource Provider - which allows access to the API's supported by this Resource Provider.
 *
 * > **Note:** The Azure Provider will automatically register all of the Resource Providers which it supports on launch (unless opted-out using the `skipProviderRegistration` field within the provider block).
 *
 * !> **Note:** The errors returned from the Azure API when a Resource Provider is unregistered are unclear (example `API version '2019-01-01' was not found for 'Microsoft.Foo'`) - please ensure that all of the necessary Resource Providers you're using are registered - if in doubt **we strongly recommend letting the provider register these for you**.
 *
 * > **Note:** Adding or Removing a Preview Feature will re-register the Resource Provider.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceProviderRegistration("example", {name: "Microsoft.PolicyInsights"});
 * ```
 *
 * ### Registering A Preview Feature)
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceProviderRegistration("example", {
 *     name: "Microsoft.ContainerService",
 *     features: [{
 *         name: "AKS-DataPlaneAutoApprove",
 *         registered: true,
 *     }],
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Features` - 2021-07-01
 *
 * ## Import
 *
 * Resource Provider Registrations can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:core/resourceProviderRegistration:ResourceProviderRegistration example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PolicyInsights
 * ```
 */
export declare class ResourceProviderRegistration extends pulumi.CustomResource {
    /**
     * Get an existing ResourceProviderRegistration 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?: ResourceProviderRegistrationState, opts?: pulumi.CustomResourceOptions): ResourceProviderRegistration;
    /**
     * Returns true if the given object is an instance of ResourceProviderRegistration.  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 ResourceProviderRegistration;
    /**
     * A list of `feature` blocks as defined below.
     *
     * > **Note:** The `feature` block allows a Preview Feature to be explicitly Registered or Unregistered for this Resource Provider - once a Feature has been explicitly Registered or Unregistered, it must be specified in the Terraform Configuration (it's not possible to reset this to the default, unspecified, state).
     */
    readonly features: pulumi.Output<outputs.core.ResourceProviderRegistrationFeature[] | undefined>;
    /**
     * The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Create a ResourceProviderRegistration 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?: ResourceProviderRegistrationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ResourceProviderRegistration resources.
 */
export interface ResourceProviderRegistrationState {
    /**
     * A list of `feature` blocks as defined below.
     *
     * > **Note:** The `feature` block allows a Preview Feature to be explicitly Registered or Unregistered for this Resource Provider - once a Feature has been explicitly Registered or Unregistered, it must be specified in the Terraform Configuration (it's not possible to reset this to the default, unspecified, state).
     */
    features?: pulumi.Input<pulumi.Input<inputs.core.ResourceProviderRegistrationFeature>[] | undefined>;
    /**
     * The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a ResourceProviderRegistration resource.
 */
export interface ResourceProviderRegistrationArgs {
    /**
     * A list of `feature` blocks as defined below.
     *
     * > **Note:** The `feature` block allows a Preview Feature to be explicitly Registered or Unregistered for this Resource Provider - once a Feature has been explicitly Registered or Unregistered, it must be specified in the Terraform Configuration (it's not possible to reset this to the default, unspecified, state).
     */
    features?: pulumi.Input<pulumi.Input<inputs.core.ResourceProviderRegistrationFeature>[] | undefined>;
    /**
     * The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=resourceProviderRegistration.d.ts.map