import * as pulumi from "@pulumi/pulumi"; /** * Manages an API Management AAD Identity Provider. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleService = new azure.apimanagement.Service("example", { * name: "example-apim", * location: example.location, * resourceGroupName: example.name, * publisherName: "My Company", * publisherEmail: "company@mycompany.io", * skuName: "Developer_1", * }); * const exampleIdentityProviderAad = new azure.apimanagement.IdentityProviderAad("example", { * resourceGroupName: example.name, * apiManagementName: exampleService.name, * clientId: "00000000-0000-0000-0000-000000000000", * clientSecret: "00000000000000000000000000000000", * allowedTenants: ["00000000-0000-0000-0000-000000000000"], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management AAD Identity Provider can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/identityProviderAad:IdentityProviderAad example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/identityProviders/aad * ``` */ export declare class IdentityProviderAad extends pulumi.CustomResource { /** * Get an existing IdentityProviderAad 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?: IdentityProviderAadState, opts?: pulumi.CustomResourceOptions): IdentityProviderAad; /** * Returns true if the given object is an instance of IdentityProviderAad. 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 IdentityProviderAad; /** * List of allowed AAD Tenants. */ readonly allowedTenants: pulumi.Output; /** * The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created. */ readonly apiManagementName: pulumi.Output; /** * Client Id of the Application in the AAD Identity Provider. */ readonly clientId: pulumi.Output; /** * The client library to be used in the AAD Identity Provider. */ readonly clientLibrary: pulumi.Output; /** * Client secret of the Application in the AAD Identity Provider. */ readonly clientSecret: pulumi.Output; /** * The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The AAD Tenant to use instead of Common when logging into Active Directory. */ readonly signinTenant: pulumi.Output; /** * Create a IdentityProviderAad 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: IdentityProviderAadArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IdentityProviderAad resources. */ export interface IdentityProviderAadState { /** * List of allowed AAD Tenants. */ allowedTenants?: pulumi.Input[]>; /** * The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created. */ apiManagementName?: pulumi.Input; /** * Client Id of the Application in the AAD Identity Provider. */ clientId?: pulumi.Input; /** * The client library to be used in the AAD Identity Provider. */ clientLibrary?: pulumi.Input; /** * Client secret of the Application in the AAD Identity Provider. */ clientSecret?: pulumi.Input; /** * The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The AAD Tenant to use instead of Common when logging into Active Directory. */ signinTenant?: pulumi.Input; } /** * The set of arguments for constructing a IdentityProviderAad resource. */ export interface IdentityProviderAadArgs { /** * List of allowed AAD Tenants. */ allowedTenants: pulumi.Input[]>; /** * The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created. */ apiManagementName: pulumi.Input; /** * Client Id of the Application in the AAD Identity Provider. */ clientId: pulumi.Input; /** * The client library to be used in the AAD Identity Provider. */ clientLibrary?: pulumi.Input; /** * Client secret of the Application in the AAD Identity Provider. */ clientSecret: pulumi.Input; /** * The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The AAD Tenant to use instead of Common when logging into Active Directory. */ signinTenant?: pulumi.Input; }