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

EdgeHostName

The akamai.properties.EdgeHostName provides the resource for configuring a secure edge hostname that determines how requests for your site, app, or content are mapped to Akamai edge servers.

An edge hostname is the CNAME target you use when directing your end user traffic to Akamai. In a typical DNS CNAME, your www.customer.com hostname corresponds to an edge hostname of www.customer.com.edgesuite.net.

Example Usage

Basic usage:

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var terraform_demo = new Akamai.Properties.EdgeHostName("terraform-demo", new Akamai.Properties.EdgeHostNameArgs
        {
            Contract = "ctr_####",
            EdgeHostname = "www.example.org.edgesuite.net",
            Group = "grp_####",
            Product = "prd_####",
        });
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := properties.NewEdgeHostName(ctx, "terraform_demo", &properties.EdgeHostNameArgs{
            Contract:     pulumi.String("ctr_####"),
            EdgeHostname: pulumi.String("www.example.org.edgesuite.net"),
            Group:        pulumi.String("grp_####"),
            Product:      pulumi.String("prd_####"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_akamai as akamai

terraform_demo = akamai.properties.EdgeHostName("terraform-demo",
    contract="ctr_####",
    edge_hostname="www.example.org.edgesuite.net",
    group="grp_####",
    product="prd_####")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const terraform_demo = new akamai.properties.EdgeHostName("terraform-demo", {
    contract: "ctr_####",
    edgeHostname: "www.example.org.edgesuite.net",
    group: "grp_####",
    product: "prd_####",
});

Create a EdgeHostName Resource

def EdgeHostName(resource_name, opts=None, certificate=None, contract=None, edge_hostname=None, group=None, ipv4=None, ipv6=None, product=None, __props__=None)
func NewEdgeHostName(ctx *Context, name string, args EdgeHostNameArgs, opts ...ResourceOption) (*EdgeHostName, error)
name string
The unique name of the resource.
args EdgeHostNameArgs
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 EdgeHostNameArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EdgeHostNameArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

EdgeHostName Resource Properties

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

Inputs

The EdgeHostName resource accepts the following input properties:

Contract string

— (Required) The contract ID.

EdgeHostname string

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

Group string

— (Required) The group ID.

Product string

— (Required) The product ID.

Certificate int

— (Optional) The certificate enrollment ID.

Ipv4 bool

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

Ipv6 bool

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

Contract string

— (Required) The contract ID.

EdgeHostname string

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

Group string

— (Required) The group ID.

Product string

— (Required) The product ID.

Certificate int

— (Optional) The certificate enrollment ID.

Ipv4 bool

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

Ipv6 bool

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

contract string

— (Required) The contract ID.

edgeHostname string

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

group string

— (Required) The group ID.

product string

— (Required) The product ID.

certificate number

— (Optional) The certificate enrollment ID.

ipv4 boolean

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

ipv6 boolean

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

contract str

— (Required) The contract ID.

edge_hostname str

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

group str

— (Required) The group ID.

product str

— (Required) The product ID.

certificate float

— (Optional) The certificate enrollment ID.

ipv4 bool

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

ipv6 bool

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

Outputs

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

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

Look up an Existing EdgeHostName Resource

Get an existing EdgeHostName 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?: EdgeHostNameState, opts?: CustomResourceOptions): EdgeHostName
static get(resource_name, id, opts=None, certificate=None, contract=None, edge_hostname=None, group=None, ip_behavior=None, ipv4=None, ipv6=None, product=None, __props__=None)
func GetEdgeHostName(ctx *Context, name string, id IDInput, state *EdgeHostNameState, opts ...ResourceOption) (*EdgeHostName, error)
public static EdgeHostName Get(string name, Input<string> id, EdgeHostNameState? 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:

Certificate int

— (Optional) The certificate enrollment ID.

Contract string

— (Required) The contract ID.

EdgeHostname string

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

Group string

— (Required) The group ID.

IpBehavior string
Ipv4 bool

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

Ipv6 bool

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

Product string

— (Required) The product ID.

Certificate int

— (Optional) The certificate enrollment ID.

Contract string

— (Required) The contract ID.

EdgeHostname string

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

Group string

— (Required) The group ID.

IpBehavior string
Ipv4 bool

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

Ipv6 bool

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

Product string

— (Required) The product ID.

certificate number

— (Optional) The certificate enrollment ID.

contract string

— (Required) The contract ID.

edgeHostname string

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

group string

— (Required) The group ID.

ipBehavior string
ipv4 boolean

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

ipv6 boolean

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

product string

— (Required) The product ID.

certificate float

— (Optional) The certificate enrollment ID.

contract str

— (Required) The contract ID.

edge_hostname str

— (Required) One or more edge hostnames (must be <= to the number of public hostnames).

group str

— (Required) The group ID.

ip_behavior str
ipv4 bool

— (Optional) Whether the property supports IPv4 to origin. (Default: true).

ipv6 bool

— (Optional) Whether the property supports IPv6 to origin. (Default: false).

product str

— (Required) The product ID.

Package Details

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