akamai.CloudletsPolicy
Explore with Pulumi AI
Create CloudletsPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudletsPolicy(name: string, args: CloudletsPolicyArgs, opts?: CustomResourceOptions);
@overload
def CloudletsPolicy(resource_name: str,
args: CloudletsPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudletsPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloudlet_code: Optional[str] = None,
group_id: Optional[str] = None,
description: Optional[str] = None,
is_shared: Optional[bool] = None,
match_rule_format: Optional[str] = None,
match_rules: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CloudletsPolicyTimeoutsArgs] = None)
func NewCloudletsPolicy(ctx *Context, name string, args CloudletsPolicyArgs, opts ...ResourceOption) (*CloudletsPolicy, error)
public CloudletsPolicy(string name, CloudletsPolicyArgs args, CustomResourceOptions? opts = null)
public CloudletsPolicy(String name, CloudletsPolicyArgs args)
public CloudletsPolicy(String name, CloudletsPolicyArgs args, CustomResourceOptions options)
type: akamai:CloudletsPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CloudletsPolicyArgs
- 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 CloudletsPolicyArgs
- 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 CloudletsPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudletsPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudletsPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cloudletsPolicyResource = new Akamai.CloudletsPolicy("cloudletsPolicyResource", new()
{
CloudletCode = "string",
GroupId = "string",
Description = "string",
IsShared = false,
MatchRuleFormat = "string",
MatchRules = "string",
Name = "string",
Timeouts = new Akamai.Inputs.CloudletsPolicyTimeoutsArgs
{
Default = "string",
},
});
example, err := akamai.NewCloudletsPolicy(ctx, "cloudletsPolicyResource", &akamai.CloudletsPolicyArgs{
CloudletCode: pulumi.String("string"),
GroupId: pulumi.String("string"),
Description: pulumi.String("string"),
IsShared: pulumi.Bool(false),
MatchRuleFormat: pulumi.String("string"),
MatchRules: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &akamai.CloudletsPolicyTimeoutsArgs{
Default: pulumi.String("string"),
},
})
var cloudletsPolicyResource = new CloudletsPolicy("cloudletsPolicyResource", CloudletsPolicyArgs.builder()
.cloudletCode("string")
.groupId("string")
.description("string")
.isShared(false)
.matchRuleFormat("string")
.matchRules("string")
.name("string")
.timeouts(CloudletsPolicyTimeoutsArgs.builder()
.default_("string")
.build())
.build());
cloudlets_policy_resource = akamai.CloudletsPolicy("cloudletsPolicyResource",
cloudlet_code="string",
group_id="string",
description="string",
is_shared=False,
match_rule_format="string",
match_rules="string",
name="string",
timeouts={
"default": "string",
})
const cloudletsPolicyResource = new akamai.CloudletsPolicy("cloudletsPolicyResource", {
cloudletCode: "string",
groupId: "string",
description: "string",
isShared: false,
matchRuleFormat: "string",
matchRules: "string",
name: "string",
timeouts: {
"default": "string",
},
});
type: akamai:CloudletsPolicy
properties:
cloudletCode: string
description: string
groupId: string
isShared: false
matchRuleFormat: string
matchRules: string
name: string
timeouts:
default: string
CloudletsPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudletsPolicy resource accepts the following input properties:
- Cloudlet
Code string - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- Group
Id string - Defines the group association for the policy. You must have edit privileges for the group
- Description string
- The description of this specific policy
- bool
- The type of policy that you want to create
- Match
Rule stringFormat - The version of the Cloudlet specific matchRules
- Match
Rules string - A JSON structure that defines the rules for this policy
- Name string
- The name of the policy. The name must be unique
- Timeouts
Cloudlets
Policy Timeouts - Enables to set timeout for processing
- Cloudlet
Code string - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- Group
Id string - Defines the group association for the policy. You must have edit privileges for the group
- Description string
- The description of this specific policy
- bool
- The type of policy that you want to create
- Match
Rule stringFormat - The version of the Cloudlet specific matchRules
- Match
Rules string - A JSON structure that defines the rules for this policy
- Name string
- The name of the policy. The name must be unique
- Timeouts
Cloudlets
Policy Timeouts Args - Enables to set timeout for processing
- cloudlet
Code String - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- group
Id String - Defines the group association for the policy. You must have edit privileges for the group
- description String
- The description of this specific policy
- Boolean
- The type of policy that you want to create
- match
Rule StringFormat - The version of the Cloudlet specific matchRules
- match
Rules String - A JSON structure that defines the rules for this policy
- name String
- The name of the policy. The name must be unique
- timeouts
Cloudlets
Policy Timeouts - Enables to set timeout for processing
- cloudlet
Code string - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- group
Id string - Defines the group association for the policy. You must have edit privileges for the group
- description string
- The description of this specific policy
- boolean
- The type of policy that you want to create
- match
Rule stringFormat - The version of the Cloudlet specific matchRules
- match
Rules string - A JSON structure that defines the rules for this policy
- name string
- The name of the policy. The name must be unique
- timeouts
Cloudlets
Policy Timeouts - Enables to set timeout for processing
- cloudlet_
code str - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- group_
id str - Defines the group association for the policy. You must have edit privileges for the group
- description str
- The description of this specific policy
- bool
- The type of policy that you want to create
- match_
rule_ strformat - The version of the Cloudlet specific matchRules
- match_
rules str - A JSON structure that defines the rules for this policy
- name str
- The name of the policy. The name must be unique
- timeouts
Cloudlets
Policy Timeouts Args - Enables to set timeout for processing
- cloudlet
Code String - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- group
Id String - Defines the group association for the policy. You must have edit privileges for the group
- description String
- The description of this specific policy
- Boolean
- The type of policy that you want to create
- match
Rule StringFormat - The version of the Cloudlet specific matchRules
- match
Rules String - A JSON structure that defines the rules for this policy
- name String
- The name of the policy. The name must be unique
- timeouts Property Map
- Enables to set timeout for processing
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudletsPolicy resource produces the following output properties:
- Cloudlet
Id int - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- Id string
- The provider-assigned unique ID for this managed resource.
- Version int
- The version number of the policy
- Warnings string
- A JSON encoded list of warnings
- Cloudlet
Id int - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- Id string
- The provider-assigned unique ID for this managed resource.
- Version int
- The version number of the policy
- Warnings string
- A JSON encoded list of warnings
- cloudlet
Id Integer - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- id String
- The provider-assigned unique ID for this managed resource.
- version Integer
- The version number of the policy
- warnings String
- A JSON encoded list of warnings
- cloudlet
Id number - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- id string
- The provider-assigned unique ID for this managed resource.
- version number
- The version number of the policy
- warnings string
- A JSON encoded list of warnings
- cloudlet_
id int - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- id str
- The provider-assigned unique ID for this managed resource.
- version int
- The version number of the policy
- warnings str
- A JSON encoded list of warnings
- cloudlet
Id Number - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- id String
- The provider-assigned unique ID for this managed resource.
- version Number
- The version number of the policy
- warnings String
- A JSON encoded list of warnings
Look up Existing CloudletsPolicy Resource
Get an existing CloudletsPolicy 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?: CloudletsPolicyState, opts?: CustomResourceOptions): CloudletsPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloudlet_code: Optional[str] = None,
cloudlet_id: Optional[int] = None,
description: Optional[str] = None,
group_id: Optional[str] = None,
is_shared: Optional[bool] = None,
match_rule_format: Optional[str] = None,
match_rules: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[CloudletsPolicyTimeoutsArgs] = None,
version: Optional[int] = None,
warnings: Optional[str] = None) -> CloudletsPolicy
func GetCloudletsPolicy(ctx *Context, name string, id IDInput, state *CloudletsPolicyState, opts ...ResourceOption) (*CloudletsPolicy, error)
public static CloudletsPolicy Get(string name, Input<string> id, CloudletsPolicyState? state, CustomResourceOptions? opts = null)
public static CloudletsPolicy get(String name, Output<String> id, CloudletsPolicyState 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.
- Cloudlet
Code string - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- Cloudlet
Id int - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- Description string
- The description of this specific policy
- Group
Id string - Defines the group association for the policy. You must have edit privileges for the group
- bool
- The type of policy that you want to create
- Match
Rule stringFormat - The version of the Cloudlet specific matchRules
- Match
Rules string - A JSON structure that defines the rules for this policy
- Name string
- The name of the policy. The name must be unique
- Timeouts
Cloudlets
Policy Timeouts - Enables to set timeout for processing
- Version int
- The version number of the policy
- Warnings string
- A JSON encoded list of warnings
- Cloudlet
Code string - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- Cloudlet
Id int - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- Description string
- The description of this specific policy
- Group
Id string - Defines the group association for the policy. You must have edit privileges for the group
- bool
- The type of policy that you want to create
- Match
Rule stringFormat - The version of the Cloudlet specific matchRules
- Match
Rules string - A JSON structure that defines the rules for this policy
- Name string
- The name of the policy. The name must be unique
- Timeouts
Cloudlets
Policy Timeouts Args - Enables to set timeout for processing
- Version int
- The version number of the policy
- Warnings string
- A JSON encoded list of warnings
- cloudlet
Code String - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- cloudlet
Id Integer - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- description String
- The description of this specific policy
- group
Id String - Defines the group association for the policy. You must have edit privileges for the group
- Boolean
- The type of policy that you want to create
- match
Rule StringFormat - The version of the Cloudlet specific matchRules
- match
Rules String - A JSON structure that defines the rules for this policy
- name String
- The name of the policy. The name must be unique
- timeouts
Cloudlets
Policy Timeouts - Enables to set timeout for processing
- version Integer
- The version number of the policy
- warnings String
- A JSON encoded list of warnings
- cloudlet
Code string - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- cloudlet
Id number - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- description string
- The description of this specific policy
- group
Id string - Defines the group association for the policy. You must have edit privileges for the group
- boolean
- The type of policy that you want to create
- match
Rule stringFormat - The version of the Cloudlet specific matchRules
- match
Rules string - A JSON structure that defines the rules for this policy
- name string
- The name of the policy. The name must be unique
- timeouts
Cloudlets
Policy Timeouts - Enables to set timeout for processing
- version number
- The version number of the policy
- warnings string
- A JSON encoded list of warnings
- cloudlet_
code str - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- cloudlet_
id int - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- description str
- The description of this specific policy
- group_
id str - Defines the group association for the policy. You must have edit privileges for the group
- bool
- The type of policy that you want to create
- match_
rule_ strformat - The version of the Cloudlet specific matchRules
- match_
rules str - A JSON structure that defines the rules for this policy
- name str
- The name of the policy. The name must be unique
- timeouts
Cloudlets
Policy Timeouts Args - Enables to set timeout for processing
- version int
- The version number of the policy
- warnings str
- A JSON encoded list of warnings
- cloudlet
Code String - Code for the type of Cloudlet (ALB, AP, AS, CD, ER, FR, IG, or VP)
- cloudlet
Id Number - An integer that corresponds to a non-shared Cloudlets policy type (0 to 9). Not used for shared policies
- description String
- The description of this specific policy
- group
Id String - Defines the group association for the policy. You must have edit privileges for the group
- Boolean
- The type of policy that you want to create
- match
Rule StringFormat - The version of the Cloudlet specific matchRules
- match
Rules String - A JSON structure that defines the rules for this policy
- name String
- The name of the policy. The name must be unique
- timeouts Property Map
- Enables to set timeout for processing
- version Number
- The version number of the policy
- warnings String
- A JSON encoded list of warnings
Supporting Types
CloudletsPolicyTimeouts, CloudletsPolicyTimeoutsArgs
- Default string
- Default string
- default_ String
- default string
- default str
- default String
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamai
Terraform Provider.