import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure Endpoint within a Traffic Manager Profile. * * ## 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 examplePublicIp = new azure.network.PublicIp("example", { * name: "example-public-ip", * location: example.location, * resourceGroupName: example.name, * allocationMethod: "Static", * domainNameLabel: "example-public-ip", * }); * const exampleTrafficManagerProfile = new azure.network.TrafficManagerProfile("example", { * name: "example-profile", * resourceGroupName: example.name, * trafficRoutingMethod: "Weighted", * dnsConfig: { * relativeName: "example-profile", * ttl: 100, * }, * monitorConfig: { * protocol: "HTTP", * port: 80, * path: "/", * intervalInSeconds: 30, * timeoutInSeconds: 9, * toleratedNumberOfFailures: 3, * }, * tags: { * environment: "Production", * }, * }); * const exampleTrafficManagerAzureEndpoint = new azure.network.TrafficManagerAzureEndpoint("example", { * name: "example-endpoint", * profileId: exampleTrafficManagerProfile.id, * alwaysServeEnabled: true, * weight: 100, * targetResourceId: examplePublicIp.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2022-04-01 * * ## Import * * Azure Endpoints can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/trafficManagerAzureEndpoint:TrafficManagerAzureEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.Network/trafficManagerProfiles/example-profile/AzureEndpoints/example-endpoint * ``` */ export declare class TrafficManagerAzureEndpoint extends pulumi.CustomResource { /** * Get an existing TrafficManagerAzureEndpoint 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?: TrafficManagerAzureEndpointState, opts?: pulumi.CustomResourceOptions): TrafficManagerAzureEndpoint; /** * Returns true if the given object is an instance of TrafficManagerAzureEndpoint. 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 TrafficManagerAzureEndpoint; /** * If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. Defaults to `false`. */ readonly alwaysServeEnabled: pulumi.Output; /** * One or more `customHeader` blocks as defined below. */ readonly customHeaders: pulumi.Output; /** * Is the endpoint enabled? Defaults to `true`. */ readonly enabled: pulumi.Output; /** * A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). */ readonly geoMappings: pulumi.Output; /** * The name of the Azure Endpoint. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ readonly priority: pulumi.Output; /** * The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. */ readonly profileId: pulumi.Output; /** * One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. */ readonly subnets: pulumi.Output; /** * The ID of the Azure Resource which should be used as a target. */ readonly targetResourceId: pulumi.Output; /** * Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the Weighted traffic routing method. Valid values are between `1` and `1000`. Defaults to `1`. */ readonly weight: pulumi.Output; /** * Create a TrafficManagerAzureEndpoint 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: TrafficManagerAzureEndpointArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TrafficManagerAzureEndpoint resources. */ export interface TrafficManagerAzureEndpointState { /** * If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. Defaults to `false`. */ alwaysServeEnabled?: pulumi.Input; /** * One or more `customHeader` blocks as defined below. */ customHeaders?: pulumi.Input[]>; /** * Is the endpoint enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). */ geoMappings?: pulumi.Input[]>; /** * The name of the Azure Endpoint. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ priority?: pulumi.Input; /** * The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. */ profileId?: pulumi.Input; /** * One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. */ subnets?: pulumi.Input[]>; /** * The ID of the Azure Resource which should be used as a target. */ targetResourceId?: pulumi.Input; /** * Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the Weighted traffic routing method. Valid values are between `1` and `1000`. Defaults to `1`. */ weight?: pulumi.Input; } /** * The set of arguments for constructing a TrafficManagerAzureEndpoint resource. */ export interface TrafficManagerAzureEndpointArgs { /** * If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. Defaults to `false`. */ alwaysServeEnabled?: pulumi.Input; /** * One or more `customHeader` blocks as defined below. */ customHeaders?: pulumi.Input[]>; /** * Is the endpoint enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). */ geoMappings?: pulumi.Input[]>; /** * The name of the Azure Endpoint. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ priority?: pulumi.Input; /** * The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. */ profileId: pulumi.Input; /** * One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. */ subnets?: pulumi.Input[]>; /** * The ID of the Azure Resource which should be used as a target. */ targetResourceId: pulumi.Input; /** * Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the Weighted traffic routing method. Valid values are between `1` and `1000`. Defaults to `1`. */ weight?: pulumi.Input; }