LicenseManagerUserSubscriptionsClient#
Index > LicenseManagerUserSubscriptions > LicenseManagerUserSubscriptionsClient
Auto-generated documentation for LicenseManagerUserSubscriptions type annotations stubs module mypy-boto3-license-manager-user-subscriptions.
LicenseManagerUserSubscriptionsClient#
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").
 boto3 documentation
# LicenseManagerUserSubscriptionsClient usage example
from boto3.session import Session
from mypy_boto3_license_manager_user_subscriptions.client import LicenseManagerUserSubscriptionsClient
def get_license-manager-user-subscriptions_client() -> LicenseManagerUserSubscriptionsClient:
    return Session().client("license-manager-user-subscriptions")
Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("license-manager-user-subscriptions").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("license-manager-user-subscriptions")
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_license_manager_user_subscriptions.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").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("license-manager-user-subscriptions").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:
    ...
associate_user#
Associates the user to an EC2 instance to utilize user-based subscriptions.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").associate_user method.
 boto3 documentation
# associate_user method definition
def associate_user(
    self,
    *,
    Username: str,
    InstanceId: str,
    IdentityProvider: IdentityProviderUnionTypeDef,  # (1)
    Domain: str = ...,
    Tags: Mapping[str, str] = ...,
) -> AssociateUserResponseTypeDef:  # (2)
    ...
# associate_user method usage example with argument unpacking
kwargs: AssociateUserRequestTypeDef = {  # (1)
    "Username": ...,
    "InstanceId": ...,
    "IdentityProvider": ...,
}
parent.associate_user(**kwargs)
create_license_server_endpoint#
Creates a network endpoint for the Remote Desktop Services (RDS) license server.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").create_license_server_endpoint method.
 boto3 documentation
# create_license_server_endpoint method definition
def create_license_server_endpoint(
    self,
    *,
    IdentityProviderArn: str,
    LicenseServerSettings: LicenseServerSettingsTypeDef,  # (1)
    Tags: Mapping[str, str] = ...,
) -> CreateLicenseServerEndpointResponseTypeDef:  # (2)
    ...
# create_license_server_endpoint method usage example with argument unpacking
kwargs: CreateLicenseServerEndpointRequestTypeDef = {  # (1)
    "IdentityProviderArn": ...,
    "LicenseServerSettings": ...,
}
parent.create_license_server_endpoint(**kwargs)
delete_license_server_endpoint#
Deletes a LicenseServerEndpoint resource.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").delete_license_server_endpoint method.
 boto3 documentation
# delete_license_server_endpoint method definition
def delete_license_server_endpoint(
    self,
    *,
    LicenseServerEndpointArn: str,
    ServerType: ServerTypeType,  # (1)
) -> DeleteLicenseServerEndpointResponseTypeDef:  # (2)
    ...
# delete_license_server_endpoint method usage example with argument unpacking
kwargs: DeleteLicenseServerEndpointRequestTypeDef = {  # (1)
    "LicenseServerEndpointArn": ...,
    "ServerType": ...,
}
parent.delete_license_server_endpoint(**kwargs)
deregister_identity_provider#
Deregisters the Active Directory identity provider from License Manager user-based subscriptions.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").deregister_identity_provider method.
 boto3 documentation
# deregister_identity_provider method definition
def deregister_identity_provider(
    self,
    *,
    IdentityProvider: IdentityProviderUnionTypeDef = ...,  # (1)
    Product: str = ...,
    IdentityProviderArn: str = ...,
) -> DeregisterIdentityProviderResponseTypeDef:  # (2)
    ...
# deregister_identity_provider method usage example with argument unpacking
kwargs: DeregisterIdentityProviderRequestTypeDef = {  # (1)
    "IdentityProvider": ...,
}
parent.deregister_identity_provider(**kwargs)
disassociate_user#
Disassociates the user from an EC2 instance providing user-based subscriptions.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").disassociate_user method.
 boto3 documentation
