GtmResource

akamai.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

using Pulumi;
using Akamai = Pulumi.Akamai;

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

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.NewGtmResource(ctx, "demoResource", &akamai.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.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.GtmResource("demo_resource", {
    aggregationType: "latest",
    domain: "demo_domain.akadns.net",
    type: "XML load object via HTTP",
});

Create a GtmResource Resource

new GtmResource(name: string, args: GtmResourceArgs, opts?: CustomResourceOptions);
@overload
def GtmResource(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                aggregation_type: Optional[str] = None,
                constrained_property: Optional[str] = None,
                decay_rate: Optional[float] = None,
                description: Optional[str] = None,
                domain: Optional[str] = None,
                host_header: Optional[str] = None,
                leader_string: Optional[str] = None,
                least_squares_decay: Optional[float] = None,
                load_imbalance_percentage: Optional[float] = None,
                max_u_multiplicative_increment: Optional[float] = None,
                name: Optional[str] = None,
                resource_instances: Optional[Sequence[GtmResourceResourceInstanceArgs]] = None,
                type: Optional[str] = None,
                upper_bound: Optional[int] = None,
                wait_on_complete: Optional[bool] = None)
@overload
def GtmResource(resource_name: str,
                args: GtmResourceArgs,
                opts: Optional[ResourceOptions] = 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.
args GtmResourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control 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>
  • datacenter_id
  • load_object
  • load_object_port
UpperBound int
WaitOnComplete bool
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
  • datacenter_id
  • load_object
  • load_object_port
UpperBound int
WaitOnComplete bool
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 GtmResourceResourceInstanceArgs[]
  • datacenter_id
  • load_object
  • load_object_port
upperBound number
waitOnComplete boolean
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 Sequence[GtmResourceResourceInstanceArgs]
  • datacenter_id
  • load_object
  • load_object_port
upper_bound int
wait_on_complete bool
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
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        aggregation_type: Optional[str] = None,
        constrained_property: Optional[str] = None,
        decay_rate: Optional[float] = None,
        description: Optional[str] = None,
        domain: Optional[str] = None,
        host_header: Optional[str] = None,
        leader_string: Optional[str] = None,
        least_squares_decay: Optional[float] = None,
        load_imbalance_percentage: Optional[float] = None,
        max_u_multiplicative_increment: Optional[float] = None,
        name: Optional[str] = None,
        resource_instances: Optional[Sequence[GtmResourceResourceInstanceArgs]] = None,
        type: Optional[str] = None,
        upper_bound: Optional[int] = None,
        wait_on_complete: Optional[bool] = None) -> GtmResource
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>
  • datacenter_id
  • load_object
  • load_object_port
Type string
Resource type
UpperBound int
WaitOnComplete bool
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
  • datacenter_id
  • load_object
  • load_object_port
Type string
Resource type
UpperBound int
WaitOnComplete bool
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 GtmResourceResourceInstanceArgs[]
  • datacenter_id
  • load_object
  • load_object_port
type string
Resource type
upperBound number
waitOnComplete boolean
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 Sequence[GtmResourceResourceInstanceArgs]
  • datacenter_id
  • load_object
  • load_object_port
type str
Resource type
upper_bound int
wait_on_complete bool
Wait for transaction to complete

Supporting Types

GtmResourceResourceInstance

DatacenterId int
LoadObject string
LoadObjectPort int
LoadServers List<string>
UseDefaultLoadObject bool
  • 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
UseDefaultLoadObject bool
  • 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[]
useDefaultLoadObject boolean
  • host_header
  • least_squares_decay
  • upper_bound
  • description
  • leader_string
  • constrained_property
  • load_imbalance_percent
  • max_u_multiplicative_increment
  • decay_rate
datacenter_id int
load_object str
load_object_port int
load_servers Sequence[str]
use_default_load_object bool
  • 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.