akamai.GtmResource
Explore with Pulumi AI
Create GtmResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GtmResource(name: string, args: GtmResourceArgs, opts?: CustomResourceOptions);
@overload
def GtmResource(resource_name: str,
args: GtmResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GtmResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
type: Optional[str] = None,
aggregation_type: Optional[str] = None,
leader_string: Optional[str] = None,
description: Optional[str] = None,
host_header: Optional[str] = None,
decay_rate: Optional[float] = 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,
constrained_property: Optional[str] = None,
upper_bound: Optional[int] = None,
wait_on_complete: Optional[bool] = None)
func NewGtmResource(ctx *Context, name string, args GtmResourceArgs, opts ...ResourceOption) (*GtmResource, error)
public GtmResource(string name, GtmResourceArgs args, CustomResourceOptions? opts = null)
public GtmResource(String name, GtmResourceArgs args)
public GtmResource(String name, GtmResourceArgs args, CustomResourceOptions options)
type: akamai:GtmResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- name String
- The unique name of the resource.
- args GtmResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gtmResourceResource = new Akamai.GtmResource("gtmResourceResource", new()
{
Domain = "string",
Type = "string",
AggregationType = "string",
LeaderString = "string",
Description = "string",
HostHeader = "string",
DecayRate = 0,
LeastSquaresDecay = 0,
LoadImbalancePercentage = 0,
MaxUMultiplicativeIncrement = 0,
Name = "string",
ResourceInstances = new[]
{
new Akamai.Inputs.GtmResourceResourceInstanceArgs
{
DatacenterId = 0,
LoadObject = "string",
LoadObjectPort = 0,
LoadServers = new[]
{
"string",
},
UseDefaultLoadObject = false,
},
},
ConstrainedProperty = "string",
UpperBound = 0,
WaitOnComplete = false,
});
example, err := akamai.NewGtmResource(ctx, "gtmResourceResource", &akamai.GtmResourceArgs{
Domain: pulumi.String("string"),
Type: pulumi.String("string"),
AggregationType: pulumi.String("string"),
LeaderString: pulumi.String("string"),
Description: pulumi.String("string"),
HostHeader: pulumi.String("string"),
DecayRate: pulumi.Float64(0),
LeastSquaresDecay: pulumi.Float64(0),
LoadImbalancePercentage: pulumi.Float64(0),
MaxUMultiplicativeIncrement: pulumi.Float64(0),
Name: pulumi.String("string"),
ResourceInstances: akamai.GtmResourceResourceInstanceArray{
&akamai.GtmResourceResourceInstanceArgs{
DatacenterId: pulumi.Int(0),
LoadObject: pulumi.String("string"),
LoadObjectPort: pulumi.Int(0),
LoadServers: pulumi.StringArray{
pulumi.String("string"),
},
UseDefaultLoadObject: pulumi.Bool(false),
},
},
ConstrainedProperty: pulumi.String("string"),
UpperBound: pulumi.Int(0),
WaitOnComplete: pulumi.Bool(false),
})
var gtmResourceResource = new GtmResource("gtmResourceResource", GtmResourceArgs.builder()
.domain("string")
.type("string")
.aggregationType("string")
.leaderString("string")
.description("string")
.hostHeader("string")
.decayRate(0)
.leastSquaresDecay(0)
.loadImbalancePercentage(0)
.maxUMultiplicativeIncrement(0)
.name("string")
.resourceInstances(GtmResourceResourceInstanceArgs.builder()
.datacenterId(0)
.loadObject("string")
.loadObjectPort(0)
.loadServers("string")
.useDefaultLoadObject(false)
.build())
.constrainedProperty("string")
.upperBound(0)
.waitOnComplete(false)
.build());
gtm_resource_resource = akamai.GtmResource("gtmResourceResource",
domain="string",
type="string",
aggregation_type="string",
leader_string="string",
description="string",
host_header="string",
decay_rate=0,
least_squares_decay=0,
load_imbalance_percentage=0,
max_u_multiplicative_increment=0,
name="string",
resource_instances=[{
"datacenter_id": 0,
"load_object": "string",
"load_object_port": 0,
"load_servers": ["string"],
"use_default_load_object": False,
}],
constrained_property="string",
upper_bound=0,
wait_on_complete=False)
const gtmResourceResource = new akamai.GtmResource("gtmResourceResource", {
domain: "string",
type: "string",
aggregationType: "string",
leaderString: "string",
description: "string",
hostHeader: "string",
decayRate: 0,
leastSquaresDecay: 0,
loadImbalancePercentage: 0,
maxUMultiplicativeIncrement: 0,
name: "string",
resourceInstances: [{
datacenterId: 0,
loadObject: "string",
loadObjectPort: 0,
loadServers: ["string"],
useDefaultLoadObject: false,
}],
constrainedProperty: "string",
upperBound: 0,
waitOnComplete: false,
});
type: akamai:GtmResource
properties:
aggregationType: string
constrainedProperty: string
decayRate: 0
description: string
domain: string
hostHeader: string
leaderString: string
leastSquaresDecay: 0
loadImbalancePercentage: 0
maxUMultiplicativeIncrement: 0
name: string
resourceInstances:
- datacenterId: 0
loadObject: string
loadObjectPort: 0
loadServers:
- string
useDefaultLoadObject: false
type: string
upperBound: 0
waitOnComplete: false
GtmResource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GtmResource resource accepts the following input properties:
- Aggregation
Type string - Domain string
- Type string
- Constrained
Property string - Decay
Rate double - Description string
- Host
Header string - Leader
String string - Least
Squares doubleDecay - Load
Imbalance doublePercentage - Max
UMultiplicative doubleIncrement - Name string
- Resource
Instances List<GtmResource Resource Instance> - Upper
Bound int - Wait
On boolComplete
- Aggregation
Type string - Domain string
- Type string
- Constrained
Property string - Decay
Rate float64 - Description string
- Host
Header string - Leader
String string - Least
Squares float64Decay - Load
Imbalance float64Percentage - Max
UMultiplicative float64Increment - Name string
- Resource
Instances []GtmResource Resource Instance Args - Upper
Bound int - Wait
On boolComplete
- aggregation
Type String - domain String
- type String
- constrained
Property String - decay
Rate Double - description String
- host
Header String - leader
String String - least
Squares DoubleDecay - load
Imbalance DoublePercentage - max
UMultiplicative DoubleIncrement - name String
- resource
Instances List<GtmResource Resource Instance> - upper
Bound Integer - wait
On BooleanComplete
- aggregation
Type string - domain string
- type string
- constrained
Property string - decay
Rate number - description string
- host
Header string - leader
String string - least
Squares numberDecay - load
Imbalance numberPercentage - max
UMultiplicative numberIncrement - name string
- resource
Instances GtmResource Resource Instance[] - upper
Bound number - wait
On booleanComplete
- aggregation_
type str - domain str
- type str
- constrained_
property str - decay_
rate float - description str
- host_
header str - leader_
string str - least_
squares_ floatdecay - load_
imbalance_ floatpercentage - max_
u_ floatmultiplicative_ increment - name str
- resource_
instances Sequence[GtmResource Resource Instance Args] - upper_
bound int - wait_
on_ boolcomplete
- aggregation
Type String - domain String
- type String
- constrained
Property String - decay
Rate Number - description String
- host
Header String - leader
String String - least
Squares NumberDecay - load
Imbalance NumberPercentage - max
UMultiplicative NumberIncrement - name String
- resource
Instances List<Property Map> - upper
Bound Number - wait
On BooleanComplete
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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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)
public static GtmResource get(String name, Output<String> id, GtmResourceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Aggregation
Type string - Constrained
Property string - Decay
Rate double - Description string
- Domain string
- Host
Header string - Leader
String string - Least
Squares doubleDecay - Load
Imbalance doublePercentage - Max
UMultiplicative doubleIncrement - Name string
- Resource
Instances List<GtmResource Resource Instance> - Type string
- Upper
Bound int - Wait
On boolComplete
- Aggregation
Type string - Constrained
Property string - Decay
Rate float64 - Description string
- Domain string
- Host
Header string - Leader
String string - Least
Squares float64Decay - Load
Imbalance float64Percentage - Max
UMultiplicative float64Increment - Name string
- Resource
Instances []GtmResource Resource Instance Args - Type string
- Upper
Bound int - Wait
On boolComplete
- aggregation
Type String - constrained
Property String - decay
Rate Double - description String
- domain String
- host
Header String - leader
String String - least
Squares DoubleDecay - load
Imbalance DoublePercentage - max
UMultiplicative DoubleIncrement - name String
- resource
Instances List<GtmResource Resource Instance> - type String
- upper
Bound Integer - wait
On BooleanComplete
- aggregation
Type string - constrained
Property string - decay
Rate number - description string
- domain string
- host
Header string - leader
String string - least
Squares numberDecay - load
Imbalance numberPercentage - max
UMultiplicative numberIncrement - name string
- resource
Instances GtmResource Resource Instance[] - type string
- upper
Bound number - wait
On booleanComplete
- aggregation_
type str - constrained_
property str - decay_
rate float - description str
- domain str
- host_
header str - leader_
string str - least_
squares_ floatdecay - load_
imbalance_ floatpercentage - max_
u_ floatmultiplicative_ increment - name str
- resource_
instances Sequence[GtmResource Resource Instance Args] - type str
- upper_
bound int - wait_
on_ boolcomplete
- aggregation
Type String - constrained
Property String - decay
Rate Number - description String
- domain String
- host
Header String - leader
String String - least
Squares NumberDecay - load
Imbalance NumberPercentage - max
UMultiplicative NumberIncrement - name String
- resource
Instances List<Property Map> - type String
- upper
Bound Number - wait
On BooleanComplete
Supporting Types
GtmResourceResourceInstance, GtmResourceResourceInstanceArgs
- Datacenter
Id int - Load
Object string - Load
Object intPort - Load
Servers List<string> - Use
Default boolLoad Object
- Datacenter
Id int - Load
Object string - Load
Object intPort - Load
Servers []string - Use
Default boolLoad Object
- datacenter
Id Integer - load
Object String - load
Object IntegerPort - load
Servers List<String> - use
Default BooleanLoad Object
- datacenter
Id number - load
Object string - load
Object numberPort - load
Servers string[] - use
Default booleanLoad Object
- datacenter_
id int - load_
object str - load_
object_ intport - load_
servers Sequence[str] - use_
default_ boolload_ object
- datacenter
Id Number - load
Object String - load
Object NumberPort - load
Servers List<String> - use
Default BooleanLoad Object
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamai
Terraform Provider.