akamai.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
Basic usage
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var example = new Akamai.CloudletsPolicyActivation("example", new()
{
AssociatedProperties = new[]
{
"Property_1",
"Property_2",
"Property_3",
},
Network = "staging",
PolicyId = 1234,
Version = 1,
});
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/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
to the production resource. See the example
using System.Collections.Generic;
using Pulumi;
using Akamai = Pulumi.Akamai;
return await Deployment.RunAsync(() =>
{
var stag = new Akamai.CloudletsPolicyActivation("stag", new()
{
PolicyId = 1234567,
Network = "staging",
Version = 1,
AssociatedProperties = new[]
{
"Property_1",
"Property_2",
},
});
var prod = new Akamai.CloudletsPolicyActivation("prod", new()
{
PolicyId = 1234567,
Network = "production",
Version = 1,
AssociatedProperties = new[]
{
"Property_1",
"Property_2",
},
}, new CustomResourceOptions
{
DependsOn = new[]
{
stag,
},
});
});
package main
import (
"github.com/pulumi/pulumi-akamai/sdk/v4/go/akamai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
stag, err := akamai.NewCloudletsPolicyActivation(ctx, "stag", &akamai.CloudletsPolicyActivationArgs{
PolicyId: pulumi.Int(1234567),
Network: pulumi.String("staging"),
Version: pulumi.Int(1),
AssociatedProperties: pulumi.StringArray{
pulumi.String("Property_1"),
pulumi.String("Property_2"),
},
})
if err != nil {
return err
}
_, err = akamai.NewCloudletsPolicyActivation(ctx, "prod", &akamai.CloudletsPolicyActivationArgs{
PolicyId: pulumi.Int(1234567),
Network: pulumi.String("production"),
Version: pulumi.Int(1),
AssociatedProperties: pulumi.StringArray{
pulumi.String("Property_1"),
pulumi.String("Property_2"),
},
}, pulumi.DependsOn([]pulumi.Resource{
stag,
}))
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 com.pulumi.resources.CustomResourceOptions;
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 stag = new CloudletsPolicyActivation("stag", CloudletsPolicyActivationArgs.builder()
.policyId(1234567)
.network("staging")
.version(1)
.associatedProperties(
"Property_1",
"Property_2")
.build());
var prod = new CloudletsPolicyActivation("prod", CloudletsPolicyActivationArgs.builder()
.policyId(1234567)
.network("production")
.version(1)
.associatedProperties(
"Property_1",
"Property_2")
.build(), CustomResourceOptions.builder()
.dependsOn(stag)
.build());
}
}
import pulumi
import pulumi_akamai as akamai
stag = akamai.CloudletsPolicyActivation("stag",
policy_id=1234567,
network="staging",
version=1,
associated_properties=[
"Property_1",
"Property_2",
])
prod = akamai.CloudletsPolicyActivation("prod",
policy_id=1234567,
network="production",
version=1,
associated_properties=[
"Property_1",
"Property_2",
],
opts=pulumi.ResourceOptions(depends_on=[stag]))
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";
const stag = new akamai.CloudletsPolicyActivation("stag", {
policyId: 1234567,
network: "staging",
version: 1,
associatedProperties: [
"Property_1",
"Property_2",
],
});
const prod = new akamai.CloudletsPolicyActivation("prod", {
policyId: 1234567,
network: "production",
version: 1,
associatedProperties: [
"Property_1",
"Property_2",
],
}, {
dependsOn: [stag],
});
resources:
stag:
type: akamai:CloudletsPolicyActivation
properties:
policyId: 1.234567e+06
network: staging
version: 1
associatedProperties:
- Property_1
- Property_2
prod:
type: akamai:CloudletsPolicyActivation
properties:
policyId: 1.234567e+06
network: production
version: 1
associatedProperties:
- Property_1
- Property_2
options:
dependson:
- ${stag}
Create 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:
- Associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. 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.
- Associated
Properties []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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. 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.
- associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- policy
Id Integer An identifier for the Cloudlet policy you want to activate.
- version Integer
The Cloudlet policy version you want to activate.
- associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- policy
Id 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. 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.
- associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- policy
Id 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:
Look up 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.
- Associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- Policy
Id 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.
- Associated
Properties []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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- Policy
Id 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.
- associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- policy
Id 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.
- associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- policy
Id 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. 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.
- associated
Properties 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
, ors
. For the Production network, specify eitherproduction
,prod
, orp
. All values are case insensitive.- policy
Id 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
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.