Skip to content

PricingPlanManagerClient#

Index > PricingPlanManager > PricingPlanManagerClient

Auto-generated documentation for PricingPlanManager type annotations stubs module mypy-boto3-pricing-plan-manager.

PricingPlanManagerClient#

Type annotations and code completion for boto3.client("pricing-plan-manager"). boto3 documentation

# PricingPlanManagerClient usage example

from boto3.session import Session
from mypy_boto3_pricing_plan_manager.client import PricingPlanManagerClient

def get_pricing-plan-manager_client() -> PricingPlanManagerClient:
    return Session().client("pricing-plan-manager")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("pricing-plan-manager").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("pricing-plan-manager")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_pricing_plan_manager.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

can_paginate#

Type annotations and code completion for boto3.client("pricing-plan-manager").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

generate_presigned_url#

Type annotations and code completion for boto3.client("pricing-plan-manager").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

approve_paid_subscription#

Approves a subscription that is in PENDING_APPROVAL status, activating it and starting billing.

Type annotations and code completion for boto3.client("pricing-plan-manager").approve_paid_subscription method. boto3 documentation

# approve_paid_subscription method definition

def approve_paid_subscription(
    self,
    *,
    arn: str,
    ifMatch: str,
    clientToken: str = ...,
) -> ApprovePaidSubscriptionOutputTypeDef:  # (1)
    ...
  1. See ApprovePaidSubscriptionOutputTypeDef
# approve_paid_subscription method usage example with argument unpacking

kwargs: ApprovePaidSubscriptionInputTypeDef = {  # (1)
    "arn": ...,
    "ifMatch": ...,
}

parent.approve_paid_subscription(**kwargs)
  1. See ApprovePaidSubscriptionInputTypeDef

associate_resources_to_subscription#

Adds one or more resources to an existing subscription.

Type annotations and code completion for boto3.client("pricing-plan-manager").associate_resources_to_subscription method. boto3 documentation

# associate_resources_to_subscription method definition

def associate_resources_to_subscription(
    self,
    *,
    arn: str,
    resourceArns: Sequence[str],
    ifMatch: str,
    clientToken: str = ...,
) -> AssociateResourcesToSubscriptionOutputTypeDef:  # (1)
    ...
  1. See AssociateResourcesToSubscriptionOutputTypeDef
# associate_resources_to_subscription method usage example with argument unpacking

kwargs: AssociateResourcesToSubscriptionInputTypeDef = {  # (1)
    "arn": ...,
    "resourceArns": ...,
    "ifMatch": ...,
}

parent.associate_resources_to_subscription(**kwargs)
  1. See AssociateResourcesToSubscriptionInputTypeDef

cancel_subscription#

Cancels a flat-rate pricing subscription.

Type annotations and code completion for boto3.client("pricing-plan-manager").cancel_subscription method. boto3 documentation

# cancel_subscription method definition

def cancel_subscription(
    self,
    *,
    arn: str,
    ifMatch: str,
    clientToken: str = ...,
) -> CancelSubscriptionOutputTypeDef:  # (1)
    ...
  1. See CancelSubscriptionOutputTypeDef
# cancel_subscription method usage example with argument unpacking

kwargs: CancelSubscriptionInputTypeDef = {  # (1)
    "arn": ...,
    "ifMatch": ...,
}

parent.cancel_subscription(**kwargs)
  1. See CancelSubscriptionInputTypeDef

cancel_subscription_change#

Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation.

Type annotations and code completion for boto3.client("pricing-plan-manager").cancel_subscription_change method. boto3 documentation

# cancel_subscription_change method definition

def cancel_subscription_change(
    self,
    *,
    arn: str,
    ifMatch: str,
    clientToken: str = ...,
) -> CancelSubscriptionChangeOutputTypeDef:  # (1)
    ...
  1. See CancelSubscriptionChangeOutputTypeDef
# cancel_subscription_change method usage example with argument unpacking

kwargs: CancelSubscriptionChangeInputTypeDef = {  # (1)
    "arn": ...,
    "ifMatch": ...,
}