# disassociate_user method definition
def disassociate_user(
    self,
    *,
    Username: str = ...,
    InstanceId: str = ...,
    IdentityProvider: IdentityProviderUnionTypeDef = ...,  # (1)
    InstanceUserArn: str = ...,
    Domain: str = ...,
) -> DisassociateUserResponseTypeDef:  # (2)
    ...
# disassociate_user method usage example with argument unpacking
kwargs: DisassociateUserRequestTypeDef = {  # (1)
    "Username": ...,
}
parent.disassociate_user(**kwargs)
list_identity_providers#
Lists the Active Directory identity providers for user-based subscriptions.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").list_identity_providers method.
 boto3 documentation
# list_identity_providers method definition
def list_identity_providers(
    self,
    *,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
) -> ListIdentityProvidersResponseTypeDef:  # (2)
    ...
- See 
Sequence[FilterTypeDef] - See ListIdentityProvidersResponseTypeDef
 
# list_identity_providers method usage example with argument unpacking
kwargs: ListIdentityProvidersRequestTypeDef = {  # (1)
    "MaxResults": ...,
}
parent.list_identity_providers(**kwargs)
list_instances#
Lists the EC2 instances providing user-based subscriptions.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").list_instances method.
 boto3 documentation
# list_instances method definition
def list_instances(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> ListInstancesResponseTypeDef:  # (2)
    ...
- See 
Sequence[FilterTypeDef] - See ListInstancesResponseTypeDef
 
# list_instances method usage example with argument unpacking
kwargs: ListInstancesRequestTypeDef = {  # (1)
    "MaxResults": ...,
}
parent.list_instances(**kwargs)
list_license_server_endpoints#
List the Remote Desktop Services (RDS) License Server endpoints.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").list_license_server_endpoints method.
 boto3 documentation
# list_license_server_endpoints method definition
def list_license_server_endpoints(
    self,
    *,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
) -> ListLicenseServerEndpointsResponseTypeDef:  # (2)
    ...
- See 
Sequence[FilterTypeDef] - See ListLicenseServerEndpointsResponseTypeDef
 
# list_license_server_endpoints method usage example with argument unpacking
kwargs: ListLicenseServerEndpointsRequestTypeDef = {  # (1)
    "MaxResults": ...,
}
parent.list_license_server_endpoints(**kwargs)
list_product_subscriptions#
Lists the user-based subscription products available from an identity provider.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").list_product_subscriptions method.
 boto3 documentation
# list_product_subscriptions method definition
def list_product_subscriptions(
    self,
    *,
    IdentityProvider: IdentityProviderUnionTypeDef,  # (1)
    Product: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    NextToken: str = ...,
) -> ListProductSubscriptionsResponseTypeDef:  # (3)
    ...
- See IdentityProviderUnionTypeDef
 - See 
Sequence[FilterTypeDef] - See ListProductSubscriptionsResponseTypeDef
 
# list_product_subscriptions method usage example with argument unpacking
kwargs: ListProductSubscriptionsRequestTypeDef = {  # (1)
    "IdentityProvider": ...,
}
parent.list_product_subscriptions(**kwargs)
list_tags_for_resource#
Returns the list of tags for the specified resource.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").list_tags_for_resource method.
 boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_user_associations#
Lists user associations for an identity provider.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").list_user_associations method.
 boto3 documentation
# list_user_associations method definition
def list_user_associations(
    self,
    *,
    InstanceId: str,
    IdentityProvider: IdentityProviderUnionTypeDef,  # (1)
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    NextToken: str = ...,
) -> ListUserAssociationsResponseTypeDef:  # (3)
    ...
- See IdentityProviderUnionTypeDef
 - See 
Sequence[FilterTypeDef] - See ListUserAssociationsResponseTypeDef
 
# list_user_associations method usage example with argument unpacking
kwargs: ListUserAssociationsRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "IdentityProvider": ...,
}
parent.list_user_associations(**kwargs)
register_identity_provider#
Registers an identity provider for user-based subscriptions.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").register_identity_provider method.
 boto3 documentation
