Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

GtmResource

akamai.trafficmanagement.GtmResource provides the resource for creating, configuring and importing a gtm resource to integrate easily with your existing GTM infrastructure to provide a secure, high performance, highly available and scalable solution for Global Traffic Management. Note: Import requires an ID of the format: existing_domain_name:existing_resource_name

Example Usage

Basic usage:

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var demoResource = new Akamai.Trafficmanagement.GtmResource("demoResource", new Akamai.Trafficmanagement.GtmResourceArgs
        {
            AggregationType = "latest",
            Domain = "demo_domain.akadns.net",
            Type = "XML load object via HTTP",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-akamai/sdk/go/akamai/trafficmanagement"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := trafficmanagement.NewGtmResource(ctx, "demoResource", &trafficmanagement.GtmResourceArgs{
            AggregationType: pulumi.String("latest"),
            Domain:          pulumi.String("demo_domain.akadns.net"),
            Type:            pulumi.String("XML load object via HTTP"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_akamai as akamai

demo_resource = akamai.trafficmanagement.GtmResource("demoResource",
    aggregation_type="latest",
    domain="demo_domain.akadns.net",
    type="XML load object via HTTP")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const demoResource = new akamai.trafficmanagement.GtmResource("demo_resource", {
    aggregationType: "latest",
    domain: "demo_domain.akadns.net",
    type: "XML load object via HTTP",
});

Create a GtmResource Resource

def GtmResource(resource_name, opts=None, aggregation_type=None, constrained_property=None, decay_rate=None, description=None, domain=None, host_header=None, leader_string=None, least_squares_decay=None, load_imbalance_percentage=None, max_u_multiplicative_increment=None, name=None, resource_instances=None, type=None, upper_bound=None, wait_on_complete=None, __props__=None)
func NewGtmResource(ctx *Context, name string, args GtmResourceArgs, opts ...ResourceOption) (*GtmResource, error)
public GtmResource(string name, GtmResourceArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args GtmResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GtmResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GtmResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

GtmResource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The GtmResource resource accepts the following input properties:

AggregationType string
Domain string

— Domain name

Type string

— Resource type

ConstrainedProperty string
DecayRate double
Description string
HostHeader string
LeaderString string
LeastSquaresDecay double
LoadImbalancePercentage double
MaxUMultiplicativeIncrement double
Name string

— Resource name * aggregation_type

ResourceInstances List<GtmResourceResourceInstanceArgs>

— (multiple allowed) * datacenter_id * load_object * load_object_port

UpperBound int
WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

AggregationType string
Domain string

— Domain name

Type string

— Resource type

ConstrainedProperty string
DecayRate float64
Description string
HostHeader string
LeaderString string
LeastSquaresDecay float64
LoadImbalancePercentage float64
MaxUMultiplicativeIncrement float64
Name string

— Resource name * aggregation_type

ResourceInstances []GtmResourceResourceInstance

— (multiple allowed) * datacenter_id * load_object * load_object_port

UpperBound int
WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

aggregationType string
domain string

— Domain name

type string

— Resource type

constrainedProperty string
decayRate number
description string
hostHeader string
leaderString string
leastSquaresDecay number
loadImbalancePercentage number
maxUMultiplicativeIncrement number
name string

— Resource name * aggregation_type

resourceInstances GtmResourceResourceInstance[]

— (multiple allowed) * datacenter_id * load_object * load_object_port

upperBound number
waitOnComplete boolean

— (Boolean, Default: true) Wait for transaction to complete

aggregation_type str
domain str

— Domain name

type str

— Resource type

constrained_property str
decay_rate float
description str
host_header str
leader_string str
least_squares_decay float
load_imbalance_percentage float
max_u_multiplicative_increment float
name str

— Resource name * aggregation_type

resource_instances List[GtmResourceResourceInstance]

— (multiple allowed) * datacenter_id * load_object * load_object_port

upper_bound float
wait_on_complete bool

— (Boolean, Default: true) Wait for transaction to complete

Outputs

All input properties are implicitly available as output properties. Additionally, the GtmResource resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing GtmResource Resource

Get an existing GtmResource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GtmResourceState, opts?: CustomResourceOptions): GtmResource
static get(resource_name, id, opts=None, aggregation_type=None, constrained_property=None, decay_rate=None, description=None, domain=None, host_header=None, leader_string=None, least_squares_decay=None, load_imbalance_percentage=None, max_u_multiplicative_increment=None, name=None, resource_instances=None, type=None, upper_bound=None, wait_on_complete=None, __props__=None)
func GetGtmResource(ctx *Context, name string, id IDInput, state *GtmResourceState, opts ...ResourceOption) (*GtmResource, error)
public static GtmResource Get(string name, Input<string> id, GtmResourceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AggregationType string
ConstrainedProperty string
DecayRate double
Description string
Domain string

— Domain name

HostHeader string
LeaderString string
LeastSquaresDecay double
LoadImbalancePercentage double
MaxUMultiplicativeIncrement double
Name string

— Resource name * aggregation_type

ResourceInstances List<GtmResourceResourceInstanceArgs>

— (multiple allowed) * datacenter_id * load_object * load_object_port

Type string

— Resource type

UpperBound int
WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

AggregationType string
ConstrainedProperty string
DecayRate float64
Description string
Domain string

— Domain name

HostHeader string
LeaderString string
LeastSquaresDecay float64
LoadImbalancePercentage float64
MaxUMultiplicativeIncrement float64
Name string

— Resource name * aggregation_type

ResourceInstances []GtmResourceResourceInstance

— (multiple allowed) * datacenter_id * load_object * load_object_port

Type string

— Resource type

UpperBound int
WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

aggregationType string
constrainedProperty string
decayRate number
description string
domain string

— Domain name

hostHeader string
leaderString string
leastSquaresDecay number
loadImbalancePercentage number
maxUMultiplicativeIncrement number
name string

— Resource name * aggregation_type

resourceInstances GtmResourceResourceInstance[]

— (multiple allowed) * datacenter_id * load_object * load_object_port

type string

— Resource type

upperBound number
waitOnComplete boolean

— (Boolean, Default: true) Wait for transaction to complete

aggregation_type str
constrained_property str
decay_rate float
description str
domain str

— Domain name

host_header str
leader_string str
least_squares_decay float
load_imbalance_percentage float
max_u_multiplicative_increment float
name str

— Resource name * aggregation_type

resource_instances List[GtmResourceResourceInstance]

— (multiple allowed) * datacenter_id * load_object * load_object_port

type str

— Resource type

upper_bound float
wait_on_complete bool

— (Boolean, Default: true) Wait for transaction to complete

Supporting Types

GtmResourceResourceInstance

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DatacenterId int
LoadObject string
LoadObjectPort int
LoadServers List<string>

— (List)

UseDefaultLoadObject bool

— (Boolean) * host_header * least_squares_decay * upper_bound * description * leader_string * constrained_property * load_imbalance_percent * max_u_multiplicative_increment * decay_rate

DatacenterId int
LoadObject string
LoadObjectPort int
LoadServers []string

— (List)

UseDefaultLoadObject bool

— (Boolean) * host_header * least_squares_decay * upper_bound * description * leader_string * constrained_property * load_imbalance_percent * max_u_multiplicative_increment * decay_rate

datacenterId number
loadObject string
loadObjectPort number
loadServers string[]

— (List)

useDefaultLoadObject boolean

— (Boolean) * host_header * least_squares_decay * upper_bound * description * leader_string * constrained_property * load_imbalance_percent * max_u_multiplicative_increment * decay_rate

datacenter_id float
loadObject str
loadObjectPort float
loadServers List[str]

— (List)

useDefaultLoadObject bool

— (Boolean) * host_header * least_squares_decay * upper_bound * description * leader_string * constrained_property * load_imbalance_percent * max_u_multiplicative_increment * decay_rate

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.