def delete_vpce_service()

in python/vpce/delete_vpce_service_sample.py [0:0]


def delete_vpce_service(service_ids):
    """
    Deletes VPC Endpoint Service.

    Accepts:
    - service_id (str): ['vpce-svc-xxxx', 'vpce-svc-yyyy']

    Usage:
    - delete_vpce_service(['vpce-svc-xxxx', 'vpce-svc-yyyy'])
    """
    logging.info("Creating VPC Endpoint Service:")
    try:
        response = ec2.delete_vpc_endpoint_service_configurations(
            ServiceIds=service_ids
        )
        return response
    except ClientError as e:
        logging.error(e)
        return None