parent.cancel_subscription_change(**kwargs)
  1. See CancelSubscriptionChangeInputTypeDef

create_subscription#

Creates a flat-rate pricing subscription for the specified resources.

Type annotations and code completion for boto3.client("pricing-plan-manager").create_subscription method. boto3 documentation

# create_subscription method definition

def create_subscription(
    self,
    *,
    planFamily: str,
    planTier: str,
    resourceArns: Sequence[str],
    usageLevel: str = ...,
    approvalMode: ApprovalModeType = ...,  # (1)
    clientToken: str = ...,
) -> CreateSubscriptionOutputTypeDef:  # (2)
    ...
  1. See ApprovalModeType
  2. See CreateSubscriptionOutputTypeDef
# create_subscription method usage example with argument unpacking

kwargs: CreateSubscriptionInputTypeDef = {  # (1)
    "planFamily": ...,
    "planTier": ...,
    "resourceArns": ...,
}

parent.create_subscription(**kwargs)
  1. See CreateSubscriptionInputTypeDef

disassociate_resources_from_subscription#

Removes one or more resources from an existing subscription.

Type annotations and code completion for boto3.client("pricing-plan-manager").disassociate_resources_from_subscription method. boto3 documentation

# disassociate_resources_from_subscription method definition

def disassociate_resources_from_subscription(
    self,
    *,
    arn: str,
    resourceArns: Sequence[str],
    ifMatch: str,
    clientToken: str = ...,
) -> DisassociateResourcesFromSubscriptionOutputTypeDef:  # (1)
    ...
  1. See DisassociateResourcesFromSubscriptionOutputTypeDef
# disassociate_resources_from_subscription method usage example with argument unpacking

kwargs: DisassociateResourcesFromSubscriptionInputTypeDef = {  # (1)
    "arn": ...,
    "resourceArns": ...,
    "ifMatch": ...,
}

parent.disassociate_resources_from_subscription(**kwargs)
  1. See DisassociateResourcesFromSubscriptionInputTypeDef

get_subscription#

Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.

Type annotations and code completion for boto3.client("pricing-plan-manager").get_subscription method. boto3 documentation

# get_subscription method definition

def get_subscription(
    self,
    *,
    arn: str,
) -> GetSubscriptionOutputTypeDef:  # (1)
    ...
  1. See GetSubscriptionOutputTypeDef
# get_subscription method usage example with argument unpacking

kwargs: GetSubscriptionInputTypeDef = {  # (1)
    "arn": ...,
}

parent.get_subscription(**kwargs)
  1. See GetSubscriptionInputTypeDef

list_subscriptions#

Returns a summary of all flat-rate pricing subscriptions in the calling account.

Type annotations and code completion for boto3.client("pricing-plan-manager").list_subscriptions method. boto3 documentation

# list_subscriptions method definition

def list_subscriptions(
    self,
    *,
    nextToken: str = ...,
) -> ListSubscriptionsOutputTypeDef:  # (1)
    ...
  1. See ListSubscriptionsOutputTypeDef
# list_subscriptions method usage example with argument unpacking

kwargs: ListSubscriptionsInputTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_subscriptions(**kwargs)
  1. See ListSubscriptionsInputTypeDef

update_subscription#

Changes the plan tier of an existing subscription.

Type annotations and code completion for boto3.client("pricing-plan-manager").update_subscription method. boto3 documentation

# update_subscription method definition

def update_subscription(
    self,
    *,
    arn: str,
    planTier: str,
    ifMatch: str,
    usageLevel: str = ...,
    clientToken: str = ...,
) -> UpdateSubscriptionOutputTypeDef:  # (1)
    ...
  1. See UpdateSubscriptionOutputTypeDef
# update_subscription method usage example with argument unpacking

kwargs: UpdateSubscriptionInputTypeDef = {  # (1)
    "arn": ...,
    "planTier": ...,
    "ifMatch": ...,
}

parent.update_subscription(**kwargs)
  1. See UpdateSubscriptionInputTypeDef

get_paginator#

Type annotations and code completion for boto3.client("pricing-plan-manager").get_paginator method with overloads.