import * as pulumi from "@pulumi/pulumi"; /** * Manages the registration of a feature within a Resource Provider. * * > **Note:** The Resource Provider must be registered before a feature can be registered. * * > **Note:** Only Preview Features which have an `ApprovalType` of `AutoApproval` can be managed in Terraform, features which require manual approval by Service Teams are unsupported. [More information on Resource Provider Preview Features can be found in this document](https://docs.microsoft.com/rest/api/resources/features) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceProviderFeatureRegistration("example", { * name: "EncryptionAtHost", * providerName: "Microsoft.Compute", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Features` - 2021-07-01 * * ## Import * * Features Registrations can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:core/resourceProviderFeatureRegistration:ResourceProviderFeatureRegistration example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Features/providers/{ResourceProviderName}/features/{FeatureName} * ``` */ export declare class ResourceProviderFeatureRegistration extends pulumi.CustomResource { /** * Get an existing ResourceProviderFeatureRegistration 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?: ResourceProviderFeatureRegistrationState, opts?: pulumi.CustomResourceOptions): ResourceProviderFeatureRegistration; /** * Returns true if the given object is an instance of ResourceProviderFeatureRegistration. 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 ResourceProviderFeatureRegistration; /** * Specifies the name of the feature to register. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The Resource Provider name. Changing this forces a new resource to be created. */ readonly providerName: pulumi.Output; /** * Create a ResourceProviderFeatureRegistration 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: ResourceProviderFeatureRegistrationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourceProviderFeatureRegistration resources. */ export interface ResourceProviderFeatureRegistrationState { /** * Specifies the name of the feature to register. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The Resource Provider name. Changing this forces a new resource to be created. */ providerName?: pulumi.Input; } /** * The set of arguments for constructing a ResourceProviderFeatureRegistration resource. */ export interface ResourceProviderFeatureRegistrationArgs { /** * Specifies the name of the feature to register. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The Resource Provider name. Changing this forces a new resource to be created. */ providerName: pulumi.Input; }