Akamai

v3.1.0 published on Tuesday, Oct 4, 2022 by Pulumi

Property

Deprecated:

akamai.properties.Property has been deprecated in favor of akamai.Property

The akamai.Property resource represents an Akamai property configuration. This resource lets you to create, update, and activate properties on the Akamai platform.

Akamai’s edge network caches your web assets near to servers that request them. A property provides the main way to control how edge servers respond to various kinds of requests for those assets. Properties apply rules to a set of hostnames, and you can only apply one property at a time to any given hostname. Each property is assigned to a product, which determines which behaviors you can use. Each property’s default rule needs a valid content provider (CP) code assigned to bill and report for the service.

Note In version 0.10 and earlier of this resource, it also controlled content provider (CP) codes, origin settings, rules, and hostname associations. Starting with version 1.0.0, this logic is broken out into individual resources.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Akamai.Property("example", new Akamai.PropertyArgs
        {
            ProductId = "prd_SPM",
            ContractId = @var.Contractid,
            GroupId = @var.Groupid,
            Hostnames = 
            {
                new Akamai.Inputs.PropertyHostnameArgs
                {
                    CnameFrom = "example.com",
                    CnameTo = "example.com.edgekey.net",
                    CertProvisioningType = "DEFAULT",
                },
                new Akamai.Inputs.PropertyHostnameArgs
                {
                    CnameFrom = "www.example.com",
                    CnameTo = "example.com.edgesuite.net",
                    CertProvisioningType = "CPS_MANAGED",
                },
            },
            RuleFormat = "v2020-03-04",
            Rules = data.Akamai_property_rules_template.Example.Json,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.NewProperty(ctx, "example", &akamai.PropertyArgs{
			ProductId:  pulumi.String("prd_SPM"),
			ContractId: pulumi.Any(_var.Contractid),
			GroupId:    pulumi.Any(_var.Groupid),
			Hostnames: PropertyHostnameArray{
				&PropertyHostnameArgs{
					CnameFrom:            pulumi.String("example.com"),
					CnameTo:              pulumi.String("example.com.edgekey.net"),
					CertProvisioningType: pulumi.String("DEFAULT"),
				},
				&PropertyHostnameArgs{
					CnameFrom:            pulumi.String("www.example.com"),
					CnameTo:              pulumi.String("example.com.edgesuite.net"),
					CertProvisioningType: pulumi.String("CPS_MANAGED"),
				},
			},
			RuleFormat: pulumi.String("v2020-03-04"),
			Rules:      pulumi.Any(data.Akamai_property_rules_template.Example.Json),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.akamai.Property;
import com.pulumi.akamai.PropertyArgs;
import com.pulumi.akamai.inputs.PropertyHostnameArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Property("example", PropertyArgs.builder()        
            .productId("prd_SPM")
            .contractId(var_.contractid())
            .groupId(var_.groupid())
            .hostnames(            
                PropertyHostnameArgs.builder()
                    .cnameFrom("example.com")
                    .cnameTo("example.com.edgekey.net")
                    .certProvisioningType("DEFAULT")
                    .build(),
                PropertyHostnameArgs.builder()
                    .cnameFrom("www.example.com")
                    .cnameTo("example.com.edgesuite.net")
                    .certProvisioningType("CPS_MANAGED")
                    .build())
            .ruleFormat("v2020-03-04")
            .rules(data.akamai_property_rules_template().example().json())
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

example = akamai.Property("example",
    product_id="prd_SPM",
    contract_id=var["contractid"],
    group_id=var["groupid"],
    hostnames=[
        akamai.PropertyHostnameArgs(
            cname_from="example.com",
            cname_to="example.com.edgekey.net",
            cert_provisioning_type="DEFAULT",
        ),
        akamai.PropertyHostnameArgs(
            cname_from="www.example.com",
            cname_to="example.com.edgesuite.net",
            cert_provisioning_type="CPS_MANAGED",
        ),
    ],
    rule_format="v2020-03-04",
    rules=data["akamai_property_rules_template"]["example"]["json"])
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = new akamai.Property("example", {
    productId: "prd_SPM",
    contractId: _var.contractid,
    groupId: _var.groupid,
    hostnames: [
        {
            cnameFrom: "example.com",
            cnameTo: "example.com.edgekey.net",
            certProvisioningType: "DEFAULT",
        },
        {
            cnameFrom: "www.example.com",
            cnameTo: "example.com.edgesuite.net",
            certProvisioningType: "CPS_MANAGED",
        },
    ],
    ruleFormat: "v2020-03-04",
    rules: data.akamai_property_rules_template.example.json,
});
resources:
  example:
    type: akamai:Property
    properties:
      productId: prd_SPM
      contractId: ${var.contractid}
      groupId: ${var.groupid}
      hostnames:
        - cnameFrom: example.com
          cnameTo: example.com.edgekey.net
          certProvisioningType: DEFAULT
        - cnameFrom: www.example.com
          cnameTo: example.com.edgesuite.net
          certProvisioningType: CPS_MANAGED
      ruleFormat: v2020-03-04
      rules: ${data.akamai_property_rules_template.example.json}

Create a Property Resource

new Property(name: string, args?: PropertyArgs, opts?: CustomResourceOptions);
@overload
def Property(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             contacts: Optional[Sequence[str]] = None,
             contract: Optional[str] = None,
             contract_id: Optional[str] = None,
             cp_code: Optional[str] = None,
             group: Optional[str] = None,
             group_id: Optional[str] = None,
             hostnames: Optional[Sequence[PropertyHostnameArgs]] = None,
             is_secure: Optional[bool] = None,
             name: Optional[str] = None,
             origins: Optional[Sequence[PropertyOriginArgs]] = None,
             product: Optional[str] = None,
             product_id: Optional[str] = None,
             rule_format: Optional[str] = None,
             rule_warnings: Optional[Sequence[PropertyRuleWarningArgs]] = None,
             rules: Optional[str] = None,
             variables: Optional[str] = None)
@overload
def Property(resource_name: str,
             args: Optional[PropertyArgs] = None,
             opts: Optional[ResourceOptions] = None)
func NewProperty(ctx *Context, name string, args *PropertyArgs, opts ...ResourceOption) (*Property, error)
public Property(string name, PropertyArgs? args = null, CustomResourceOptions? opts = null)
public Property(String name, PropertyArgs args)
public Property(String name, PropertyArgs args, CustomResourceOptions options)
type: akamai:properties:Property
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PropertyArgs
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 PropertyArgs
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 PropertyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PropertyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PropertyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Property Resource Properties

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

Inputs

The Property resource accepts the following input properties:

Contacts List<string>

Deprecated:

The setting "contact" has been deprecated.

Contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

ContractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

CpCode string

Deprecated:

The setting "cp_code" has been deprecated.

Group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

GroupId string

- (Required) A group's unique ID, including the grp_ prefix.

Hostnames List<PropertyHostnameArgs>

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

IsSecure bool

Deprecated:

The setting "is_secure" has been deprecated.

Name string

The property name.

Origins List<PropertyOriginArgs>

Deprecated:

The setting "origin" has been deprecated.

Product string

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

ProductId string

Product ID to be assigned to the Property

RuleFormat string

The rule format to use. Uses the latest rule format by default.

RuleWarnings List<PropertyRuleWarningArgs>

Deprecated:

Rule warnings will not be set in state anymore

Rules string

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

Variables string

Deprecated:

The setting "variables" has been deprecated.

Contacts []string

Deprecated:

The setting "contact" has been deprecated.

Contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

ContractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

CpCode string

Deprecated:

The setting "cp_code" has been deprecated.

Group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

GroupId string

- (Required) A group's unique ID, including the grp_ prefix.

Hostnames []PropertyHostnameArgs

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

IsSecure bool

Deprecated:

The setting "is_secure" has been deprecated.

Name string

The property name.

Origins []PropertyOriginArgs

Deprecated:

The setting "origin" has been deprecated.

Product string

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

ProductId string

Product ID to be assigned to the Property

RuleFormat string

The rule format to use. Uses the latest rule format by default.

RuleWarnings []PropertyRuleWarningArgs

Deprecated:

Rule warnings will not be set in state anymore

Rules string

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

Variables string

Deprecated:

The setting "variables" has been deprecated.

contacts List<String>

Deprecated:

The setting "contact" has been deprecated.

contract String

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId String

- (Required) A contract's unique ID, including the ctr_ prefix.

cpCode String

Deprecated:

The setting "cp_code" has been deprecated.

group String

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId String

- (Required) A group's unique ID, including the grp_ prefix.

hostnames List<PropertyHostnameArgs>

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

isSecure Boolean

Deprecated:

The setting "is_secure" has been deprecated.

name String

The property name.

origins List<PropertyOriginArgs>

Deprecated:

The setting "origin" has been deprecated.

product String

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

productId String

Product ID to be assigned to the Property

ruleFormat String

The rule format to use. Uses the latest rule format by default.

ruleWarnings List<PropertyRuleWarningArgs>

Deprecated:

Rule warnings will not be set in state anymore

rules String

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

variables String

Deprecated:

The setting "variables" has been deprecated.

contacts string[]

Deprecated:

The setting "contact" has been deprecated.

contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

cpCode string

Deprecated:

The setting "cp_code" has been deprecated.

group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId string

- (Required) A group's unique ID, including the grp_ prefix.

hostnames PropertyHostnameArgs[]

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

isSecure boolean

Deprecated:

The setting "is_secure" has been deprecated.

name string

The property name.

origins PropertyOriginArgs[]

Deprecated:

The setting "origin" has been deprecated.

product string

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

productId string

Product ID to be assigned to the Property

ruleFormat string

The rule format to use. Uses the latest rule format by default.

ruleWarnings PropertyRuleWarningArgs[]

Deprecated:

Rule warnings will not be set in state anymore

rules string

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

variables string

Deprecated:

The setting "variables" has been deprecated.

contacts Sequence[str]

Deprecated:

The setting "contact" has been deprecated.

contract str

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contract_id str

- (Required) A contract's unique ID, including the ctr_ prefix.

cp_code str

Deprecated:

The setting "cp_code" has been deprecated.

group str

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

group_id str

- (Required) A group's unique ID, including the grp_ prefix.

hostnames Sequence[PropertyHostnameArgs]

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

is_secure bool

Deprecated:

The setting "is_secure" has been deprecated.

name str

The property name.

origins Sequence[PropertyOriginArgs]

Deprecated:

The setting "origin" has been deprecated.

product str

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

product_id str

Product ID to be assigned to the Property

rule_format str

The rule format to use. Uses the latest rule format by default.

rule_warnings Sequence[PropertyRuleWarningArgs]

Deprecated:

Rule warnings will not be set in state anymore

rules str

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

variables str

Deprecated:

The setting "variables" has been deprecated.

contacts List<String>

Deprecated:

The setting "contact" has been deprecated.

contract String

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId String

- (Required) A contract's unique ID, including the ctr_ prefix.

cpCode String

Deprecated:

The setting "cp_code" has been deprecated.

group String

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId String

- (Required) A group's unique ID, including the grp_ prefix.

hostnames List<Property Map>

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

isSecure Boolean

Deprecated:

The setting "is_secure" has been deprecated.

name String

The property name.

origins List<Property Map>

Deprecated:

The setting "origin" has been deprecated.

product String

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

productId String

Product ID to be assigned to the Property

ruleFormat String

The rule format to use. Uses the latest rule format by default.

ruleWarnings List<Property Map>

Deprecated:

Rule warnings will not be set in state anymore

rules String

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

variables String

Deprecated:

The setting "variables" has been deprecated.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

LatestVersion int

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

ProductionVersion int

The current version of the property active on the Akamai production network.

ReadVersion int

Required property's version to be read

RuleErrors List<PropertyRuleError>

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

StagingVersion int

The current version of the property active on the Akamai staging network.

Id string

The provider-assigned unique ID for this managed resource.

LatestVersion int

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

ProductionVersion int

The current version of the property active on the Akamai production network.

ReadVersion int

Required property's version to be read

RuleErrors []PropertyRuleError

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

StagingVersion int

The current version of the property active on the Akamai staging network.

id String

The provider-assigned unique ID for this managed resource.

latestVersion Integer

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

productionVersion Integer

The current version of the property active on the Akamai production network.

readVersion Integer

Required property's version to be read

ruleErrors List<PropertyRuleError>

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

stagingVersion Integer

The current version of the property active on the Akamai staging network.

id string

The provider-assigned unique ID for this managed resource.

latestVersion number

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

productionVersion number

The current version of the property active on the Akamai production network.

readVersion number

Required property's version to be read

ruleErrors PropertyRuleError[]

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

stagingVersion number

The current version of the property active on the Akamai staging network.

id str

The provider-assigned unique ID for this managed resource.

latest_version int

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

production_version int

The current version of the property active on the Akamai production network.

read_version int

Required property's version to be read

rule_errors Sequence[PropertyRuleError]

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

staging_version int

The current version of the property active on the Akamai staging network.

id String

The provider-assigned unique ID for this managed resource.

latestVersion Number

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

productionVersion Number

The current version of the property active on the Akamai production network.

readVersion Number

Required property's version to be read

ruleErrors List<Property Map>

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

stagingVersion Number

The current version of the property active on the Akamai staging network.

Look up an Existing Property Resource

Get an existing Property 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?: PropertyState, opts?: CustomResourceOptions): Property
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        contacts: Optional[Sequence[str]] = None,
        contract: Optional[str] = None,
        contract_id: Optional[str] = None,
        cp_code: Optional[str] = None,
        group: Optional[str] = None,
        group_id: Optional[str] = None,
        hostnames: Optional[Sequence[PropertyHostnameArgs]] = None,
        is_secure: Optional[bool] = None,
        latest_version: Optional[int] = None,
        name: Optional[str] = None,
        origins: Optional[Sequence[PropertyOriginArgs]] = None,
        product: Optional[str] = None,
        product_id: Optional[str] = None,
        production_version: Optional[int] = None,
        read_version: Optional[int] = None,
        rule_errors: Optional[Sequence[PropertyRuleErrorArgs]] = None,
        rule_format: Optional[str] = None,
        rule_warnings: Optional[Sequence[PropertyRuleWarningArgs]] = None,
        rules: Optional[str] = None,
        staging_version: Optional[int] = None,
        variables: Optional[str] = None) -> Property
func GetProperty(ctx *Context, name string, id IDInput, state *PropertyState, opts ...ResourceOption) (*Property, error)
public static Property Get(string name, Input<string> id, PropertyState? state, CustomResourceOptions? opts = null)
public static Property get(String name, Output<String> id, PropertyState 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.
The following state arguments are supported:
Contacts List<string>

Deprecated:

The setting "contact" has been deprecated.

Contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

ContractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

CpCode string

Deprecated:

The setting "cp_code" has been deprecated.

Group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

GroupId string

- (Required) A group's unique ID, including the grp_ prefix.

Hostnames List<PropertyHostnameArgs>

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

IsSecure bool

Deprecated:

The setting "is_secure" has been deprecated.

LatestVersion int

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

Name string

The property name.

Origins List<PropertyOriginArgs>

Deprecated:

The setting "origin" has been deprecated.

Product string

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

ProductId string

Product ID to be assigned to the Property

ProductionVersion int

The current version of the property active on the Akamai production network.

ReadVersion int

Required property's version to be read

RuleErrors List<PropertyRuleErrorArgs>

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

RuleFormat string

The rule format to use. Uses the latest rule format by default.

RuleWarnings List<PropertyRuleWarningArgs>

Deprecated:

Rule warnings will not be set in state anymore

Rules string

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

StagingVersion int

The current version of the property active on the Akamai staging network.

Variables string

Deprecated:

The setting "variables" has been deprecated.

Contacts []string

Deprecated:

The setting "contact" has been deprecated.

Contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

ContractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

CpCode string

Deprecated:

The setting "cp_code" has been deprecated.

Group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

GroupId string

- (Required) A group's unique ID, including the grp_ prefix.

Hostnames []PropertyHostnameArgs

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

IsSecure bool

Deprecated:

The setting "is_secure" has been deprecated.

LatestVersion int

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

Name string

The property name.

Origins []PropertyOriginArgs

Deprecated:

The setting "origin" has been deprecated.

Product string

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

ProductId string

Product ID to be assigned to the Property

ProductionVersion int

The current version of the property active on the Akamai production network.

ReadVersion int

Required property's version to be read

RuleErrors []PropertyRuleErrorArgs

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

RuleFormat string

The rule format to use. Uses the latest rule format by default.

RuleWarnings []PropertyRuleWarningArgs

Deprecated:

Rule warnings will not be set in state anymore

Rules string

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

StagingVersion int

The current version of the property active on the Akamai staging network.

Variables string

Deprecated:

The setting "variables" has been deprecated.

contacts List<String>

Deprecated:

The setting "contact" has been deprecated.

contract String

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId String

- (Required) A contract's unique ID, including the ctr_ prefix.

cpCode String

Deprecated:

The setting "cp_code" has been deprecated.

group String

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId String

- (Required) A group's unique ID, including the grp_ prefix.

hostnames List<PropertyHostnameArgs>

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

isSecure Boolean

Deprecated:

The setting "is_secure" has been deprecated.

latestVersion Integer

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

name String

The property name.

origins List<PropertyOriginArgs>

Deprecated:

The setting "origin" has been deprecated.

product String

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

productId String

Product ID to be assigned to the Property

productionVersion Integer

The current version of the property active on the Akamai production network.

readVersion Integer

Required property's version to be read

ruleErrors List<PropertyRuleErrorArgs>

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

ruleFormat String

The rule format to use. Uses the latest rule format by default.

ruleWarnings List<PropertyRuleWarningArgs>

Deprecated:

Rule warnings will not be set in state anymore

rules String

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

stagingVersion Integer

The current version of the property active on the Akamai staging network.

variables String

Deprecated:

The setting "variables" has been deprecated.

contacts string[]

Deprecated:

The setting "contact" has been deprecated.

contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

cpCode string

Deprecated:

The setting "cp_code" has been deprecated.

group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId string

- (Required) A group's unique ID, including the grp_ prefix.

hostnames PropertyHostnameArgs[]

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

isSecure boolean

Deprecated:

The setting "is_secure" has been deprecated.

latestVersion number

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

name string

The property name.

origins PropertyOriginArgs[]

Deprecated:

The setting "origin" has been deprecated.

product string

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

productId string

Product ID to be assigned to the Property

productionVersion number

The current version of the property active on the Akamai production network.

readVersion number

Required property's version to be read

ruleErrors PropertyRuleErrorArgs[]

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

ruleFormat string

The rule format to use. Uses the latest rule format by default.

ruleWarnings PropertyRuleWarningArgs[]

Deprecated:

Rule warnings will not be set in state anymore

rules string

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

stagingVersion number

The current version of the property active on the Akamai staging network.

variables string

Deprecated:

The setting "variables" has been deprecated.

contacts Sequence[str]

Deprecated:

The setting "contact" has been deprecated.

contract str

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contract_id str

- (Required) A contract's unique ID, including the ctr_ prefix.

cp_code str

Deprecated:

The setting "cp_code" has been deprecated.

group str

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

group_id str

- (Required) A group's unique ID, including the grp_ prefix.

hostnames Sequence[PropertyHostnameArgs]

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

is_secure bool

Deprecated:

The setting "is_secure" has been deprecated.

latest_version int

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

name str

The property name.

origins Sequence[PropertyOriginArgs]

Deprecated:

The setting "origin" has been deprecated.

product str

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

product_id str

Product ID to be assigned to the Property

production_version int

The current version of the property active on the Akamai production network.

read_version int

Required property's version to be read

rule_errors Sequence[PropertyRuleErrorArgs]

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

rule_format str

The rule format to use. Uses the latest rule format by default.

rule_warnings Sequence[PropertyRuleWarningArgs]

Deprecated:

Rule warnings will not be set in state anymore

rules str

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

staging_version int

The current version of the property active on the Akamai staging network.

variables str

Deprecated:

The setting "variables" has been deprecated.

contacts List<String>

Deprecated:

The setting "contact" has been deprecated.

contract String

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId String

- (Required) A contract's unique ID, including the ctr_ prefix.

cpCode String

Deprecated:

The setting "cp_code" has been deprecated.

group String

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId String

- (Required) A group's unique ID, including the grp_ prefix.

hostnames List<Property Map>

A mapping of public hostnames to edge hostnames. See the akamai.getPropertyHostnames data source for details on the necessary DNS configuration.

isSecure Boolean

Deprecated:

The setting "is_secure" has been deprecated.

latestVersion Number

The version of the property you've created or updated rules for. The Akamai Provider always uses the latest version or creates a new version if latest is not editable.

name String

The property name.

origins List<Property Map>

Deprecated:

The setting "origin" has been deprecated.

product String

Optional argument replaced by the now required product_id. Maintained for legacy purposes.

Deprecated:

The setting "product" has been deprecated.

productId String

Product ID to be assigned to the Property

productionVersion Number

The current version of the property active on the Akamai production network.

readVersion Number

Required property's version to be read

ruleErrors List<Property Map>

The contents of errors field returned by the API. For more information see Errors in the PAPI documentation.

ruleFormat String

The rule format to use. Uses the latest rule format by default.

ruleWarnings List<Property Map>

Deprecated:

Rule warnings will not be set in state anymore

rules String

A JSON-encoded rule tree for a given property. For this argument, you need to enter a complete JSON rule tree, unless you set up a series of JSON templates. See the akamai.getPropertyRules data source.

stagingVersion Number

The current version of the property active on the Akamai staging network.

variables String

Deprecated:

The setting "variables" has been deprecated.

Supporting Types

PropertyHostname

CertProvisioningType string

The certificate's provisioning type, either the default CPS_MANAGED type for the custom certificates you provision with the Certificate Provisioning System (CPS), or DEFAULT for certificates provisioned automatically.

CnameFrom string

A string containing the original origin's hostname. For example, "example.org".

CnameTo string

A string containing the hostname for edge content. For example, "example.org.edgesuite.net".

CertStatuses List<PropertyHostnameCertStatus>
CnameType string
EdgeHostnameId string
CertProvisioningType string

The certificate's provisioning type, either the default CPS_MANAGED type for the custom certificates you provision with the Certificate Provisioning System (CPS), or DEFAULT for certificates provisioned automatically.

CnameFrom string

A string containing the original origin's hostname. For example, "example.org".

CnameTo string

A string containing the hostname for edge content. For example, "example.org.edgesuite.net".

CertStatuses []PropertyHostnameCertStatus
CnameType string
EdgeHostnameId string
certProvisioningType String

The certificate's provisioning type, either the default CPS_MANAGED type for the custom certificates you provision with the Certificate Provisioning System (CPS), or DEFAULT for certificates provisioned automatically.

cnameFrom String

A string containing the original origin's hostname. For example, "example.org".

cnameTo String

A string containing the hostname for edge content. For example, "example.org.edgesuite.net".

certStatuses List<PropertyHostnameCertStatus>
cnameType String
edgeHostnameId String
certProvisioningType string

The certificate's provisioning type, either the default CPS_MANAGED type for the custom certificates you provision with the Certificate Provisioning System (CPS), or DEFAULT for certificates provisioned automatically.

cnameFrom string

A string containing the original origin's hostname. For example, "example.org".

cnameTo string

A string containing the hostname for edge content. For example, "example.org.edgesuite.net".

certStatuses PropertyHostnameCertStatus[]
cnameType string
edgeHostnameId string
cert_provisioning_type str

The certificate's provisioning type, either the default CPS_MANAGED type for the custom certificates you provision with the Certificate Provisioning System (CPS), or DEFAULT for certificates provisioned automatically.

cname_from str

A string containing the original origin's hostname. For example, "example.org".

cname_to str

A string containing the hostname for edge content. For example, "example.org.edgesuite.net".

cert_statuses Sequence[PropertyHostnameCertStatus]
cname_type str
edge_hostname_id str
certProvisioningType String

The certificate's provisioning type, either the default CPS_MANAGED type for the custom certificates you provision with the Certificate Provisioning System (CPS), or DEFAULT for certificates provisioned automatically.

cnameFrom String

A string containing the original origin's hostname. For example, "example.org".

cnameTo String

A string containing the hostname for edge content. For example, "example.org.edgesuite.net".

certStatuses List<Property Map>
cnameType String
edgeHostnameId String

PropertyHostnameCertStatus

PropertyOrigin

PropertyRuleError

BehaviorName string
Detail string
ErrorLocation string
Instance string
StatusCode int
Title string
Type string
BehaviorName string
Detail string
ErrorLocation string
Instance string
StatusCode int
Title string
Type string
behaviorName String
detail String
errorLocation String
instance String
statusCode Integer
title String
type String
behaviorName string
detail string
errorLocation string
instance string
statusCode number
title string
type string
behaviorName String
detail String
errorLocation String
instance String
statusCode Number
title String
type String

PropertyRuleWarning

BehaviorName string
Detail string
ErrorLocation string
Instance string
StatusCode int
Title string
Type string
BehaviorName string
Detail string
ErrorLocation string
Instance string
StatusCode int
Title string
Type string
behaviorName String
detail String
errorLocation String
instance String
statusCode Integer
title String
type String
behaviorName string
detail string
errorLocation string
instance string
statusCode number
title string
type string
behaviorName String
detail String
errorLocation String
instance String
statusCode Number
title String
type String

Import

Basic Usagehcl resource “akamai_property” “example” {

(resource arguments)

} You can import the latest Akamai property version by using either the property_id or a comma-delimited string of the property, contract, and group IDs. You’ll need to enter the string of IDs if the property belongs to multiple groups or contracts. If using the string of IDs, you need to enter them in this orderproperty_id,contract_id,group_id To import a specific property version, pass additional parameters, either* LATEST to import the latest version of the property, regardless of whether it’s active or not. This works the same as providing just the property_id or a string of the property, contract, and group IDs, which is the default behavior. * PRODUCTION, PROD, or P to import the latest version activated on the production environment. * STAGING, STAGE, STAG, or S to import the latest version activated on the staging environment. * Version number or version number with the ver_ prefix to import a specific property version. For example 3 and ver_3 correspond to the same version number. Here are some examples for the latest property version

 $ pulumi import akamai:properties/property:Property example prp_123

Or

 $ pulumi import akamai:properties/property:Property example prp_123,ctr_1-AB123,grp_123

Here are some examples for the latest active property version on the production network

 $ pulumi import akamai:properties/property:Property example prp_123,P

Or

 $ pulumi import akamai:properties/property:Property example prp_123,ctr_1-AB123,grp_123,PROD

Here are some examples for the specific property version

 $ pulumi import akamai:properties/property:Property example prp_123,3

Or

 $ pulumi import akamai:properties/property:Property example prp_123,ctr_1-AB123,grp_123,ver_3

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.