Skip to content

deregister_identity_provider

deregister_identity_provider(
    *,
    config_overrides: Optional[LicenseManagerUserSubscriptionsClientConfig] = None,
    identity_provider: Optional[IdentityProvider] = None,
    product: Optional[str] = None,
    identity_provider_arn: Optional[Arn] = None,
) -> DeregisterIdentityProviderResponse

Deregisters the Active Directory identity provider from License Manager user-based subscriptions.

Parameters:

  • identity_provider (Optional[IdentityProvider], default: None ) –

    An object that specifies details for the Active Directory identity provider.

  • product (Optional[str], default: None ) –

    The name of the user-based subscription product.

    Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | OFFICE_STANDARD | REMOTE_DESKTOP_SERVICES

  • identity_provider_arn (Optional[Arn], default: None ) –

    The Amazon Resource Name (ARN) that identifies the identity provider to deregister.

Raises:

Source code in docs_src/capo_license_manager_user_subscriptions/_services/license_manager_user_subscriptions.py
def deregister_identity_provider(
    self,
    *,
    config_overrides: Optional[LicenseManagerUserSubscriptionsClientConfig] = None,
    identity_provider: Optional[
        "capo_license_manager_user_subscriptions.types.identity_provider.IdentityProvider"
    ] = None,
    product: Optional[str] = None,
    identity_provider_arn: Optional[
        "capo_license_manager_user_subscriptions.types.arn.Arn"
    ] = None,
) -> "capo_license_manager_user_subscriptions.types.deregister_identity_provider_response.DeregisterIdentityProviderResponse":
    """<p>Deregisters the Active Directory identity provider from License Manager user-based subscriptions.</p>

    Args:
        identity_provider: <p>An object that specifies details for the Active Directory identity provider.</p>
        product: <p>The name of the user-based subscription product.</p> <p>Valid values: <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code> | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>OFFICE_STANDARD</code> | <code>REMOTE_DESKTOP_SERVICES</code> </p>
        identity_provider_arn: <p>The Amazon Resource Name (ARN) that identifies the identity provider to deregister.</p>

    Raises:
        capo_license_manager_user_subscriptions.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
        capo_license_manager_user_subscriptions.errors.conflict_exception.ConflictException: <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
        capo_license_manager_user_subscriptions.errors.internal_server_exception.InternalServerException: <p>An exception occurred with the service.</p>
        capo_license_manager_user_subscriptions.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found.</p>
        capo_license_manager_user_subscriptions.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request failed because a service quota is exceeded.</p>
        capo_license_manager_user_subscriptions.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling. Retry the request.</p>
        capo_license_manager_user_subscriptions.errors.validation_exception.ValidationException: <p>A parameter is not valid.</p>
        capo_license_manager_user_subscriptions.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_license_manager_user_subscriptions.types.deregister_identity_provider_request.DeregisterIdentityProviderRequest]",
    ) -> OperationResponse[
        "capo_license_manager_user_subscriptions.types.deregister_identity_provider_response.DeregisterIdentityProviderResponse"
    ]:
        import capo_license_manager_user_subscriptions._operations.license_manager_user_subscriptions.deregister_identity_provider

        output, http_response = (
            capo_license_manager_user_subscriptions._operations.license_manager_user_subscriptions.deregister_identity_provider.deregister_identity_provider(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeregisterIdentityProvider")
    )
    input_: capo_license_manager_user_subscriptions.types.deregister_identity_provider_request.DeregisterIdentityProviderRequest = {}
    if identity_provider is not None:
        input_["identity_provider"] = identity_provider
    if product is not None:
        input_["product"] = product
    if identity_provider_arn is not None:
        input_["identity_provider_arn"] = identity_provider_arn

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output