import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Traffic Manager Profile to which multiple endpoints can be attached. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as random from "@pulumi/random"; * * const server = new random.index.Id("server", { * keepers: { * aziId: 1, * }, * byteLength: 8, * }); * const example = new azure.core.ResourceGroup("example", { * name: "trafficmanagerProfile", * location: "West Europe", * }); * const exampleTrafficManagerProfile = new azure.network.TrafficManagerProfile("example", { * name: server.hex, * resourceGroupName: example.name, * trafficRoutingMethod: "Weighted", * dnsConfig: { * relativeName: server.hex, * ttl: 100, * }, * monitorConfig: { * protocol: "HTTP", * port: 80, * path: "/", * intervalInSeconds: 30, * timeoutInSeconds: 9, * toleratedNumberOfFailures: 3, * }, * tags: { * environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2022-04-01 * * ## Import * * Traffic Manager Profiles can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/trafficManagerProfile:TrafficManagerProfile exampleProfile /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/trafficManagerProfiles/mytrafficmanagerprofile1 * ``` */ export declare class TrafficManagerProfile extends pulumi.CustomResource { /** * Get an existing TrafficManagerProfile 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?: TrafficManagerProfileState, opts?: pulumi.CustomResourceOptions): TrafficManagerProfile; /** * Returns true if the given object is an instance of TrafficManagerProfile. 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 TrafficManagerProfile; /** * This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below. */ readonly dnsConfig: pulumi.Output; /** * The FQDN of the created Profile. */ readonly fqdn: pulumi.Output; /** * The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`. * * > **Note:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`. */ readonly maxReturn: pulumi.Output; /** * This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below. */ readonly monitorConfig: pulumi.Output; /** * The name of the Traffic Manager profile. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`. */ readonly profileStatus: pulumi.Output; /** * The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`. * * `Geographic` - Traffic is routed based on Geographic regions specified in the Endpoint. * * `MultiValue` - All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type `External` and are specified as IPv4 or IPv6 addresses. * * `Performance` - Traffic is routed via the User's closest Endpoint * * `Priority` - Traffic is routed to the Endpoint with the lowest `priority` value. * * `Subnet` - Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile. * * `Weighted` - Traffic is spread across Endpoints proportional to their `weight` value. */ readonly trafficRoutingMethod: pulumi.Output; /** * Indicates whether Traffic View is enabled for the Traffic Manager profile. */ readonly trafficViewEnabled: pulumi.Output; /** * Create a TrafficManagerProfile 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: TrafficManagerProfileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TrafficManagerProfile resources. */ export interface TrafficManagerProfileState { /** * This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below. */ dnsConfig?: pulumi.Input; /** * The FQDN of the created Profile. */ fqdn?: pulumi.Input; /** * The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`. * * > **Note:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`. */ maxReturn?: pulumi.Input; /** * This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below. */ monitorConfig?: pulumi.Input; /** * The name of the Traffic Manager profile. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`. */ profileStatus?: pulumi.Input; /** * The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`. * * `Geographic` - Traffic is routed based on Geographic regions specified in the Endpoint. * * `MultiValue` - All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type `External` and are specified as IPv4 or IPv6 addresses. * * `Performance` - Traffic is routed via the User's closest Endpoint * * `Priority` - Traffic is routed to the Endpoint with the lowest `priority` value. * * `Subnet` - Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile. * * `Weighted` - Traffic is spread across Endpoints proportional to their `weight` value. */ trafficRoutingMethod?: pulumi.Input; /** * Indicates whether Traffic View is enabled for the Traffic Manager profile. */ trafficViewEnabled?: pulumi.Input; } /** * The set of arguments for constructing a TrafficManagerProfile resource. */ export interface TrafficManagerProfileArgs { /** * This block specifies the DNS configuration of the Profile. One `dnsConfig` block as defined below. */ dnsConfig: pulumi.Input; /** * The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`. * * > **Note:** `maxReturn` must be set when the `trafficRoutingMethod` is `MultiValue`. */ maxReturn?: pulumi.Input; /** * This block specifies the Endpoint monitoring configuration for the Profile. One `monitorConfig` block as defined below. */ monitorConfig: pulumi.Input; /** * The name of the Traffic Manager profile. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`. */ profileStatus?: pulumi.Input; /** * The name of the resource group in which to create the Traffic Manager profile. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the algorithm used to route traffic. Possible values are `Geographic`, `Weighted`, `Performance`, `Priority`, `Subnet` and `MultiValue`. * * `Geographic` - Traffic is routed based on Geographic regions specified in the Endpoint. * * `MultiValue` - All healthy Endpoints are returned. MultiValue routing method works only if all the endpoints of type `External` and are specified as IPv4 or IPv6 addresses. * * `Performance` - Traffic is routed via the User's closest Endpoint * * `Priority` - Traffic is routed to the Endpoint with the lowest `priority` value. * * `Subnet` - Traffic is routed based on a mapping of sets of end-user IP address ranges to a specific Endpoint within a Traffic Manager profile. * * `Weighted` - Traffic is spread across Endpoints proportional to their `weight` value. */ trafficRoutingMethod: pulumi.Input; /** * Indicates whether Traffic View is enabled for the Traffic Manager profile. */ trafficViewEnabled?: pulumi.Input; }