import * as pulumi from "@pulumi/pulumi"; /** * Manages an API Management Gateway Host Name Configuration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as std from "@pulumi/std"; * * 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: "pub1", * publisherEmail: "pub1@email.com", * skuName: "Consumption_0", * }); * const exampleGateway = new azure.apimanagement.Gateway("example", { * name: "example-gateway", * apiManagementId: exampleService.id, * description: "Example API Management gateway", * locationData: { * name: "example name", * city: "example city", * district: "example district", * region: "example region", * }, * }); * const exampleCertificate = new azure.apimanagement.Certificate("example", { * name: "example-cert", * apiManagementName: exampleService.name, * resourceGroupName: example.name, * data: std.filebase64({ * input: "example.pfx", * }).then(invoke => invoke.result), * }); * const exampleGatewayHostNameConfiguration = new azure.apimanagement.GatewayHostNameConfiguration("example", { * name: "example-host-name-configuration", * apiManagementId: exampleService.id, * gatewayName: exampleGateway.name, * certificateId: exampleCertificate.id, * hostName: "example-host-name", * requestClientCertificateEnabled: true, * http2Enabled: true, * tls10Enabled: true, * tls11Enabled: false, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 * * ## Import * * API Management Gateway Host Name Configuration can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:apimanagement/gatewayHostNameConfiguration:GatewayHostNameConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/gateways/gateway1/hostnameConfigurations/hc1 * ``` */ export declare class GatewayHostNameConfiguration extends pulumi.CustomResource { /** * Get an existing GatewayHostNameConfiguration 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?: GatewayHostNameConfigurationState, opts?: pulumi.CustomResourceOptions): GatewayHostNameConfiguration; /** * Returns true if the given object is an instance of GatewayHostNameConfiguration. 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 GatewayHostNameConfiguration; /** * The ID of the API Management Service. Changing this forces a new resource to be created. */ readonly apiManagementId: pulumi.Output; /** * The certificate ID to be used for TLS connection establishment. */ readonly certificateId: pulumi.Output; /** * The name of the API Management Gateway. Changing this forces a new resource to be created. */ readonly gatewayName: pulumi.Output; /** * The host name to use for the API Management Gateway Host Name Configuration. */ readonly hostName: pulumi.Output; /** * Whether HTTP/2.0 is supported. Defaults to `true`. */ readonly http2Enabled: pulumi.Output; /** * The name of the API Management Gateway Host Name Configuration. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Whether the API Management Gateway requests a client certificate. */ readonly requestClientCertificateEnabled: pulumi.Output; /** * Whether TLS 1.0 is supported. */ readonly tls10Enabled: pulumi.Output; /** * Whether TLS 1.1 is supported. */ readonly tls11Enabled: pulumi.Output; /** * Create a GatewayHostNameConfiguration 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: GatewayHostNameConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GatewayHostNameConfiguration resources. */ export interface GatewayHostNameConfigurationState { /** * The ID of the API Management Service. Changing this forces a new resource to be created. */ apiManagementId?: pulumi.Input; /** * The certificate ID to be used for TLS connection establishment. */ certificateId?: pulumi.Input; /** * The name of the API Management Gateway. Changing this forces a new resource to be created. */ gatewayName?: pulumi.Input; /** * The host name to use for the API Management Gateway Host Name Configuration. */ hostName?: pulumi.Input; /** * Whether HTTP/2.0 is supported. Defaults to `true`. */ http2Enabled?: pulumi.Input; /** * The name of the API Management Gateway Host Name Configuration. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether the API Management Gateway requests a client certificate. */ requestClientCertificateEnabled?: pulumi.Input; /** * Whether TLS 1.0 is supported. */ tls10Enabled?: pulumi.Input; /** * Whether TLS 1.1 is supported. */ tls11Enabled?: pulumi.Input; } /** * The set of arguments for constructing a GatewayHostNameConfiguration resource. */ export interface GatewayHostNameConfigurationArgs { /** * The ID of the API Management Service. Changing this forces a new resource to be created. */ apiManagementId: pulumi.Input; /** * The certificate ID to be used for TLS connection establishment. */ certificateId: pulumi.Input; /** * The name of the API Management Gateway. Changing this forces a new resource to be created. */ gatewayName: pulumi.Input; /** * The host name to use for the API Management Gateway Host Name Configuration. */ hostName: pulumi.Input; /** * Whether HTTP/2.0 is supported. Defaults to `true`. */ http2Enabled?: pulumi.Input; /** * The name of the API Management Gateway Host Name Configuration. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether the API Management Gateway requests a client certificate. */ requestClientCertificateEnabled?: pulumi.Input; /** * Whether TLS 1.0 is supported. */ tls10Enabled?: pulumi.Input; /** * Whether TLS 1.1 is supported. */ tls11Enabled?: pulumi.Input; }