AgentsforBedrock / Client / delete_vpc_configuration

delete_vpc_configuration

AgentsforBedrock.Client.delete_vpc_configuration(**kwargs)

Deletes a VPC configuration. This operation is asynchronous: it returns status DELETING. Poll GetVpcConfiguration until it returns a ResourceNotFoundException, indicating the configuration is deleted. Delete requests are idempotent and safe to retry.

See also: AWS API Documentation

Request Syntax

response = client.delete_vpc_configuration(
    knowledgeBaseId='string',
    vpcConfigurationId='string'
)
Parameters:
  • knowledgeBaseId (string) –

    [REQUIRED]

    The unique identifier of the knowledge base that owns the VPC configuration.

  • vpcConfigurationId (string) –

    [REQUIRED]

    The unique identifier of the VPC configuration to delete.

Return type:

dict

Returns:

Response Syntax

{
    'vpcConfigurationId': 'string',
    'status': 'CREATING'|'CREATED'|'DELETING'|'CREATE_FAILED'|'DELETE_FAILED'
}

Response Structure

  • (dict) –

    • vpcConfigurationId (string) –

      The unique identifier of the VPC configuration being deleted.

    • status (string) –

      The current status of the VPC configuration. Immediately after a delete request this is DELETING.

Exceptions