akamai.CpCode
Explore with Pulumi AI
Create CpCode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CpCode(name: string, args: CpCodeArgs, opts?: CustomResourceOptions);
@overload
def CpCode(resource_name: str,
args: CpCodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CpCode(resource_name: str,
opts: Optional[ResourceOptions] = None,
contract_id: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
product_id: Optional[str] = None,
timeouts: Optional[CpCodeTimeoutsArgs] = None)
func NewCpCode(ctx *Context, name string, args CpCodeArgs, opts ...ResourceOption) (*CpCode, error)
public CpCode(string name, CpCodeArgs args, CustomResourceOptions? opts = null)
public CpCode(String name, CpCodeArgs args)
public CpCode(String name, CpCodeArgs args, CustomResourceOptions options)
type: akamai:CpCode
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 CpCodeArgs
- 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 CpCodeArgs
- 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 CpCodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CpCodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CpCodeArgs
- 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 cpCodeResource = new Akamai.CpCode("cpCodeResource", new()
{
ContractId = "string",
GroupId = "string",
Name = "string",
ProductId = "string",
Timeouts = new Akamai.Inputs.CpCodeTimeoutsArgs
{
Update = "string",
},
});
example, err := akamai.NewCpCode(ctx, "cpCodeResource", &akamai.CpCodeArgs{
ContractId: pulumi.String("string"),
GroupId: pulumi.String("string"),
Name: pulumi.String("string"),
ProductId: pulumi.String("string"),
Timeouts: &akamai.CpCodeTimeoutsArgs{
Update: pulumi.String("string"),
},
})
var cpCodeResource = new CpCode("cpCodeResource", CpCodeArgs.builder()
.contractId("string")
.groupId("string")
.name("string")
.productId("string")
.timeouts(CpCodeTimeoutsArgs.builder()
.update("string")
.build())
.build());
cp_code_resource = akamai.CpCode("cpCodeResource",
contract_id="string",
group_id="string",
name="string",
product_id="string",
timeouts={
"update": "string",
})
const cpCodeResource = new akamai.CpCode("cpCodeResource", {
contractId: "string",
groupId: "string",
name: "string",
productId: "string",
timeouts: {
update: "string",
},
});
type: akamai:CpCode
properties:
contractId: string
groupId: string
name: string
productId: string
timeouts:
update: string
CpCode 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 CpCode resource accepts the following input properties:
- Contract
Id string - Group
Id string - Name string
- Product
Id string - Timeouts
Cp
Code Timeouts - Enables to set timeout for processing
- Contract
Id string - Group
Id string - Name string
- Product
Id string - Timeouts
Cp
Code Timeouts Args - Enables to set timeout for processing
- contract
Id String - group
Id String - name String
- product
Id String - timeouts
Cp
Code Timeouts - Enables to set timeout for processing
- contract
Id string - group
Id string - name string
- product
Id string - timeouts
Cp
Code Timeouts - Enables to set timeout for processing
- contract_
id str - group_
id str - name str
- product_
id str - timeouts
Cp
Code Timeouts Args - Enables to set timeout for processing
- contract
Id String - group
Id String - name String
- product
Id String - timeouts Property Map
- Enables to set timeout for processing
Outputs
All input properties are implicitly available as output properties. Additionally, the CpCode resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CpCode Resource
Get an existing CpCode 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?: CpCodeState, opts?: CustomResourceOptions): CpCode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contract_id: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
product_id: Optional[str] = None,
timeouts: Optional[CpCodeTimeoutsArgs] = None) -> CpCode
func GetCpCode(ctx *Context, name string, id IDInput, state *CpCodeState, opts ...ResourceOption) (*CpCode, error)
public static CpCode Get(string name, Input<string> id, CpCodeState? state, CustomResourceOptions? opts = null)
public static CpCode get(String name, Output<String> id, CpCodeState 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.
- Contract
Id string - Group
Id string - Name string
- Product
Id string - Timeouts
Cp
Code Timeouts - Enables to set timeout for processing
- Contract
Id string - Group
Id string - Name string
- Product
Id string - Timeouts
Cp
Code Timeouts Args - Enables to set timeout for processing
- contract
Id String - group
Id String - name String
- product
Id String - timeouts
Cp
Code Timeouts - Enables to set timeout for processing
- contract
Id string - group
Id string - name string
- product
Id string - timeouts
Cp
Code Timeouts - Enables to set timeout for processing
- contract_
id str - group_
id str - name str
- product_
id str - timeouts
Cp
Code Timeouts Args - Enables to set timeout for processing
- contract
Id String - group
Id String - name String
- product
Id String - timeouts Property Map
- Enables to set timeout for processing
Supporting Types
CpCodeTimeouts, CpCodeTimeoutsArgs
- Update string
- Update string
- update String
- update string
- update str
- update String
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamai
Terraform Provider.