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#
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,
*,
IdentityProvider: IdentityProviderTypeDef, # (1)
InstanceId: str,
Username: str,
Domain: str = ...,
Tags: Mapping[str, str] = ...,
) -> AssociateUserResponseTypeDef: # (2)
...
# associate_user method usage example with argument unpacking
kwargs: AssociateUserRequestRequestTypeDef = { # (1)
"IdentityProvider": ...,
"InstanceId": ...,
"Username": ...,
}
parent.associate_user(**kwargs)
can_paginate#
Check if an operation can be paginated.
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:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("license-manager-user-subscriptions").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
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: CreateLicenseServerEndpointRequestRequestTypeDef = { # (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: DeleteLicenseServerEndpointRequestRequestTypeDef = { # (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: IdentityProviderTypeDef = ..., # (1)
IdentityProviderArn: str = ...,
Product: str = ...,
) -> DeregisterIdentityProviderResponseTypeDef: # (2)
...
# deregister_identity_provider method usage example with argument unpacking
kwargs: DeregisterIdentityProviderRequestRequestTypeDef = { # (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,
*,
Domain: str = ...,
IdentityProvider: IdentityProviderTypeDef = ..., # (1)
InstanceId: str = ...,
InstanceUserArn: str = ...,
Username: str = ...,
) -> DisassociateUserResponseTypeDef: # (2)
...
# disassociate_user method usage example with argument unpacking
kwargs: DisassociateUserRequestRequestTypeDef = { # (1)
"Domain": ...,
}
parent.disassociate_user(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
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:
...
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,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> ListIdentityProvidersResponseTypeDef: # (2)
...
# list_identity_providers method usage example with argument unpacking
kwargs: ListIdentityProvidersRequestRequestTypeDef = { # (1)
"Filters": ...,
}
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,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> ListInstancesResponseTypeDef: # (2)
...
# list_instances method usage example with argument unpacking
kwargs: ListInstancesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.list_instances(**kwargs)
list_license_server_endpoints#
List the Remote Desktop Services (RDS) License Server endpoints See also: AWS API Documentation.
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,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> ListLicenseServerEndpointsResponseTypeDef: # (2)
...
# list_license_server_endpoints method usage example with argument unpacking
kwargs: ListLicenseServerEndpointsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
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: IdentityProviderTypeDef, # (1)
Filters: Sequence[FilterTypeDef] = ..., # (2)
MaxResults: int = ...,
NextToken: str = ...,
Product: str = ...,
) -> ListProductSubscriptionsResponseTypeDef: # (3)
...
# list_product_subscriptions method usage example with argument unpacking
kwargs: ListProductSubscriptionsRequestRequestTypeDef = { # (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: ListTagsForResourceRequestRequestTypeDef = { # (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,
*,
IdentityProvider: IdentityProviderTypeDef, # (1)
InstanceId: str,
Filters: Sequence[FilterTypeDef] = ..., # (2)
MaxResults: int = ...,
NextToken: str = ...,
) -> ListUserAssociationsResponseTypeDef: # (3)
...
# list_user_associations method usage example with argument unpacking
kwargs: ListUserAssociationsRequestRequestTypeDef = { # (1)
"IdentityProvider": ...,
"InstanceId": ...,
}
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: IdentityProviderTypeDef, # (1)
Product: str,
Settings: SettingsTypeDef = ..., # (2)
Tags: Mapping[str, str] = ...,
) -> RegisterIdentityProviderResponseTypeDef: # (3)
...
# register_identity_provider method usage example with argument unpacking
kwargs: RegisterIdentityProviderRequestRequestTypeDef = { # (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,
*,
IdentityProvider: IdentityProviderTypeDef, # (1)
Product: str,
Username: str,
Domain: str = ...,
Tags: Mapping[str, str] = ...,
) -> StartProductSubscriptionResponseTypeDef: # (2)
...
# start_product_subscription method usage example with argument unpacking
kwargs: StartProductSubscriptionRequestRequestTypeDef = { # (1)
"IdentityProvider": ...,
"Product": ...,
"Username": ...,
}
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,
*,
Domain: str = ...,
IdentityProvider: IdentityProviderTypeDef = ..., # (1)
Product: str = ...,
ProductUserArn: str = ...,
Username: str = ...,
) -> StopProductSubscriptionResponseTypeDef: # (2)
...
# stop_product_subscription method usage example with argument unpacking
kwargs: StopProductSubscriptionRequestRequestTypeDef = { # (1)
"Domain": ...,
}
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: TagResourceRequestRequestTypeDef = { # (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: UntagResourceRequestRequestTypeDef = { # (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: IdentityProviderTypeDef = ..., # (2)
IdentityProviderArn: str = ...,
Product: str = ...,
) -> UpdateIdentityProviderSettingsResponseTypeDef: # (3)
...
- See UpdateSettingsTypeDef
- See IdentityProviderTypeDef
- See UpdateIdentityProviderSettingsResponseTypeDef
# update_identity_provider_settings method usage example with argument unpacking
kwargs: UpdateIdentityProviderSettingsRequestRequestTypeDef = { # (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