Akamai

v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

CloudletsPolicyActivation

Use the akamai.CloudletsPolicyActivation resource to activate a specific version of a Cloudlet policy. An activation deploys the version to either the Akamai staging or production network. You can activate a specific version multiple times if you need to.

Before activating on production, activate on staging first. This way you can detect any problems in staging before your changes progress to production.

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Akamai.CloudletsPolicyActivation("example", new Akamai.CloudletsPolicyActivationArgs
        {
            AssociatedProperties = 
            {
                "Property_1",
                "Property_2",
                "Property_3",
            },
            Network = "staging",
            PolicyId = 1234,
            Version = 1,
        });
    }

}
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.NewCloudletsPolicyActivation(ctx, "example", &akamai.CloudletsPolicyActivationArgs{
			AssociatedProperties: pulumi.StringArray{
				pulumi.String("Property_1"),
				pulumi.String("Property_2"),
				pulumi.String("Property_3"),
			},
			Network:  pulumi.String("staging"),
			PolicyId: pulumi.Int(1234),
			Version:  pulumi.Int(1),
		})
		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.CloudletsPolicyActivation;
import com.pulumi.akamai.CloudletsPolicyActivationArgs;
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 CloudletsPolicyActivation("example", CloudletsPolicyActivationArgs.builder()        
            .associatedProperties(            
                "Property_1",
                "Property_2",
                "Property_3")
            .network("staging")
            .policyId(1234)
            .version(1)
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

example = akamai.CloudletsPolicyActivation("example",
    associated_properties=[
        "Property_1",
        "Property_2",
        "Property_3",
    ],
    network="staging",
    policy_id=1234,
    version=1)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = new akamai.CloudletsPolicyActivation("example", {
    associatedProperties: [
        "Property_1",
        "Property_2",
        "Property_3",
    ],
    network: "staging",
    policyId: 1234,
    version: 1,
});
resources:
  example:
    type: akamai:CloudletsPolicyActivation
    properties:
      associatedProperties:
        - Property_1
        - Property_2
        - Property_3
      network: staging
      policyId: 1234
      version: 1

Create a CloudletsPolicyActivation Resource

new CloudletsPolicyActivation(name: string, args: CloudletsPolicyActivationArgs, opts?: CustomResourceOptions);
@overload
def CloudletsPolicyActivation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              associated_properties: Optional[Sequence[str]] = None,
                              network: Optional[str] = None,
                              policy_id: Optional[int] = None,
                              version: Optional[int] = None)
@overload
def CloudletsPolicyActivation(resource_name: str,
                              args: CloudletsPolicyActivationArgs,
                              opts: Optional[ResourceOptions] = None)
func NewCloudletsPolicyActivation(ctx *Context, name string, args CloudletsPolicyActivationArgs, opts ...ResourceOption) (*CloudletsPolicyActivation, error)
public CloudletsPolicyActivation(string name, CloudletsPolicyActivationArgs args, CustomResourceOptions? opts = null)
public CloudletsPolicyActivation(String name, CloudletsPolicyActivationArgs args)
public CloudletsPolicyActivation(String name, CloudletsPolicyActivationArgs args, CustomResourceOptions options)
type: akamai:CloudletsPolicyActivation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

CloudletsPolicyActivation 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 CloudletsPolicyActivation resource accepts the following input properties:

AssociatedProperties List<string>

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

Network string

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

PolicyId int

An identifier for the Cloudlet policy you want to activate.

Version int

The Cloudlet policy version you want to activate.

AssociatedProperties []string

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

Network string

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

PolicyId int

An identifier for the Cloudlet policy you want to activate.

Version int

The Cloudlet policy version you want to activate.

associatedProperties List<String>

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network String

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policyId Integer

An identifier for the Cloudlet policy you want to activate.

version Integer

The Cloudlet policy version you want to activate.

associatedProperties string[]

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network string

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policyId number

An identifier for the Cloudlet policy you want to activate.

version number

The Cloudlet policy version you want to activate.

associated_properties Sequence[str]

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network str

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policy_id int

An identifier for the Cloudlet policy you want to activate.

version int

The Cloudlet policy version you want to activate.

associatedProperties List<String>

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network String

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policyId Number

An identifier for the Cloudlet policy you want to activate.

version Number

The Cloudlet policy version you want to activate.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

The activation status for this Cloudlet policy.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The activation status for this Cloudlet policy.

id String

The provider-assigned unique ID for this managed resource.

status String

The activation status for this Cloudlet policy.

id string

The provider-assigned unique ID for this managed resource.

status string

The activation status for this Cloudlet policy.

id str

The provider-assigned unique ID for this managed resource.

status str

The activation status for this Cloudlet policy.

id String

The provider-assigned unique ID for this managed resource.

status String

The activation status for this Cloudlet policy.

Look up an Existing CloudletsPolicyActivation Resource

Get an existing CloudletsPolicyActivation 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?: CloudletsPolicyActivationState, opts?: CustomResourceOptions): CloudletsPolicyActivation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        associated_properties: Optional[Sequence[str]] = None,
        network: Optional[str] = None,
        policy_id: Optional[int] = None,
        status: Optional[str] = None,
        version: Optional[int] = None) -> CloudletsPolicyActivation
func GetCloudletsPolicyActivation(ctx *Context, name string, id IDInput, state *CloudletsPolicyActivationState, opts ...ResourceOption) (*CloudletsPolicyActivation, error)
public static CloudletsPolicyActivation Get(string name, Input<string> id, CloudletsPolicyActivationState? state, CustomResourceOptions? opts = null)
public static CloudletsPolicyActivation get(String name, Output<String> id, CloudletsPolicyActivationState 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:
AssociatedProperties List<string>

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

Network string

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

PolicyId int

An identifier for the Cloudlet policy you want to activate.

Status string

The activation status for this Cloudlet policy.

Version int

The Cloudlet policy version you want to activate.

AssociatedProperties []string

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

Network string

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

PolicyId int

An identifier for the Cloudlet policy you want to activate.

Status string

The activation status for this Cloudlet policy.

Version int

The Cloudlet policy version you want to activate.

associatedProperties List<String>

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network String

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policyId Integer

An identifier for the Cloudlet policy you want to activate.

status String

The activation status for this Cloudlet policy.

version Integer

The Cloudlet policy version you want to activate.

associatedProperties string[]

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network string

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policyId number

An identifier for the Cloudlet policy you want to activate.

status string

The activation status for this Cloudlet policy.

version number

The Cloudlet policy version you want to activate.

associated_properties Sequence[str]

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network str

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policy_id int

An identifier for the Cloudlet policy you want to activate.

status str

The activation status for this Cloudlet policy.

version int

The Cloudlet policy version you want to activate.

associatedProperties List<String>

A set of property identifiers related to this Cloudlet policy. You can't activate a Cloudlet policy if it doesn't have any properties associated with it.

network String

The network you want to activate the policy version on. For the Staging network, specify either staging, stag, or s. For the Production network, specify either production, prod, or p. All values are case insensitive.

policyId Number

An identifier for the Cloudlet policy you want to activate.

status String

The activation status for this Cloudlet policy.

version Number

The Cloudlet policy version you want to activate.

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.