trafficmanager

package
v4.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint deprecated

type Endpoint struct {
	pulumi.CustomResourceState

	// One or more `customHeader` blocks as defined below
	CustomHeaders EndpointCustomHeaderArrayOutput `pulumi:"customHeaders"`
	// Specifies the Azure location of the Endpoint,
	// this must be specified for Profiles using the `Performance` routing method
	// if the Endpoint is of either type `nestedEndpoints` or `externalEndpoints`.
	// For Endpoints of type `azureEndpoints` the value will be taken from the
	// location of the Azure target resource.
	EndpointLocation      pulumi.StringOutput `pulumi:"endpointLocation"`
	EndpointMonitorStatus pulumi.StringOutput `pulumi:"endpointMonitorStatus"`
	// The status of the Endpoint, can be set to
	// either `Enabled` or `Disabled`. Defaults to `Enabled`.
	EndpointStatus pulumi.StringOutput `pulumi:"endpointStatus"`
	// 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/en-us/rest/api/trafficmanager/geographichierarchies/getdefault).
	GeoMappings pulumi.StringArrayOutput `pulumi:"geoMappings"`
	// This argument specifies the minimum number
	// of endpoints that must be ‘online’ in the child profile in order for the
	// parent profile to direct traffic to any of the endpoints in that child
	// profile. This argument only applies to Endpoints of type `nestedEndpoints`
	// and has to be larger than `0`.
	MinChildEndpoints pulumi.IntPtrOutput `pulumi:"minChildEndpoints"`
	// This argument specifies the minimum number of IPv4 (DNS record type A) endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type `nestedEndpoints` and defaults to `1`.
	MinimumRequiredChildEndpointsIpv4 pulumi.IntPtrOutput `pulumi:"minimumRequiredChildEndpointsIpv4"`
	// This argument specifies the minimum number of IPv6 (DNS record type AAAA) endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type `nestedEndpoints` and defaults to `1`.
	MinimumRequiredChildEndpointsIpv6 pulumi.IntPtrOutput `pulumi:"minimumRequiredChildEndpointsIpv6"`
	// The name of the Traffic Manager endpoint. Changing this forces a
	// new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// 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.IntOutput `pulumi:"priority"`
	// The name of the Traffic Manager Profile to attach
	// create the Traffic Manager endpoint.
	ProfileName pulumi.StringOutput `pulumi:"profileName"`
	// The name of the resource group where the Traffic Manager Profile exists.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// One or more `subnet` blocks as defined below
	Subnets EndpointSubnetArrayOutput `pulumi:"subnets"`
	// The FQDN DNS name of the target. This argument must be
	// provided for an endpoint of type `externalEndpoints`, for other types it
	// will be computed.
	Target pulumi.StringOutput `pulumi:"target"`
	// The resource id of an Azure resource to
	// target. This argument must be provided for an endpoint of type
	// `azureEndpoints` or `nestedEndpoints`.
	TargetResourceId pulumi.StringPtrOutput `pulumi:"targetResourceId"`
	// The Endpoint type, must be one of:
	// - `azureEndpoints`
	// - `externalEndpoints`
	// - `nestedEndpoints`
	Type pulumi.StringOutput `pulumi:"type"`
	// Specifies how much traffic should be distributed to this
	// endpoint, this must be specified for Profiles using the  `Weighted` traffic
	// routing method. Supports values between 1 and 1000.
	Weight pulumi.IntOutput `pulumi:"weight"`
}

