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
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/v2/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
})
}
Coming soon!
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,
});
Coming soon!
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:
- 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 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.
- 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
- https://github.com/pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
akamai
Terraform Provider.