Skip to content

put_registry_catalog_data async

put_registry_catalog_data(
    *,
    config_overrides: Optional[AsyncECRPUBLICClientConfig] = None,
    display_name: Optional[RegistryDisplayName] = None,
    description: Optional[RegistryDescription] = None,
    logo_image_blob: Optional[LogoImageBlob] = None,
) -> PutRegistryCatalogDataResponse

Create or update the catalog data for a public registry.

Parameters:

  • display_name (Optional[RegistryDisplayName], default: None ) –

    The display name for a public registry. The display name is shown as the repository author in the Amazon ECR Public Gallery.

    The registry display name is only publicly visible in the Amazon ECR Public Gallery for verified accounts.

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

    A description of the public registry. This description is shown in the Amazon ECR Public Gallery.

  • logo_image_blob (Optional[LogoImageBlob], default: None ) –

    The base64-encoded logo image for the public registry. This logo is shown in the Amazon ECR Public Gallery.

Raises:

  • InvalidParameterException –

    The specified parameter is invalid. Review the available parameters for the API request.

  • ServerException –

    These errors are usually caused by a server-side issue. Retry the request. If it continues to fail, contact Amazon Web Services Support.

  • UnsupportedCommandException –

    The action isn't supported in this Region. Check that the action is available in the Amazon Web Services Region that you're using, and try again in a supported Region.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_ecr_public/_services/async_ecrpublic.py
async def put_registry_catalog_data(
    self,
    *,
    config_overrides: Optional[AsyncECRPUBLICClientConfig] = None,
    display_name: Optional[
        "capo_ecr_public.types.registry_display_name.RegistryDisplayName"
    ] = None,
    description: Optional[
        "capo_ecr_public.types.registry_description.RegistryDescription"
    ] = None,
    logo_image_blob: Optional[
        "capo_ecr_public.types.logo_image_blob.LogoImageBlob"
    ] = None,
) -> "capo_ecr_public.types.put_registry_catalog_data_response.PutRegistryCatalogDataResponse":
    """<p>Create or update the catalog data for a public registry.</p>

    Args:
        display_name: <p>The display name for a public registry. The display name is shown as the repository author in the Amazon ECR Public Gallery.</p> <note> <p>The registry display name is only publicly visible in the Amazon ECR Public Gallery for verified accounts.</p> </note>
        description: <p>A description of the public registry. This description is shown in the Amazon ECR Public Gallery.</p>
        logo_image_blob: <p>The base64-encoded logo image for the public registry. This logo is shown in the Amazon ECR Public Gallery.</p>

    Raises:
        capo_ecr_public.errors.invalid_parameter_exception.InvalidParameterException: <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
        capo_ecr_public.errors.server_exception.ServerException: <p>These errors are usually caused by a server-side issue. Retry the request. If it continues to fail, contact Amazon Web Services Support.</p>
        capo_ecr_public.errors.unsupported_command_exception.UnsupportedCommandException: <p>The action isn't supported in this Region. Check that the action is available in the Amazon Web Services Region that you're using, and try again in a supported Region.</p>
        capo_ecr_public.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ecr_public.types.put_registry_catalog_data_request.PutRegistryCatalogDataRequest]",
    ) -> AsyncOperationResponse[
        "capo_ecr_public.types.put_registry_catalog_data_response.PutRegistryCatalogDataResponse"
    ]:
        import capo_ecr_public._operations.spencer_frontend_service.put_registry_catalog_data

        (
            output,
            http_response,
        ) = await capo_ecr_public._operations.spencer_frontend_service.put_registry_catalog_data.async_put_registry_catalog_data(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutRegistryCatalogData")
    )
    input_: capo_ecr_public.types.put_registry_catalog_data_request.PutRegistryCatalogDataRequest = {}
    if display_name is not None:
        input_["display_name"] = display_name
    if description is not None:
        input_["description"] = description
    if logo_image_blob is not None:
        input_["logo_image_blob"] = logo_image_blob

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