Skip to content

list_extension_associations

list_extension_associations(
    *,
    config_overrides: Optional[AppConfigClientConfig] = None,
    resource_identifier: Optional[Arn] = None,
    extension_identifier: Optional[Identifier] = None,
    extension_version_number: Optional[Integer] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ExtensionAssociations

Lists all AppConfig extension associations in the account. For more information about extensions and associations, see Extending workflows in the AppConfig User Guide.

Parameters:

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

    The ARN of an application, configuration profile, or environment.

  • extension_identifier (Optional[Identifier], default: None ) –

    The name, the ID, or the Amazon Resource Name (ARN) of the extension.

  • extension_version_number (Optional[Integer], default: None ) –

    The version number for the extension defined in the association.

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

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

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

    A token to start the list. Use this token to get the next set of results or pass null to get the first set of results.

Raises:

Source code in docs_src/capo_appconfig/_services/app_config.py
def list_extension_associations(
    self,
    *,
    config_overrides: Optional[AppConfigClientConfig] = None,
    resource_identifier: Optional["capo_appconfig.types.arn.Arn"] = None,
    extension_identifier: Optional[
        "capo_appconfig.types.identifier.Identifier"
    ] = None,
    extension_version_number: Optional[
        "capo_appconfig.types.integer.Integer"
    ] = None,
    max_results: Optional["capo_appconfig.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_appconfig.types.next_token.NextToken"] = None,
) -> "capo_appconfig.types.extension_associations.ExtensionAssociations":
    """<p>Lists all AppConfig extension associations in the account. For more information about extensions and associations, see <a href="https://docs.aws.amazon.com/appconfig/latest/userguide/working-with-appconfig-extensions.html">Extending workflows</a> in the <i>AppConfig User Guide</i>.</p>

    Args:
        resource_identifier: <p>The ARN of an application, configuration profile, or environment.</p>
        extension_identifier: <p>The name, the ID, or the Amazon Resource Name (ARN) of the extension.</p>
        extension_version_number: <p>The version number for the extension defined in the association.</p>
        max_results: <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
        next_token: <p>A token to start the list. Use this token to get the next set of results or pass null to get the first set of results. </p>

    Raises:
        capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
        capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_appconfig.types.list_extension_associations_request.ListExtensionAssociationsRequest]",
    ) -> OperationResponse[
        "capo_appconfig.types.extension_associations.ExtensionAssociations"
    ]:
        import capo_appconfig._operations.amazon_app_config.list_extension_associations

        output, http_response = (
            capo_appconfig._operations.amazon_app_config.list_extension_associations.list_extension_associations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListExtensionAssociations")
    )
    input_: capo_appconfig.types.list_extension_associations_request.ListExtensionAssociationsRequest = {}
    if resource_identifier is not None:
        input_["resource_identifier"] = resource_identifier
    if extension_identifier is not None:
        input_["extension_identifier"] = extension_identifier
    if extension_version_number is not None:
        input_["extension_version_number"] = extension_version_number
    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