Skip to content

CreatePlanRequest

Source code in docs_src/capo_appmonetization/types/create_plan_request.py
class CreatePlanRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app the plan belongs to."""
    definition: "capo_appmonetization.types.plan_definition.PlanDefinition"
    """The pricing and packaging definition for the plan. The plan's identifier is not supplied here: CreatePlan mints a server-generated planId and returns it on the created plan."""
    client_token: NotRequired["capo_appmonetization.types.client_token.ClientToken"]
    """A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error."""
    tags: NotRequired["capo_appmonetization.types.tag_map.TagMap"]
    """Optional tags to add to the plan when it is created. Tagging on create also requires permission for appmonetization:TagResource."""

app_id instance-attribute

app_id: AppId

The ID of the app the plan belongs to.

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.

definition instance-attribute

definition: PlanDefinition

The pricing and packaging definition for the plan. The plan's identifier is not supplied here: CreatePlan mints a server-generated planId and returns it on the created plan.

tags instance-attribute

tags: NotRequired[TagMap]

Optional tags to add to the plan when it is created. Tagging on create also requires permission for appmonetization:TagResource.