1. Packages
  2. Akamai
  3. API Docs
  4. CpCode
Akamai v7.4.1 published on Tuesday, Sep 24, 2024 by Pulumi

akamai.CpCode

Explore with Pulumi AI

akamai logo
Akamai v7.4.1 published on Tuesday, Sep 24, 2024 by Pulumi

    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=akamai.CpCodeTimeoutsArgs(
            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

    The CpCode resource accepts the following input properties:

    ContractId string
    GroupId string
    Name string
    ProductId string
    Timeouts CpCodeTimeouts
    Enables to set timeout for processing
    ContractId string
    GroupId string
    Name string
    ProductId string
    Timeouts CpCodeTimeoutsArgs
    Enables to set timeout for processing
    contractId String
    groupId String
    name String
    productId String
    timeouts CpCodeTimeouts
    Enables to set timeout for processing
    contractId string
    groupId string
    name string
    productId string
    timeouts CpCodeTimeouts
    Enables to set timeout for processing
    contract_id str
    group_id str
    name str
    product_id str
    timeouts CpCodeTimeoutsArgs
    Enables to set timeout for processing
    contractId String
    groupId String
    name String
    productId 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.
    The following state arguments are supported:
    ContractId string
    GroupId string
    Name string
    ProductId string
    Timeouts CpCodeTimeouts
    Enables to set timeout for processing
    ContractId string
    GroupId string
    Name string
    ProductId string
    Timeouts CpCodeTimeoutsArgs
    Enables to set timeout for processing
    contractId String
    groupId String
    name String
    productId String
    timeouts CpCodeTimeouts
    Enables to set timeout for processing
    contractId string
    groupId string
    name string
    productId string
    timeouts CpCodeTimeouts
    Enables to set timeout for processing
    contract_id str
    group_id str
    name str
    product_id str
    timeouts CpCodeTimeoutsArgs
    Enables to set timeout for processing
    contractId String
    groupId String
    name String
    productId 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.
    akamai logo
    Akamai v7.4.1 published on Tuesday, Sep 24, 2024 by Pulumi