Akamai

v3.1.0 published on Tuesday, Oct 4, 2022 by Pulumi

getCpCode

Deprecated:

akamai.properties.getCpCode has been deprecated in favor of akamai.getCpCode

Using getCpCode

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getCpCode(args: GetCpCodeArgs, opts?: InvokeOptions): Promise<GetCpCodeResult>
function getCpCodeOutput(args: GetCpCodeOutputArgs, opts?: InvokeOptions): Output<GetCpCodeResult>
def get_cp_code(contract: Optional[str] = None,
                contract_id: Optional[str] = None,
                group: Optional[str] = None,
                group_id: Optional[str] = None,
                name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetCpCodeResult
def get_cp_code_output(contract: Optional[pulumi.Input[str]] = None,
                contract_id: Optional[pulumi.Input[str]] = None,
                group: Optional[pulumi.Input[str]] = None,
                group_id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetCpCodeResult]
func LookupCpCode(ctx *Context, args *LookupCpCodeArgs, opts ...InvokeOption) (*LookupCpCodeResult, error)
func LookupCpCodeOutput(ctx *Context, args *LookupCpCodeOutputArgs, opts ...InvokeOption) LookupCpCodeResultOutput

> Note: This function is named LookupCpCode in the Go SDK.

public static class GetCpCode 
{
    public static Task<GetCpCodeResult> InvokeAsync(GetCpCodeArgs args, InvokeOptions? opts = null)
    public static Output<GetCpCodeResult> Invoke(GetCpCodeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCpCodeResult> getCpCode(GetCpCodeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:properties/getCpCode:getCpCode
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the CP code.

Contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

ContractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

Group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

GroupId string

The group's unique ID, including the grp_ prefix.

Name string

The name of the CP code.

Contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

ContractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

Group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

GroupId string

The group's unique ID, including the grp_ prefix.

name String

The name of the CP code.

contract String

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId String

- (Required) A contract's unique ID, including the ctr_ prefix.

group String

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId String

The group's unique ID, including the grp_ prefix.

name string

The name of the CP code.

contract string

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId string

- (Required) A contract's unique ID, including the ctr_ prefix.

group string

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId string

The group's unique ID, including the grp_ prefix.

name str

The name of the CP code.

contract str

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contract_id str

- (Required) A contract's unique ID, including the ctr_ prefix.

group str

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

group_id str

The group's unique ID, including the grp_ prefix.

name String

The name of the CP code.

contract String

Replaced by contract_id. Maintained for legacy purposes.

Deprecated:

The setting "contract" has been deprecated.

contractId String

- (Required) A contract's unique ID, including the ctr_ prefix.

group String

Replaced by group_id. Maintained for legacy purposes.

Deprecated:

The setting "group" has been deprecated.

groupId String

The group's unique ID, including the grp_ prefix.

getCpCode Result

The following output properties are available:

Contract string

Deprecated:

The setting "contract" has been deprecated.

ContractId string
Group string

Deprecated:

The setting "group" has been deprecated.

GroupId string
Id string

The provider-assigned unique ID for this managed resource.

Name string
ProductIds List<string>
Contract string

Deprecated:

The setting "contract" has been deprecated.

ContractId string
Group string

Deprecated:

The setting "group" has been deprecated.

GroupId string
Id string

The provider-assigned unique ID for this managed resource.

Name string
ProductIds []string
contract String

Deprecated:

The setting "contract" has been deprecated.

contractId String
group String

Deprecated:

The setting "group" has been deprecated.

groupId String
id String

The provider-assigned unique ID for this managed resource.

name String
productIds List<String>
contract string

Deprecated:

The setting "contract" has been deprecated.

contractId string
group string

Deprecated:

The setting "group" has been deprecated.

groupId string
id string

The provider-assigned unique ID for this managed resource.

name string
productIds string[]
contract str

Deprecated:

The setting "contract" has been deprecated.

contract_id str
group str

Deprecated:

The setting "group" has been deprecated.

group_id str
id str

The provider-assigned unique ID for this managed resource.

name str
product_ids Sequence[str]
contract String

Deprecated:

The setting "contract" has been deprecated.

contractId String
group String

Deprecated:

The setting "group" has been deprecated.

groupId String
id String

The provider-assigned unique ID for this managed resource.

name String
productIds List<String>

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.