Manages a Traffic Manager Endpoint.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		server, err := random.NewRandomId(ctx, "server", &random.RandomIdArgs{
			Keepers: pulumi.AnyMap{
				"azi_id": pulumi.Any(1),
			},
			ByteLength: pulumi.Int(8),
		})
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleTrafficManagerProfile, err := network.NewTrafficManagerProfile(ctx, "exampleTrafficManagerProfile", &network.TrafficManagerProfileArgs{
			ResourceGroupName:    exampleResourceGroup.Name,
			TrafficRoutingMethod: pulumi.String("Weighted"),
			DnsConfig: &network.TrafficManagerProfileDnsConfigArgs{
				RelativeName: server.Hex,
				Ttl:          pulumi.Int(100),
			},
			MonitorConfig: &network.TrafficManagerProfileMonitorConfigArgs{
				Protocol:                  pulumi.String("http"),
				Port:                      pulumi.Int(80),
				Path:                      pulumi.String("/"),
				IntervalInSeconds:         pulumi.Int(30),
				TimeoutInSeconds:          pulumi.Int(9),
				ToleratedNumberOfFailures: pulumi.Int(3),
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		_, err = network.NewTrafficManagerEndpoint(ctx, "exampleTrafficManagerEndpoint", &network.TrafficManagerEndpointArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			ProfileName:       exampleTrafficManagerProfile.Name,
			Type:              pulumi.String("externalEndpoints"),
			Weight:            pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Traffic Manager Endpoints can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:trafficmanager/endpoint:Endpoint exampleEndpoints /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/trafficManagerProfiles/mytrafficmanagerprofile1/azureEndpoints/mytrafficmanagerendpoint

```

Deprecated: azure.trafficmanager.Endpoint has been deprecated in favor of azure.network.TrafficManagerEndpoint

func GetEndpoint

func GetEndpoint(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EndpointState, opts ...pulumi.ResourceOption) (*Endpoint, error)

GetEndpoint gets an existing Endpoint resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEndpoint

func NewEndpoint(ctx *pulumi.Context,
	name string, args *EndpointArgs, opts ...pulumi.ResourceOption) (*Endpoint, error)

NewEndpoint registers a new resource with the given unique name, arguments, and options.

func (*Endpoint) ElementType

func (*Endpoint) ElementType() reflect.Type

func (*Endpoint) ToEndpointOutput

func (i *Endpoint) ToEndpointOutput() EndpointOutput

func (*Endpoint) ToEndpointOutputWithContext

func (i *Endpoint) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput

func (*Endpoint) ToEndpointPtrOutput

func (i *Endpoint) ToEndpointPtrOutput() EndpointPtrOutput

func (*Endpoint) ToEndpointPtrOutputWithContext

func (i *Endpoint) ToEndpointPtrOutputWithContext(ctx context.Context) EndpointPtrOutput

type EndpointArgs

type EndpointArgs struct {
	// One or more `customHeader` blocks as defined below
	CustomHeaders EndpointCustomHeaderArrayInput
	// Specifies the Azure location of the Endpoint,
	// this must be specified for Profiles using the `Performance` routing method
	// if the Endpoint is of either type `nestedEndpoints` or `externalEndpoints`.
	// For Endpoints of type `azureEndpoints` the value will be taken from the
	// location of the Azure target resource.
	EndpointLocation pulumi.StringPtrInput
	// The status of the Endpoint, can be set to
	// either `Enabled` or `Disabled`. Defaults to `Enabled`.
	EndpointStatus pulumi.StringPtrInput
	// 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/en-us/rest/api/trafficmanager/geographichierarchies/getdefault).
	GeoMappings pulumi.StringArrayInput
	// This argument specifies the minimum number
	// of endpoints that must be ‘online’ in the child profile in order for the
	// parent profile to direct traffic to any of the endpoints in that child
	// profile. This argument only applies to Endpoints of type `nestedEndpoints`
	// and has to be larger than `0`.
	MinChildEndpoints pulumi.IntPtrInput
	// This argument specifies the minimum number of IPv4 (DNS record type A) endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type `nestedEndpoints` and defaults to `1`.
	MinimumRequiredChildEndpointsIpv4 pulumi.IntPtrInput
	// This argument specifies the minimum number of IPv6 (DNS record type AAAA) endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type `nestedEndpoints` and defaults to `1`.
	MinimumRequiredChildEndpointsIpv6 pulumi.IntPtrInput
	// The name of the Traffic Manager endpoint. Changing this forces a
	// new resource to be created.
	Name pulumi.StringPtrInput
	// 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.IntPtrInput
	// The name of the Traffic Manager Profile to attach
	// create the Traffic Manager endpoint.
	ProfileName pulumi.StringInput
	// The name of the resource group where the Traffic Manager Profile exists.
	ResourceGroupName pulumi.StringInput
	// One or more `subnet` blocks as defined below
	Subnets EndpointSubnetArrayInput
	// The FQDN DNS name of the target. This argument must be
	// provided for an endpoint of type `externalEndpoints`, for other types it
	// will be computed.
	Target pulumi.StringPtrInput
	// The resource id of an Azure resource to
	// target. This argument must be provided for an endpoint of type
	// `azureEndpoints` or `nestedEndpoints`.
	TargetResourceId pulumi.StringPtrInput
	// The Endpoint type, must be one of:
	// - `azureEndpoints`
	// - `externalEndpoints`
	// - `nestedEndpoints`
	Type pulumi.StringInput
	// Specifies how much traffic should be distributed to this
	// endpoint, this must be specified for Profiles using the  `Weighted` traffic
	// routing method. Supports values between 1 and 1000.
	Weight pulumi.IntPtrInput
}

The set of arguments for constructing a Endpoint resource.

func (EndpointArgs) ElementType

func (EndpointArgs) ElementType() reflect.Type

type EndpointArray

type EndpointArray []EndpointInput

func (EndpointArray) ElementType

func (EndpointArray) ElementType() reflect.Type

func (EndpointArray) ToEndpointArrayOutput

func (i EndpointArray) ToEndpointArrayOutput() EndpointArrayOutput

func (EndpointArray) ToEndpointArrayOutputWithContext

func (i EndpointArray) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput

type EndpointArrayInput

type EndpointArrayInput interface {
	pulumi.Input

	ToEndpointArrayOutput() EndpointArrayOutput
	ToEndpointArrayOutputWithContext(context.Context) EndpointArrayOutput
}

EndpointArrayInput is an input type that accepts EndpointArray and EndpointArrayOutput values. You can construct a concrete instance of `EndpointArrayInput` via:

EndpointArray{ EndpointArgs{...} }

type EndpointArrayOutput

type EndpointArrayOutput struct{ *pulumi.OutputState }

func (EndpointArrayOutput) ElementType

func (EndpointArrayOutput) ElementType() reflect.Type

func (EndpointArrayOutput) Index

func (EndpointArrayOutput) ToEndpointArrayOutput

func (o EndpointArrayOutput) ToEndpointArrayOutput() EndpointArrayOutput

func (EndpointArrayOutput) ToEndpointArrayOutputWithContext

func (o EndpointArrayOutput) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput

type EndpointCustomHeader

type EndpointCustomHeader struct {
	// The name of the custom header.
	Name string `pulumi:"name"`
	// The value of custom header. Applicable for Http and Https protocol.
	Value string `pulumi:"value"`
}

type EndpointCustomHeaderArgs

type EndpointCustomHeaderArgs struct {
	// The name of the custom header.
	Name pulumi.StringInput `pulumi:"name"`
	// The value of custom header. Applicable for Http and Https protocol.
	Value pulumi.StringInput `pulumi:"value"`
}

func (EndpointCustomHeaderArgs) ElementType

func (EndpointCustomHeaderArgs) ElementType() reflect.Type

func (EndpointCustomHeaderArgs) ToEndpointCustomHeaderOutput

func (i EndpointCustomHeaderArgs) ToEndpointCustomHeaderOutput() EndpointCustomHeaderOutput

func (EndpointCustomHeaderArgs) ToEndpointCustomHeaderOutputWithContext

func (i EndpointCustomHeaderArgs) ToEndpointCustomHeaderOutputWithContext(ctx context.Context) EndpointCustomHeaderOutput

type EndpointCustomHeaderArray

type EndpointCustomHeaderArray []EndpointCustomHeaderInput

func (EndpointCustomHeaderArray) ElementType

func (EndpointCustomHeaderArray) ElementType() reflect.Type

func (EndpointCustomHeaderArray) ToEndpointCustomHeaderArrayOutput

func (i EndpointCustomHeaderArray) ToEndpointCustomHeaderArrayOutput() EndpointCustomHeaderArrayOutput

func (EndpointCustomHeaderArray) ToEndpointCustomHeaderArrayOutputWithContext

func (i EndpointCustomHeaderArray) ToEndpointCustomHeaderArrayOutputWithContext(ctx context.Context) EndpointCustomHeaderArrayOutput

type EndpointCustomHeaderArrayInput

type EndpointCustomHeaderArrayInput interface {
	pulumi.Input

	ToEndpointCustomHeaderArrayOutput() EndpointCustomHeaderArrayOutput
	ToEndpointCustomHeaderArrayOutputWithContext(context.Context) EndpointCustomHeaderArrayOutput
}

EndpointCustomHeaderArrayInput is an input type that accepts EndpointCustomHeaderArray and EndpointCustomHeaderArrayOutput values. You can construct a concrete instance of `EndpointCustomHeaderArrayInput` via:

EndpointCustomHeaderArray{ EndpointCustomHeaderArgs{...} }

type EndpointCustomHeaderArrayOutput

type EndpointCustomHeaderArrayOutput struct{ *pulumi.OutputState }

func (EndpointCustomHeaderArrayOutput) ElementType

func (EndpointCustomHeaderArrayOutput) Index

func (EndpointCustomHeaderArrayOutput) ToEndpointCustomHeaderArrayOutput

func (o EndpointCustomHeaderArrayOutput) ToEndpointCustomHeaderArrayOutput() EndpointCustomHeaderArrayOutput

func (EndpointCustomHeaderArrayOutput) ToEndpointCustomHeaderArrayOutputWithContext

func (o EndpointCustomHeaderArrayOutput) ToEndpointCustomHeaderArrayOutputWithContext(ctx context.Context) EndpointCustomHeaderArrayOutput

type EndpointCustomHeaderInput

type EndpointCustomHeaderInput interface {
	pulumi.Input

	ToEndpointCustomHeaderOutput() EndpointCustomHeaderOutput
	ToEndpointCustomHeaderOutputWithContext(context.Context) EndpointCustomHeaderOutput
}

EndpointCustomHeaderInput is an input type that accepts EndpointCustomHeaderArgs and EndpointCustomHeaderOutput values. You can construct a concrete instance of `EndpointCustomHeaderInput` via:

EndpointCustomHeaderArgs{...}

type EndpointCustomHeaderOutput

type EndpointCustomHeaderOutput struct{ *pulumi.OutputState }

func (EndpointCustomHeaderOutput) ElementType

func (EndpointCustomHeaderOutput) ElementType() reflect.Type

func (EndpointCustomHeaderOutput) Name

The name of the custom header.

func (EndpointCustomHeaderOutput) ToEndpointCustomHeaderOutput

func (o EndpointCustomHeaderOutput) ToEndpointCustomHeaderOutput() EndpointCustomHeaderOutput

func (EndpointCustomHeaderOutput) ToEndpointCustomHeaderOutputWithContext

func (o EndpointCustomHeaderOutput) ToEndpointCustomHeaderOutputWithContext(ctx context.Context) EndpointCustomHeaderOutput

func (EndpointCustomHeaderOutput) Value

The value of custom header. Applicable for Http and Https protocol.

type EndpointInput

type EndpointInput interface {
	pulumi.Input

	ToEndpointOutput() EndpointOutput
	ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
}

type EndpointMap

type EndpointMap map[string]EndpointInput

func (EndpointMap) ElementType

func (EndpointMap) ElementType() reflect.Type

func (EndpointMap) ToEndpointMapOutput

func (i EndpointMap) ToEndpointMapOutput() EndpointMapOutput

func (EndpointMap) ToEndpointMapOutputWithContext

func (i EndpointMap) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput

type EndpointMapInput

type EndpointMapInput interface {
	pulumi.Input

	ToEndpointMapOutput() EndpointMapOutput
	ToEndpointMapOutputWithContext(context.Context) EndpointMapOutput
}

EndpointMapInput is an input type that accepts EndpointMap and EndpointMapOutput values. You can construct a concrete instance of `EndpointMapInput` via:

EndpointMap{ "key": EndpointArgs{...} }

type EndpointMapOutput

type EndpointMapOutput struct{ *pulumi.OutputState }

func (EndpointMapOutput) ElementType

func (EndpointMapOutput) ElementType() reflect.Type

func (EndpointMapOutput) MapIndex

func (EndpointMapOutput) ToEndpointMapOutput

func (o EndpointMapOutput) ToEndpointMapOutput() EndpointMapOutput

func (EndpointMapOutput) ToEndpointMapOutputWithContext

func (o EndpointMapOutput) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput

type EndpointOutput

type EndpointOutput struct{ *pulumi.OutputState }

func (EndpointOutput) ElementType

func (EndpointOutput) ElementType() reflect.Type

func (EndpointOutput) ToEndpointOutput

func (o EndpointOutput) ToEndpointOutput() EndpointOutput

func (EndpointOutput) ToEndpointOutputWithContext

func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput

func (EndpointOutput) ToEndpointPtrOutput

func (o EndpointOutput) ToEndpointPtrOutput() EndpointPtrOutput

func (EndpointOutput) ToEndpointPtrOutputWithContext

func (o EndpointOutput) ToEndpointPtrOutputWithContext(ctx context.Context) EndpointPtrOutput

type EndpointPtrInput

type EndpointPtrInput interface {
	pulumi.Input

	ToEndpointPtrOutput() EndpointPtrOutput
	ToEndpointPtrOutputWithContext(ctx context.Context) EndpointPtrOutput
}

type EndpointPtrOutput

type EndpointPtrOutput struct{ *pulumi.OutputState }

func (EndpointPtrOutput) Elem added in v4.20.0

func (EndpointPtrOutput) ElementType

func (EndpointPtrOutput) ElementType() reflect.Type

func (EndpointPtrOutput) ToEndpointPtrOutput

func (o EndpointPtrOutput) ToEndpointPtrOutput() EndpointPtrOutput

func (EndpointPtrOutput) ToEndpointPtrOutputWithContext

func (o EndpointPtrOutput) ToEndpointPtrOutputWithContext(ctx context.Context) EndpointPtrOutput

type EndpointState

type EndpointState struct {
	// One or more `customHeader` blocks as defined below
	CustomHeaders EndpointCustomHeaderArrayInput
	// Specifies the Azure location of the Endpoint,
	// this must be specified for Profiles using the `Performance` routing method
	// if the Endpoint is of either type `nestedEndpoints` or `externalEndpoints`.
	// For Endpoints of type `azureEndpoints` the value will be taken from the
	// location of the Azure target resource.
	EndpointLocation      pulumi.StringPtrInput
	EndpointMonitorStatus pulumi.StringPtrInput
	// The status of the Endpoint, can be set to
	// either `Enabled` or `Disabled`. Defaults to `Enabled`.
	EndpointStatus pulumi.StringPtrInput
	// 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/en-us/rest/api/trafficmanager/geographichierarchies/getdefault).
	GeoMappings pulumi.StringArrayInput
	// This argument specifies the minimum number
	// of endpoints that must be ‘online’ in the child profile in order for the
	// parent profile to direct traffic to any of the endpoints in that child
	// profile. This argument only applies to Endpoints of type `nestedEndpoints`
	// and has to be larger than `0`.
	MinChildEndpoints pulumi.IntPtrInput
	// This argument specifies the minimum number of IPv4 (DNS record type A) endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type `nestedEndpoints` and defaults to `1`.
	MinimumRequiredChildEndpointsIpv4 pulumi.IntPtrInput
	// This argument specifies the minimum number of IPv6 (DNS record type AAAA) endpoints that must be ‘online’ in the child profile in order for the parent profile to direct traffic to any of the endpoints in that child profile. This argument only applies to Endpoints of type `nestedEndpoints` and defaults to `1`.
	MinimumRequiredChildEndpointsIpv6 pulumi.IntPtrInput
	// The name of the Traffic Manager endpoint. Changing this forces a
	// new resource to be created.
	Name pulumi.StringPtrInput
	// 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.IntPtrInput
	// The name of the Traffic Manager Profile to attach
	// create the Traffic Manager endpoint.
	ProfileName pulumi.StringPtrInput
	// The name of the resource group where the Traffic Manager Profile exists.
	ResourceGroupName pulumi.StringPtrInput
	// One or more `subnet` blocks as defined below
	Subnets EndpointSubnetArrayInput
	// The FQDN DNS name of the target. This argument must be
	// provided for an endpoint of type `externalEndpoints`, for other types it
	// will be computed.
	Target pulumi.StringPtrInput
	// The resource id of an Azure resource to
	// target. This argument must be provided for an endpoint of type
	// `azureEndpoints` or `nestedEndpoints`.
	TargetResourceId pulumi.StringPtrInput
	// The Endpoint type, must be one of:
	// - `azureEndpoints`
	// - `externalEndpoints`
	// - `nestedEndpoints`
	Type pulumi.StringPtrInput
	// Specifies how much traffic should be distributed to this
	// endpoint, this must be specified for Profiles using the  `Weighted` traffic
	// routing method. Supports values between 1 and 1000.
	Weight pulumi.IntPtrInput
}

func (EndpointState) ElementType

func (EndpointState) ElementType() reflect.Type

type EndpointSubnet

type EndpointSubnet struct {
	// The First IP....
	First string `pulumi:"first"`
	// The Last IP...
	Last *string `pulumi:"last"`
	// The Scope...
	Scope *int `pulumi:"scope"`
}

type EndpointSubnetArgs

type EndpointSubnetArgs struct {
	// The First IP....
	First pulumi.StringInput `pulumi:"first"`
	// The Last IP...
	Last pulumi.StringPtrInput `pulumi:"last"`
	// The Scope...
	Scope pulumi.IntPtrInput `pulumi:"scope"`
}

func (EndpointSubnetArgs) ElementType

func (EndpointSubnetArgs) ElementType() reflect.Type

func (EndpointSubnetArgs) ToEndpointSubnetOutput

func (i EndpointSubnetArgs) ToEndpointSubnetOutput() EndpointSubnetOutput

func (EndpointSubnetArgs) ToEndpointSubnetOutputWithContext

func (i EndpointSubnetArgs) ToEndpointSubnetOutputWithContext(ctx context.Context) EndpointSubnetOutput

type EndpointSubnetArray

type EndpointSubnetArray []EndpointSubnetInput

func (EndpointSubnetArray) ElementType

func (EndpointSubnetArray) ElementType() reflect.Type

func (EndpointSubnetArray) ToEndpointSubnetArrayOutput

func (i EndpointSubnetArray) ToEndpointSubnetArrayOutput() EndpointSubnetArrayOutput

func (EndpointSubnetArray) ToEndpointSubnetArrayOutputWithContext

func (i EndpointSubnetArray) ToEndpointSubnetArrayOutputWithContext(ctx context.Context) EndpointSubnetArrayOutput

type EndpointSubnetArrayInput

type EndpointSubnetArrayInput interface {
	pulumi.Input

	ToEndpointSubnetArrayOutput() EndpointSubnetArrayOutput
	ToEndpointSubnetArrayOutputWithContext(context.Context) EndpointSubnetArrayOutput
}

EndpointSubnetArrayInput is an input type that accepts EndpointSubnetArray and EndpointSubnetArrayOutput values. You can construct a concrete instance of `EndpointSubnetArrayInput` via:

EndpointSubnetArray{ EndpointSubnetArgs{...} }

type EndpointSubnetArrayOutput

type EndpointSubnetArrayOutput struct{ *pulumi.OutputState }

func (EndpointSubnetArrayOutput) ElementType

func (EndpointSubnetArrayOutput) ElementType() reflect.Type

func (EndpointSubnetArrayOutput) Index

func (EndpointSubnetArrayOutput) ToEndpointSubnetArrayOutput

func (o EndpointSubnetArrayOutput) ToEndpointSubnetArrayOutput() EndpointSubnetArrayOutput

func (EndpointSubnetArrayOutput) ToEndpointSubnetArrayOutputWithContext

func (o EndpointSubnetArrayOutput) ToEndpointSubnetArrayOutputWithContext(ctx context.Context) EndpointSubnetArrayOutput

type EndpointSubnetInput

type EndpointSubnetInput interface {
	pulumi.Input

	ToEndpointSubnetOutput() EndpointSubnetOutput
	ToEndpointSubnetOutputWithContext(context.Context) EndpointSubnetOutput
}

EndpointSubnetInput is an input type that accepts EndpointSubnetArgs and EndpointSubnetOutput values. You can construct a concrete instance of `EndpointSubnetInput` via:

EndpointSubnetArgs{...}

type EndpointSubnetOutput

type EndpointSubnetOutput struct{ *pulumi.OutputState }

func (EndpointSubnetOutput) ElementType

func (EndpointSubnetOutput) ElementType() reflect.Type

func (EndpointSubnetOutput) First

The First IP....

func (EndpointSubnetOutput) Last

The Last IP...

func (EndpointSubnetOutput) Scope

The Scope...

func (EndpointSubnetOutput) ToEndpointSubnetOutput

func (o EndpointSubnetOutput) ToEndpointSubnetOutput() EndpointSubnetOutput

func (EndpointSubnetOutput) ToEndpointSubnetOutputWithContext

func (o EndpointSubnetOutput) ToEndpointSubnetOutputWithContext(ctx context.Context) EndpointSubnetOutput

type GetGeographicalLocationArgs

type GetGeographicalLocationArgs struct {
	// Specifies the name of the Location, for example `World`, `Europe` or `Germany`.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getGeographicalLocation.

type GetGeographicalLocationOutputArgs added in v4.20.0

type GetGeographicalLocationOutputArgs struct {
	// Specifies the name of the Location, for example `World`, `Europe` or `Germany`.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getGeographicalLocation.

func (GetGeographicalLocationOutputArgs) ElementType added in v4.20.0

type GetGeographicalLocationResult

type GetGeographicalLocationResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id   string `pulumi:"id"`
	Name string `pulumi:"name"`
}

A collection of values returned by getGeographicalLocation.

func GetGeographicalLocation deprecated

func GetGeographicalLocation(ctx *pulumi.Context, args *GetGeographicalLocationArgs, opts ...pulumi.InvokeOption) (*GetGeographicalLocationResult, error)

Use this data source to access the ID of a specified Traffic Manager Geographical Location within the Geographical Hierarchy.

## Example Usage ### World)

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := network.GetTrafficManager(ctx, &network.GetTrafficManagerArgs{
			Name: "World",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("locationCode", example.Id)
		return nil
	})
}

```

Deprecated: azure.trafficmanager.getGeographicalLocation has been deprecated in favor of azure.network.getTrafficManager

type GetGeographicalLocationResultOutput added in v4.20.0

type GetGeographicalLocationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGeographicalLocation.

func GetGeographicalLocationOutput added in v4.20.0

func (GetGeographicalLocationResultOutput) ElementType added in v4.20.0

func (GetGeographicalLocationResultOutput) Id added in v4.20.0

The provider-assigned unique ID for this managed resource.

func (GetGeographicalLocationResultOutput) Name added in v4.20.0

func (GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutput added in v4.20.0

func (o GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutput() GetGeographicalLocationResultOutput

func (GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutputWithContext added in v4.20.0

func (o GetGeographicalLocationResultOutput) ToGetGeographicalLocationResultOutputWithContext(ctx context.Context) GetGeographicalLocationResultOutput

type Profile deprecated

type Profile struct {
	pulumi.CustomResourceState

	// This block specifies the DNS configuration of the Profile, it supports the fields documented below.
	DnsConfig ProfileDnsConfigOutput `pulumi:"dnsConfig"`
	// The FQDN of the created Profile.
	Fqdn pulumi.StringOutput `pulumi:"fqdn"`
	// The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.
	MaxReturn pulumi.IntPtrOutput `pulumi:"maxReturn"`
	// This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
	MonitorConfig ProfileMonitorConfigOutput `pulumi:"monitorConfig"`
	// The name of the Traffic Manager profile. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.
	ProfileStatus pulumi.StringOutput `pulumi:"profileStatus"`
	// The name of the resource group in which to create the Traffic Manager profile.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the algorithm used to route traffic, possible values are:
	TrafficRoutingMethod pulumi.StringOutput `pulumi:"trafficRoutingMethod"`
	// Indicates whether Traffic View is enabled for the Traffic Manager profile.
	TrafficViewEnabled pulumi.BoolPtrOutput `pulumi:"trafficViewEnabled"`
}

Manages a Traffic Manager Profile to which multiple endpoints can be attached.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		server, err := random.NewRandomId(ctx, "server", &random.RandomIdArgs{
			Keepers: pulumi.AnyMap{
				"azi_id": pulumi.Any(1),
			},
			ByteLength: pulumi.Int(8),
		})
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = network.NewTrafficManagerProfile(ctx, "exampleTrafficManagerProfile", &network.TrafficManagerProfileArgs{
			ResourceGroupName:    exampleResourceGroup.Name,
			TrafficRoutingMethod: pulumi.String("Weighted"),
			DnsConfig: &network.TrafficManagerProfileDnsConfigArgs{
				RelativeName: server.Hex,
				Ttl:          pulumi.Int(100),
			},
			MonitorConfig: &network.TrafficManagerProfileMonitorConfigArgs{
				Protocol:                  pulumi.String("http"),
				Port:                      pulumi.Int(80),
				Path:                      pulumi.String("/"),
				IntervalInSeconds:         pulumi.Int(30),
				TimeoutInSeconds:          pulumi.Int(9),
				ToleratedNumberOfFailures: pulumi.Int(3),
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Traffic Manager Profiles can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:trafficmanager/profile:Profile exampleProfile /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/trafficManagerProfiles/mytrafficmanagerprofile1

```

Deprecated: azure.trafficmanager.Profile has been deprecated in favor of azure.network.TrafficManagerProfile

func GetProfile

func GetProfile(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProfileState, opts ...pulumi.ResourceOption) (*Profile, error)

GetProfile gets an existing Profile resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProfile

func NewProfile(ctx *pulumi.Context,
	name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error)

NewProfile registers a new resource with the given unique name, arguments, and options.

func (*Profile) ElementType

func (*Profile) ElementType() reflect.Type

func (*Profile) ToProfileOutput

func (i *Profile) ToProfileOutput() ProfileOutput

func (*Profile) ToProfileOutputWithContext

func (i *Profile) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

func (*Profile) ToProfilePtrOutput

func (i *Profile) ToProfilePtrOutput() ProfilePtrOutput

func (*Profile) ToProfilePtrOutputWithContext

func (i *Profile) ToProfilePtrOutputWithContext(ctx context.Context) ProfilePtrOutput

type ProfileArgs

type ProfileArgs struct {
	// This block specifies the DNS configuration of the Profile, it supports the fields documented below.
	DnsConfig ProfileDnsConfigInput
	// The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.
	MaxReturn pulumi.IntPtrInput
	// This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
	MonitorConfig ProfileMonitorConfigInput
	// The name of the Traffic Manager profile. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.
	ProfileStatus pulumi.StringPtrInput
	// The name of the resource group in which to create the Traffic Manager profile.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the algorithm used to route traffic, possible values are:
	TrafficRoutingMethod pulumi.StringInput
	// Indicates whether Traffic View is enabled for the Traffic Manager profile.
	TrafficViewEnabled pulumi.BoolPtrInput
}

The set of arguments for constructing a Profile resource.

func (ProfileArgs) ElementType

func (ProfileArgs) ElementType() reflect.Type

type ProfileArray

type ProfileArray []ProfileInput

func (ProfileArray) ElementType

func (ProfileArray) ElementType() reflect.Type

func (ProfileArray) ToProfileArrayOutput

func (i ProfileArray) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArray) ToProfileArrayOutputWithContext

func (i ProfileArray) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileArrayInput

type ProfileArrayInput interface {
	pulumi.Input

	ToProfileArrayOutput() ProfileArrayOutput
	ToProfileArrayOutputWithContext(context.Context) ProfileArrayOutput
}

ProfileArrayInput is an input type that accepts ProfileArray and ProfileArrayOutput values. You can construct a concrete instance of `ProfileArrayInput` via:

ProfileArray{ ProfileArgs{...} }

type ProfileArrayOutput

type ProfileArrayOutput struct{ *pulumi.OutputState }

func (ProfileArrayOutput) ElementType

func (ProfileArrayOutput) ElementType() reflect.Type

func (ProfileArrayOutput) Index

func (ProfileArrayOutput) ToProfileArrayOutput

func (o ProfileArrayOutput) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArrayOutput) ToProfileArrayOutputWithContext

func (o ProfileArrayOutput) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileDnsConfig

type ProfileDnsConfig struct {
	// The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
	RelativeName string `pulumi:"relativeName"`
	// The TTL value of the Profile used by Local DNS resolvers and clients.
	Ttl int `pulumi:"ttl"`
}

type ProfileDnsConfigArgs

type ProfileDnsConfigArgs struct {
	// The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.
	RelativeName pulumi.StringInput `pulumi:"relativeName"`
	// The TTL value of the Profile used by Local DNS resolvers and clients.
	Ttl pulumi.IntInput `pulumi:"ttl"`
}

func (ProfileDnsConfigArgs) ElementType

func (ProfileDnsConfigArgs) ElementType() reflect.Type

func (ProfileDnsConfigArgs) ToProfileDnsConfigOutput

func (i ProfileDnsConfigArgs) ToProfileDnsConfigOutput() ProfileDnsConfigOutput

func (ProfileDnsConfigArgs) ToProfileDnsConfigOutputWithContext

func (i ProfileDnsConfigArgs) ToProfileDnsConfigOutputWithContext(ctx context.Context) ProfileDnsConfigOutput

func (ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutput

func (i ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput

func (ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutputWithContext

func (i ProfileDnsConfigArgs) ToProfileDnsConfigPtrOutputWithContext(ctx context.Context) ProfileDnsConfigPtrOutput

type ProfileDnsConfigInput

type ProfileDnsConfigInput interface {
	pulumi.Input

	ToProfileDnsConfigOutput() ProfileDnsConfigOutput
	ToProfileDnsConfigOutputWithContext(context.Context) ProfileDnsConfigOutput
}

ProfileDnsConfigInput is an input type that accepts ProfileDnsConfigArgs and ProfileDnsConfigOutput values. You can construct a concrete instance of `ProfileDnsConfigInput` via:

ProfileDnsConfigArgs{...}

type ProfileDnsConfigOutput

type ProfileDnsConfigOutput struct{ *pulumi.OutputState }

func (ProfileDnsConfigOutput) ElementType

func (ProfileDnsConfigOutput) ElementType() reflect.Type

func (ProfileDnsConfigOutput) RelativeName

func (o ProfileDnsConfigOutput) RelativeName() pulumi.StringOutput

The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.

func (ProfileDnsConfigOutput) ToProfileDnsConfigOutput

func (o ProfileDnsConfigOutput) ToProfileDnsConfigOutput() ProfileDnsConfigOutput

func (ProfileDnsConfigOutput) ToProfileDnsConfigOutputWithContext

func (o ProfileDnsConfigOutput) ToProfileDnsConfigOutputWithContext(ctx context.Context) ProfileDnsConfigOutput

func (ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutput

func (o ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput

func (ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutputWithContext

func (o ProfileDnsConfigOutput) ToProfileDnsConfigPtrOutputWithContext(ctx context.Context) ProfileDnsConfigPtrOutput

func (ProfileDnsConfigOutput) Ttl

The TTL value of the Profile used by Local DNS resolvers and clients.

type ProfileDnsConfigPtrInput

type ProfileDnsConfigPtrInput interface {
	pulumi.Input

	ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput
	ToProfileDnsConfigPtrOutputWithContext(context.Context) ProfileDnsConfigPtrOutput
}

ProfileDnsConfigPtrInput is an input type that accepts ProfileDnsConfigArgs, ProfileDnsConfigPtr and ProfileDnsConfigPtrOutput values. You can construct a concrete instance of `ProfileDnsConfigPtrInput` via:

        ProfileDnsConfigArgs{...}

or:

        nil

type ProfileDnsConfigPtrOutput

type ProfileDnsConfigPtrOutput struct{ *pulumi.OutputState }

func (ProfileDnsConfigPtrOutput) Elem

func (ProfileDnsConfigPtrOutput) ElementType

func (ProfileDnsConfigPtrOutput) ElementType() reflect.Type

func (ProfileDnsConfigPtrOutput) RelativeName

The relative domain name, this is combined with the domain name used by Traffic Manager to form the FQDN which is exported as documented below. Changing this forces a new resource to be created.

func (ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutput

func (o ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutput() ProfileDnsConfigPtrOutput

func (ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutputWithContext

func (o ProfileDnsConfigPtrOutput) ToProfileDnsConfigPtrOutputWithContext(ctx context.Context) ProfileDnsConfigPtrOutput

func (ProfileDnsConfigPtrOutput) Ttl

The TTL value of the Profile used by Local DNS resolvers and clients.

type ProfileInput

type ProfileInput interface {
	pulumi.Input

	ToProfileOutput() ProfileOutput
	ToProfileOutputWithContext(ctx context.Context) ProfileOutput
}

type ProfileMap

type ProfileMap map[string]ProfileInput

func (ProfileMap) ElementType

func (ProfileMap) ElementType() reflect.Type

func (ProfileMap) ToProfileMapOutput

func (i ProfileMap) ToProfileMapOutput() ProfileMapOutput

func (ProfileMap) ToProfileMapOutputWithContext

func (i ProfileMap) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileMapInput

type ProfileMapInput interface {
	pulumi.Input

	ToProfileMapOutput() ProfileMapOutput
	ToProfileMapOutputWithContext(context.Context) ProfileMapOutput
}

ProfileMapInput is an input type that accepts ProfileMap and ProfileMapOutput values. You can construct a concrete instance of `ProfileMapInput` via:

ProfileMap{ "key": ProfileArgs{...} }

type ProfileMapOutput

type ProfileMapOutput struct{ *pulumi.OutputState }

func (ProfileMapOutput) ElementType

func (ProfileMapOutput) ElementType() reflect.Type

func (ProfileMapOutput) MapIndex

func (ProfileMapOutput) ToProfileMapOutput

func (o ProfileMapOutput) ToProfileMapOutput() ProfileMapOutput

func (ProfileMapOutput) ToProfileMapOutputWithContext

func (o ProfileMapOutput) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileMonitorConfig

type ProfileMonitorConfig struct {
	// One or more `customHeader` blocks as defined below.
	CustomHeaders []ProfileMonitorConfigCustomHeader `pulumi:"customHeaders"`
	// A list of status code ranges in the format of `100-101`.
	ExpectedStatusCodeRanges []string `pulumi:"expectedStatusCodeRanges"`
	// The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.
	IntervalInSeconds *int `pulumi:"intervalInSeconds"`
	// The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.
	Path *string `pulumi:"path"`
	// The port number used by the monitoring checks.
	Port int `pulumi:"port"`
	// The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.
	Protocol string `pulumi:"protocol"`
	// The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.
	TimeoutInSeconds *int `pulumi:"timeoutInSeconds"`
	// The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`
	ToleratedNumberOfFailures *int `pulumi:"toleratedNumberOfFailures"`
}

type ProfileMonitorConfigArgs

type ProfileMonitorConfigArgs struct {
	// One or more `customHeader` blocks as defined below.
	CustomHeaders ProfileMonitorConfigCustomHeaderArrayInput `pulumi:"customHeaders"`
	// A list of status code ranges in the format of `100-101`.
	ExpectedStatusCodeRanges pulumi.StringArrayInput `pulumi:"expectedStatusCodeRanges"`
	// The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.
	IntervalInSeconds pulumi.IntPtrInput `pulumi:"intervalInSeconds"`
	// The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// The port number used by the monitoring checks.
	Port pulumi.IntInput `pulumi:"port"`
	// The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.
	TimeoutInSeconds pulumi.IntPtrInput `pulumi:"timeoutInSeconds"`
	// The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`
	ToleratedNumberOfFailures pulumi.IntPtrInput `pulumi:"toleratedNumberOfFailures"`
}

func (ProfileMonitorConfigArgs) ElementType

func (ProfileMonitorConfigArgs) ElementType() reflect.Type

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigOutput

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigOutput() ProfileMonitorConfigOutput

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigOutputWithContext

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigOutputWithContext(ctx context.Context) ProfileMonitorConfigOutput

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutput

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutputWithContext

func (i ProfileMonitorConfigArgs) ToProfileMonitorConfigPtrOutputWithContext(ctx context.Context) ProfileMonitorConfigPtrOutput

type ProfileMonitorConfigCustomHeader

type ProfileMonitorConfigCustomHeader struct {
	// The name of the custom header.
	Name string `pulumi:"name"`
	// The value of custom header. Applicable for Http and Https protocol.
	Value string `pulumi:"value"`
}

type ProfileMonitorConfigCustomHeaderArgs

type ProfileMonitorConfigCustomHeaderArgs struct {
	// The name of the custom header.
	Name pulumi.StringInput `pulumi:"name"`
	// The value of custom header. Applicable for Http and Https protocol.
	Value pulumi.StringInput `pulumi:"value"`
}

func (ProfileMonitorConfigCustomHeaderArgs) ElementType

func (ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutput

func (i ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutput() ProfileMonitorConfigCustomHeaderOutput

func (ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutputWithContext

func (i ProfileMonitorConfigCustomHeaderArgs) ToProfileMonitorConfigCustomHeaderOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderOutput

type ProfileMonitorConfigCustomHeaderArray

type ProfileMonitorConfigCustomHeaderArray []ProfileMonitorConfigCustomHeaderInput

func (ProfileMonitorConfigCustomHeaderArray) ElementType

func (ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutput

func (i ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutput() ProfileMonitorConfigCustomHeaderArrayOutput

func (ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext

func (i ProfileMonitorConfigCustomHeaderArray) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderArrayOutput

type ProfileMonitorConfigCustomHeaderArrayInput

type ProfileMonitorConfigCustomHeaderArrayInput interface {
	pulumi.Input

	ToProfileMonitorConfigCustomHeaderArrayOutput() ProfileMonitorConfigCustomHeaderArrayOutput
	ToProfileMonitorConfigCustomHeaderArrayOutputWithContext(context.Context) ProfileMonitorConfigCustomHeaderArrayOutput
}

ProfileMonitorConfigCustomHeaderArrayInput is an input type that accepts ProfileMonitorConfigCustomHeaderArray and ProfileMonitorConfigCustomHeaderArrayOutput values. You can construct a concrete instance of `ProfileMonitorConfigCustomHeaderArrayInput` via:

ProfileMonitorConfigCustomHeaderArray{ ProfileMonitorConfigCustomHeaderArgs{...} }

type ProfileMonitorConfigCustomHeaderArrayOutput

type ProfileMonitorConfigCustomHeaderArrayOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigCustomHeaderArrayOutput) ElementType

func (ProfileMonitorConfigCustomHeaderArrayOutput) Index

func (ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutput

func (o ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutput() ProfileMonitorConfigCustomHeaderArrayOutput

func (ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext

func (o ProfileMonitorConfigCustomHeaderArrayOutput) ToProfileMonitorConfigCustomHeaderArrayOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderArrayOutput

type ProfileMonitorConfigCustomHeaderInput

type ProfileMonitorConfigCustomHeaderInput interface {
	pulumi.Input

	ToProfileMonitorConfigCustomHeaderOutput() ProfileMonitorConfigCustomHeaderOutput
	ToProfileMonitorConfigCustomHeaderOutputWithContext(context.Context) ProfileMonitorConfigCustomHeaderOutput
}

ProfileMonitorConfigCustomHeaderInput is an input type that accepts ProfileMonitorConfigCustomHeaderArgs and ProfileMonitorConfigCustomHeaderOutput values. You can construct a concrete instance of `ProfileMonitorConfigCustomHeaderInput` via:

ProfileMonitorConfigCustomHeaderArgs{...}

type ProfileMonitorConfigCustomHeaderOutput

type ProfileMonitorConfigCustomHeaderOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigCustomHeaderOutput) ElementType

func (ProfileMonitorConfigCustomHeaderOutput) Name

The name of the custom header.

func (ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutput

func (o ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutput() ProfileMonitorConfigCustomHeaderOutput

func (ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutputWithContext

func (o ProfileMonitorConfigCustomHeaderOutput) ToProfileMonitorConfigCustomHeaderOutputWithContext(ctx context.Context) ProfileMonitorConfigCustomHeaderOutput

func (ProfileMonitorConfigCustomHeaderOutput) Value

The value of custom header. Applicable for Http and Https protocol.

type ProfileMonitorConfigInput

type ProfileMonitorConfigInput interface {
	pulumi.Input

	ToProfileMonitorConfigOutput() ProfileMonitorConfigOutput
	ToProfileMonitorConfigOutputWithContext(context.Context) ProfileMonitorConfigOutput
}

ProfileMonitorConfigInput is an input type that accepts ProfileMonitorConfigArgs and ProfileMonitorConfigOutput values. You can construct a concrete instance of `ProfileMonitorConfigInput` via:

ProfileMonitorConfigArgs{...}

type ProfileMonitorConfigOutput

type ProfileMonitorConfigOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigOutput) CustomHeaders

One or more `customHeader` blocks as defined below.

func (ProfileMonitorConfigOutput) ElementType

func (ProfileMonitorConfigOutput) ElementType() reflect.Type

func (ProfileMonitorConfigOutput) ExpectedStatusCodeRanges

func (o ProfileMonitorConfigOutput) ExpectedStatusCodeRanges() pulumi.StringArrayOutput

A list of status code ranges in the format of `100-101`.

func (ProfileMonitorConfigOutput) IntervalInSeconds

func (o ProfileMonitorConfigOutput) IntervalInSeconds() pulumi.IntPtrOutput

The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.

func (ProfileMonitorConfigOutput) Path

The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.

func (ProfileMonitorConfigOutput) Port

The port number used by the monitoring checks.

func (ProfileMonitorConfigOutput) Protocol

The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.

func (ProfileMonitorConfigOutput) TimeoutInSeconds

func (o ProfileMonitorConfigOutput) TimeoutInSeconds() pulumi.IntPtrOutput

The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigOutput

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigOutput() ProfileMonitorConfigOutput

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigOutputWithContext

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigOutputWithContext(ctx context.Context) ProfileMonitorConfigOutput

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutput

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutputWithContext

func (o ProfileMonitorConfigOutput) ToProfileMonitorConfigPtrOutputWithContext(ctx context.Context) ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigOutput) ToleratedNumberOfFailures

func (o ProfileMonitorConfigOutput) ToleratedNumberOfFailures() pulumi.IntPtrOutput

The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`

type ProfileMonitorConfigPtrInput

type ProfileMonitorConfigPtrInput interface {
	pulumi.Input

	ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput
	ToProfileMonitorConfigPtrOutputWithContext(context.Context) ProfileMonitorConfigPtrOutput
}

ProfileMonitorConfigPtrInput is an input type that accepts ProfileMonitorConfigArgs, ProfileMonitorConfigPtr and ProfileMonitorConfigPtrOutput values. You can construct a concrete instance of `ProfileMonitorConfigPtrInput` via:

        ProfileMonitorConfigArgs{...}

or:

        nil

type ProfileMonitorConfigPtrOutput

type ProfileMonitorConfigPtrOutput struct{ *pulumi.OutputState }

func (ProfileMonitorConfigPtrOutput) CustomHeaders

One or more `customHeader` blocks as defined below.

func (ProfileMonitorConfigPtrOutput) Elem

func (ProfileMonitorConfigPtrOutput) ElementType

func (ProfileMonitorConfigPtrOutput) ExpectedStatusCodeRanges

func (o ProfileMonitorConfigPtrOutput) ExpectedStatusCodeRanges() pulumi.StringArrayOutput

A list of status code ranges in the format of `100-101`.

func (ProfileMonitorConfigPtrOutput) IntervalInSeconds

func (o ProfileMonitorConfigPtrOutput) IntervalInSeconds() pulumi.IntPtrOutput

The interval used to check the endpoint health from a Traffic Manager probing agent. You can specify two values here: `30` (normal probing) and `10` (fast probing). The default value is `30`.

func (ProfileMonitorConfigPtrOutput) Path

The path used by the monitoring checks. Required when `protocol` is set to `HTTP` or `HTTPS` - cannot be set when `protocol` is set to `TCP`.

func (ProfileMonitorConfigPtrOutput) Port

The port number used by the monitoring checks.

func (ProfileMonitorConfigPtrOutput) Protocol

The protocol used by the monitoring checks, supported values are `HTTP`, `HTTPS` and `TCP`.

func (ProfileMonitorConfigPtrOutput) TimeoutInSeconds

func (o ProfileMonitorConfigPtrOutput) TimeoutInSeconds() pulumi.IntPtrOutput

The amount of time the Traffic Manager probing agent should wait before considering that check a failure when a health check probe is sent to the endpoint. If `intervalInSeconds` is set to `30`, then `timeoutInSeconds` can be between `5` and `10`. The default value is `10`. If `intervalInSeconds` is set to `10`, then valid values are between `5` and `9` and `timeoutInSeconds` is required.

func (ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutput

func (o ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutput() ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutputWithContext

func (o ProfileMonitorConfigPtrOutput) ToProfileMonitorConfigPtrOutputWithContext(ctx context.Context) ProfileMonitorConfigPtrOutput

func (ProfileMonitorConfigPtrOutput) ToleratedNumberOfFailures

func (o ProfileMonitorConfigPtrOutput) ToleratedNumberOfFailures() pulumi.IntPtrOutput

The number of failures a Traffic Manager probing agent tolerates before marking that endpoint as unhealthy. Valid values are between `0` and `9`. The default value is `3`

type ProfileOutput

type ProfileOutput struct{ *pulumi.OutputState }

func (ProfileOutput) ElementType

func (ProfileOutput) ElementType() reflect.Type

func (ProfileOutput) ToProfileOutput

func (o ProfileOutput) ToProfileOutput() ProfileOutput

func (ProfileOutput) ToProfileOutputWithContext

func (o ProfileOutput) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

func (ProfileOutput) ToProfilePtrOutput

func (o ProfileOutput) ToProfilePtrOutput() ProfilePtrOutput

func (ProfileOutput) ToProfilePtrOutputWithContext

func (o ProfileOutput) ToProfilePtrOutputWithContext(ctx context.Context) ProfilePtrOutput

type ProfilePtrInput

type ProfilePtrInput interface {
	pulumi.Input

	ToProfilePtrOutput() ProfilePtrOutput
	ToProfilePtrOutputWithContext(ctx context.Context) ProfilePtrOutput
}

type ProfilePtrOutput

type ProfilePtrOutput struct{ *pulumi.OutputState }

func (ProfilePtrOutput) Elem added in v4.20.0

func (ProfilePtrOutput) ElementType

func (ProfilePtrOutput) ElementType() reflect.Type

func (ProfilePtrOutput) ToProfilePtrOutput

func (o ProfilePtrOutput) ToProfilePtrOutput() ProfilePtrOutput

func (ProfilePtrOutput) ToProfilePtrOutputWithContext

func (o ProfilePtrOutput) ToProfilePtrOutputWithContext(ctx context.Context) ProfilePtrOutput

type ProfileState

type ProfileState struct {
	// This block specifies the DNS configuration of the Profile, it supports the fields documented below.
	DnsConfig ProfileDnsConfigPtrInput
	// The FQDN of the created Profile.
	Fqdn pulumi.StringPtrInput
	// The amount of endpoints to return for DNS queries to this Profile. Possible values range from `1` to `8`.
	MaxReturn pulumi.IntPtrInput
	// This block specifies the Endpoint monitoring configuration for the Profile, it supports the fields documented below.
	MonitorConfig ProfileMonitorConfigPtrInput
	// The name of the Traffic Manager profile. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The status of the profile, can be set to either `Enabled` or `Disabled`. Defaults to `Enabled`.
	ProfileStatus pulumi.StringPtrInput
	// The name of the resource group in which to create the Traffic Manager profile.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the algorithm used to route traffic, possible values are:
	TrafficRoutingMethod pulumi.StringPtrInput
	// Indicates whether Traffic View is enabled for the Traffic Manager profile.
	TrafficViewEnabled pulumi.BoolPtrInput
}

func (ProfileState) ElementType

func (ProfileState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL