import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing Static Web App. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.appservice.getStaticWebApp({ * name: "existing", * resourceGroupName: "existing", * }); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Web` - 2023-01-01 */ export declare function getStaticWebApp(args: GetStaticWebAppArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getStaticWebApp. */ export interface GetStaticWebAppArgs { /** * The name of this Static Web App. */ name: string; /** * The name of the Resource Group where the Static Web App exists. */ resourceGroupName: string; } /** * A collection of values returned by getStaticWebApp. */ export interface GetStaticWebAppResult { /** * The API key of this Static Web App, which is used for later interacting with this Static Web App from other clients, e.g. GitHub Action. */ readonly apiKey: string; /** * The map of key-value pairs of App Settings for the Static Web App. */ readonly appSettings: { [key: string]: string; }; /** * A `basicAuth` block as defined below. */ readonly basicAuths: outputs.appservice.GetStaticWebAppBasicAuth[]; /** * Are changes to the configuration file permitted. */ readonly configurationFileChangesEnabled: boolean; /** * The default host name of the Static Web App. */ readonly defaultHostName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * An `identity` block as defined below. */ readonly identities: outputs.appservice.GetStaticWebAppIdentity[]; /** * The Azure region in which this Static Web App exists. */ readonly location: string; readonly name: string; /** * Are Preview (Staging) environments enabled. */ readonly previewEnvironmentsEnabled: boolean; /** * Should public network access be enabled for the Static Web App. */ readonly publicNetworkAccessEnabled: boolean; /** * Repository branch of the Static Web App. */ readonly repositoryBranch: string; /** * Repository URL of the Static Web App. */ readonly repositoryUrl: string; readonly resourceGroupName: string; /** * The SKU size of the Static Web App. */ readonly skuSize: string; /** * The SKU tier of the Static Web App. */ readonly skuTier: string; /** * The mapping of tags assigned to the resource. */ readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing Static Web App. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.appservice.getStaticWebApp({ * name: "existing", * resourceGroupName: "existing", * }); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Web` - 2023-01-01 */ export declare function getStaticWebAppOutput(args: GetStaticWebAppOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getStaticWebApp. */ export interface GetStaticWebAppOutputArgs { /** * The name of this Static Web App. */ name: pulumi.Input; /** * The name of the Resource Group where the Static Web App exists. */ resourceGroupName: pulumi.Input; }