# register_identity_provider method definition
def register_identity_provider(
    self,
    *,
    IdentityProvider: IdentityProviderUnionTypeDef,  # (1)
    Product: str,
    Settings: SettingsUnionTypeDef = ...,  # (2)
    Tags: Mapping[str, str] = ...,
) -> RegisterIdentityProviderResponseTypeDef:  # (3)
    ...
- See IdentityProviderUnionTypeDef
 - See SettingsUnionTypeDef
 - See RegisterIdentityProviderResponseTypeDef
 
# register_identity_provider method usage example with argument unpacking
kwargs: RegisterIdentityProviderRequestTypeDef = {  # (1)
    "IdentityProvider": ...,
    "Product": ...,
}
parent.register_identity_provider(**kwargs)
start_product_subscription#
Starts a product subscription for a user with the specified identity provider.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").start_product_subscription method.
 boto3 documentation
# start_product_subscription method definition
def start_product_subscription(
    self,
    *,
    Username: str,
    IdentityProvider: IdentityProviderUnionTypeDef,  # (1)
    Product: str,
    Domain: str = ...,
    Tags: Mapping[str, str] = ...,
) -> StartProductSubscriptionResponseTypeDef:  # (2)
    ...
# start_product_subscription method usage example with argument unpacking
kwargs: StartProductSubscriptionRequestTypeDef = {  # (1)
    "Username": ...,
    "IdentityProvider": ...,
    "Product": ...,
}
parent.start_product_subscription(**kwargs)
stop_product_subscription#
Stops a product subscription for a user with the specified identity provider.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").stop_product_subscription method.
 boto3 documentation
# stop_product_subscription method definition
def stop_product_subscription(
    self,
    *,
    Username: str = ...,
    IdentityProvider: IdentityProviderUnionTypeDef = ...,  # (1)
    Product: str = ...,
    ProductUserArn: str = ...,
    Domain: str = ...,
) -> StopProductSubscriptionResponseTypeDef:  # (2)
    ...
# stop_product_subscription method usage example with argument unpacking
kwargs: StopProductSubscriptionRequestTypeDef = {  # (1)
    "Username": ...,
}
parent.stop_product_subscription(**kwargs)
tag_resource#
Adds tags to a resource.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").tag_resource method.
 boto3 documentation
# tag_resource method definition
def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes tags from a resource.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").untag_resource method.
 boto3 documentation
# untag_resource method definition
def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_identity_provider_settings#
Updates additional product configuration settings for the registered identity provider.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").update_identity_provider_settings method.
 boto3 documentation
# update_identity_provider_settings method definition
def update_identity_provider_settings(
    self,
    *,
    UpdateSettings: UpdateSettingsTypeDef,  # (1)
    IdentityProvider: IdentityProviderUnionTypeDef = ...,  # (2)
    Product: str = ...,
    IdentityProviderArn: str = ...,
) -> UpdateIdentityProviderSettingsResponseTypeDef:  # (3)
    ...
- See UpdateSettingsTypeDef
 - See IdentityProviderUnionTypeDef
 - See UpdateIdentityProviderSettingsResponseTypeDef
 
# update_identity_provider_settings method usage example with argument unpacking
kwargs: UpdateIdentityProviderSettingsRequestTypeDef = {  # (1)
    "UpdateSettings": ...,
}
parent.update_identity_provider_settings(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").get_paginator method with overloads.
client.get_paginator("list_identity_providers")-> ListIdentityProvidersPaginatorclient.get_paginator("list_instances")-> ListInstancesPaginatorclient.get_paginator("list_license_server_endpoints")-> ListLicenseServerEndpointsPaginatorclient.get_paginator("list_product_subscriptions")-> ListProductSubscriptionsPaginatorclient.get_paginator("list_user_associations")-> ListUserAssociationsPaginator