Skip to content

list_assets_for_license_asset_group async

list_assets_for_license_asset_group(
    license_asset_group_arn: String,
    asset_type: String,
    *,
    config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
    max_results: Optional[BoxInteger] = None,
    next_token: Optional[String] = None,
) -> ListAssetsForLicenseAssetGroupResponse

Lists assets for a license asset group.

Parameters:

  • license_asset_group_arn (String) –

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

  • asset_type (String) –

    Asset type. The possible values are Instance | License | LicenseConfiguration.

  • max_results (Optional[BoxInteger], default: None ) –

    Maximum number of results to return in a single call.

  • next_token (Optional[String], default: None ) –

    Token for the next set of results.

Raises:

Source code in docs_src/capo_license_manager/_services/async_license_manager.py
async def list_assets_for_license_asset_group(
    self,
    license_asset_group_arn: "capo_license_manager.types.string.String",
    asset_type: "capo_license_manager.types.string.String",
    *,
    config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
    max_results: Optional[
        "capo_license_manager.types.box_integer.BoxInteger"
    ] = None,
    next_token: Optional["capo_license_manager.types.string.String"] = None,
) -> "capo_license_manager.types.list_assets_for_license_asset_group_response.ListAssetsForLicenseAssetGroupResponse":
    """<p>Lists assets for a license asset group.</p>

    Args:
        license_asset_group_arn: <p>Amazon Resource Name (ARN) of the license asset group.</p>
        asset_type: <p>Asset type. The possible values are <code>Instance</code> | <code>License</code> | <code>LicenseConfiguration</code>.</p>
        max_results: <p>Maximum number of results to return in a single call.</p>
        next_token: <p>Token for the next set of results.</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.list_assets_for_license_asset_group_request.ListAssetsForLicenseAssetGroupRequest]",
    ) -> AsyncOperationResponse[
        "capo_license_manager.types.list_assets_for_license_asset_group_response.ListAssetsForLicenseAssetGroupResponse"
    ]:
        import capo_license_manager._operations.aws_license_manager.list_assets_for_license_asset_group

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAssetsForLicenseAssetGroup")
    )
    input_: capo_license_manager.types.list_assets_for_license_asset_group_request.ListAssetsForLicenseAssetGroupRequest = {
        "license_asset_group_arn": license_asset_group_arn,
        "asset_type": asset_type,
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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