import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Event Grid Partner Configuration. * * ## 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 examplePartnerConfiguration = new azure.eventgrid.PartnerConfiguration("example", { * resourceGroupName: example.name, * defaultMaximumExpirationTimeInDays: 14, * partnerAuthorizations: [{ * partnerRegistrationId: "804a11ca-ce9b-4158-8e94-3c8dc7a072ec", * partnerName: "Auth0", * authorizationExpirationTimeInUtc: "2025-02-05T00:00:00Z", * }], * tags: { * environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 * * ## Import * * Event Grid Partner Configurations can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventgrid/partnerConfiguration:PartnerConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1 * ``` */ export declare class PartnerConfiguration extends pulumi.CustomResource { /** * Get an existing PartnerConfiguration 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?: PartnerConfigurationState, opts?: pulumi.CustomResourceOptions): PartnerConfiguration; /** * Returns true if the given object is an instance of PartnerConfiguration. 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 PartnerConfiguration; /** * Time used to validate the authorization expiration time for each authorized partner. Defaults to `7`. */ readonly defaultMaximumExpirationTimeInDays: pulumi.Output; /** * One or more `partnerAuthorization` blocks as defined below. */ readonly partnerAuthorizations: pulumi.Output; /** * The name of the Resource Group where the Event Grid Partner Configuration should exist. Changing this forces a new Event Grid Partner Configuration to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags which should be assigned to the Event Grid Partner Configuration. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a PartnerConfiguration 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: PartnerConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PartnerConfiguration resources. */ export interface PartnerConfigurationState { /** * Time used to validate the authorization expiration time for each authorized partner. Defaults to `7`. */ defaultMaximumExpirationTimeInDays?: pulumi.Input; /** * One or more `partnerAuthorization` blocks as defined below. */ partnerAuthorizations?: pulumi.Input[]>; /** * The name of the Resource Group where the Event Grid Partner Configuration should exist. Changing this forces a new Event Grid Partner Configuration to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags which should be assigned to the Event Grid Partner Configuration. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a PartnerConfiguration resource. */ export interface PartnerConfigurationArgs { /** * Time used to validate the authorization expiration time for each authorized partner. Defaults to `7`. */ defaultMaximumExpirationTimeInDays?: pulumi.Input; /** * One or more `partnerAuthorization` blocks as defined below. */ partnerAuthorizations?: pulumi.Input[]>; /** * The name of the Resource Group where the Event Grid Partner Configuration should exist. Changing this forces a new Event Grid Partner Configuration to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the Event Grid Partner Configuration. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }