imagebuilder / Client / delete_component

delete_component

imagebuilder.Client.delete_component(**kwargs)

Deletes a component build version. The request fails with ResourceDependencyException if an image recipe or container recipe references this component version. It also fails if the component build version is shared with other accounts.

See also: AWS API Documentation

Request Syntax

response = client.delete_component(
    componentBuildVersionArn='string'
)
Parameters:

componentBuildVersionArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the component build version to delete.

Return type:

dict

Returns:

Response Syntax

{
    'requestId': 'string',
    'componentBuildVersionArn': 'string'
}

Response Structure

  • (dict) –

    • requestId (string) –

      The request ID that uniquely identifies this request.

    • componentBuildVersionArn (string) –

      The Amazon Resource Name (ARN) of the component build version that this request deleted.

Exceptions

  • imagebuilder.Client.exceptions.ServiceException

  • imagebuilder.Client.exceptions.ClientException

  • imagebuilder.Client.exceptions.ServiceUnavailableException

  • imagebuilder.Client.exceptions.InvalidRequestException

  • imagebuilder.Client.exceptions.ForbiddenException

  • imagebuilder.Client.exceptions.CallRateLimitExceededException

  • imagebuilder.Client.exceptions.ResourceDependencyException