Skip to content

get_license_asset_ruleset async

get_license_asset_ruleset(
    license_asset_ruleset_arn: Arn,
    *,
    config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
) -> GetLicenseAssetRulesetResponse

Gets a license asset ruleset.

Parameters:

  • license_asset_ruleset_arn (Arn) –

    Amazon Resource Name (ARN) of the license asset ruleset.

Raises:

Source code in docs_src/capo_license_manager/_services/async_license_manager.py
async def get_license_asset_ruleset(
    self,
    license_asset_ruleset_arn: "capo_license_manager.types.arn.Arn",
    *,
    config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
) -> "capo_license_manager.types.get_license_asset_ruleset_response.GetLicenseAssetRulesetResponse":
    """<p>Gets a license asset ruleset.</p>

    Args:
        license_asset_ruleset_arn: <p>Amazon Resource Name (ARN) of the license asset ruleset.</p>

    Raises:
        capo_license_manager.errors.access_denied_exception.AccessDeniedException: <p>Access to resource denied.</p>
        capo_license_manager.errors.authorization_exception.AuthorizationException: <p>The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.</p>
        capo_license_manager.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more parameter values are not valid.</p>
        capo_license_manager.errors.rate_limit_exceeded_exception.RateLimitExceededException: <p>Too many requests have been submitted. Try again after a brief wait.</p>
        capo_license_manager.errors.server_internal_exception.ServerInternalException: <p>The server experienced an internal error. Try again.</p>
        capo_license_manager.errors.validation_exception.ValidationException: <p>The provided input is not valid. Try your request again.</p>
        capo_license_manager.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_license_manager.types.get_license_asset_ruleset_request.GetLicenseAssetRulesetRequest]",
    ) -> AsyncOperationResponse[
        "capo_license_manager.types.get_license_asset_ruleset_response.GetLicenseAssetRulesetResponse"
    ]:
        import capo_license_manager._operations.aws_license_manager.get_license_asset_ruleset

        (
            output,
            http_response,
        ) = await capo_license_manager._operations.aws_license_manager.get_license_asset_ruleset.async_get_license_asset_ruleset(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetLicenseAssetRuleset")
    )
    input_: capo_license_manager.types.get_license_asset_ruleset_request.GetLicenseAssetRulesetRequest = {
        "license_asset_ruleset_arn": license_asset_ruleset_arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output