Skip to content

list_app_authorizations

list_app_authorizations(
    app_bundle_identifier: Identifier,
    *,
    config_overrides: Optional[AppFabricClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[String2048] = None,
) -> ListAppAuthorizationsResponse

Returns a list of all app authorizations configured for an app bundle.

Parameters:

  • app_bundle_identifier (Identifier) –

    The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.

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

    The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results.

    This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

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

    If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Raises:

Source code in docs_src/capo_appfabric/_services/app_fabric.py
def list_app_authorizations(
    self,
    app_bundle_identifier: "capo_appfabric.types.identifier.Identifier",
    *,
    config_overrides: Optional[AppFabricClientConfig] = None,
    max_results: Optional["capo_appfabric.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_appfabric.types.string2048.String2048"] = None,
) -> "capo_appfabric.types.list_app_authorizations_response.ListAppAuthorizationsResponse":
    """<p>Returns a list of all app authorizations configured for an app bundle.</p>

    Args:
        app_bundle_identifier: <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
        max_results: <p>The maximum number of results that are returned per call. You can use <code>nextToken</code> to obtain further pages of results.</p> <p>This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.</p>
        next_token: <p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an <i>HTTP 400 InvalidToken error</i>.</p>

    Raises:
        capo_appfabric.errors.access_denied_exception.AccessDeniedException: <p>You are not authorized to perform this operation.</p>
        capo_appfabric.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
        capo_appfabric.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_appfabric.errors.throttling_exception.ThrottlingException: <p>The request rate exceeds the limit.</p>
        capo_appfabric.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_appfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_appfabric.types.list_app_authorizations_request.ListAppAuthorizationsRequest]",
    ) -> OperationResponse[
        "capo_appfabric.types.list_app_authorizations_response.ListAppAuthorizationsResponse"
    ]:
        import capo_appfabric._operations.fabric_front_end_service.list_app_authorizations

        output, http_response = (
            capo_appfabric._operations.fabric_front_end_service.list_app_authorizations.list_app_authorizations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAppAuthorizations")
    )
    input_: capo_appfabric.types.list_app_authorizations_request.ListAppAuthorizationsRequest = {
        "app_bundle_identifier": app_bundle_identifier
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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