Skip to content

update_extension async

update_extension(
    extension_identifier: Identifier,
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
    description: Optional[Description] = None,
    actions: Optional[ActionsMap] = None,
    parameters: Optional[ParameterMap] = None,
    version_number: Optional[Integer] = None,
) -> Extension

Updates an AppConfig extension. For more information about extensions, see Extending workflows in the AppConfig User Guide.

Parameters:

  • extension_identifier (Identifier) –

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

  • description (Optional[Description], default: None ) –

    Information about the extension.

  • actions (Optional[ActionsMap], default: None ) –

    The actions defined in the extension.

  • parameters (Optional[ParameterMap], default: None ) –

    One or more parameters for the actions called by the extension.

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

    The extension version number.

Raises:

Source code in docs_src/capo_appconfig/_services/async_app_config.py
async def update_extension(
    self,
    extension_identifier: "capo_appconfig.types.identifier.Identifier",
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
    description: Optional["capo_appconfig.types.description.Description"] = None,
    actions: Optional["capo_appconfig.types.actions_map.ActionsMap"] = None,
    parameters: Optional["capo_appconfig.types.parameter_map.ParameterMap"] = None,
    version_number: Optional["capo_appconfig.types.integer.Integer"] = None,
) -> "capo_appconfig.types.extension.Extension":
    """<p>Updates an AppConfig extension. For more information about extensions, 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:
        extension_identifier: <p>The name, the ID, or the Amazon Resource Name (ARN) of the extension.</p>
        description: <p>Information about the extension.</p>
        actions: <p>The actions defined in the extension.</p>
        parameters: <p>One or more parameters for the actions called by the extension.</p>
        version_number: <p>The extension version number.</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.conflict_exception.ConflictException: <p>The request could not be processed because of conflict in the current state of the resource.</p>
        capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
        capo_appconfig.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
        capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appconfig.types.update_extension_request.UpdateExtensionRequest]",
    ) -> AsyncOperationResponse["capo_appconfig.types.extension.Extension"]:
        import capo_appconfig._operations.amazon_app_config.update_extension

        (
            output,
            http_response,
        ) = await capo_appconfig._operations.amazon_app_config.update_extension.async_update_extension(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateExtension")
    )
    input_: capo_appconfig.types.update_extension_request.UpdateExtensionRequest = {
        "extension_identifier": extension_identifier
    }
    if description is not None:
        input_["description"] = description
    if actions is not None:
        input_["actions"] = actions
    if parameters is not None:
        input_["parameters"] = parameters
    if version_number is not None:
        input_["version_number"] = version_number

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